index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
listlengths
768
768
43,019
linearmodels.panel.model
_drop_singletons
null
def _drop_singletons(self) -> None: if self._singletons or not self._has_effect: return effects = self._collect_effects() retain = in_2core_graph(effects) if np.all(retain): return import warnings as warn nobs = retain.shape[0] ndropped = nobs - retain.sum() warn.warn( f"{ndropped} singleton observations dropped", SingletonWarning, stacklevel=3, ) drop = ~retain self._singleton_index = cast(BoolArray, drop) self.dependent.drop(drop) self.exog.drop(drop) self.weights.drop(drop) if self.other_effects: assert self._other_effect_cats is not None self._other_effect_cats.drop(drop) # Reverify exog matrix self._check_exog_rank()
(self) -> NoneType
[ 0.017124950885772705, -0.011034071445465088, 0.011278067715466022, 0.026966150850057602, -0.05165499821305275, -0.006831906735897064, -0.04279882088303566, 0.005462814122438431, 0.01461268961429596, 0.032532889395952225, -0.06123412773013115, 0.038605693727731705, 0.004672084469348192, -0.010943702422082424, -0.012796269729733467, -0.029641076922416687, -0.023658638820052147, 0.0770668014883995, -0.0016763474559411407, -0.03526203706860542, -0.03224370628595352, 0.03473789617419243, -0.029478412121534348, 0.05165499821305275, -0.04279882088303566, -0.07793433964252472, -0.053606972098350525, 0.004005611874163151, 0.00485282251611352, 0.006325839553028345, 0.02179703488945961, -0.014910907484591007, 0.000298500555800274, -0.013465001247823238, 0.014865722507238388, -0.031502678990364075, 0.04518456757068634, 0.0916704535484314, -0.006737018935382366, 0.011910651810467243, 0.021110229194164276, -0.05740247294306755, 0.030400177463889122, -0.006583391688764095, 0.008210035972297192, 0.02259228378534317, 0.07218686491250992, 0.041786689311265945, -0.06061961501836777, 0.021200599148869514, 0.018091900274157524, 0.03878643363714218, -0.010681631974875927, 0.047064244747161865, 0.04991991072893143, 0.006158656440675259, 0.021616296842694283, 0.03320161998271942, 0.031032761558890343, -0.0296952985227108, 0.0459798164665699, 0.0710301399230957, 0.05436607077717781, -0.018941370770335197, 0.06658397614955902, 0.0008353496668860316, 0.03184608370065689, 0.033093176782131195, -0.028195170685648918, -0.024869585409760475, -0.04254578799009323, -0.055125173181295395, -0.006673760712146759, 0.05837846174836159, -0.013781293295323849, -0.08660978078842163, 0.0685359537601471, -0.008350107818841934, -0.0073018260300159454, -0.03969012573361397, 0.01428736001253128, -0.04901621863245964, -0.0801754966378212, 0.04999220743775368, 0.0038949097506701946, 0.01456750463694334, -0.010528004728257656, 0.029189230874180794, 0.006529170088469982, -0.0667647197842598, -0.003293955000117421, 0.03457523137331009, 0.013952994719147682, 0.018317824229598045, 0.055052876472473145, 0.0703071877360344, -0.04836555942893028, -0.04084685072302818, 0.02403819002211094, -0.062065523117780685, -0.0077988565899431705, -0.013121598400175571, -0.054257627576589584, 0.04605211317539215, -0.019049813970923424, 0.004048537462949753, 0.05946289002895355, -0.019212478771805763, -0.0767776146531105, -0.0042428309097886086, -0.01803767867386341, 0.06372831761837006, -0.04232890158891678, 0.04540145397186279, -0.04160594940185547, -0.08169370144605637, -0.000715610571205616, 0.005458295810967684, -0.04113603010773659, 0.030960464850068092, -0.028285538777709007, 0.0032668441999703646, -0.07670532166957855, 0.005223336163908243, 0.08733273297548294, 0.01804671622812748, 0.02282724343240261, -0.00548540661111474, -0.010040011256933212, 0.013365594670176506, -0.027164962142705917, -0.005779106169939041, -0.044823091477155685, 0.00568421883508563, -0.006533688399940729, -0.01732376404106617, 0.0030476991087198257, -0.014928980730473995, -0.050245240330696106, 0.01843530312180519, -0.02458040416240692, 0.036924827843904495, 0.02226695418357849, 0.05660722777247429, 0.005575775634497404, 0.034611377865076065, -0.002462558913975954, 0.0031742157880216837, 0.0005868345615454018, 0.01789308898150921, -0.03177378699183464, 0.02345982752740383, 0.006678279023617506, 0.0011860949452966452, -0.0841517373919487, -0.014558468014001846, 0.002991218352690339, -0.004416791256517172, -0.0573301799595356, 0.017052656039595604, -0.013211967423558235, -0.006371024064719677, -0.022176586091518402, -0.04908851534128189, -0.07424727827310562, -0.02186933159828186, 0.02730955183506012, -0.008074481971561909, 0.014956091530621052, 0.030454399064183235, -0.06004125252366066, 0.04695580154657364, 0.03911176323890686, 0.013347521424293518, -0.05064286291599274, 0.07865729182958603, -0.021923551335930824, 0.0015396641101688147, 0.004830230493098497, -0.03878643363714218, -0.003275881055742502, -0.06455971300601959, -0.04485923796892166, -0.040666110813617706, 0.022501913830637932, 0.031574975699186325, 0.007459972053766251, -0.023098351433873177, 0.060005106031894684, 0.05060671642422676, 0.03976241871714592, 0.021218672394752502, 0.003183252876624465, 0.003036402864381671, 0.05729403346776962, 0.026207048445940018, -0.003815836738795042, -0.01962817646563053, 0.00003847748303087428, -0.04240119829773903, -0.06372831761837006, -0.048907775431871414, -0.03320161998271942, -0.02170666679739952, -0.011196736246347427, 0.04702809825539589, -0.009380316361784935, 0.05038983002305031, -0.030960464850068092, -0.04460620507597923, -0.011928725987672806, -0.023767082020640373, 0.07475335150957108, -0.01604052074253559, 0.05114893242716789, -0.051691144704818726, 0.024399666115641594, -0.012163685634732246, 0.014838611707091331, -0.023929746821522713, -0.043955545872449875, 0.00411179568618536, -0.04912466183304787, 0.029008492827415466, -0.06123412773013115, 0.037159789353609085, 0.0017667165957391262, 0.05216106399893761, 0.031502678990364075, -0.06253544241189957, 0.03809962794184685, -0.020802974700927734, 0.01892329752445221, -0.07077710330486298, 0.09861080348491669, 0.0421481654047966, 0.0017429946456104517, -0.040123894810676575, 0.06893357634544373, -0.0166188832372427, -0.055125173181295395, -0.048727039247751236, 0.004943191539496183, -0.04167824611067772, 0.020730679854750633, 0.02730955183506012, 0.024634625762701035, 0.00950683280825615, 0.03282206878066063, -0.014865722507238388, 0.03602113574743271, 0.022863391786813736, 0.011160587891936302, -0.0166188832372427, 0.07540400326251984, -0.07012645155191422, 0.05949904024600983, 0.02841205522418022, -0.0060908799059689045, -0.019031740725040436, -0.022953759878873825, 0.03744896873831749, 0.000689629465341568, 0.02378515712916851, -0.07851270586252213, 0.06210166960954666, -0.0047895642928779125, 0.006971978582441807, 0.002781110117211938, 0.01604955829679966, 0.08357337862253189, -0.03105083480477333, 0.002374449046328664, -0.01401625294238329, -0.03605728596448898, 0.009244762361049652, 0.007093977183103561, 0.023026056587696075, 0.04973917081952095, 0.038280364125967026, 0.05461910367012024, -0.04384710267186165, 0.07431957870721817, 0.03423182666301727, 0.019736619666218758, -0.016908064484596252, 0.0018209380796179175, -0.01445002481341362, 0.06958423554897308, -0.014296397566795349, 0.009696608409285545, -0.0009533943957649171, 0.10432212799787521, -0.004699195269495249, -0.0761992558836937, -0.01597726345062256, -0.048654742538928986, 0.004547826945781708, -0.013501148670911789, 0.03296666219830513, -0.023007981479167938, -0.002681704005226493, 0.011034071445465088, 0.037629708647727966, 0.0362560972571373, -0.03050862066447735, 0.05302860960364342, -0.017856940627098083, 0.048257119953632355, -0.00025204516714438796, -0.0006721204263158143, 0.004012389574199915, 0.018245527520775795, 0.03997930511832237, -0.0015294975601136684, -0.003815836738795042, 0.010274970903992653, -0.007347010541707277, -0.025737129151821136, 0.09304406493902206, 0.011811246164143085, -0.00634391326457262, -0.07684991508722305, 0.0346294529736042, 0.013609591871500015, 0.01829071342945099, 0.020061947405338287, -0.0021089897491037846, -0.021037934347987175, 0.015444085001945496, -0.03990700840950012, -0.056318044662475586, -0.018182270228862762, 0.03674409165978432, 0.024128559976816177, -0.05382385849952698, 0.0018717707134783268, -0.05367926508188248, 0.03618380054831505, -0.05443836748600006, 0.009579128585755825, 0.0016063114162534475, -0.0015464418102055788, 0.008101592771708965, 0.03345465287566185, 0.016076669096946716, -0.0024083375465124846, 0.004477790556848049, 0.016808658838272095, -0.06300535798072815, 0.044425465166568756, 0.0916704535484314, 0.0009381445706821978, 0.04316030070185661, 0.08234435319900513, 0.005264002364128828, -0.0384611040353775, 0.07095784693956375, -0.031195426359772682, 0.008336552418768406, 0.053606972098350525, -0.002979922341182828, -0.002984440652653575, 0.0033707688562572002, 0.09615276008844376, -0.02053186669945717, -0.023351384326815605, -0.04525686427950859, -0.08357337862253189, -0.07410269230604172, -0.060005106031894684, -0.04887162894010544, -0.03806348145008087, -0.011784135363996029, -0.0061993226408958435, 0.044750794768333435, 0.0296952985227108, -0.007997668348252773, 0.06564413756132126, 0.015561564825475216, -0.024056263267993927, -0.024851512163877487, -0.029406117275357246, 0.009696608409285545, -0.021200599148869514, -0.00042360532097518444, -0.02785176783800125, -0.003029625164344907, 0.055378206074237823, 0.01185643021017313, 0.07713909447193146, -0.03799118474125862, 0.018706411123275757, -0.01717013493180275, -0.006529170088469982, 0.027183035388588905, -0.06752381473779678, 0.026297418400645256, -0.0515827015042305, 0.04619670286774635, 0.019863136112689972, -0.005507998634129763, -0.0480402335524559, 0.0029076270293444395, -0.020857196301221848, -0.015832671895623207, -0.020640309900045395, 0.031340017914772034, -0.004292533732950687, -0.006072805728763342, -0.0025822981260716915, -0.049630727618932724, -0.010085195302963257, -0.024092411622405052, 0.06607791036367416, -0.037810444831848145, 0.08877863734960556, 0.01162147056311369, 0.044750794768333435, 0.015525417402386665, 0.041461359709501266, 0.05038983002305031, 0.062318556010723114, 0.0029437746852636337, -0.018408192321658134, 0.00022338121198117733, -0.05957133322954178, 0.021760888397693634, -0.0008280071779154241, 0.03009292297065258, -0.06680086255073547, -0.024688847362995148, -0.0440639890730381, -0.04453390836715698, 0.030942391604185104, -0.021254820749163628, 0.015435048379004002, -0.0061948043294250965, 0.019067887216806412, 0.04167824611067772, -0.04384710267186165, 0.04095529392361641, -0.003867798950523138, 0.012281165458261967, 0.005629997234791517, 0.004073388874530792, 0.010320154950022697, 0.02186933159828186, 0.01504646148532629, -0.012479977682232857, -0.004866377916187048, -0.04467850178480148, -0.011549175716936588, -0.058233872056007385, -0.0064026531763374805, -0.01867026276886463, -0.009949642233550549, -0.044497761875391006, -0.04973917081952095, -0.06004125252366066, -0.021272893995046616, -0.016465255990624428, -0.031737640500068665, 0.005611923523247242, 0.00007014197763055563, -0.046666622161865234, 0.03598498925566673, -0.02195969969034195, -0.018778705969452858, 0.009100171737372875, 0.027725251391530037, -0.005431185010820627, 0.03896716982126236, -0.04471464827656746, -0.059282153844833374, -0.045799076557159424, -0.02530335821211338, -0.0027969246730208397, 0.04352177679538727, -0.02777947299182415, -0.015462159179151058, 0.00776722701266408, -0.03258711099624634, -0.02347790077328682, -0.02994833141565323, -0.01924862526357174, 0.009922531433403492, -0.04193127900362015, 0.05610115826129913, -0.006999089382588863, -0.03943708911538124, -0.036129578948020935, -0.00045269288239069283, -0.011910651810467243, 0.020296907052397728, 0.024291222915053368, -0.054076891392469406, 0.028809679672122, 0.0707409605383873, -0.019375141710042953, 0.013365594670176506, -0.012986044399440289, -0.0456906333565712, -0.0004851692938245833, -0.01581459864974022, -0.0461244061589241, 0.020495720207691193, -0.018869075924158096, -0.03929249942302704, -0.015182014554738998, 0.01037437655031681, -0.028520498424768448, 0.01065452117472887, 0.0332377664744854, 0.06369216740131378, -0.028159022331237793, -0.0024444852024316788, -0.009796014055609703, 0.017784645780920982, 0.0022388952784240246, -0.024797290563583374, -0.02402011677622795, -0.020170390605926514, 0.046666622161865234, -0.039870861917734146, -0.05367926508188248, -0.008440476842224598, -0.009479722008109093, -0.011314216069877148, -0.01773042418062687, -0.01253419928252697, -0.04536530748009682, -0.040991440415382385, 0.011006960645318031, -0.027255332097411156, -0.04467850178480148, 0.0028669608291238546, -0.07525941729545593, 0.030960464850068092, 0.020007725805044174, -0.01867026276886463, -0.023965895175933838, 0.04417243227362633, 0.00838625617325306, -0.018543746322393417, 0.025484096258878708, -0.01852567307651043, 0.03106890805065632, -0.054257627576589584, 0.06358372420072556, -0.01941129006445408, -0.04182283580303192, 0.0018762891413643956, -0.03247866779565811, 0.07139161974191666, -0.062318556010723114, 0.013284263201057911, 0.06228240951895714, 0.004507160745561123, 0.07182538509368896, -0.031249646097421646, -0.055595092475414276, 0.09586358070373535, -0.014151806943118572, -0.02683963254094124, 0.027255332097411156, 0.03235214948654175, -0.021760888397693634, 0.003158401232212782, 0.06546340137720108, 0.0066511682234704494, -0.025086471810936928, -0.01273301150649786, 0.005706810858100653, 0.0007675728411413729, 0.013266189023852348, 0.0440639890730381, 0.018010567873716354, -0.022050069645047188, -0.005480887833982706, 0.03594884276390076, 0.008914914913475513, -0.04724498465657234, 0.02188740484416485, 0.05306475609540939, 0.05628189817070961, -0.012127538211643696, 0.007952484302222729, 0.02875545807182789, -0.014477135613560677, 0.029116936028003693, 0.008485661819577217, 0.02163437008857727, -0.011766061186790466, -0.036274172365665436, 0.05093204602599144, 0.018182270228862762, -0.011359400115907192, 0.01116962544620037, 0.04399169608950615, 0.04001545161008835, 0.0210740827023983, 0.055125173181295395, -0.036364540457725525, -0.005268520675599575, 0.009805051609873772, -0.0005159513093531132, 0.0016040521441027522, 0.030472472310066223, 0.0027155925054103136, -0.03495478257536888, 0.026387788355350494, 0.007478045765310526, -0.052414096891880035, -0.01597726345062256, -0.009633350186049938, -0.0006167693645693362, -0.007410269230604172, 0.017983457073569298, -0.011775098741054535, -0.04055766761302948, -0.028195170685648918, -0.01596822589635849, -0.02242961898446083, 0.010988886468112469, 0.007356047630310059, 0.011684728786349297, -0.00917698536068201, 0.01924862526357174, 0.047461871057748795, -0.004407754633575678, -0.046413589268922806, -0.03784659504890442, -0.011133477091789246, 0.0031222535762935877, 0.05461910367012024, -0.0072973077185451984, 0.01249805185943842, 0.010347265750169754, 0.0664755329489708, 0.031032761558890343, -0.064848892390728, 0.000561135821044445, 0.060872647911310196, -0.04916080832481384, -0.0614510104060173, -0.02268265374004841, -0.012073316611349583, -0.026008237153291702, 0.02899041771888733, 0.015950152650475502, 0.01213657483458519, -0.03410531207919121, -0.009149874560534954, -0.012145611457526684, -0.006596947088837624, 0.008106111548841, -0.02955070696771145, 0.02163437008857727, -0.03179186210036278, 0.033418506383895874, 0.02434544451534748, -0.0400877483189106, 0.016591772437095642, 0.05827001854777336, -0.011350363492965698, -0.023279089480638504, -0.02537565305829048, 0.0420035757124424, 0.02553831785917282, -0.03618380054831505, -0.022501913830637932, -0.028375908732414246, 0.009922531433403492, -0.02682155929505825, -0.053932301700115204, 0.04485923796892166, 0.07930795103311539, -0.02091141790151596, -0.02242961898446083, 0.016573699191212654, 0.0008268776000477374, 0.024471960961818695, -0.06716234236955643, 0.04160594940185547, -0.001105892239138484, -0.019772766157984734, -0.01508260890841484, 0.014278323389589787, -0.021507853642106056, -0.029207304120063782, 0.025520244613289833, 0.03193645179271698, 0.03871413692831993, -0.011684728786349297, 0.009777940809726715, 0.0009166818927042186, -0.0552697628736496, 0.032424446195364, -0.02186933159828186, 0.03638261556625366, 0.02841205522418022, -0.012317312881350517, -0.0025868164375424385, 0.03376190736889839, 0.06069191172719002, -0.024381592869758606, 0.020477646961808205, 0.049305401742458344, 0.006217396352440119, -0.018245527520775795, 0.03088817000389099, 0.019357068464159966, 0.06369216740131378, -0.023676713928580284, -0.015670008957386017, -0.037557411938905716, -0.032370224595069885, -0.016465255990624428, 0.008191961795091629, -0.04334103688597679, 0.010943702422082424, -0.01980891451239586, 0.03479211777448654, -0.0012911490630358458, 0.060475025326013565, 0.02955070696771145, -0.03705134615302086, -0.015932079404592514, 0.00845855101943016, -0.01941129006445408, -0.005959844682365656, -0.052414096891880035, 0.028918122872710228, 0.022610357031226158, -0.024706922471523285, 0.060005106031894684, 0.003998834174126387, -0.028050579130649567, -0.05682411044836044, -0.031665343791246414, -0.09702030569314957, 0.010085195302963257, 0.026966150850057602, -0.04764260724186897, 0.007121087983250618, 0.013121598400175571, 0.007220494095236063, -0.0005890937754884362, -0.04757031425833702, 0.030598988756537437, 0.03618380054831505, 0.01899559237062931, -0.017757534980773926, 0.0006964071653783321, 0.022447694092988968, 0.024056263267993927, -0.036111507564783096, -0.038931023329496384, -0.09940604865550995, -0.0238755252212286, 0.003020588308572769, 0.05443836748600006, 0.043232593685388565, 0.02691192924976349, 0.008612178266048431, 0.004615603480488062, -0.03193645179271698 ]
43,022
linearmodels.panel.model
_fast_path
Dummy-variable free estimation without weights
def _fast_path( self, low_memory: bool ) -> tuple[Float64Array, Float64Array, Float64Array]: """Dummy-variable free estimation without weights""" _y = self.dependent.values2d _x = self.exog.values2d ybar = np.asarray(_y.mean(0)) if not self._has_effect: return _y, _x, ybar y_gm = ybar x_gm = _x.mean(0) y = self.dependent x = self.exog if self.other_effects: assert self._other_effect_cats is not None groups = self._other_effect_cats if self.entity_effects or self.time_effects: groups = groups.copy() if self.entity_effects: effect = self.dependent.entity_ids else: effect = self.dependent.time_ids col = ensure_unique_column("additional.effect", groups.dataframe) groups.dataframe[col] = effect y = cast(PanelData, y.general_demean(groups)) x = cast(PanelData, x.general_demean(groups)) elif self.entity_effects and self.time_effects: y = cast(PanelData, y.demean("both", low_memory=low_memory)) x = cast(PanelData, x.demean("both", low_memory=low_memory)) elif self.entity_effects: y = cast(PanelData, y.demean("entity")) x = cast(PanelData, x.demean("entity")) else: # self.time_effects y = cast(PanelData, y.demean("time")) x = cast(PanelData, x.demean("time")) y_arr = y.values2d x_arr = x.values2d if self.has_constant: y_arr = y_arr + y_gm x_arr = x_arr + x_gm else: ybar = np.asarray(0.0) return y_arr, x_arr, ybar
(self, low_memory: bool) -> tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]
[ 0.030820954591035843, -0.029707422479987144, -0.003047297475859523, 0.07460659742355347, 0.028454700484871864, -0.02680428884923458, -0.059056926518678665, 0.00023239993606694043, 0.004913953598588705, -0.021892819553613663, 0.04346748813986778, 0.02903135120868683, 0.008391253650188446, 0.012010229751467705, -0.03143737465143204, 0.05173943564295769, -0.02662532776594162, 0.017001235857605934, -0.03803902119398117, 0.00601505720987916, -0.017806557938456535, -0.011841211467981339, -0.012626648880541325, -0.0013397173024713993, -0.01597718521952629, 0.023722192272543907, -0.001211710856296122, -0.028196202591061592, 0.009927329607307911, -0.07281699031591415, -0.010628257878124714, -0.019765179604291916, -0.015062498860061169, -0.010966294445097446, 0.023443810641765594, -0.00025632345932535827, 0.048796530812978745, 0.05285296589136124, -0.0632326677441597, -0.03445981442928314, -0.0005347062833607197, -0.09894520789384842, 0.037283413112163544, 0.009559466503560543, -0.06132375821471214, -0.026148099452257156, -0.04983052238821983, -0.007054021582007408, 0.014684692956507206, -0.005950432736426592, 0.0561537891626358, -0.03941105306148529, -0.0018604423385113478, 0.04800115153193474, 0.020520789548754692, 0.07707227021455765, 0.036169882863759995, 0.0965590700507164, 0.004831930156797171, -0.01894991658627987, 0.0292898491024971, 0.027221862226724625, 0.03449958562850952, -0.003842676989734173, -0.008480733260512352, -0.01207982562482357, -0.04287095367908478, 0.025969140231609344, -0.01136398408561945, 0.0507054403424263, -0.03259067237377167, 0.036368727684020996, 0.024616993963718414, -0.009216459468007088, 0.0289915818721056, -0.04398448392748833, -0.01654389314353466, 0.0034126751124858856, 0.034837622195482254, -0.04601270332932472, -0.0480806902050972, -0.004411870613694191, -0.03034372627735138, 0.0003566779778338969, -0.03060222417116165, -0.010996120981872082, 0.01840309239923954, 0.03931162878870964, -0.003318223636597395, -0.011662251316010952, -0.03770098835229874, 0.05480164662003517, -0.029926152899861336, 0.06192029267549515, 0.047523923218250275, -0.018005402758717537, -0.021256515756249428, -0.0020244892220944166, -0.005219677928835154, 0.0011756703024730086, -0.013799834065139294, -0.013123760931193829, -0.031119221821427345, 0.05834108218550682, 0.005189850926399231, -0.014992902986705303, 0.04398448392748833, -0.014943191781640053, 0.0343405082821846, -0.05702870711684227, -0.04895560443401337, -0.010006868280470371, -0.04462078958749771, 0.0003846405306831002, -0.0664539560675621, 0.005672049708664417, -0.06553927063941956, -0.027480360120534897, -0.013819717802107334, 0.01269624475389719, -0.04696715623140335, 0.027142323553562164, -0.1032402515411377, 0.03020453453063965, 0.05675032362341881, -0.014316830784082413, 0.07397028803825378, 0.005985230673104525, -0.028872273862361908, -0.04462078958749771, -0.019118933007121086, 0.026923594996333122, 0.006740841083228588, 0.047722768038511276, -0.046410392969846725, 0.019437085837125778, 0.029946036636829376, -0.0013397173024713993, 0.013461797498166561, -0.007277722004801035, -0.02038159966468811, 0.009783167392015457, -0.03418143093585968, 0.02932961843907833, 0.050267983227968216, 0.02421930432319641, 0.05169966444373131, -0.0033604782074689865, -0.024378379806876183, 0.0381782129406929, -0.022330278530716896, -0.012000287882983685, -0.025730526074767113, -0.0357523076236248, 0.0357523076236248, -0.07321467995643616, -0.06307359039783478, 0.006412746850401163, 0.018114767968654633, -0.029866499826312065, -0.10729669034481049, -0.07945840805768967, 0.039848510175943375, -0.03825775161385536, 0.009996925480663776, 0.06649371981620789, -0.011612540110945702, -0.016434527933597565, -0.00570684764534235, 0.025054452940821648, 0.007436797954142094, -0.01648424006998539, -0.039788857102394104, 0.0023687395732849836, -0.09989966452121735, 0.028912043198943138, -0.00920154619961977, -0.009176690131425858, -0.01979500614106655, -0.0028882217593491077, 0.020918479189276695, -0.004459096118807793, -0.06951616704463959, -0.030820954591035843, 0.00785934366285801, 0.016881929710507393, 0.0652608871459961, -0.06903893500566483, 0.038814518600702286, 0.07711204141378403, -0.07349306344985962, 0.025690756738185883, 0.0561537891626358, -0.007551133632659912, 0.05826154723763466, -0.011155197396874428, 0.07138530910015106, -0.027559898793697357, 0.029528463259339333, -0.001306162215769291, -0.014754288829863071, -0.05563679337501526, 0.015788283199071884, 0.0057565588504076, -0.04561501368880272, 0.04474009573459625, -0.009012643247842789, 0.05583563819527626, -0.07305560261011124, 0.0820036232471466, -0.04068366065621376, -0.02258877642452717, -0.05551748722791672, 0.00020987454627174884, 0.03682607039809227, 0.030920377001166344, 0.015828050673007965, 0.060011379420757294, 0.010320048779249191, 0.0027714003808796406, 0.028176316991448402, -0.05571633204817772, -0.04573431983590126, 0.0016615974018350244, 0.02050090581178665, -0.02388126775622368, 0.013163530267775059, 0.0654597282409668, 0.022389931604266167, -0.04724553972482681, 0.04390494525432587, 0.0007562318933196366, 0.0003725234419107437, -0.033565014600753784, 0.05738662928342819, 0.011960518546402454, 0.0024495201651006937, -0.012845378369092941, 0.023304618895053864, -0.0019312807125970721, -0.04466055706143379, -0.03296848013997078, 0.020331887528300285, 0.009092181921005249, 0.0034574151504784822, -0.015788283199071884, 0.02539248950779438, 0.0035518663935363293, -0.01979500614106655, -0.010628257878124714, -0.029548346996307373, 0.024497687816619873, -0.004844358190894127, 0.0039371284656226635, 0.009360621683299541, -0.04318910464644432, 0.06502227485179901, 0.003750711213797331, -0.00315914792008698, -0.05098382383584976, -0.001717522507533431, -0.019278010353446007, -0.015589437447488308, 0.004411870613694191, -0.04843860864639282, 0.0012421590508893132, 0.0319145992398262, -0.03585172817111015, -0.032471366226673126, 0.06923778355121613, -0.0511031299829483, 0.059136465191841125, -0.0581820085644722, -0.023145543411374092, -0.030065344646573067, 0.04434240609407425, 0.0511031299829483, -0.052773427218198776, 0.023543233051896095, 0.043507255613803864, -0.043785639107227325, -0.06895940005779266, 0.0037382834125310183, 0.032431598752737045, -0.0587785430252552, -0.0333263985812664, -0.005209735594689846, -0.07758926600217819, 0.0737316757440567, -0.006507198326289654, 0.02789793536067009, 0.04295049235224724, 0.010369759984314442, 0.0114136952906847, 0.056471943855285645, 0.008699462749063969, -0.0434277206659317, -0.01662342995405197, 0.02042136713862419, 0.028772851452231407, 0.02425907365977764, 0.006919801235198975, 0.02682417258620262, 0.0040663774125278, 0.0660562664270401, -0.020331887528300285, 0.042592570185661316, -0.036030691117048264, 0.031019799411296844, -0.02905123494565487, -0.04406402260065079, -0.01759777031838894, 0.02680428884923458, 0.023384155705571175, 0.008783971890807152, -0.007451711222529411, -0.027559898793697357, 0.040146779268980026, 0.05563679337501526, 0.09401385486125946, -0.0004874806327279657, -0.00395949836820364, 0.005473204888403416, 0.03175552561879158, 0.0007040351047180593, 0.03304801508784294, 0.031079452484846115, -0.014883538708090782, 0.047722768038511276, 0.009460044093430042, -0.04147903993725777, 0.0005729217664338648, -0.022529123350977898, 0.03587161377072334, 0.03034372627735138, -0.010449297726154327, 0.018114767968654633, -0.01918852888047695, 0.04481963440775871, -0.01140375342220068, 0.03024430386722088, -0.011035890318453312, -0.04561501368880272, 0.03286905586719513, 0.07631666213274002, -0.07401005923748016, 0.05993184447288513, -0.00087926717242226, 0.04971121624112129, 0.05066567286849022, -0.011781558394432068, 0.021932588890194893, -0.03300824761390686, 0.05937507748603821, 0.05408580228686333, 0.08176501095294952, -0.04780230671167374, 0.01326295267790556, -0.0024358495138585567, 0.049910061061382294, 0.03698514401912689, 0.0019760208670049906, -0.041359733790159225, 0.02915065735578537, 0.05619356036186218, -0.04859768599271774, 0.015589437447488308, 0.005582569632679224, -0.020719634369015694, -0.036567572504282, -0.05925577133893967, -0.014456021599471569, -0.0005698148161172867, 0.01908910647034645, -0.016116376966238022, 0.06502227485179901, 0.015251400880515575, 0.011125369928777218, 0.028474584221839905, -0.03050280176103115, 0.04454125091433525, -0.03527507930994034, -0.028633661568164825, 0.04271187633275986, 0.01268630288541317, 0.02680428884923458, 0.0050879428163170815, -0.013203299604356289, -0.027182092890143394, -0.02551179565489292, 0.061283987015485764, -0.04812045767903328, -0.00631829584017396, -0.0404052771627903, 0.050148677080869675, -0.0030547543428838253, 0.052534814924001694, 0.06864124536514282, -0.06414735317230225, -0.003188974456861615, -0.04183695837855339, -0.05551748722791672, -0.03776064142584801, 0.01826390065252781, -0.06454504281282425, -0.05102359130978584, -0.0004940052167512476, 0.04219488054513931, -0.007551133632659912, 0.04474009573459625, 0.010986179113388062, 0.03390305116772652, -0.02390115335583687, -0.007849400863051414, 0.022111549973487854, -0.012984570115804672, -0.023066004738211632, 0.0008699462632648647, 0.09401385486125946, 0.0434277206659317, 0.023185310885310173, -0.004993491806089878, -0.011284446343779564, -0.026167985051870346, 0.015619263984262943, -0.00038930095615796745, -0.08717358857393265, 0.016474297270178795, 0.01321324147284031, 0.0664539560675621, 0.02288704365491867, -0.0023078431840986013, -0.08132755011320114, -0.05571633204817772, -0.006109508685767651, 0.007874256931245327, 0.03523531183600426, -0.0004470902495086193, 0.0606079138815403, -0.001225381507538259, -0.006084653083235025, 0.05933531001210213, 0.04537639766931534, -0.018721243366599083, -0.02040148340165615, -0.0511031299829483, -0.06534042209386826, -0.00022634137712884694, -0.02046113647520542, -0.019546451047062874, 0.026008907705545425, 0.03720387443900108, 0.07082854211330414, -0.028156433254480362, 0.006343151442706585, -0.011304331012070179, -0.013163530267775059, -0.0537278838455677, -0.022409817203879356, 0.01521163247525692, 0.011533002369105816, 0.043706100434064865, -0.05058613419532776, -0.027619551867246628, 0.03539438545703888, -0.016434527933597565, 0.03722376003861427, -0.01654389314353466, -0.034817736595869064, -0.004349731374531984, -0.009559466503560543, -0.053807422518730164, -0.0395900122821331, -0.033644553273916245, 0.03766121715307236, 0.008943048305809498, -0.010001896880567074, 0.05925577133893967, 0.06359058618545532, -0.06446550786495209, -0.0292898491024971, -0.07369190454483032, -0.01842297613620758, 0.010538778267800808, -0.0006418960983864963, 0.0408029668033123, -0.007749978452920914, -0.0004912089789286256, 0.03169587254524231, -0.014963076449930668, -0.023722192272543907, -0.010588489472866058, 0.007014252711087465, -0.03396270424127579, -0.024358496069908142, 0.04589339345693588, 0.0242391899228096, -0.01327289454638958, 0.034897275269031525, -0.009196574799716473, 0.02258877642452717, -0.03770098835229874, -0.021992241963744164, 0.0035419242922216654, -0.0057167899794876575, 0.002096570562571287, 0.019407259300351143, 0.0023848956916481256, -0.061283987015485764, 0.023543233051896095, 0.0013757579727098346, -0.024477802217006683, 0.0035717508289963007, -0.021952472627162933, 0.00021329219453036785, 0.02670486643910408, -0.017995459958910942, 0.03185494616627693, 0.025591334328055382, -0.03201402351260185, -0.04143926873803139, 0.03302813321352005, 0.014973018318414688, -0.007779805455356836, -0.023423925042152405, 0.0028111692517995834, -0.06959570199251175, -0.008147668093442917, 0.0402064323425293, -0.031198760494589806, 0.00991738773882389, -0.05710824579000473, 0.04434240609407425, 0.05209735408425331, 0.03680618479847908, -0.013451855629682541, 0.014306887984275818, -0.0842306837439537, -0.07424867153167725, -0.017727019265294075, 0.011194965802133083, -0.016822276636958122, -0.00632823770865798, -0.02145536057651043, 0.0279774721711874, -0.01387937180697918, 0.008783971890807152, 0.05209735408425331, -0.0028434814885258675, 0.008600040338933468, -0.005082971882075071, -0.019506681710481644, 0.05675032362341881, 0.01581810973584652, 0.0610056035220623, 0.0007829516544006765, -0.011045832186937332, 0.010011838749051094, -0.05213712528347969, -0.011393810622394085, -0.03937128186225891, -0.051341746002435684, -0.032451480627059937, -0.0325310193002224, -0.06860148161649704, -0.012944800779223442, 0.0170708317309618, 0.04688762128353119, 0.011443521827459335, -0.0315169095993042, -0.03937128186225891, 0.046092238277196884, 0.005522916093468666, -0.011672194115817547, 0.0044342405162751675, 0.005587540566921234, 0.028931928798556328, -0.08184454590082169, -0.0022171202581375837, -0.0019399801967665553, 0.056670788675546646, 0.02155478298664093, -0.03143737465143204, 0.005855981260538101, 0.01701117865741253, 0.015480073168873787, 0.020351771265268326, 0.0529325045645237, 0.03322697803378105, -0.05201781541109085, 0.0029503607656806707, -0.006442573852837086, -0.00026300339959561825, -0.024457918480038643, -0.004792161285877228, 0.02286715991795063, -0.05571633204817772, 0.006909858901053667, -0.00765552744269371, 0.01268630288541317, -0.012328381650149822, 0.006661302875727415, 0.03513588756322861, -0.02276773750782013, -0.022012127563357353, -0.02805701084434986, 0.008262003771960735, -0.002783828182145953, -0.03674653172492981, -0.011632424779236317, 0.012248843908309937, -0.012427804060280323, 0.04092227295041084, 0.005063087213784456, -0.002547699958086014, -0.017567943781614304, -0.029727308079600334, 0.0165637768805027, -0.02276773750782013, 0.06331220269203186, -0.06963547319173813, 0.020819056779146194, 0.008028361946344376, -0.007914025336503983, -0.002228305209428072, -0.018333496525883675, 0.10697853565216064, -0.11350064724683762, 0.03668687865138054, -0.03440016135573387, -0.02515387535095215, -0.006735869683325291, -0.01084698736667633, -0.01581810973584652, 0.004021637607365847, -0.0529325045645237, 0.03567276895046234, 0.0408029668033123, 0.0029503607656806707, 0.02010321617126465, -0.01652400754392147, 0.0430300273001194, -0.04318910464644432, -0.009122008457779884, 0.002499231370165944, -0.006870090030133724, -0.05627309903502464, -0.0016330134822055697, 0.04092227295041084, 0.030820954591035843, -0.019367489963769913, -0.006745812017470598, -0.05245527625083923, 0.01326295267790556, 0.013123760931193829, 0.08486698567867279, -0.002128882799297571, -0.04064388945698738, 0.021037787199020386, -0.01197046134620905, -0.019307836890220642, 0.02278762124478817, 0.02288704365491867, 0.02686394192278385, 0.04947260394692421, -0.00021500101138371974, 0.020958248525857925, 0.0051401397213339806, 0.02895181253552437, -0.04219488054513931, 0.03209356218576431, -0.022111549973487854, -0.0005775822210125625, -0.0045784031972289085, 0.0004222346469759941, -0.008490676060318947, 0.051381513476371765, 0.039868395775556564, 0.013123760931193829, 0.011165139265358448, 0.08224223554134369, 0.01383960247039795, -0.0036338898353278637, -0.040007587522268295, 0.03020453453063965, 0.02535272017121315, 0.01327289454638958, 0.000373144808690995, 0.00867460761219263, -0.033584896475076675, -0.02280750684440136, -0.02654578909277916, 0.01783638447523117, 0.013779949396848679, 0.031019799411296844, -0.10491055250167847, -0.01771707832813263, -0.004409384913742542, 0.05794339254498482, -0.01136398408561945, 0.01769719272851944, -0.04979075491428375, -0.04171765223145485, -0.004812045954167843, -0.012010229751467705, 0.050267983227968216, -0.03430074080824852, 0.017528174445033073, -0.027122439816594124, -0.0005695041036233306, -0.005304186604917049, -0.0121195949614048, 0.020779289305210114, -0.020192695781588554, 0.046171776950359344, -0.012159363366663456, -0.03770098835229874, -0.013720295391976833, -0.03139760345220566, 0.0585796982049942, -0.00285590928979218, 0.04581385850906372, 0.02290692925453186, 0.02775874361395836, -0.05309157818555832, 0.03153679519891739, 0.04147903993725777, -0.05408580228686333, 0.019417202100157738, -0.0002566341427154839, -0.032252635806798935, 0.02048102207481861, 0.028733083978295326, 0.02042136713862419, 0.011523059569299221, -0.022171203047037125, -0.0241397675126791, -0.02415965124964714, -0.007720151916146278, 0.026287291198968887, -0.03274974972009659, -0.007551133632659912, -0.030085228383541107, 0.01916864514350891, -0.03563300147652626, -0.023225080221891403, 0.04084273427724838, -0.003688572207465768, -0.015748513862490654, -0.04207557439804077, 0.0585796982049942, 0.043944716453552246, 0.0025079308543354273, 0.056551478803157806, 0.05850015953183174, -0.024915261194109917, 0.042314186692237854, -0.027460476383566856, -0.033525243401527405, -0.07520312815904617, -0.05746616795659065, 0.013799834065139294, -0.018055113032460213, 0.08780989050865173, -0.03400247171521187, 0.007267779670655727, -0.013282837346196175, 0.0717034563422203 ]
43,023
linearmodels.panel.model
_info
Information about model effects and panel structure
def _info(self) -> tuple[Series, Series, DataFrame | None]: """Information about model effects and panel structure""" entity_info, time_info, other_info = super()._info() if self.other_effects: other_info_values: list[Series] = [] assert self._other_effect_cats is not None oe = self._other_effect_cats.dataframe for c in oe: name = "Observations per group (" + str(c) + ")" other_info_values.append( panel_structure_stats(oe[c].values.astype(np.int32), name) ) other_info = DataFrame(other_info_values) return entity_info, time_info, other_info
(self) -> tuple[pandas.core.series.Series, pandas.core.series.Series, pandas.core.frame.DataFrame | None]
[ 0.015274894423782825, -0.021527882665395737, 0.01985919661819935, 0.02259144000709057, 0.03821473941206932, -0.045953042805194855, -0.007495333906263113, -0.011149022728204727, 0.01930907927453518, 0.024461835622787476, -0.023251580074429512, -0.017337830737233162, 0.014743114821612835, -0.01680605113506317, 0.0006303415284492075, 0.0057028718292713165, -0.034473951905965805, -0.003470316529273987, 0.0007059825002215803, -0.004135040566325188, -0.0009071187232621014, 0.0018394511425867677, -0.022994859144091606, -0.06524378806352615, 0.007389894686639309, 0.041735485196113586, -0.027945904061198235, -0.031925078481435776, 0.05380136892199516, 0.012762696482241154, -0.059705950319767, -0.03753626346588135, 0.000720308453310281, -0.011534104123711586, -0.06487704068422318, 0.015164870768785477, -0.026607288047671318, -0.0011512328637763858, -0.005973345600068569, 0.06168636679649353, 0.0009529617382213473, -0.07301875948905945, 0.0104522081092, 0.002567209070548415, -0.05405808985233307, -0.052884507924318314, -0.00268410868011415, -0.025195322930812836, -0.00044009299017488956, -0.06630734354257584, -0.01245096419006586, 0.016696028411388397, -0.001023445394821465, 0.014055470004677773, 0.033208683133125305, -0.0236549973487854, 0.016595173627138138, 0.04353253170847893, 0.006330920848995447, 0.021784603595733643, 0.05127083137631416, 0.06678411364555359, -0.03454729914665222, -0.011891678906977177, -0.030238056555390358, -0.036472707986831665, 0.03632600978016853, -0.015935033559799194, -0.0509774386882782, 0.019382428377866745, -0.0015655391616746783, -0.03232849761843681, -0.0006492517422884703, 0.06330004334449768, -0.06396017968654633, -0.10914306342601776, 0.025415370240807533, -0.034657321870326996, 0.08457120507955551, -0.037426240742206573, -0.018997346982359886, -0.004717246629297733, -0.03821473941206932, 0.016320114955306053, 0.028441010043025017, -0.04910704120993614, -0.005762467626482248, 0.02600216120481491, -0.005459903739392757, 0.024975277483463287, -0.06513376533985138, 0.031191591173410416, 0.016769375652074814, 0.01463309209793806, -0.03482235595583916, 0.030824845656752586, -0.023801695555448532, -0.015421591699123383, 0.0013947738334536552, 0.021216148510575294, -0.038104716688394547, -0.007944595068693161, -0.03454729914665222, 0.04070860147476196, -0.06645403802394867, -0.012524313293397427, 0.00591374933719635, -0.006285077892243862, -0.01594420149922371, -0.0227381382137537, -0.01657683588564396, 0.035225775092840195, -0.015439928509294987, -0.01782376505434513, 0.017301155254244804, -0.06436359882354736, -0.004886866081506014, -0.032841939479112625, -0.06491371244192123, -0.008609319105744362, -0.04910704120993614, 0.01335865631699562, -0.011689970269799232, -0.028514357283711433, -0.003919578157365322, 0.01700776070356369, -0.01283604558557272, -0.05629522725939751, 0.008833949454128742, -0.0516742505133152, -0.032511867582798004, -0.05299453064799309, 0.005271947011351585, 0.05229771509766579, 0.04096532240509987, -0.021252823993563652, 0.05218769237399101, -0.03935164958238602, -0.008302170783281326, 0.05809227377176285, -0.054314810782670975, 0.04298241436481476, -0.023526636883616447, 0.017695404589176178, -0.03986509144306183, -0.012395952828228474, 0.0271023940294981, -0.038508135825395584, -0.023911718279123306, -0.048886995762586594, 0.0008297586464323103, -0.014669766649603844, -0.018667276948690414, -0.044522739946842194, -0.03095320612192154, -0.03223681077361107, 0.018144667148590088, -0.030989881604909897, 0.020794393494725227, -0.004845607094466686, -0.07287206500768661, -0.07833655178546906, 0.02382003329694271, 0.012872720137238503, -0.0012285929406061769, 0.046686530113220215, 0.011726644821465015, -0.07657618075609207, 0.04463276267051697, -0.002201610943302512, -0.004013556521385908, 0.033043649047613144, 0.011799992993474007, -0.016485149040818214, -0.052114345133304596, 0.07048822939395905, 0.006023772526532412, -0.011607452295720577, 0.03038475289940834, -0.003225056454539299, 0.014119650237262249, -0.012771865352988243, -0.09491338580846786, 0.04778676480054855, -0.027212416753172874, -0.0298529751598835, 0.01235927827656269, -0.02926618419587612, 0.035005729645490646, 0.052847832441329956, 0.0129185626283288, 0.027047380805015564, -0.00016990568838082254, -0.008558891713619232, 0.028459345921874046, 0.011497429572045803, 0.04246897250413895, -0.04422934353351593, 0.04246897250413895, -0.028514357283711433, 0.006202560383826494, -0.04683322831988335, -0.03581256791949272, 0.06326336413621902, -0.020500998944044113, 0.08838534355163574, -0.0008859163499437273, 0.02532368339598179, -0.13261468708515167, 0.013853760436177254, -0.011625790037214756, 0.0022096335887908936, 0.018282195553183556, 0.001331739709712565, 0.08244408667087555, -0.014394707977771759, -0.02800091542303562, -0.0038485215045511723, -0.02840433456003666, 0.0004031320568174124, 0.020996103063225746, -0.05816562473773956, -0.022279707714915276, 0.03839811310172081, -0.022463079541921616, -0.002114509232342243, 0.02404007874429226, 0.01382625475525856, 0.04089197516441345, -0.02948622964322567, -0.022829823195934296, 0.016283441334962845, -0.08809194713830948, 0.007490749470889568, -0.0007483873050659895, 0.032860275357961655, 0.007068993523716927, -0.005670781712979078, 0.0019345753826200962, -0.0473099946975708, -0.02891777642071247, -0.02693735808134079, 0.029944660142064095, 0.011708307079970837, -0.014743114821612835, -0.13004747033119202, 0.03880153223872185, 0.014944824390113354, -0.025947149842977524, -0.026680637151002884, 0.026442253962159157, -0.004513245075941086, 0.002622220665216446, 0.0041946363635361195, 0.01074560359120369, -0.10664919763803482, -0.010864795185625553, 0.018603097647428513, 0.002796424087136984, -0.10386194288730621, -0.01698942296206951, 0.019712498411536217, -0.02418677695095539, -0.000730623141862452, -0.03058646246790886, 0.0022142177913337946, 0.02040931209921837, -0.035427484661340714, -0.03205344080924988, 0.0017202593153342605, 0.06168636679649353, 0.02004256844520569, -0.06517043709754944, -0.005524083971977234, -0.04719997197389603, -0.06168636679649353, 0.01649431884288788, -0.04246897250413895, -0.028496021404862404, 0.041955530643463135, 0.015815841034054756, -0.05020727589726448, -0.0509774386882782, -0.014321358874440193, -0.007765807677060366, -0.056882020086050034, -0.029156159609556198, -0.01165329571813345, -0.0026932773180305958, 0.014431382529437542, -0.05479157716035843, 0.047236647456884384, -0.025543730705976486, 0.00042834572377614677, -0.06374013423919678, 0.00173859647475183, -0.006083368789404631, 0.04932709038257599, -0.01192835345864296, 0.009315301664173603, -0.0018176757730543613, -0.007174432743340731, 0.02477356791496277, 0.03562919422984123, 0.019895870238542557, 0.0035918005742132664, 0.08552473783493042, -0.048336878418922424, 0.013844591565430164, -0.007110252510756254, 0.005262778606265783, 0.04118536785244942, 0.042505647987127304, 0.0955735296010971, -0.04371590167284012, -0.020849404856562614, -0.05530501902103424, 0.021546218544244766, 0.0046943253837525845, 0.127260223031044, -0.006555551663041115, -0.041001997888088226, 0.03748125210404396, 0.023031532764434814, 0.06524378806352615, -0.01401879545301199, 0.02382003329694271, -0.010800614953041077, 0.04929041489958763, 0.037554603070020676, -0.114350825548172, -0.036857787519693375, 0.04822685569524765, 0.0252686720341444, -0.0033304954413324594, 0.008389272727072239, -0.06443694978952408, -0.004868528805673122, 0.07356888055801392, -0.005139002576470375, -0.0026015914045274258, -0.05090408772230148, -0.05127083137631416, 0.030091358348727226, 0.06667409092187881, -0.04954713582992554, 0.08075706660747528, -0.005267363041639328, 0.021601229906082153, 0.032511867582798004, -0.04309243708848953, 0.018401388078927994, -0.021766265854239464, 0.04199220612645149, 0.00832050759345293, 0.060879528522491455, -0.02000589296221733, 0.0035918005742132664, -0.01301941741257906, 0.05079406499862671, 0.07518254965543747, 0.010571400634944439, 0.04312911257147789, 0.024425160139799118, -0.0129185626283288, -0.023214904591441154, 0.029889648780226707, 0.037921346724033356, 0.03293362632393837, -0.03698614984750748, -0.026497265323996544, 0.01420216728001833, 0.018052980303764343, -0.009856249205768108, -0.02618553303182125, 0.03221847489476204, 0.007114836480468512, -0.021692916750907898, 0.03348373994231224, -0.0727987140417099, 0.012276760302484035, -0.013936277478933334, -0.05171092599630356, -0.002241723705083132, 0.0026978617534041405, 0.010800614953041077, -0.010910638608038425, 0.010773109272122383, -0.06733422726392746, -0.00281934579834342, 0.023563312366604805, -0.025708764791488647, -0.04056190326809883, -0.050500668585300446, 0.01584334671497345, -0.01509152166545391, 0.017887946218252182, 0.0007730278884992003, -0.06018271669745445, 0.0058312322944402695, 0.018566422164440155, -0.06872785836458206, -0.011864173226058483, -0.00926945824176073, -0.06975474208593369, -0.03639935702085495, -0.01947411522269249, 0.04690657928586006, -0.006078784354031086, -0.01700776070356369, 0.04092864692211151, -0.01164412684738636, -0.02165624313056469, -0.0036170142702758312, 0.057175412774086, 0.013523690402507782, 0.003949376288801432, 0.023728346452116966, 0.04991387948393822, 0.03187006711959839, 0.04118536785244942, 0.0264055784791708, 0.039388321340084076, 0.05680866912007332, -0.006372179836034775, 0.030788172036409378, -0.0946199893951416, 0.0516742505133152, 0.01501817349344492, 0.008270081132650375, -0.007348636165261269, 0.010828121565282345, -0.019144045189023018, -0.012625167146325111, 0.022683126851916313, -0.03832476586103439, -0.00514358701184392, 0.016118405386805534, -0.016696028411388397, 0.06076950579881668, 0.0033488324843347073, 0.027799207717180252, 0.04096532240509987, 0.0077795605175197124, -0.010782278142869473, -0.006285077892243862, 0.00932905450463295, -0.0011426372220739722, -0.025378694757819176, -0.01420216728001833, 0.05229771509766579, 0.04367922991514206, 0.05475490167737007, -0.013046923093497753, -0.0012308850418776274, -0.021069452166557312, 0.03258521854877472, -0.02459019608795643, 0.016283441334962845, -0.005835816264152527, -0.06073283404111862, -0.04683322831988335, -0.03817806765437126, -0.0002575804537627846, 0.04918039217591286, -0.07965683192014694, 0.044155996292829514, -0.07562264800071716, -0.049400437623262405, 0.021344508975744247, 0.008911882527172565, 0.03597760200500488, -0.0033923834562301636, -0.023563312366604805, -0.03333704546093941, 0.002881233813241124, -0.004433020018041134, -0.013487016782164574, 0.03524411469697952, -0.004698909353464842, -0.0067343395203351974, -0.01576082967221737, -0.01698942296206951, -0.011094010435044765, -0.004559088498353958, -0.015586626715958118, 0.000720308453310281, 0.002878941595554352, 0.016833556815981865, -0.03403385728597641, 0.0027757948264479637, 0.004352794494479895, -0.0062346505001187325, -0.020097579807043076, -0.010818952694535255, 0.04188218340277672, 0.026460591703653336, -0.0059320866130292416, -0.0075595141388475895, 0.01400045771151781, 0.019254067912697792, -0.04422934353351593, 0.022298045456409454, -0.03058646246790886, -0.014578079804778099, -0.05508497357368469, 0.03498739376664162, -0.03287861496210098, 0.008494711481034756, 0.004398637916892767, -0.0008417924400418997, -0.015320736914873123, -0.0016583711840212345, 0.00924653746187687, -0.011029830202460289, -0.004442188423126936, -0.030898194760084152, 0.04254232347011566, 0.04518288001418114, 0.005725793074816465, 0.04045188054442406, -0.06348341703414917, 0.029046136885881424, 0.004029601346701384, 0.0022554765455424786, 0.03713284432888031, -0.019345754757523537, 0.04969383403658867, -0.03713284432888031, 0.015696650370955467, -0.023544974625110626, -0.07334882766008377, -0.0014727070229128003, 0.022499753162264824, -0.013762074522674084, -0.031778380274772644, 0.038838207721710205, -0.02838599681854248, -0.020244278013706207, 0.03471233323216438, 0.02473689243197441, -0.0429457388818264, -0.013936277478933334, -0.026112183928489685, 0.041038669645786285, -0.06748092174530029, -0.003573463298380375, 0.019180718809366226, -0.0032296406570822, 0.004799764137715101, -0.020134253427386284, -0.02004256844520569, -0.008792690932750702, -0.002519073896110058, 0.03245685622096062, 0.08281083405017853, 0.022243032231926918, -0.025342021137475967, -0.019144045189023018, -0.003692655125632882, 0.0187222883105278, -0.07848324626684189, 0.04001178592443466, -0.0012916270643472672, 0.01501817349344492, 0.01584334671497345, 0.03909492865204811, 0.06964471191167831, -0.07290873676538467, -0.03968171775341034, -0.0021775434724986553, 0.039571695029735565, 0.00824715942144394, 0.02438848651945591, 0.004726415500044823, -0.01146992389112711, 0.03564753010869026, 0.06146632134914398, 0.03258521854877472, -0.007009397726505995, 0.01164412684738636, 0.028459345921874046, 0.04782343655824661, 0.012515144422650337, 0.027065718546509743, 0.0026130520273, -0.04096532240509987, -0.0254887193441391, 0.09821408241987228, 0.02603883482515812, -0.015504108741879463, -0.02238973043859005, -0.0037476669531315565, -0.033740460872650146, 0.035940926522016525, 0.026698974892497063, -0.05842234566807747, -0.04382592812180519, -0.012203412130475044, 0.003286944469437003, 0.0013030878035351634, 0.0004879416374024004, 0.028514357283711433, -0.03726120665669441, -0.017713742330670357, -0.06190641224384308, 0.06399685144424438, 0.043935950845479965, -0.01774124801158905, -0.0025557484477758408, -0.0007140050292946398, -0.015265725553035736, 0.00577163603156805, -0.07620943337678909, 0.024168439209461212, -0.04679655283689499, 0.0009850518545135856, 0.0020331379491835833, 0.03876485675573349, -0.010030453093349934, -0.0036170142702758312, 0.02455352060496807, -0.04320245981216431, 0.04217557609081268, -0.012221748940646648, 0.019749172031879425, 0.01202003937214613, -0.08347097039222717, 0.036472707986831665, -0.0654638335108757, 0.017301155254244804, 0.04279904440045357, 0.01355119701474905, -0.03568420559167862, -0.007907920517027378, 0.02004256844520569, 0.009535348042845726, 0.015889190137386322, -0.004504076670855284, 0.057982251048088074, 0.04188218340277672, 0.010021284222602844, -0.0022829824592918158, 0.008503880351781845, -0.023948393762111664, 0.027524149045348167, -0.03869150951504707, -0.04474278539419174, 0.02966960147023201, 0.00330069730989635, -0.023544974625110626, 0.010250499472022057, -0.04235894978046417, 0.0009810406481847167, 0.01829136535525322, 0.022096335887908936, -0.015870854258537292, 0.005826647859066725, -0.027744194492697716, -0.00824715942144394, -0.009682045318186283, -0.012845214456319809, 0.06007269397377968, 0.00847178976982832, 0.16019384562969208, 0.036289334297180176, -0.04606306552886963, 0.02202298678457737, 0.08662497252225876, -0.023343265056610107, 0.04598971828818321, 0.04327581077814102, 0.022829823195934296, 0.02457185834646225, -0.030329741537570953, 0.024241788312792778, 0.055048298090696335, 0.07862994819879532, 0.04470611363649368, 0.012872720137238503, 0.10188152641057968, 0.0104522081092, 0.024443497881293297, -0.03861815854907036, 0.04954713582992554, -0.023343265056610107, -0.008393856696784496, -0.013496184721589088, -0.0004108680586796254, -0.030256392434239388, -0.010232161730527878, -0.014220505021512508, 0.021986311301589012, 0.004687448963522911, 0.03344706818461418, -0.040635254234075546, 0.02713906764984131, -0.03568420559167862, 0.06594059616327286, -0.005194013938307762, -0.020482661202549934, -0.0011999410344287753, -0.02259144000709057, 0.04276236891746521, 0.02020760253071785, 0.03990176320075989, 0.0072340285405516624, 0.003986050374805927, 0.03489570692181587, -0.048300206661224365, -0.0052948687225580215, 0.09755394607782364, 0.0385814867913723, -0.01117652840912342, -0.0008142866427078843, 0.0051114968955516815, 0.02418677695095539, 0.041038669645786285, -0.019162382930517197, 0.0004905203240923584, 0.019034022465348244, 0.05204099416732788, 0.03425390273332596, 0.04778676480054855, -0.013156946748495102, 0.07840990275144577, 0.003935623448342085, 0.0011965028243139386, 0.050133924931287766, -0.020702708512544632, 0.019694160670042038, -0.013285307213664055, -0.03407053276896477, 0.000414019770687446, 0.00819673202931881, -0.00818756315857172, 0.00011267354420851916, -0.008691836148500443, -0.006748092360794544, -0.022096335887908936, -0.003374046180397272, -0.013844591565430164, -0.00514358701184392, 0.04808015748858452, -0.012799371033906937, 0.002736828289926052, 0.05427813529968262, 0.006074199918657541, -0.0053407116793096066, -0.024791905656456947, 0.09315301477909088, -0.002253184327855706, -0.01028717402368784, -0.02932119555771351, 0.0323835089802742, -0.005579095333814621, 0.06330004334449768, -0.04778676480054855, 0.04037853330373764, -0.014568911865353584, 0.0070139821618795395, -0.011066504754126072, 0.05387471616268158, 0.04877697303891182, 0.00808670837432146, 0.017530370503664017, -0.030476439744234085, 0.011763318441808224 ]
43,024
linearmodels.panel.model
_is_effect_nested
Determine whether an effect is nested by the covariance clusters
@staticmethod def _is_effect_nested(effects: NumericArray, clusters: NumericArray) -> bool: """Determine whether an effect is nested by the covariance clusters""" is_nested = np.zeros(effects.shape[1], dtype=bool) for i, e in enumerate(effects.T): e = (e - e.min()).astype(np.int64) e_count = len(np.unique(e)) for c in clusters.T: c = (c - c.min()).astype(np.int64) cmax = c.max() ec = e * (cmax + 1) + c is_nested[i] = len(np.unique(ec)) == e_count return bool(np.all(is_nested))
(effects: numpy.ndarray, clusters: numpy.ndarray) -> bool
[ 0.024646366015076637, 0.017238158732652664, 0.00768523383885622, 0.05015061795711517, 0.015397276729345322, -0.010946989990770817, -0.03631719946861267, 0.027327261865139008, -0.002839515218511224, 0.047076527029275894, -0.007841619662940502, 0.037067849189043045, 0.00219721719622612, -0.06348360329866409, -0.005200937390327454, -0.0253433994948864, -0.0316166952252388, 0.0009656809270381927, 0.04514627903699875, 0.007184799760580063, -0.061124417930841446, 0.005446685943752527, -0.041714735329151154, -0.01560281217098236, 0.02468211203813553, -0.010098040103912354, 0.0035209094639867544, -0.02537914365530014, -0.004584331531077623, 0.03186691179871559, -0.08821933716535568, -0.02024969831109047, -0.0016442826017737389, 0.02584383264183998, 0.0374610461294651, -0.004843484610319138, 0.00767182931303978, 0.02916814386844635, 0.01534365862607956, 0.012734253890812397, 0.013306178152561188, -0.006729047745466232, -0.01737220212817192, -0.005451154429465532, 0.029454104602336884, 0.001109220553189516, 0.018069235607981682, 0.04546798765659332, -0.0708828791975975, -0.017479438334703445, 0.014932587742805481, -0.07506507635116577, 0.06448447704315186, 0.020607151091098785, -0.006992669310420752, 0.04646885395050049, 0.05572688207030296, 0.0166662335395813, -0.028381748124957085, -0.02802429534494877, 0.02780982293188572, 0.040856849402189255, 0.06802325695753098, 0.027738332748413086, -0.05594135448336601, -0.016773469746112823, -0.04343050718307495, 0.033064376562833786, -0.012171265669167042, 0.015629621222615242, -0.056227315217256546, 0.023055700585246086, 0.009347389452159405, 0.00967803318053484, -0.031044770032167435, -0.08064133673906326, 0.025915322825312614, 0.01757773756980896, 0.013315114192664623, 0.004727312363684177, -0.03674614056944847, -0.04210793226957321, 0.002430678578093648, 0.007542252540588379, 0.06401978433132172, 0.011152525432407856, -0.024860838428139687, 0.04335901513695717, 0.02003522589802742, -0.006259891204535961, 0.018390942364931107, 0.035548675805330276, 0.03821169584989548, -0.019087975844740868, -0.00712671410292387, 0.09107895940542221, 0.030776681378483772, -0.07592295855283737, 0.02157227322459221, -0.08593163639307022, 0.049542948603630066, 0.035495057702064514, 0.05522644892334938, 0.00032980600371956825, -0.0026853636372834444, 0.02891792543232441, -0.0440739206969738, -0.013109578751027584, 0.01937393844127655, -0.02269824780523777, 0.027559606358408928, 0.018149662762880325, -0.007144586648792028, 0.01732752099633217, -0.023538263514637947, -0.07556550949811935, 0.02541488967835903, 0.004798803012818098, -0.09300920367240906, -0.008275031112134457, 0.0404636487364769, 0.0021413653157651424, 0.030169010162353516, -0.014673435129225254, 0.029043035581707954, -0.008927382528781891, 0.009231217205524445, 0.0498289130628109, -0.045718204230070114, -0.01581728272140026, -0.012948725372552872, -0.029311124235391617, 0.012108711525797844, 0.004222410265356302, 0.0025624893605709076, 0.014199810102581978, 0.012457228265702724, -0.02491445653140545, -0.024217423051595688, 0.00013125217810738832, 0.00696586025878787, 0.038855113089084625, -0.02073225937783718, 0.0022798781283199787, -0.07456464320421219, 0.03849766030907631, 0.014405345544219017, -0.05276002362370491, -0.03154520317912102, -0.024199550971388817, -0.03231372684240341, -0.03821169584989548, -0.00780140608549118, 0.01691645011305809, 0.006863092537969351, -0.03810446336865425, -0.01001761294901371, -0.06784453243017197, 0.009311643429100513, -0.043966688215732574, -0.08149922639131546, -0.019892245531082153, -0.015155996195971966, 0.02380635216832161, -0.021018220111727715, -0.013082769699394703, -0.006469894666224718, -0.04275134578347206, -0.07031095027923584, 0.031259242445230484, -0.04986465722322464, 0.05168766528367996, -0.02244803123176098, -0.003447184804826975, -0.017425820231437683, 0.03377928212285042, -0.002350251656025648, -0.03536994755268097, -0.017917318269610405, -0.027917059138417244, -0.054189834743738174, -0.02915026992559433, -0.00801140908151865, 0.013717249035835266, -0.013833421282470226, 0.011992539279162884, 0.035066112875938416, -0.031723931431770325, 0.06273295730352402, 0.009204408153891563, -0.03251032531261444, 0.009320580400526524, 0.007989068515598774, 0.04368072375655174, 0.0511157400906086, -0.008252689614892006, 0.0038515531923621893, -0.014458962716162205, -0.004673694726079702, -0.04511053487658501, -0.037747010588645935, -0.0275774784386158, 0.004148685839027166, 0.01403895579278469, 0.02761322446167469, 0.07106160372495651, -0.0180424265563488, 0.04343050718307495, -0.017631355673074722, -0.012126583606004715, -0.05915842950344086, -0.04203644022345543, 0.08278605341911316, 0.06748707592487335, 0.04471733793616295, 0.06208954006433487, 0.005656689405441284, 0.0006936817080713809, -0.05322471261024475, -0.0027925996109843254, -0.0033310127910226583, 0.01583515666425228, 0.015540258027613163, 0.04135728254914284, -0.06116016209125519, 0.03136647865176201, 0.033064376562833786, 0.08972063660621643, 0.01760454662144184, -0.023270172998309135, 0.004546352196484804, 0.011563596315681934, -0.011375932954251766, -0.041285790503025055, -0.02221568673849106, 0.013341923244297504, 0.015281104482710361, 0.0427870936691761, 0.08157071471214294, 0.004289432894438505, -0.031312860548496246, -0.049542948603630066, -0.023431027308106422, -0.02875707298517227, 0.014548325911164284, -0.051759157329797745, 0.049542948603630066, 0.02049991488456726, 0.002998134819790721, 0.037925735116004944, -0.025933196768164635, -0.05208086222410202, -0.04325178265571594, -0.025772342458367348, 0.04335901513695717, -0.03095540776848793, 0.02957921475172043, 0.028810691088438034, 0.06062398478388786, -0.022394413128495216, -0.005187532864511013, -0.015745792537927628, 0.04786292091012001, 0.04142877086997032, -0.08278605341911316, -0.018802013248205185, 0.06355509907007217, -0.00021489053324330598, -0.01191211212426424, -0.020821621641516685, 0.062196776270866394, 0.006670961622148752, -0.014351727440953255, -0.012439355254173279, -0.03478015214204788, -0.00016951079305727035, 0.042429640889167786, -0.004200069699436426, -0.0004685981839429587, 0.06888113915920258, 0.008391203358769417, -0.0028104721568524837, -0.0642700046300888, 0.0047541214153170586, 0.024646366015076637, -0.05225959047675133, -0.032152872532606125, -0.024092314764857292, 0.016103245317935944, 0.023270172998309135, -0.04121430218219757, -0.018408816307783127, 0.04139302670955658, -0.08192816376686096, -0.03985597938299179, -0.01403895579278469, 0.026165539398789406, -0.030991151928901672, -0.03401162847876549, -0.012761062942445278, 0.03377928212285042, -0.0060096741653978825, 0.03449418768286705, -0.03454780578613281, 0.03696061298251152, 0.0609099455177784, 0.03338608518242836, -0.04267985746264458, 0.05283151566982269, 0.04007045179605484, 0.012680635787546635, 0.03007964789867401, -0.031920529901981354, -0.000028571783332154155, -0.008574397303164005, 0.03846191614866257, 0.026111923158168793, -0.06026653200387955, 0.02696980908513069, 0.0915793925523758, 0.037067849189043045, -0.0006182815413922071, 0.008310776203870773, 0.049292732030153275, 0.019052231684327126, 0.002372592454776168, 0.060874201357364655, -0.015933455899357796, 0.030991151928901672, 0.014101510867476463, -0.076637864112854, -0.04092833772301674, 0.023305919021368027, 0.03226010873913765, 0.02804216742515564, -0.037532538175582886, 0.010008676908910275, -0.05758563429117203, 0.03647805005311966, -0.033278848975896835, 0.006170528009533882, -0.012618081644177437, 0.014950460754334927, 0.006514576263725758, 0.03583463653922081, 0.007247354369610548, 0.04296581819653511, 0.050615306943655014, 0.025021690875291824, 0.0796404704451561, -0.013967465609312057, 0.02691619098186493, 0.021250564604997635, 0.05561964586377144, -0.027470242232084274, 0.0047541214153170586, 0.027684714645147324, -0.012448291294276714, 0.014190874062478542, 0.036209963262081146, 0.07914003729820251, -0.013234687969088554, 0.052617043256759644, 0.007300972007215023, -0.0004711115325335413, -0.020374806597828865, -0.0018341793911531568, -0.031902655959129333, 0.017676038667559624, -0.07735276967287064, -0.023091446608304977, -0.03515547513961792, 0.024181677028536797, -0.030991151928901672, 0.008699505589902401, -0.023699115961790085, -0.03964150696992874, -0.03444056957960129, 0.06712962687015533, 0.00054930429905653, -0.01957053691148758, 0.007095437031239271, -0.0440739206969738, -0.008873764425516129, -0.014575134962797165, 0.02116120234131813, -0.0030428164172917604, -0.023270172998309135, -0.01689857803285122, 0.021947598084807396, 0.07956898212432861, 0.0004465366655495018, 0.02116120234131813, -0.04943571239709854, -0.08185667544603348, 0.02691619098186493, -0.03590612858533859, -0.03049071878194809, -0.04443137347698212, 0.02378848008811474, -0.029525596648454666, -0.014673435129225254, 0.016192609444260597, 0.010214212350547314, -0.04496755450963974, -0.011331251822412014, -0.015191741287708282, -0.00018947786884382367, 0.02180461771786213, 0.014539389871060848, 0.00667542964220047, -0.013288305141031742, -0.039498526602983475, -0.03806871548295021, -0.009481433779001236, -0.023752734065055847, -0.027881313115358353, -0.024985946714878082, 0.03243883699178696, -0.0016498677432537079, 0.05547666549682617, -0.008404607884585857, 0.06723686307668686, -0.0019090210553258657, 0.004946252331137657, -0.04832760989665985, -0.07763873785734177, -0.005066892597824335, 0.005835415795445442, -0.007989068515598774, -0.05994482338428497, 0.000006872412996017374, -0.016576871275901794, -0.05315322056412697, 0.02646937593817711, 0.0034114394802600145, -0.06216103211045265, 0.03449418768286705, -0.0063313813880085945, 0.0360848531126976, -0.008328648284077644, 0.05268853157758713, -0.028328130021691322, -0.04432414099574089, -0.004986465442925692, -0.001693432335741818, 0.012108711525797844, 0.002421742305159569, -0.026094049215316772, -0.029203888028860092, 0.035066112875938416, -0.004646885674446821, -0.03424397110939026, -0.026094049215316772, 0.0032706924248486757, 0.04661183804273605, 0.022090578451752663, 0.013851293362677097, -0.005071360617876053, 0.0034002691973000765, -0.049078259617090225, -0.03163456544280052, -0.05150894075632095, 0.028989417478442192, -0.000684186874423176, -0.060874201357364655, 0.030562208965420723, 0.001578377210535109, 0.03624570742249489, 0.028631964698433876, 0.04947146028280258, -0.024128058925271034, 0.006107973400503397, 0.024360403418540955, 0.027934931218624115, 0.017452629283070564, -0.03356481343507767, 0.009713778272271156, -0.025522125884890556, 0.07006073743104935, -0.05186639353632927, -0.021214820444583893, -0.025093182921409607, -0.02779195085167885, -0.009660160169005394, -0.05855075642466545, -0.040392160415649414, 0.01101848017424345, 0.06502065062522888, -0.03251032531261444, -0.001742582069709897, -0.02852472849190235, 0.026147667318582535, 0.023681243881583214, 0.05268853157758713, -0.012108711525797844, 0.0309732798486948, 0.023252300918102264, 0.0011818280909210443, -0.010946989990770817, 0.010830817744135857, 0.09343814849853516, -0.008592270314693451, -0.04389519616961479, -0.019874371588230133, -0.034422699362039566, 0.06573555618524551, -0.039748743176460266, 0.020160334184765816, 0.007372462656348944, 0.014995141886174679, -0.07978344708681107, 0.04074961319565773, 0.018784141167998314, 0.02870345488190651, 0.024771474301815033, -0.02604043111205101, 0.0037175083998590708, 0.06169634312391281, -0.006697770673781633, 0.04471733793616295, -0.09586882591247559, -0.024163804948329926, 0.022126324474811554, 0.011286569759249687, 0.015182805247604847, 0.018802013248205185, 0.016505379229784012, -0.05504772067070007, -0.0321350023150444, -0.027988549321889877, -0.0005914725479669869, 0.022787611931562424, 0.06455596536397934, -0.06216103211045265, -0.001843115664087236, -0.012948725372552872, -0.0071669272147119045, -0.04564671590924263, 0.009347389452159405, 0.021822489798069, -0.018569668754935265, 0.020303314551711082, 0.011188270524144173, 0.024396149441599846, 0.03494100645184517, 0.07041818648576736, -0.045074790716171265, 0.018551796674728394, 0.028435364365577698, 0.014217682182788849, 0.07270588725805283, -0.045325007289648056, 0.016165800392627716, 0.10723581910133362, 0.031277112662792206, -0.02829238399863243, -0.07720979303121567, -0.02915026992559433, 0.02312719263136387, 0.002828344702720642, -0.026308521628379822, 0.05608433485031128, -0.061088673770427704, -0.03220649063587189, -0.015164932236075401, 0.009874631650745869, -0.005071360617876053, -0.05000763759016991, 0.030204756185412407, -0.011179334484040737, 0.013368732295930386, -0.011161461472511292, 0.020160334184765816, 0.027505988255143166, 0.05100850388407707, 0.02696980908513069, 0.00966909620910883, 0.001947000389918685, -0.030991151928901672, 0.0025312122888863087, -0.04339476302266121, -0.009266962297260761, -0.013690439984202385, 0.04836335405707359, 0.015629621222615242, -0.04024917632341385, 0.009418879635632038, 0.056227315217256546, 0.012868298217654228, -0.025093182921409607, -0.02891792543232441, -0.0206607673317194, -0.029865175485610962, 0.027094917371869087, 0.014923651702702045, 0.023949332535266876, 0.039498526602983475, 0.006040951237082481, -0.017005814239382744, -0.03074093535542488, -0.01955266483128071, 0.0032550538890063763, 0.009436752647161484, -0.040427904576063156, -0.06287593394517899, 0.025647234171628952, 0.019749263301491737, 0.045325007289648056, -0.0025714256335049868, -0.01211764756590128, 0.0038805962540209293, -0.014807479456067085, -0.06755856424570084, 0.04203644022345543, -0.013413414359092712, -0.06584279239177704, 0.024628493934869766, 0.03992747142910957, 0.0024128060322254896, -0.00800694152712822, -0.012546591460704803, 0.010169530287384987, -0.02870345488190651, -0.023770606145262718, -0.022126324474811554, 0.017506247386336327, -0.08657505363225937, 0.0029936665669083595, -0.07109735161066055, 0.015960264950990677, 0.01369937602430582, 0.011903176084160805, -0.05758563429117203, -0.017783273011446, -0.027738332748413086, 0.03361843153834343, -0.008887168951332569, -0.011295506730675697, 0.043716467916965485, -0.06030227616429329, -0.008493971079587936, -0.054440051317214966, 0.014718116261065006, -0.041964951902627945, -0.04543224349617958, 0.06230401247739792, 0.00017872636090032756, 0.03653166815638542, 0.0019950331188738346, 0.015987074002623558, 0.04614714905619621, -0.014217682182788849, -0.025772342458367348, 0.014575134962797165, -0.0006724579725414515, 0.07013222575187683, 0.042894329875707626, -0.013198941946029663, -0.028220893815159798, 0.07363526523113251, 0.015200677327811718, -0.03824744373559952, 0.013440222479403019, 0.11631511896848679, -0.016800278797745705, 0.06319764256477356, -0.000016956315448624082, 0.034851640462875366, 0.006626280024647713, 0.020303314551711082, 0.0489710234105587, -0.0298115573823452, -0.0374610461294651, -0.0054422179237008095, 0.002908771624788642, -0.0026429162826389074, 0.04360923543572426, 0.031741801649332047, -0.01978500932455063, 0.014369599521160126, 0.050436582416296005, -0.01268957182765007, 0.0019112550653517246, 0.06931008398532867, -0.017899446189403534, 0.02450338564813137, -0.010973799042403698, -0.0038001693319529295, -0.0864320695400238, -0.015066633000969887, -0.002499934984371066, 0.025325525552034378, 0.02112545631825924, 0.006586066447198391, 0.025682978332042694, -0.0013728418853133917, 0.08428735285997391, -0.011036353185772896, 0.025700852274894714, 0.03585251048207283, -0.00957973301410675, -0.059980567544698715, 0.019874371588230133, -0.05011487379670143, 0.019981607794761658, -0.01873052306473255, -0.014995141886174679, 0.08443033695220947, -0.00048144414904527366, -0.05358216539025307, 0.06970328092575073, 0.05122297629714012, -0.05168766528367996, -0.05075828731060028, -0.016344526782631874, 0.011206143535673618, 0.01035719271749258, 0.03274267166852951, -0.023931460455060005, -0.0002375105832470581, 0.08671803027391434, -0.004825612064450979, 0.029740067198872566, -0.0860031247138977, -0.020142462104558945, 0.0525812990963459, 0.0018230089917778969, 0.03049071878194809, -0.08242860436439514, -0.019874371588230133, -0.014655562117695808, -0.014548325911164284, -0.007537784520536661, -0.05411834269762039, 0.010089103132486343, -0.021697381511330605, -0.001235445961356163, -0.07177650928497314, -0.04067812114953995, -0.010625282302498817, -0.02024969831109047, -0.00032086967257782817, -0.04947146028280258, -0.011617213487625122, 0.009981867857277393, -0.019749263301491737, 0.03921256586909294, 0.03490525856614113, -0.06523512303829193, 0.07499358057975769, 0.01358320377767086, 0.0075243799947202206, -0.05404685437679291, 0.027041299268603325, 0.02139354683458805, -0.0070239463821053505, -0.08357244729995728, 0.0022430159151554108, -0.06866667419672012, -0.03579889237880707, -0.037925735116004944, 0.03738955780863762, 0.04589693248271942, -0.03674614056944847, 0.01933819241821766, -0.014548325911164284, 0.01851605251431465 ]
43,025
linearmodels.panel.model
_lsmr_path
Sparse implementation, works for all scenarios
def _lsmr_path( self, ) -> tuple[Float64Array, Float64Array, Float64Array, Float64Array, Float64Array]: """Sparse implementation, works for all scenarios""" y = cast(Float64Array, self.dependent.values2d) x = cast(Float64Array, self.exog.values2d) w = cast(Float64Array, self.weights.values2d) root_w = np.sqrt(w) wybar = root_w * (w.T @ y / w.sum()) wy = root_w * y wx = root_w * x if not self._has_effect: y_effect, x_effect = np.zeros_like(wy), np.zeros_like(wx) return wy, wx, wybar, y_effect, x_effect wy_gm = wybar wx_gm = root_w * (w.T @ x / w.sum()) root_w_sparse = csc_matrix(root_w) cats_l: list[IntArray | Float64Array] = [] if self.entity_effects: cats_l.append(self.dependent.entity_ids) if self.time_effects: cats_l.append(self.dependent.time_ids) if self.other_effects: assert self._other_effect_cats is not None cats_l.append(self._other_effect_cats.values2d) cats = np.concatenate(cats_l, 1) wd, cond = dummy_matrix(cats, precondition=True) assert isinstance(wd, csc_matrix) if self._is_weighted: wd = wd.multiply(root_w_sparse) wx_mean_l = [] for i in range(x.shape[1]): cond_mean = lsmr(wd, wx[:, i], atol=1e-8, btol=1e-8)[0] cond_mean /= cond wx_mean_l.append(cond_mean) wx_mean = np.column_stack(wx_mean_l) wy_mean = lsmr(wd, wy, atol=1e-8, btol=1e-8)[0] wy_mean /= cond wy_mean = wy_mean[:, None] wx_mean = csc_matrix(wx_mean) wy_mean = csc_matrix(wy_mean) # Purge fitted, weighted values sp_cond = diags(cond, format="csc") wx = wx - (wd @ sp_cond @ wx_mean).A wy = wy - (wd @ sp_cond @ wy_mean).A if self.has_constant: wy += wy_gm wx += wx_gm else: wybar = 0 y_effects = y - wy / root_w x_effects = x - wx / root_w return wy, wx, wybar, y_effects, x_effects
(self) -> tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray]
[ 0.010443048551678658, -0.013377626426517963, -0.006956972647458315, 0.07581329345703125, 0.03535659983754158, -0.05427956581115723, -0.07281800359487534, -0.0022274961229413748, 0.053915273398160934, 0.03165296092629433, -0.008748076856136322, 0.009679046459496021, 0.06828458607196808, 0.025419512763619423, -0.056343890726566315, 0.03829117864370346, -0.01862950809299946, 0.005011550150811672, -0.034425631165504456, -0.024023059755563736, -0.016889000311493874, -0.015674691647291183, -0.0027726697735488415, 0.05415813624858856, -0.004014805890619755, 0.0043436805717647076, -0.002820736262947321, -0.00401733536273241, -0.014500861056149006, -0.07115844637155533, -0.017759254202246666, -0.014338953420519829, 0.029912453144788742, -0.07763475924730301, -0.00023859254724811763, -0.03974834829568863, 0.03424348309636116, -0.019267018884420395, -0.05622245743870735, -0.061889227479696274, 0.016281845048069954, -0.04065907746553421, 0.05395574867725372, -0.020886097103357315, -0.046791333705186844, 0.00461942981928587, -0.05116284266114235, 0.01340798381716013, 0.02890053018927574, 0.02147301286458969, 0.01627172715961933, -0.03205772861838341, -0.004320912528783083, 0.015472306869924068, 0.02975054457783699, 0.046346087008714676, -0.005398610606789589, 0.045738931745290756, 0.08091338723897934, -0.0766633078455925, 0.0675560012459755, 0.02222183533012867, 0.039060238748788834, 0.05440099537372589, -0.009051653556525707, -0.03177439048886299, -0.03468872979283333, 0.03420300781726837, 0.005014080088585615, 0.049584243446588516, -0.044524624943733215, -0.019014038145542145, -0.002491861116141081, -0.017850326374173164, -0.012891902588307858, -0.026127859950065613, -0.011475210078060627, -0.017040789127349854, 0.04756039381027222, -0.029770784080028534, 0.006339699495583773, 0.017759254202246666, -0.002514629391953349, -0.013671083375811577, -0.03408157825469971, 0.006400414742529392, 0.03359585255384445, 0.03333275392651558, 0.004996371455490589, -0.01566457189619541, -0.05913679674267769, 0.07585377246141434, -0.0019745153840631247, 0.012446656823158264, 0.06233447417616844, 0.04622465744614601, -0.01232522539794445, -0.038412608206272125, 0.02667429856956005, 0.012962737120687962, -0.02004620060324669, -0.011809145100414753, -0.013205599039793015, 0.07439660280942917, -0.01742531917989254, -0.0008051114855334163, 0.006698932033032179, -0.026148097589612007, 0.014106211252510548, -0.058974891901016235, -0.018315812572836876, -0.018862251192331314, -0.014774080365896225, 0.0002956713433377445, -0.07909192889928818, -0.017607465386390686, -0.031227953732013702, -0.010114173404872417, -0.01212284155189991, 0.025621898472309113, 0.0037694142665714025, -0.04994853585958481, -0.05067712068557739, 0.0076804980635643005, 0.05525101348757744, 0.012740114703774452, 0.026390960440039635, 0.007989134639501572, 0.009840954095125198, -0.022545650601387024, -0.04343174770474434, -0.007736153434962034, 0.022262312471866608, 0.029224345460534096, -0.02222183533012867, -0.02505522035062313, 0.001538123469799757, -0.041387662291526794, 0.03505302220582962, -0.006633157376199961, 0.020744428038597107, 0.006719170603901148, -0.000319072074489668, 0.01783008873462677, 0.034628015011548996, 0.03742092475295067, 0.03869594633579254, 0.011981171555817127, 0.03509350121021271, 0.033211324363946915, -0.023577813059091568, -0.022201597690582275, 0.010235603898763657, 0.006243566982448101, -0.016939595341682434, -0.05193190276622772, -0.022444458678364754, 0.00012309098383411765, 0.04375556483864784, -0.018093189224600792, -0.04646751657128334, -0.09244931489229202, 0.025176651775836945, -0.020744428038597107, -0.005148159805685282, 0.03725901618599892, -0.056586749851703644, 0.0038579576648771763, -0.005520041566342115, -0.009673986583948135, 0.008915044367313385, -0.012335345149040222, -0.05116284266114235, -0.0422174409031868, -0.08277532458305359, 0.014116330072283745, -0.028171945363283157, 0.016494350507855415, 0.0037845931947231293, -0.012517491355538368, 0.01119187194854021, 0.008758196607232094, -0.026755252853035927, 0.005747724324464798, -0.030033882707357407, 0.06913460046052933, 0.04302698001265526, -0.048612795770168304, 0.05075807124376297, 0.06201066076755524, -0.06512738019227982, -0.024265920743346214, 0.03450658544898033, 0.015047299675643444, 0.02278851345181465, 0.04375556483864784, 0.054522428661584854, -0.02010691538453102, -0.016241369768977165, -0.006486428435891867, 0.01611993834376335, -0.030904138460755348, 0.0032280352897942066, 0.04662942513823509, -0.011890098452568054, -0.008272472769021988, -0.011232349090278149, 0.03713758662343025, -0.09269217401742935, 0.07714903354644775, -0.010716267861425877, 0.022586127743124962, -0.03499230742454529, 0.004523297306150198, 0.04836993291974068, 0.006552203558385372, 0.0018100778106600046, 0.07690617442131042, -0.001168138929642737, -0.03681376948952675, -0.023375429213047028, -0.02228255197405815, -0.0543605200946331, -0.010012981481850147, -0.0027979679871350527, -0.008348367176949978, 0.03742092475295067, 0.024205205962061882, 0.0379876010119915, 0.01338774524629116, 0.020886097103357315, -0.00845967885106802, 0.06581549346446991, -0.05015091970562935, -0.04082098603248596, -0.050029486417770386, -0.03833165392279625, 0.024326635524630547, 0.0236385278403759, -0.017303887754678726, -0.0327458381652832, -0.039060238748788834, 0.0073465630412101746, 0.018720580264925957, 0.026532629504799843, -0.02738264389336109, 0.05642484501004219, 0.015735406428575516, 0.013468699529767036, -0.012790710665285587, -0.026836205273866653, 0.014602052979171276, -0.010083816014230251, -0.02329447492957115, 0.006385236047208309, -0.06694884598255157, 0.029912453144788742, 0.02096705138683319, -0.0010245722951367497, -0.08346343040466309, 0.036894723773002625, 0.0004563141555991024, -0.0005388491554185748, -0.024387352168560028, -0.07176560163497925, 0.016909237951040268, 0.057760581374168396, 0.016393156722187996, 0.011667476035654545, 0.05970347300171852, -0.026654059067368507, 0.0628201961517334, -0.07779666036367416, 0.010827579535543919, -0.03201725333929062, 0.02293018251657486, 0.042055532336235046, -0.0077715711668133736, 0.033717285841703415, 0.06743457168340683, -0.016575302928686142, -0.02208016626536846, -0.01224427204579115, 0.07338467985391617, -0.024609975516796112, -0.005778082180768251, -0.03717806190252304, -0.11746405810117722, 0.030216028913855553, -0.01447050366550684, 0.026552867144346237, 0.019833697006106377, 0.004055282566696405, 0.0011586521286517382, 0.11398304253816605, -0.023395666852593422, -0.028657667338848114, -0.05318668857216835, 0.034263722598552704, 0.020744428038597107, 0.03671257570385933, 0.043553177267313004, 0.04501034691929817, -0.02535879798233509, 0.036287568509578705, -0.03924238681793213, 0.05160808935761452, -0.02732192911207676, -0.026127859950065613, 0.018619388341903687, -0.04403890296816826, 0.013074048794806004, 0.024832597002387047, -0.026654059067368507, 0.019681908190250397, -0.03278631344437599, 0.0023135095834732056, 0.041488856077194214, 0.03804831579327583, 0.09382552653551102, 0.011950814165174961, -0.0183259304612875, 0.013590130023658276, 0.0015520373126491904, -0.012284749187529087, -0.03207796812057495, 0.045981794595718384, -0.03602446988224983, 0.006395355332642794, -0.023112328723073006, -0.050434257835149765, 0.016342561691999435, -0.023820674046874046, -0.00780192855745554, 0.030337460339069366, -0.01965155079960823, 0.03400062397122383, -0.0022780923172831535, 0.04646751657128334, -0.05035330355167389, 0.04711514711380005, -0.006496547721326351, -0.02515641413629055, 0.08212769776582718, 0.0187408197671175, -0.05699152126908302, 0.05249858275055885, 0.01889260858297348, -0.011900218203663826, 0.03541731461882591, 0.02580404467880726, 0.025034982711076736, -0.04764134809374809, 0.05828678235411644, 0.029123153537511826, 0.08297771215438843, -0.07472041994333267, -0.0216146819293499, 0.02010691538453102, 0.03132914379239082, 0.03120771422982216, 0.02222183533012867, -0.04029478505253792, 0.05294382572174072, 0.004265256691724062, -0.0060310629196465015, -0.007002509199082851, -0.003013001522049308, 0.005120331887155771, -0.03414229303598404, -0.043917469680309296, -0.03908047825098038, -0.021027766168117523, 0.047155626118183136, -0.010726386681199074, 0.08289675414562225, -0.017799731343984604, -0.03268512338399887, -0.005262000951915979, -0.04246030002832413, 0.0043259719386696815, -0.00527718011289835, 0.01550266519188881, 0.0036479835398495197, 0.03677329421043396, -0.0072909072041511536, 0.03272559866309166, -0.02469092793762684, -0.04142814129590988, -0.015947911888360977, 0.053308118134737015, -0.03408157825469971, 0.011788906529545784, -0.07034891098737717, 0.0009834629017859697, 0.013782395049929619, 0.06116064265370369, 0.06836553663015366, -0.009001057595014572, -0.00995226576924324, -0.01691935770213604, -0.04009240120649338, -0.04193410277366638, -0.01038233283907175, -0.08597300201654434, -0.04144837707281113, -0.02529808320105076, 0.06520833820104599, -0.019105112180113792, 0.01838664710521698, -0.019864054396748543, 0.08500155806541443, -0.013367506675422192, -0.020076557993888855, 0.0071492381393909454, -0.05885345861315727, -0.005909631960093975, 0.04059836268424988, 0.033656567335128784, 0.05156761035323143, 0.020946811884641647, -0.01822473853826523, 0.07269656658172607, 0.020177749916911125, -0.00027242873329669237, 0.0010252047795802355, -0.05440099537372589, -0.0031141939107328653, -0.023800436407327652, 0.026957636699080467, -0.009825775399804115, 0.023456381633877754, -0.06476309150457382, -0.0265123900026083, -0.05703199654817581, -0.01691935770213604, -0.004250077996402979, 0.05294382572174072, 0.021837305277585983, -0.0560605525970459, 0.00921862106770277, 0.04723658040165901, 0.017364604398608208, -0.031997013837099075, -0.017486033961176872, -0.04832945764064789, -0.07447755336761475, 0.00853557325899601, -0.034972067922353745, -0.0226266048848629, 0.022970659658312798, 0.04476748779416084, 0.07876811176538467, 0.049584243446588516, -0.02373971976339817, 0.01622113026678562, -0.020987289026379585, -0.0621320903301239, -0.03602446988224983, -0.03262440860271454, 0.014207403175532818, 0.00454353541135788, -0.013549652881920338, -0.015047299675643444, 0.03980906307697296, -0.0442412868142128, 0.027807652950286865, -0.02616833709180355, -0.014591934159398079, -0.01995512843132019, 0.04302698001265526, -0.026350483298301697, 0.011282945051789284, 0.003050948726013303, 0.04832945764064789, -0.021938497200608253, -0.06306306272745132, 0.015280041843652725, 0.056586749851703644, -0.03414229303598404, -0.02248493582010269, -0.044929396361112595, -0.02904219925403595, 0.01570504903793335, 0.0018467600457370281, -0.02873862162232399, -0.010144530795514584, -0.04302698001265526, 0.07204893976449966, -0.03717806190252304, -0.022990897297859192, 0.03944477066397667, 0.04420081153512001, 0.007447755429893732, -0.009785298258066177, 0.02373971976339817, -0.006653395481407642, -0.03893880918622017, 0.0540367029607296, 0.018376527354121208, 0.015401472337543964, -0.04909851774573326, -0.07257513701915741, 0.0033191083930432796, 0.0120722446590662, 0.01022548507899046, -0.020471207797527313, -0.04082098603248596, -0.029831498861312866, -0.026694536209106445, -0.018831891939044, -0.04367461055517197, 0.03651019185781479, -0.013752037659287453, -0.02329447492957115, -0.016484230756759644, -0.02519688941538334, 0.08467774093151093, 0.02738264389336109, -0.00669387262314558, -0.02004620060324669, -0.04849136620759964, -0.008915044367313385, 0.002747371792793274, -0.009006117470562458, 0.0027549611404538155, -0.02005632035434246, -0.0513247512280941, 0.022707559168338776, 0.019621193408966064, -0.036894723773002625, -0.04926042631268501, 0.003741586348041892, 0.03796736150979996, 0.007437636144459248, 0.007705796044319868, 0.010372214019298553, -0.06557262688875198, -0.04379604011774063, -0.01703066937625408, 0.001127029536291957, -0.04784373193979263, 0.01813366636633873, 0.019681908190250397, 0.013246076181530952, 0.04090194031596184, -0.026532629504799843, 0.003918672911822796, -0.05561530590057373, -0.018093189224600792, 0.01899380050599575, -0.021392058581113815, -0.009157906286418438, 0.01028114091604948, 0.07144178450107574, -0.04428176209330559, 0.0014521098928526044, -0.031025568023324013, -0.06937745958566666, 0.027564790099859238, -0.041144803166389465, -0.06302258372306824, 0.01974262297153473, -0.07484184950590134, -0.035478029400110245, 0.013600248843431473, 0.039262622594833374, 0.003544261446222663, -0.012578207068145275, 0.020622996613383293, -0.011222229339182377, 0.030499368906021118, 0.019934888929128647, 0.0010802281321957707, -0.03687448427081108, 0.021290866658091545, 0.04691276326775551, -0.08212769776582718, -0.024002820253372192, -0.025945713743567467, 0.09965420514345169, 0.0164639912545681, 0.025925474241375923, -0.01355977263301611, 0.06265828758478165, 0.016949715092778206, -0.0379876010119915, 0.07451803237199783, -0.018417004495859146, 0.03485063835978508, -0.007209953386336565, 0.030216028913855553, 0.0009455158142372966, -0.04379604011774063, 0.03116723708808422, 0.024913551285862923, -0.03335299342870712, -0.014966345392167568, 0.014409787952899933, 0.04630561172962189, -0.0027903784066438675, -0.011222229339182377, 0.0130032142624259, 0.0361458994448185, -0.046993717551231384, -0.02157420478761196, 0.03304941579699516, -0.04768182709813118, -0.045131780207157135, 0.007002509199082851, 0.003486075671389699, -0.040881700813770294, 0.07585377246141434, 0.009633509442210197, 0.039626915007829666, 0.0009214826859533787, -0.010524001903831959, 0.013903826475143433, 0.04747943952679634, -0.005041908007115126, 0.005413789767771959, -0.04047693312168121, -0.021250389516353607, -0.026249291375279427, 0.006962032523006201, -0.007720974739640951, 0.059986814856529236, -0.03914119303226471, 0.02738264389336109, -0.001417957479134202, -0.01197105273604393, -0.01995512843132019, 0.05751772224903107, -0.04764134809374809, 0.023011136800050735, 0.04646751657128334, 0.055129580199718475, 0.005186107009649277, 0.006456070579588413, 0.06557262688875198, -0.024974267929792404, 0.03499230742454529, 0.01616041548550129, -0.019783100113272667, -0.02570285275578499, 0.039424531161785126, -0.016484230756759644, 0.0010669466573745012, 0.003402592148631811, 0.0658559650182724, -0.04950328916311264, -0.018720580264925957, -0.06690836697816849, -0.01621101051568985, 0.01119187194854021, 0.04687228798866272, -0.011201990768313408, -0.03754235431551933, -0.00011257646838203073, -0.03163272142410278, -0.03193629905581474, 0.016332441940903664, 0.03725901618599892, 0.015259803272783756, -0.014652649872004986, -0.04246030002832413, 0.02288970537483692, 0.013569891452789307, 0.07690617442131042, -0.05282239615917206, 0.017789611592888832, -0.03329227492213249, -0.030641037970781326, 0.028880290687084198, -0.03454706072807312, -0.02509569749236107, 0.027807652950286865, 0.0072909072041511536, 0.030620798468589783, -0.0011048937449231744, 0.030377937480807304, 0.05852964520454407, 0.008803732693195343, -0.05091997981071472, 0.06824410706758499, -0.02560165897011757, 0.02029918134212494, 0.015543142333626747, -0.012193676084280014, -0.018103307113051414, -0.04691276326775551, -0.010088874958455563, 0.0236385278403759, -0.003759294981136918, 0.01843724213540554, -0.06071539968252182, 0.001915064873173833, -0.0029902332462370396, 0.0746394619345665, -0.010190067812800407, 0.025642136111855507, -0.023173043504357338, -0.03187558427453041, -0.017941400408744812, -0.012517491355538368, 0.004632079042494297, -0.001473613316193223, -0.005747724324464798, -0.0005638310103677213, 0.015057418495416641, -0.014500861056149006, 0.0163729190826416, 0.029285060241818428, -0.01889260858297348, 0.02197897434234619, -0.022302789613604546, -0.06067492067813873, -0.030944613739848137, 0.005489683710038662, -0.0023400725331157446, 0.008773375302553177, 0.04193410277366638, 0.01767829991877079, -0.001206086133606732, -0.06306306272745132, -0.0017506272997707129, 0.07678473740816116, -0.021230150014162064, 0.04954376444220543, -0.023881390690803528, -0.02288970537483692, -0.005368253216147423, -0.02586475946009159, 0.05561530590057373, 0.06071539968252182, 0.023618290200829506, -0.02631000615656376, -0.008393904194235802, -0.012193676084280014, 0.056343890726566315, 0.015209207311272621, 0.017152100801467896, -0.03999120742082596, -0.03025650605559349, -0.052093811333179474, 0.035235170274972916, 0.03076246753334999, 0.0008632970857433975, 0.019712265580892563, -0.06233447417616844, 0.10694005340337753, 0.017192576080560684, 0.03535659983754158, -0.008915044367313385, 0.027402883395552635, 0.001517884898930788, 0.033717285841703415, -0.05792248994112015, -0.020076557993888855, -0.017860446125268936, 0.01030137948691845, -0.008429321460425854, -0.016757449135184288, 0.10119233280420303, -0.006557262968271971, 0.023881390690803528, -0.030033882707357407, 0.07812047749757767 ]
43,031
linearmodels.panel.model
_slow_path
Frisch-Waugh-Lovell implementation, works for all scenarios
def _slow_path( self, ) -> tuple[Float64Array, Float64Array, Float64Array, Float64Array, Float64Array]: """Frisch-Waugh-Lovell implementation, works for all scenarios""" w = cast(Float64Array, self.weights.values2d) root_w = np.sqrt(w) y = root_w * cast(Float64Array, self.dependent.values2d) x = root_w * cast(Float64Array, self.exog.values2d) if not self._has_effect: ybar = root_w @ _lstsq(root_w, y, rcond=None)[0] y_effect, x_effect = np.zeros_like(y), np.zeros_like(x) return y, x, ybar, y_effect, x_effect drop_first = self._constant d_l = [] if self.entity_effects: d_l.append(self.dependent.dummies("entity", drop_first=drop_first).values) drop_first = True if self.time_effects: d_l.append(self.dependent.dummies("time", drop_first=drop_first).values) drop_first = True if self.other_effects: assert self._other_effect_cats is not None oe = self._other_effect_cats.dataframe for c in oe: dummies = get_dummies(oe[c], drop_first=drop_first).astype(np.float64) d_l.append(dummies.values) drop_first = True d = np.column_stack(d_l) wd = root_w * d if self.has_constant: wd -= root_w * (w.T @ d / w.sum()) z = np.ones_like(root_w) d -= z * (z.T @ d / z.sum()) x_mean = _lstsq(wd, x, rcond=None)[0] y_mean = _lstsq(wd, y, rcond=None)[0] # Save fitted unweighted effects to use in eps calculation x_effects = d @ x_mean y_effects = d @ y_mean # Purge fitted, weighted values x = x - wd @ x_mean y = y - wd @ y_mean ybar = root_w @ _lstsq(root_w, y, rcond=None)[0] return y, x, ybar, y_effects, x_effects
(self) -> tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray]
[ 0.01691015437245369, -0.0325288400053978, -0.009110900573432446, 0.05028652027249336, 0.01657719723880291, -0.06521911174058914, -0.0585196278989315, -0.03343690559267998, 0.001917022280395031, 0.03158041834831238, 0.026293473318219185, 0.04689641669392586, 0.02102670818567276, 0.019109684973955154, -0.04019692912697792, 0.06788276880979538, -0.0203607939183712, 0.036403242498636246, -0.02570827677845955, 0.007874925620853901, -0.009761678986251354, -0.03371941298246384, -0.0030647132080048323, 0.04701749235391617, -0.002981474157422781, 0.017111945897340775, -0.02930017188191414, -0.002739324001595378, 0.006886145565658808, -0.06917423754930496, -0.0033295650500804186, -0.011865358799695969, 0.0030621907208114862, -0.06388729065656662, -0.00012982466432731599, -0.019583895802497864, 0.059447869658470154, 0.008914153091609478, -0.0020229630172252655, -0.08055528998374939, 0.017111945897340775, -0.04144803807139397, 0.03604001924395561, -0.0011054407805204391, -0.04156911373138428, -0.011623208411037922, -0.030167875811457634, 0.0024252852890640497, -0.008268419653177261, 0.007506655529141426, 0.01391354575753212, -0.0558963343501091, 0.015225192531943321, 0.005907455459237099, 0.049035411328077316, 0.05194121226668358, -0.004227538593113422, 0.059447869658470154, 0.03620145097374916, -0.07498583942651749, 0.0588424950838089, 0.0492372028529644, 0.06566305458545685, 0.04322380572557449, -0.011744284071028233, -0.014145606197416782, -0.032670095562934875, 0.019351834431290627, -0.028170136734843254, 0.05642099305987358, -0.01762651465833187, 0.020411241799592972, 0.01603236049413681, -0.01890789344906807, -0.022398890927433968, -0.0407215878367424, 0.010462905280292034, -0.02677777409553528, 0.010220755822956562, -0.027746375650167465, -0.021228499710559845, 0.006013396196067333, -0.030430205166339874, -0.05323268100619316, -0.011249893344938755, -0.0011130080092698336, 0.006729756947606802, 0.04516100883483887, -0.014710623770952225, -0.014357487671077251, -0.04098391905426979, 0.04548387601971626, -0.00249086762778461, 0.034546758979558945, 0.05137619748711586, 0.004550405312329531, -0.014226322993636131, -0.038522057235240936, 0.009126034565269947, -0.008359226398169994, -0.0067701153457164764, 0.024658959358930588, -0.015971822664141655, 0.07385580241680145, 0.016405675560235977, -0.013994262553751469, 0.0033749681897461414, -0.03545482084155083, 0.0052062286995351315, -0.09233993291854858, -0.027907807379961014, 0.005428199656307697, -0.01117926649749279, -0.019160132855176926, -0.07611587643623352, -0.021067066118121147, -0.06832671165466309, -0.011814910918474197, 0.020804736763238907, 0.04407133162021637, 0.015467342920601368, -0.018867535516619682, -0.07111143320798874, 0.03250866010785103, 0.03737184405326843, -0.014922505244612694, 0.047743942588567734, 0.007345221936702728, -0.023609641939401627, -0.026111861690878868, -0.03357815742492676, 0.03511177748441696, 0.01551779080182314, 0.05880213528871536, -0.022701580077409744, 0.028170136734843254, -0.008147344924509525, -0.014347397722303867, 0.04395025596022606, -0.03256919980049133, 0.007037489674985409, 0.010185441933572292, -0.004199792165309191, 0.0035717152059078217, 0.030389847233891487, 0.044111691415309906, 0.02714099921286106, -0.019412372261285782, 0.015063758939504623, 0.04939863830804825, -0.02078455686569214, -0.021248677745461464, -0.002115030540153384, -0.024699319154024124, 0.03606019914150238, -0.08273464441299438, -0.03658485785126686, 0.000575421960093081, 0.034143175929784775, -0.0336790531873703, -0.07801271975040436, -0.10388242453336716, 0.03870366886258125, -0.025264335796236992, -0.016335047781467438, 0.049035411328077316, -0.019160132855176926, 0.01483169849961996, 0.00545342406257987, 0.011340700089931488, 0.0024896066170185804, -0.0038416117895394564, -0.06033575162291527, 0.001677394495345652, -0.08588259667158127, 0.0183428768068552, -0.0009692313033156097, -0.01952335797250271, 0.0032261465676128864, -0.007098027039319277, -0.012289121747016907, -0.0201690923422575, -0.01955362781882286, -0.03436514735221863, -0.007768984884023666, 0.057026367634534836, 0.055129524320364, -0.04447491466999054, 0.014276770874857903, 0.07514727115631104, -0.06308012455701828, -0.012975214049220085, 0.05855998396873474, 0.005186049733310938, 0.028795693069696426, 0.02530469372868538, 0.07446117699146271, -0.012400107458233833, 0.02023972012102604, -0.03271045163273811, -0.0012895758263766766, -0.023105163127183914, 0.02104688622057438, 0.025768814608454704, -0.025203797966241837, 0.019916852936148643, -0.007970776408910751, 0.018322696909308434, -0.07615622878074646, 0.068124920129776, -0.030934685841202736, -0.02171279862523079, -0.06295904517173767, -0.007879970595240593, 0.024719497188925743, 0.023367492482066154, -0.007491521071642637, 0.039309047162532806, 0.01091693714261055, -0.014115337282419205, 0.008409674279391766, -0.03610055521130562, -0.048672184348106384, 0.013277901336550713, 0.02661634050309658, -0.011935985647141933, 0.03180238977074623, 0.06760025769472122, 0.03781578689813614, -0.04681570082902908, 0.024275556206703186, -0.0039374628104269505, 0.04855111241340637, -0.05149727314710617, -0.0006753719644621015, -0.0009938246803358197, -0.028392108157277107, -0.011027922853827477, 0.06098148599267006, -0.03125755116343498, -0.033497441560029984, -0.06138506904244423, 0.004573107231408358, 0.0023861881345510483, -0.00582673866301775, -0.0101803969591856, 0.05779317766427994, -0.015951642766594887, 0.005261721555143595, -0.024558063596487045, -0.04209377244114876, 0.017212841659784317, -0.010341830551624298, -0.0076277307234704494, 0.017676962539553642, -0.07050605863332748, 0.06788276880979538, 0.015073848888278008, -0.004204837139695883, -0.04108481481671333, -0.007163609378039837, -0.01624424196779728, -0.004217449110001326, 0.006346352864056826, -0.08289607614278793, -0.000008912143130146433, 0.006058799102902412, -0.021511007100343704, -0.05964966118335724, 0.06239403039216995, -0.013449424877762794, 0.03872384876012802, -0.06788276880979538, -0.0024076285772025585, -0.05044795572757721, 0.04423276707530022, 0.01478125061839819, -0.003496043151244521, 0.008984780870378017, 0.027584942057728767, -0.022721758112311363, -0.07143430411815643, 0.015931464731693268, 0.05060938745737076, -0.04395025596022606, -0.027080461382865906, -0.04217448830604553, -0.06820563226938248, 0.08862696588039398, 0.00016442879859823734, 0.03355797752737999, 0.020582765340805054, 0.027988525107502937, -0.002190702361986041, 0.0873354971408844, 0.02264104224741459, -0.01731373742222786, -0.06017431989312172, 0.04960042983293533, -0.006754980888217688, 0.0175760667771101, 0.024336092174053192, 0.03993460163474083, 0.014841788448393345, 0.0418112650513649, 0.022398890927433968, 0.046775344759225845, -0.02873515523970127, 0.015881016850471497, -0.00939340889453888, -0.05936715379357338, -0.022923549637198448, 0.0075470139272511005, 0.013146736659109592, 0.018564846366643906, -0.045443516224622726, -0.04245699942111969, 0.01724311150610447, 0.024800214916467667, 0.07890059798955917, -0.0032967738807201385, 0.013358618132770061, 0.03634270653128624, 0.007178743835538626, 0.006008351221680641, -0.0003960164322052151, 0.043304525315761566, -0.018393324688076973, 0.030712714418768883, -0.017707232385873795, -0.032427944242954254, 0.015194923616945744, 0.006618771702051163, 0.028573721647262573, 0.034385327249765396, 0.0029234590474516153, 0.034688014537096024, 0.015477431938052177, 0.06328191608190536, -0.04980222135782242, 0.06162722036242485, 0.010372099466621876, -0.005297034978866577, 0.060779694467782974, 0.0706271380186081, -0.05028652027249336, 0.02968357689678669, 0.007900149561464787, 0.02582935243844986, 0.04794573411345482, 0.029723934829235077, -0.02944142557680607, -0.03511177748441696, 0.0532730408012867, 0.015759941190481186, 0.08459112793207169, -0.07143430411815643, -0.021611902862787247, 0.02568809874355793, 0.061425428837537766, 0.03206472098827362, 0.030389847233891487, -0.0418112650513649, 0.04084266349673271, 0.06638950854539871, -0.03555571660399437, 0.005675395019352436, -0.004926242865622044, -0.019725149497389793, -0.019351834431290627, -0.01478125061839819, -0.022984087467193604, -0.012430376373231411, 0.03351762145757675, -0.002772115170955658, 0.05395913124084473, 0.001822432386688888, 0.004938854835927486, 0.026515444740653038, -0.007158564869314432, 0.019725149497389793, -0.01009463518857956, -0.022580504417419434, 0.035212673246860504, 0.04964078590273857, 0.005927634425461292, 0.01065460778772831, -0.04423276707530022, 0.002943638013675809, -0.006709577981382608, 0.04883361980319023, -0.04245699942111969, 0.03151988238096237, -0.05751066654920578, 0.017404545098543167, 0.014529011212289333, 0.07228183001279831, 0.07583336532115936, -0.06199044734239578, 0.025123082101345062, -0.04592781886458397, -0.04830896109342575, -0.02899748459458351, 0.00874263048171997, -0.05541203171014786, -0.04645247757434845, -0.016274509951472282, 0.08717406541109085, -0.01008454617112875, 0.05089189484715462, -0.031116297468543053, 0.029058022424578667, -0.00861146580427885, -0.007123250979930162, -0.023771075531840324, -0.04140768200159073, -0.03900635987520218, 0.007314953487366438, 0.07801271975040436, 0.04229556396603584, 0.0388651043176651, -0.017041318118572235, 0.041730549186468124, -0.006795339286327362, -0.013207274489104748, 0.00947917066514492, -0.06925494968891144, -0.002191963605582714, 0.009766723960638046, 0.0436677485704422, 0.0032942513935267925, -0.010210665874183178, -0.08019206672906876, -0.032145436853170395, 0.0010474256705492735, 0.0005981235299259424, 0.027988525107502937, 0.033739592880010605, 0.054241638630628586, -0.024255376309156418, -0.02716117911040783, 0.04431348294019699, 0.03075307235121727, -0.04298165813088417, -0.021329395473003387, -0.07232218980789185, -0.03448622301220894, 0.008152388967573643, -0.027564762160182, -0.02459842339158058, 0.04576638340950012, 0.047057852149009705, 0.08677048236131668, -0.001770723145455122, -0.009529618546366692, 0.02002783864736557, -0.019250938668847084, -0.040277644991874695, -0.04992329701781273, 0.021874232217669487, 0.022419070824980736, 0.02437645196914673, -0.011401237919926643, -0.03184274956583977, 0.01586083695292473, -0.05973037704825401, 0.029239634051918983, -0.021087244153022766, 0.0031984003726392984, -0.003430460812523961, 0.024134300649166107, -0.016799168661236763, -0.019261028617620468, -0.0040635825134813786, 0.047865018248558044, -0.00219448609277606, -0.042779866605997086, 0.03650413826107979, 0.0540398471057415, -0.06574377417564392, -0.011895627714693546, -0.07494547963142395, -0.018988609313964844, -0.0003521897888276726, 0.011845179833471775, 0.0032110123429447412, -0.02088545262813568, -0.0012952511897310615, 0.07438046485185623, -0.03527320921421051, -0.01890789344906807, 0.001319214003160596, 0.04403097555041313, -0.03327547013759613, -0.045604951679706573, 0.02274193800985813, 0.013883276842534542, -0.008011135272681713, 0.023609641939401627, -0.0013406543293967843, 0.02475985512137413, -0.047057852149009705, -0.053434472531080246, 0.0071888333186507225, 0.006134471390396357, 0.009332871064543724, 0.011411326937377453, -0.006361486855894327, -0.039066895842552185, -0.003786118933930993, 0.009161348454654217, -0.05936715379357338, 0.015487521886825562, -0.03343690559267998, 0.017898933961987495, 0.0016042449278756976, -0.04988293722271919, 0.05892321094870567, 0.055977050215005875, -0.02873515523970127, -0.047057852149009705, 0.015870926901698112, 0.01907941699028015, -0.007557103410363197, 0.002461860189214349, -0.008606420829892159, -0.00741584924980998, -0.0015664090169593692, 0.04116553068161011, -0.03355797752737999, -0.024457167834043503, -0.046775344759225845, 0.03382030874490738, 0.03246830403804779, 0.03194364532828331, -0.014478562399744987, -0.008223016746342182, -0.07930418103933334, -0.06622807681560516, -0.03458711877465248, 0.014135517179965973, -0.006820563226938248, 0.008697227574884892, -0.019856315106153488, 0.0017694620182737708, -0.013187095522880554, -0.04548387601971626, 0.04338524118065834, -0.04350631684064865, -0.0027494134847074747, 0.013580589555203915, 0.008268419653177261, 0.038945820182561874, 0.026838311925530434, 0.05747031047940254, -0.02421501837670803, -0.0062706805765628815, 0.017132125794887543, -0.06376621127128601, 0.021652262657880783, -0.0774073377251625, -0.07563157379627228, 0.00628581503406167, -0.07123251259326935, -0.04463635012507439, 0.0014806474791839719, 0.022580504417419434, 0.039309047162532806, -0.03141898661851883, -0.03856241703033447, -0.060093604028224945, 0.09799010306596756, 0.04487850144505501, -0.014135517179965973, -0.009025138802826405, -0.011411326937377453, 0.02004801668226719, -0.09581075608730316, -0.015164654701948166, -0.035212673246860504, 0.06291868537664413, 0.008066628128290176, -0.017333917319774628, 0.018665742129087448, 0.04415205121040344, 0.017283469438552856, -0.005413065664470196, 0.06566305458545685, -0.011845179833471775, -0.0030748029239475727, 0.00236979266628623, -0.0028124733362346888, -0.015104117803275585, -0.030127517879009247, 0.01931147649884224, -0.00042533932719379663, -0.03394138440489769, 0.009902933612465858, 0.003145430004224181, 0.01907941699028015, -0.011078370735049248, -0.013923635706305504, 0.030692534521222115, -0.016002090647816658, -0.04169018939137459, -0.022721758112311363, 0.0203607939183712, -0.02782709151506424, -0.015467342920601368, -0.02304462529718876, 0.002412673318758607, -0.017777858301997185, 0.0548066571354866, 0.022156741470098495, -0.008888929150998592, 0.007239281199872494, -0.019916852936148643, 0.03595930337905884, 0.009504394605755806, 0.015497611835598946, -0.06578413397073746, -0.0027645479422062635, 0.031822569668293, -0.013792471028864384, 0.011925896629691124, -0.016415763646364212, 0.0929049551486969, -0.10202594101428986, 0.010124904103577137, -0.02304462529718876, 0.010543622076511383, -0.014155696146190166, 0.000966078310739249, -0.022459428757429123, -0.00842985324561596, 0.011138908565044403, 0.05165870487689972, 0.00912099052220583, -0.023750897496938705, 0.05634027346968651, -0.003952597267925739, 0.06590520590543747, -0.05387841537594795, -0.011592939496040344, -0.008036359213292599, 0.007668089121580124, -0.04189198091626167, -0.03125755116343498, 0.011643387377262115, 0.04403097555041313, -0.042013056576251984, -0.008328957483172417, -0.051053330302238464, 0.017949381843209267, 0.006941638421267271, 0.06630878895521164, -0.011905716732144356, -0.04988293722271919, 0.016193794086575508, -0.013066019862890244, 0.02768583782017231, 0.026838311925530434, 0.022681400179862976, 0.014024531468749046, 0.013742023147642612, 0.007945552468299866, 0.02518361806869507, -0.012995393015444279, 0.016829436644911766, -0.01762651465833187, 0.04126642644405365, -0.029522143304347992, -0.04354667291045189, -0.005226408131420612, -0.03781578689813614, -0.004106463398784399, 0.03168131411075592, 0.0640890821814537, 0.008596331812441349, -0.02304462529718876, 0.06852850317955017, 0.030954863876104355, 0.0065683238208293915, -0.018867535516619682, 0.0825328528881073, 0.002802383853122592, 0.016203882172703743, 0.01131043117493391, 0.012329479679465294, -0.02970375493168831, -0.042013056576251984, -0.02195494994521141, -0.02356928400695324, 0.04883361980319023, 0.044111691415309906, -0.100008025765419, 0.0009011265938170254, -0.03527320921421051, 0.10242952406406403, -0.04298165813088417, 0.040338184684515, -0.021732978522777557, -0.022540146484971046, -0.005524050910025835, -0.014458383433520794, 0.0462910421192646, -0.013943814672529697, 0.010583980940282345, -0.008540838956832886, 0.012531272135674953, -0.02982483059167862, -0.02663652040064335, 0.026172399520874023, -0.022822653874754906, 0.03846152126789093, -0.012168046087026596, -0.026394369080662727, -0.03472837060689926, -0.0363023467361927, 0.03293242305517197, 0.005846918094903231, 0.027726195752620697, 0.004277986474335194, 0.009569976478815079, -0.05868105962872505, 0.013641126453876495, 0.06485588848590851, -0.03210507705807686, 0.026797953993082047, -0.007814387790858746, -0.01955362781882286, -0.006295904517173767, 0.01612316630780697, 0.028170136734843254, 0.01803009957075119, -0.02449752576649189, -0.004815257154405117, -0.023993046954274178, 0.0033245200756937265, 0.018373144790530205, -0.031338270753622055, 0.006018440704792738, -0.07720554620027542, -0.013378797098994255, -0.04431348294019699, 0.0218338742852211, 0.02074419893324375, -0.018070457503199577, 0.014206144027411938, -0.05581561475992203, 0.08289607614278793, 0.03634270653128624, 0.006492651533335447, 0.02568809874355793, 0.0817660465836525, 0.0017745067598298192, 0.05351518839597702, -0.0692145898938179, -0.04322380572557449, -0.04499957337975502, -0.027060283347964287, -0.02034061588346958, 0.007925373502075672, 0.06965853273868561, 0.013479693792760372, 0.004605898167937994, -0.004275463987141848, 0.08136246353387833 ]
43,033
linearmodels.panel.model
_validate_effects
Check model effects
def _validate_effects(self, effects: PanelDataLike | None) -> bool: """Check model effects""" if effects is None: return False effects = PanelData(effects, var_name="OtherEffect", convert_dummies=False) if effects.shape[1:] != self._original_shape[1:]: raise ValueError( "other_effects must have the same number of " "entities and time periods as dependent." ) num_effects = effects.nvar if num_effects + self.entity_effects + self.time_effects > 2: raise ValueError("At most two effects supported.") cats = {} effects_frame = effects.dataframe for col in effects_frame: cat = Categorical(effects_frame[col]) # TODO: Bug in pandas-stube # https://github.com/pandas-dev/pandas-stubs/issues/111 cats[col] = cat.codes.astype(np.int64) # type: ignore cats_df = DataFrame(cats, index=effects_frame.index) cats_df = cats_df[effects_frame.columns] other_effects = PanelData(cats_df) other_effects.drop(~self.not_null) self._other_effect_cats = other_effects cats_array = other_effects.values2d nested = False nesting_effect = "" if cats_array.shape[1] == 2: nested = self._is_effect_nested(cats_array[:, [0]], cats_array[:, [1]]) nested |= self._is_effect_nested(cats_array[:, [1]], cats_array[:, [0]]) nesting_effect = "other effects" elif self.entity_effects: nested = self._is_effect_nested( cats_array[:, [0]], self.dependent.entity_ids ) nested |= self._is_effect_nested( self.dependent.entity_ids, cats_array[:, [0]] ) nesting_effect = "entity effects" elif self.time_effects: nested = self._is_effect_nested(cats_array[:, [0]], self.dependent.time_ids) nested |= self._is_effect_nested( self.dependent.time_ids, cats_array[:, [0]] ) nesting_effect = "time effects" if nested: raise ValueError( "Included other effects nest or are nested " "by {effect}".format(effect=nesting_effect) ) return True
(self, effects: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType]) -> bool
[ 0.010451702401041985, 0.00348700862377882, -0.01544912625104189, 0.0661972239613533, 0.00616286788135767, -0.02987266145646572, -0.03735015168786049, 0.008032239973545074, 0.033527493476867676, 0.01913192868232727, 0.02752312645316124, 0.06645827740430832, 0.02935054339468479, -0.04426822438836098, -0.0018577177543193102, -0.006619722116738558, -0.03414284810423851, 0.029909955337643623, 0.05060824006795883, -0.025471944361925125, -0.012735972180962563, 0.019616754725575447, -0.04426822438836098, -0.05146600678563118, 0.038897860795259476, 0.05277130752801895, -0.023029174655675888, 0.008717521093785763, 0.0051372773014009, 0.002433447167277336, -0.023905588313937187, 0.0036734796594828367, 0.006671001669019461, 0.026348358020186424, -0.003871605033054948, -0.022115465253591537, -0.026329711079597473, -0.009621906094253063, -0.013276738114655018, -0.005701352376490831, 0.0032655741088092327, -0.026236476376652718, 0.03770444542169571, 0.03949456661939621, -0.0680246353149414, -0.040128570050001144, -0.013556445017457008, 0.09062492847442627, -0.05698554962873459, -0.04587187618017197, 0.03002183884382248, -0.007757195271551609, 0.04508869722485542, 0.009141743183135986, 0.03561596944928169, 0.03774173930287361, -0.010852614417672157, 0.0733950063586235, 0.041396573185920715, -0.03464632108807564, 0.01682901196181774, 0.060491207987070084, 0.0321476086974144, -0.008074196055531502, -0.021332288160920143, -0.01857251673936844, -0.004044090863317251, 0.0012423633597791195, -0.02325293980538845, 0.021891700103878975, -0.057283904403448105, 0.017043452709913254, -0.0002966055180877447, 0.04937753453850746, -0.023513998836278915, -0.07958584278821945, 0.03253919631242752, -0.012819884344935417, 0.039270803332328796, 0.014610006473958492, -0.0024264545645564795, -0.02338346838951111, -0.03255784511566162, 0.016353510320186615, 0.03283755108714104, -0.04184410348534584, -0.04430552199482918, 0.043559636920690536, 0.03257649019360542, -0.08629880100488663, -0.009966877289116383, 0.036361854523420334, 0.010134701617062092, -0.046916116029024124, 0.0027760877273976803, 0.0642579197883606, 0.011859558522701263, -0.036921266466379166, -0.030674487352371216, -0.002650219714269042, -0.030096426606178284, 0.03108472377061844, 0.000297042541205883, 0.010656820610165596, 0.01805039681494236, 0.02519223839044571, -0.04508869722485542, -0.017761366441845894, -0.061572737991809845, -0.034049611538648605, 0.026553476229310036, -0.006465883459895849, 0.008297961205244064, 0.0019159900257363915, -0.02213411219418049, -0.08152513951063156, -0.018292808905243874, -0.04076256975531578, -0.0928625836968422, 0.006610398646444082, 0.006037000101059675, 0.006871458142995834, -0.01063817273825407, 0.001933471648953855, 0.07037417590618134, 0.007426209282130003, -0.008675565011799335, -0.0033658023457974195, 0.027056949213147163, -0.017090070992708206, -0.06026744097471237, -0.009966877289116383, 0.009472728706896305, 0.03792820870876312, 0.023886941373348236, 0.017574895173311234, -0.004687415901571512, -0.0133886206895113, -0.0039065685123205185, 0.016222981736063957, 0.003556935116648674, 0.04717717319726944, -0.0029695513658225536, 0.012185882776975632, -0.030637193471193314, -0.0003979991306550801, -0.010526290163397789, -0.06216944754123688, -0.019933754578232765, 0.03539220616221428, -0.02912677638232708, -0.04277645796537399, -0.019896460697054863, -0.03382584825158119, -0.01682901196181774, -0.02250705473124981, -0.035131145268678665, -0.06369850784540176, 0.0447530522942543, -0.02123905159533024, -0.07936207950115204, -0.05493437126278877, 0.02161199413239956, 0.028362246230244637, 0.021667934954166412, 0.03365802392363548, -0.022413820028305054, -0.05672449246048927, 0.021406875923275948, 0.04579728841781616, 0.01894545741379261, 0.04684152826666832, 0.05392742529511452, -0.01537453755736351, -0.10509508103132248, 0.03841303661465645, -0.008311946876347065, -0.053144246339797974, -0.012129941023886204, 0.011150968261063099, -0.039755627512931824, 0.005873837973922491, -0.06190838664770126, 0.016176363453269005, -0.008787447586655617, -0.011048409156501293, -0.0075614009983837605, -0.023905588313937187, 0.02606865204870701, 0.03606349974870682, -0.02664671279489994, -0.0035289644729346037, 0.03684667870402336, -0.013444562442600727, 0.012400324456393719, -0.01080599706619978, 0.03500061482191086, -0.047997646033763885, 0.10136566311120987, -0.04393257945775986, -0.023551292717456818, -0.050347182899713516, 0.01682901196181774, 0.04348504915833473, -0.054971665143966675, 0.0536290742456913, -0.03552273288369179, 0.040687981992959976, -0.05825355276465416, -0.06164732575416565, -0.04247810319066048, -0.012894473038613796, 0.006852810736745596, 0.008950609713792801, 0.078765369951725, 0.006009029224514961, 0.031923841685056686, -0.0223578792065382, -0.027933362871408463, 0.01915057562291622, 0.024092059582471848, 0.0029206026811152697, -0.03787226974964142, 0.02895895391702652, 0.01591530442237854, 0.014544741250574589, 0.009337537921965122, 0.09151998907327652, 0.05467331036925316, 0.020120225846767426, -0.013836151920258999, 0.024782001972198486, 0.0011415524641051888, -0.019225165247917175, 0.03002183884382248, 0.02269352599978447, 0.03645509108901024, -0.011775646358728409, 0.07898913323879242, 0.0025383371394127607, -0.01911328174173832, -0.06563780456781387, -0.006358662620186806, -0.046393994241952896, 0.00921166967600584, -0.04702799767255783, 0.03848762437701225, 0.017369776964187622, -0.008717521093785763, 0.006927399430423975, -0.00999484769999981, 0.046953409910202026, -0.022432466968894005, 0.021556053310632706, 0.021145816892385483, -0.023364821448922157, 0.04751282185316086, -0.04303751885890961, 0.038524918258190155, -0.07037417590618134, 0.010880585759878159, -0.006097603123635054, -0.013798857107758522, 0.0285860113799572, -0.08547832816839218, -0.03863679990172386, 0.032427314668893814, -0.01826483942568302, 0.02910812944173813, -0.0009207007824443281, -0.045834582298994064, 0.00813479907810688, -0.019411636516451836, -0.00911377277225256, -0.0062654269859194756, 0.0013076282339170575, 0.05019800364971161, -0.024931179359555244, 0.03004048578441143, 0.05560566484928131, -0.013491179794073105, -0.015570332296192646, -0.023141056299209595, 0.006326030008494854, 0.026684006676077843, -0.06463086605072021, -0.04270187020301819, -0.05989449843764305, 0.0070066493935883045, 0.012129941023886204, -0.029611602425575256, -0.0033378317020833492, 0.06750252097845078, -0.022730819880962372, -0.0821218490600586, -0.03805873915553093, 0.023327527567744255, -0.05784331634640694, -0.006395956967025995, -0.03470226004719734, -0.016316216439008713, 0.03128984197974205, 0.015346567146480083, 0.002913610078394413, 0.004904188681393862, -0.020586403086781502, 0.04523787647485733, -0.06149815022945404, 0.039419978857040405, 0.027952009811997414, 0.02306646853685379, 0.018460633233189583, -0.026702653616666794, 0.042105160653591156, 0.04736364632844925, 0.01313688512891531, 0.0008128972258418798, -0.03900974243879318, 0.007048605475574732, 0.08823809772729874, 0.020325344055891037, -0.012083323672413826, 0.008069534786045551, 0.021873053163290024, 0.01628824509680271, -0.010414407588541508, 0.07898913323879242, -0.006554457359015942, 0.019598105922341347, 0.005333072040230036, -0.10688520222902298, -0.04501410946249962, 0.06101332604885101, 0.0536663681268692, 0.051204949617385864, -0.04986235871911049, -0.02448364906013012, -0.0482587069272995, 0.09345928579568863, 0.03168142959475517, 0.04128468781709671, -0.03375126048922539, -0.00608361791819334, -0.01332335639744997, 0.09159457683563232, -0.029033541679382324, 0.060006383806467056, 0.06243050470948219, 0.06750252097845078, 0.05791790783405304, -0.02019481360912323, -0.005281792487949133, 0.015850039198994637, 0.010628849267959595, -0.04053880646824837, 0.03272566944360733, -0.00033273425651714206, 0.03130848705768585, -0.03108472377061844, 0.026329711079597473, 0.09196751564741135, -0.0267772413790226, 0.02392423525452614, 0.043522343039512634, -0.0075334301218390465, 0.009547317400574684, 0.029406484216451645, -0.04609564319252968, -0.010330495424568653, -0.02392423525452614, 0.00669431034475565, 0.0120553532615304, 0.02398017607629299, -0.016875630244612694, -0.010675467550754547, 0.04445469751954079, 0.0446784608066082, -0.011001791805028915, 0.09256422519683838, -0.05045906454324722, 0.006372647825628519, -0.008330593816936016, -0.055866725742816925, 0.0019719311967492104, 0.016679834574460983, -0.006885443348437548, 0.00040440907469019294, -0.03652967885136604, -0.019709989428520203, -0.027448538690805435, 0.0732458233833313, -0.013714944943785667, 0.03149496018886566, -0.05221189185976982, -0.028903011232614517, -0.00008136255928548053, -0.02127634547650814, 0.013472532853484154, -0.016325540840625763, 0.03304266929626465, -0.03362073004245758, -0.021854406222701073, 0.02002699114382267, 0.021220404654741287, -0.07261182367801666, 0.0072490619495511055, -0.014600683003664017, 0.06921805441379547, -0.0129690608009696, 0.05829085037112236, 0.02591947466135025, 0.022227348759770393, -0.047438234090805054, -0.01063817273825407, 0.010796673595905304, -0.007766519207507372, -0.0026222490705549717, -0.04217975214123726, 0.0410609245300293, 0.016763746738433838, 0.03270702064037323, 0.04001668468117714, 0.05482248589396477, 0.020828815177083015, -0.017267217859625816, -0.013183502480387688, -0.08383738249540329, 0.06653286516666412, -0.006307383067905903, 0.017574895173311234, -0.013882769271731377, 0.01915057562291622, -0.045834582298994064, -0.057097434997558594, 0.060864150524139404, -0.035280320793390274, -0.046207524836063385, 0.05381554365158081, -0.010871262289583683, 0.04035233333706856, -0.025173591449856758, 0.01787324994802475, 0.025434650480747223, 0.02521088533103466, -0.009090463630855083, -0.0446784608066082, 0.020250756293535233, 0.00983634777367115, -0.05045906454324722, -0.01224182453006506, 0.02125769853591919, 0.051950834691524506, -0.007183797191828489, -0.014740535989403725, 0.023644529283046722, 0.03630591183900833, 0.0196726955473423, -0.012307088822126389, -0.01232573576271534, -0.02075422741472721, -0.04076256975531578, -0.027597714215517044, -0.04400716722011566, 0.033881787210702896, 0.005491572432219982, -0.030786368995904922, 0.0071744732558727264, -0.029462425038218498, 0.0034520451445132494, 0.04561081901192665, -0.03679073601961136, 0.00022973815794102848, 0.046729642897844315, 0.02039993181824684, -0.031550899147987366, 0.005747969727963209, 0.015365214087069035, 0.006731604691594839, 0.024968473240733147, 0.04199327901005745, 0.060677677392959595, -0.0032818904146552086, -0.02287999726831913, -0.00866158027201891, -0.007724563125520945, -0.06642098724842072, -0.021015286445617676, 0.02821306884288788, 0.04684152826666832, 0.019075987860560417, -0.01898275315761566, -0.05415119230747223, 0.031886547803878784, 0.027616361156105995, -0.027579067274928093, -0.04270187020301819, 0.011990088038146496, -0.00451259920373559, -0.006545133888721466, -0.002911279210820794, 0.03658561781048775, 0.04005398228764534, -0.019243812188506126, -0.0011934146750718355, -0.024968473240733147, -0.050869300961494446, 0.02895895391702652, -0.0030371472239494324, 0.01627892255783081, -0.02522953227162361, -0.019728636369109154, -0.026684006676077843, 0.024054765701293945, 0.007123193703591824, 0.04810953140258789, -0.025341415777802467, -0.005468263290822506, 0.035839736461639404, 0.007980960421264172, -0.00612091226503253, 0.010507643222808838, -0.06836028397083282, 0.014871065504848957, 0.0036664868239313364, 0.011896852403879166, 0.023868294432759285, -0.03322913870215416, 0.013864122331142426, -0.0054356311447918415, -0.053144246339797974, -0.021332288160920143, -0.046916116029024124, 0.03425472974777222, 0.04232892766594887, -0.06041662022471428, -0.03971833363175392, -0.003556935116648674, -0.04587187618017197, -0.09427975863218307, 0.028567364439368248, 0.007710577920079231, -0.011048409156501293, 0.024912532418966293, -0.013556445017457008, 0.021518759429454803, -0.028530070558190346, 0.034609027206897736, -0.0059064701199531555, -0.0410609245300293, 0.04236622154712677, -0.03181196004152298, 0.02075422741472721, -0.006899428553879261, 0.005272469017654657, 0.07089629024267197, -0.018330104649066925, 0.015775449573993683, 0.019635401666164398, -0.015085507184267044, 0.04329857602715492, -0.01080599706619978, -0.09159457683563232, 0.05952155590057373, -0.05347989499568939, -0.06179650500416756, -0.03322913870215416, 0.020493168383836746, -0.02392423525452614, -0.04005398228764534, 0.019598105922341347, 0.01948622427880764, 0.026870477944612503, -0.019001400098204613, 0.040464214980602264, -0.0005250325193628669, -0.008069534786045551, 0.019598105922341347, 0.0008257171139121056, -0.018553869798779488, 0.009179037064313889, 0.0007074245368130505, 0.00034001830499619246, -0.020101578906178474, -0.0047363643534481525, 0.037611208856105804, 0.008531050756573677, -0.02271217294037342, 0.02556518092751503, 0.04091174900531769, 0.0013507496332749724, 0.006367986090481281, 0.025341415777802467, -0.031383078545331955, -0.02625512331724167, 0.040650688111782074, 0.05422578006982803, -0.021742524579167366, -0.0014346615644171834, 0.00509998295456171, 0.004431018140166998, -0.006060308776795864, -0.019001400098204613, 0.034776851534843445, -0.030655840411782265, -0.01063817273825407, -0.05646343156695366, 0.019971048459410667, 0.028697893023490906, 0.03408690541982651, -0.02267487905919552, -0.018097015097737312, -0.022935938090085983, 0.011822264641523361, -0.06642098724842072, 0.0447530522942543, -0.06008097156882286, -0.05635154992341995, 0.0047363643534481525, 0.0357837937772274, -0.03949456661939621, -0.0003595394955482334, 0.014833771623671055, -0.030171014368534088, 0.020437225699424744, -0.013025002554059029, -0.045461639761924744, 0.013938711024820805, -0.10076895356178284, 0.0037434061523526907, -0.11068921536207199, 0.013453885912895203, 0.04486493393778801, -0.013882769271731377, -0.040128570050001144, -0.004622151143848896, 0.017966484650969505, 0.03830115124583244, 0.019803224131464958, 0.026739947497844696, 0.015980567783117294, -0.011840911582112312, -0.0035289644729346037, -0.022637585178017616, 0.04128468781709671, -0.039606448262929916, 0.00021924915199633688, -0.02752312645316124, -0.01682901196181774, 0.03233407810330391, -0.002264457754790783, -0.004806291311979294, 0.010694114491343498, -0.02250705473124981, -0.02500576712191105, 0.0733950063586235, 0.03414284810423851, 0.09211669862270355, -0.02110852301120758, 0.009360846132040024, 0.000012310002603044268, 0.03535490855574608, 0.021742524579167366, 0.02660941891372204, 0.0357837937772274, 0.13336409628391266, 0.008078858256340027, 0.02522953227162361, -0.018721692264080048, 0.07552077621221542, 0.01681036502122879, -0.005519542843103409, -0.008246681652963161, -0.021705228835344315, 0.031177958473563194, 0.020698286592960358, -0.01571018621325493, 0.036194030195474625, 0.06045391410589218, 0.027038302272558212, -0.012185882776975632, 0.033490199595689774, 0.01359373889863491, -0.019066663458943367, -0.042067866772413254, 0.060864150524139404, -0.0035802440252155066, -0.0007959982613101602, -0.006549795623868704, -0.013379297219216824, -0.04165763035416603, -0.0294997189193964, 0.0009317725198343396, -0.017108717933297157, 0.015952598303556442, 0.014237063936889172, -0.0769752487540245, -0.01841401495039463, 0.009393478743731976, 0.015644920989871025, 0.029965896159410477, -0.01839536800980568, -0.021910347044467926, -0.0259381216019392, 0.021388228982686996, -0.006316706538200378, 0.03427337855100632, -0.042627282440662384, 0.008917978033423424, 0.07533430308103561, -0.07220158725976944, -0.03809603303670883, 0.08801433444023132, 0.048892706632614136, -0.006111588329076767, -0.015271978452801704, -0.04277645796537399, 0.04091174900531769, 0.009901612065732479, -0.009146404452621937, -0.040501512587070465, 0.002272615907713771, 0.08435950428247452, -0.05411389842629433, 0.001778467558324337, -0.053368013352155685, 0.006167529616504908, 0.01998969539999962, -0.027784185484051704, 0.08234561234712601, -0.07645312696695328, 0.03326643258333206, -0.009733788669109344, -0.004918173886835575, -0.031215252354741096, -0.02485658973455429, -0.05937238037586212, -0.025807593017816544, -0.002911279210820794, -0.05329342558979988, -0.02808254025876522, -0.019616754725575447, -0.039569154381752014, 0.003521971870213747, -0.03453443571925163, -0.03431067243218422, 0.04773658886551857, 0.028511423617601395, 0.0039135608822107315, -0.0027737568598240614, -0.044939521700143814, 0.05773143470287323, -0.027579067274928093, -0.00830728467553854, -0.021873053163290024, 0.07626665383577347, 0.02966754324734211, 0.006116250064224005, -0.0446784608066082, -0.01857251673936844, -0.042440809309482574, -0.02398017607629299, -0.01268003135919571, 0.07719901204109192, 0.018721692264080048, 0.014003975316882133, 0.003076772205531597, 0.002878646831959486, 0.04217975214123726 ]
43,034
linearmodels.panel.model
_weighted_fast_path
Dummy-variable free estimation with weights
def _weighted_fast_path( self, low_memory: bool ) -> tuple[Float64Array, Float64Array, Float64Array, Float64Array, Float64Array]: """Dummy-variable free estimation with weights""" y_arr = self.dependent.values2d x_arr = self.exog.values2d w = self.weights.values2d root_w = cast(Float64Array, np.sqrt(w)) wybar = root_w * (w.T @ y_arr / w.sum()) if not self._has_effect: wy_arr = root_w * self.dependent.values2d wx_arr = root_w * self.exog.values2d y_effect, x_effect = np.zeros_like(wy_arr), np.zeros_like(wx_arr) return wy_arr, wx_arr, wybar, y_effect, x_effect wy_gm = wybar wx_gm = root_w * (w.T @ x_arr / w.sum()) y = self.dependent x = self.exog if self.other_effects: assert self._other_effect_cats is not None groups = self._other_effect_cats if self.entity_effects or self.time_effects: groups = groups.copy() if self.entity_effects: effect = self.dependent.entity_ids else: effect = self.dependent.time_ids col = ensure_unique_column("additional.effect", groups.dataframe) groups.dataframe[col] = effect wy = y.general_demean(groups, weights=self.weights) wx = x.general_demean(groups, weights=self.weights) elif self.entity_effects and self.time_effects: wy = cast( PanelData, y.demean("both", weights=self.weights, low_memory=low_memory) ) wx = cast( PanelData, x.demean("both", weights=self.weights, low_memory=low_memory) ) elif self.entity_effects: wy = cast(PanelData, y.demean("entity", weights=self.weights)) wx = cast(PanelData, x.demean("entity", weights=self.weights)) else: # self.time_effects wy = cast(PanelData, y.demean("time", weights=self.weights)) wx = cast(PanelData, x.demean("time", weights=self.weights)) wy_arr = wy.values2d wx_arr = wx.values2d if self.has_constant: wy_arr += wy_gm wx_arr += wx_gm else: wybar = 0 wy_effects = y.values2d - wy_arr / root_w wx_effects = x.values2d - wx_arr / root_w return wy_arr, wx_arr, wybar, wy_effects, wx_effects
(self, low_memory: bool) -> tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray]
[ 0.030665675178170204, -0.03026612289249897, -0.0016281775897368789, 0.07503601163625717, 0.03306299448013306, -0.04510951042175293, -0.0753156989812851, -0.0039006341248750687, 0.0020214873366057873, 0.015792323276400566, 0.03777771443128586, 0.02581110969185829, 0.039176151156425476, 0.014653597958385944, -0.05497846379876137, 0.0600527822971344, -0.025251735001802444, 0.020776744931936264, -0.024532541632652283, -0.0008222046890296042, -0.029966458678245544, -0.04630816727876663, 0.0043126726523041725, 0.0494246780872345, -0.01749042235314846, 0.008555424399673939, -0.043631162494421005, -0.013804548420011997, 0.0013547335984185338, -0.06205054745078087, -0.02471233904361725, -0.03194424510002136, 0.0055637722834944725, -0.045509062707424164, 0.04506955295801163, -0.023713458329439163, 0.043551255017519, 0.03206411004066467, -0.0706808865070343, -0.04770660400390625, 0.023593591526150703, -0.08462528139352798, 0.05713604763150215, -0.01371464878320694, -0.04782646894454956, 0.008021022193133831, -0.031844355165958405, 0.02569124475121498, 0.009534328244626522, -0.013884459622204304, 0.06109162047505379, -0.037138432264328, 0.013494894839823246, 0.05409944802522659, 0.030825497582554817, 0.061531130224466324, 0.014613643288612366, 0.06352889537811279, 0.035640109330415726, -0.07355766743421555, 0.025231758132576942, 0.02319403924047947, 0.0459086149930954, -0.00022943070507608354, -0.025950953364372253, -0.017620278522372246, -0.053300339728593826, 0.033262770622968674, 0.004974432289600372, 0.03659903630614281, -0.011936639435589314, 0.03036601096391678, 0.016901083290576935, -0.0021588336676359177, -0.02613075263798237, -0.026790013536810875, -0.0018516774289309978, -0.02898755483329296, 0.010927768424153328, -0.04766664654016495, -0.008315692655742168, 0.007941111922264099, -0.020147448405623436, 0.0030790537130087614, 0.01638166420161724, -0.0012517239665612578, -0.008595379069447517, 0.046587854623794556, 0.008934998884797096, -0.026410438120365143, -0.05334029719233513, 0.06464763730764389, 0.0054588899947702885, 0.054698776453733444, 0.06672531366348267, -0.018269550055265427, -0.02874782308936119, -0.03190429136157036, 0.005463884212076664, 0.005548789165914059, -0.010947746224701405, -0.017790088430047035, -0.03218397498130798, 0.06776414811611176, -0.00328132719732821, -0.019767872989177704, 0.023174060508608818, -0.021116364747285843, 0.010927768424153328, -0.07467641681432724, -0.040115099400281906, -0.031764447689056396, -0.024232875555753708, -0.01219634898006916, -0.047986287623643875, 0.015103095211088657, -0.06736459583044052, -0.004814610816538334, 0.01854923740029335, 0.03178442269563675, -0.023873278871178627, 0.0011262394255027175, -0.07983064651489258, 0.009084830991923809, 0.03959568217396736, -0.022354979068040848, 0.06312934309244156, -0.007326798979192972, -0.0004557398788165301, 0.0069721960462629795, -0.03665896877646446, 0.039056286215782166, -0.011287366040050983, 0.05030369386076927, -0.028767799958586693, 0.01844934932887554, 0.0023910736199468374, 0.003416176186874509, 0.03959568217396736, 0.0050043985247612, 0.011467164382338524, 0.013385018333792686, -0.008934998884797096, 0.04818606376647949, 0.025231758132576942, 0.021875515580177307, 0.03629937022924423, 0.0012610884150490165, -0.02047708071768284, 0.033142901957035065, -0.03524055704474449, -0.011437198147177696, -0.030086323618888855, -0.030585765838623047, 0.031265005469322205, -0.05509832873940468, -0.06324920803308487, 0.019747896119952202, 0.01955810934305191, -0.034441448748111725, -0.09453418850898743, -0.07579516619443893, 0.025891020894050598, -0.024932093918323517, -0.0028767799958586693, 0.07499605417251587, -0.002986656967550516, 0.00505184568464756, 0.008255759254097939, 0.020237348973751068, 0.022414911538362503, -0.030206190422177315, -0.03524055704474449, 0.0015807306626811624, -0.08934000134468079, 0.03394201025366783, -0.005488856229931116, -0.02718956768512726, -0.021156320348381996, -0.002155087888240814, 0.02425285428762436, -0.02389325574040413, -0.05593739077448845, -0.03252359479665756, -0.009219679981470108, 0.00952933356165886, 0.07839225232601166, -0.047866422683000565, 0.04107402637600899, 0.07395721971988678, -0.07136012613773346, -0.013654716312885284, 0.037637870758771896, -0.02285441942512989, 0.05150235444307327, 0.020996497943997383, 0.07835230231285095, -0.038676708936691284, 0.004689750727266073, -0.010358406230807304, -0.017840031534433365, -0.05745568871498108, 0.023134106770157814, -0.0038881481159478426, -0.01715080253779888, 0.014693553559482098, -0.017020948231220245, 0.03206411004066467, -0.07579516619443893, 0.05557779222726822, -0.021356096491217613, -0.01295549888163805, -0.02035721391439438, 0.012825644575059414, 0.05314052104949951, 0.02085665613412857, -0.004704733844846487, 0.05997287109494209, -0.0017517892410978675, -0.03366232290863991, -0.019737906754016876, -0.018749013543128967, -0.0683634802699089, -0.00109752151183784, 0.03695863112807274, -0.03498084470629692, 0.02341379225254059, 0.06936236470937729, 0.02497204951941967, -0.03320283442735672, 0.04558897390961647, 0.016151921823620796, 0.04147357866168022, -0.03200417757034302, 0.02507193759083748, -0.021575849503278732, -0.02625061757862568, -0.009858964942395687, 0.04347134381532669, -0.004262728616595268, -0.03510071337223053, -0.041992995887994766, 0.01953813061118126, -0.004192806780338287, -0.007591502740979195, -0.00798606127500534, 0.053979579359292984, 0.011986583471298218, 0.004295192193239927, -0.0011880452511832118, -0.024752294644713402, 0.006707492284476757, -0.02696981281042099, -0.01236615888774395, -0.002152590546756983, -0.03404189646244049, 0.06065211072564125, -0.002233749721199274, -0.024432651698589325, -0.07000164687633514, 0.016371674835681915, -0.012296237051486969, -0.027888784185051918, 0.016441596671938896, -0.039615657180547714, 0.005373985040932894, 0.05006396397948265, -0.025171825662255287, -0.04155348986387253, 0.07167977094650269, -0.0660061165690422, 0.053180474787950516, -0.02251479960978031, -0.01730063557624817, -0.04990414157509804, 0.02191546931862831, 0.05545792728662491, -0.017400523647665977, 0.007571525406092405, 0.04083429276943207, -0.06233023479580879, -0.06328915804624557, 0.0036908688489347696, 0.052701011300086975, -0.058015063405036926, -0.014683565124869347, -0.013155275024473667, -0.06264987587928772, 0.07144004106521606, -0.01662139594554901, 0.02613075263798237, 0.03583988547325134, 0.023993143811821938, 0.0076913912780582905, 0.05361998453736305, -0.011397243477404118, -0.022654643282294273, -0.032683417201042175, 0.04095416143536568, 0.04335147514939308, 0.03036601096391678, 0.017530377954244614, 0.03931599482893944, 0.004262728616595268, 0.048825349658727646, -0.019957661628723145, 0.06576638668775558, -0.04323161020874977, 0.02319403924047947, -0.027229521423578262, -0.057295870035886765, -0.0072418940253555775, 0.0073767430149018764, 0.03851688653230667, 0.01989772915840149, -0.044470224529504776, -0.019138578325510025, 0.04490973427891731, 0.0412338487803936, 0.11874708533287048, -0.0038182262796908617, 0.0006611350108869374, 0.007821246050298214, 0.016131943091750145, -0.022354979068040848, 0.004829594399780035, 0.05314052104949951, -0.01820961758494377, 0.04287201166152954, -0.009669177234172821, -0.05745568871498108, 0.0069721960462629795, -0.007946105673909187, 0.021575849503278732, 0.0011337309842929244, 0.010598137974739075, 0.03436153754591942, -0.011876706033945084, 0.028048604726791382, -0.03428163006901741, 0.028468135744333267, 0.006732464302331209, -0.03552024066448212, 0.041753266006708145, 0.05322043225169182, -0.08718241751194, 0.06280969828367233, 0.00685732439160347, 0.0447499118745327, 0.06628580391407013, 0.008695267140865326, 0.02778889611363411, -0.01419411227107048, 0.0788317620754242, 0.04307179152965546, 0.05350011587142944, -0.055178239941596985, 0.006747447419911623, 0.006977190263569355, 0.04359120875597, -0.01600208878517151, 0.024472607299685478, -0.028528068214654922, 0.06109162047505379, 0.04467000067234039, -0.04227268323302269, 0.03687871992588043, -0.0005010017193853855, -0.03947581350803375, -0.04255237057805061, -0.03901632875204086, -0.03156467154622078, -0.019807828590273857, 0.03566008433699608, -0.01013865228742361, 0.06896281242370605, -0.01665136218070984, 0.006617593113332987, 0.031624604016542435, -0.018938802182674408, 0.042911969125270844, -0.004395080730319023, -0.016221843659877777, 0.03789758309721947, 0.04159344360232353, -0.010388372465968132, 0.016901083290576935, -0.025891020894050598, -0.03262348473072052, -0.032683417201042175, 0.04938472434878349, -0.027389343827962875, -0.00037645362317562103, -0.01801983080804348, 0.019258443266153336, 0.010368394665420055, 0.03969556838274002, 0.05465881898999214, -0.06912263482809067, 0.013235186226665974, -0.02942706272006035, -0.06624585390090942, -0.05218159407377243, 0.013235186226665974, -0.07975073158740997, -0.03308296948671341, -0.006772419437766075, 0.0777130126953125, -0.01425404567271471, 0.05126262083649635, -0.013414984568953514, 0.05925367772579193, -0.044470224529504776, -0.002382333390414715, -0.00006122054037405178, -0.03394201025366783, -0.008695267140865326, 0.005613716784864664, 0.08750206232070923, 0.05405949056148529, 0.04319165647029877, -0.011287366040050983, 0.050703249871730804, -0.0035385394003242254, 0.019687963649630547, -0.03026612289249897, -0.07136012613773346, -0.006827358156442642, 0.013944392092525959, 0.0648074597120285, 0.02533164620399475, -0.019338354468345642, -0.05725591257214546, -0.05250123515725136, 0.008700261823832989, -0.0022175179328769445, 0.027369365096092224, 0.006437794305384159, 0.044829823076725006, -0.025271713733673096, 0.0026894896291196346, 0.03552024066448212, 0.044350359588861465, -0.036079615354537964, -0.027708984911441803, -0.05585747957229614, -0.056936271488666534, -0.011097578331828117, -0.04818606376647949, -0.01820961758494377, 0.04049467295408249, 0.042672235518693924, 0.0811891257762909, 0.0019053673604503274, -0.012865599244832993, -0.00002159692121495027, -0.004837085958570242, -0.06085188686847687, -0.0191285889595747, 0.0011281123152002692, 0.023933211341500282, 0.02649034932255745, -0.04379098489880562, -0.016231831163167953, 0.01576235704123974, -0.013874470256268978, 0.026710104197263718, -0.031624604016542435, -0.006747447419911623, 0.0015232949517667294, 0.03320283442735672, -0.028088560327887535, -0.03190429136157036, -0.044350359588861465, 0.05290078744292259, 0.013155275024473667, -0.05014387518167496, 0.03789758309721947, 0.07243891805410385, -0.06732464581727982, -0.013404996134340763, -0.048345886170864105, -0.004008013755083084, -0.004420052748173475, -0.018808947876095772, 0.0009601752972230315, -0.015262916684150696, -0.004170332103967667, 0.05429922416806221, -0.010977712459862232, -0.029127398505806923, 0.005319046322256327, 0.041992995887994766, -0.008655312471091747, -0.0482659749686718, 0.042232729494571686, 0.016371674835681915, -0.01727066934108734, 0.04530928656458855, -0.012096460908651352, 0.032323818653821945, -0.03324279189109802, -0.042232729494571686, -0.0032338802702724934, -0.005648677237331867, -0.004482482559978962, 0.020077526569366455, 0.0029317184817045927, -0.04215281829237938, 0.0002545588358771056, 0.007361759897321463, -0.030226167291402817, 0.014563699252903461, -0.01986776292324066, 0.009019903838634491, -0.008215803653001785, -0.015572569333016872, 0.058734260499477386, 0.040914203971624374, -0.04686754196882248, -0.022295044735074043, 0.02545151300728321, 0.006038241554051638, 0.012246293015778065, 0.00280935550108552, -0.0014533732319250703, -0.062010589987039566, -0.019168544560670853, 0.056816406548023224, 0.007876183837652206, 0.00726686604321003, -0.03583988547325134, 0.03813731297850609, 0.027409320697188377, 0.03404189646244049, -0.04031487554311752, -0.00863533467054367, -0.07975073158740997, -0.07379739731550217, -0.018609171733260155, 0.012036527507007122, -0.03472113609313965, 0.00993388146162033, -0.05170213058590889, 0.027649052441120148, 0.018828924745321274, -0.009159747511148453, 0.03158464655280113, -0.026790013536810875, -0.010628104209899902, -0.021495940163731575, -0.024332763627171516, 0.042352594435214996, 0.045868657529354095, 0.0835864394903183, -0.012865599244832993, -0.006922252010554075, 0.010757958516478539, -0.039495792239904404, 0.024652406573295593, -0.05581752210855484, -0.07939113676548004, -0.02415296621620655, -0.03601968288421631, -0.03164457902312279, -0.009948864579200745, 0.013694671913981438, 0.05545792728662491, -0.009469401091337204, -0.014054269529879093, -0.041513532400131226, 0.06328915804624557, 0.04143362492322922, -0.009809020906686783, -0.01919851079583168, -0.004672270268201828, 0.015452703461050987, -0.07847216725349426, -0.0076913912780582905, -0.034561317414045334, 0.04167335480451584, 0.022774508222937584, -0.015892211347818375, -0.001895378460176289, 0.04159344360232353, 0.00118617236148566, 0.014343945309519768, 0.05721595883369446, -0.004085427150130272, -0.006817369256168604, -0.016062021255493164, -0.019288411363959312, 0.0026570260524749756, -0.01902870088815689, 0.011407231912016869, 0.03969556838274002, -0.05449900031089783, 0.015033173374831676, 0.009749087505042553, 0.03506075590848923, -0.013265152461826801, 0.008670295588672161, 0.03194424510002136, -0.023253971710801125, -0.010278495028614998, -0.01555259246379137, 0.033981963992118835, -0.021835559979081154, -0.02908744290471077, -0.02059694565832615, 0.009444428607821465, -0.010468282736837864, 0.05102289095520973, 0.00891502108424902, 0.01254595723003149, -0.00668751448392868, -0.043751031160354614, -0.010288484394550323, 0.013794559985399246, 0.029187330976128578, -0.055777568370103836, 0.009674171917140484, 0.018948791548609734, -0.014683565124869347, -0.0017005965346470475, -0.019767872989177704, 0.10500247031450272, -0.08646322041749954, 0.014024302363395691, -0.02675005793571472, -0.015352815389633179, -0.013974358327686787, 0.019138578325510025, -0.026310550048947334, -0.0075665307231247425, -0.00023582979338243604, 0.033142901957035065, 0.008375625126063824, 0.0014383899979293346, 0.0014021805254742503, 0.016351697966456413, 0.04978427663445473, -0.013894448056817055, -0.023353859782218933, 0.00503935944288969, 0.016321731731295586, -0.031165117397904396, -0.014983229339122772, 0.00026564017753116786, 0.04407067224383354, -0.04842579737305641, -0.03653910011053085, -0.07144004106521606, -0.012825644575059414, 0.004420052748173475, 0.07899158447980881, -0.002361107151955366, -0.039056286215782166, 0.018509281799197197, -0.00959925539791584, -0.018778981640934944, 0.022215135395526886, 0.02872784435749054, 0.01195661723613739, 0.03518062084913254, -0.00650771614164114, 0.023933211341500282, -0.003176444675773382, 0.05661663040518761, -0.05949340760707855, 0.026809992268681526, -0.016491541638970375, 0.00028858325094915926, -0.012256281450390816, -0.020756766200065613, 0.013115320354700089, 0.022874396294355392, 0.03052583336830139, 0.004517443478107452, -0.015692435204982758, 0.08550429344177246, 0.03270339593291283, -0.0073767430149018764, -0.03873664140701294, 0.06616593897342682, 0.005993291735649109, -0.017530377954244614, 0.00884010549634695, 0.00741669861599803, -0.025531422346830368, -0.0494646355509758, -0.026530304923653603, -0.006018263753503561, 0.00939448457211256, 0.02345374785363674, -0.131932333111763, 0.00187664944678545, -0.008740217424929142, 0.07355766743421555, -0.026949835941195488, 0.010857846587896347, -0.034321583807468414, -0.021056432276964188, -0.021495940163731575, 0.0002492522762622684, 0.04155348986387253, -0.037138432264328, 0.003019120777025819, 0.009669177234172821, -0.004884532652795315, -0.025970930233597755, 0.01514305081218481, 0.012525979429483414, -0.01023854035884142, 0.014973240904510021, 0.00721192779019475, -0.05030369386076927, 0.0009595509618520737, -0.021276185289025307, 0.03935594856739044, 0.0011374768801033497, 0.05557779222726822, -0.0022549759596586227, 0.001474599470384419, -0.07875185459852219, 0.010997690260410309, 0.04546910524368286, -0.05230145901441574, 0.005453895311802626, -0.00918971374630928, -0.015582558698952198, 0.0032463662791997194, 0.016371674835681915, 0.025631310418248177, 0.038237202912569046, 0.0046348124742507935, -0.027509208768606186, -0.019807828590273857, -0.0018579204333946109, 0.0459485687315464, -0.03438151627779007, 0.0013185241259634495, -0.05429922416806221, 0.008480507880449295, -0.038456954061985016, -0.002921729814261198, 0.04758673533797264, 0.0011012674076482654, 0.007156989071518183, -0.04546910524368286, 0.08062975108623505, 0.02944703958928585, -0.013694671913981438, 0.030086323618888855, 0.07691390812397003, 0.010498248971998692, 0.037518005818128586, -0.06448782235383987, -0.061171531677246094, -0.07080075144767761, -0.018689081072807312, 0.01284562237560749, -0.010757958516478539, 0.09261633455753326, -0.029746703803539276, 0.018039807677268982, 0.0009102312033064663, 0.08058979362249374 ]
43,035
linearmodels.panel.model
fit
Estimate model parameters Parameters ---------- use_lsdv : bool Flag indicating to use the Least Squares Dummy Variable estimator to eliminate effects. The default value uses only means and does note require constructing dummy variables for each effect. use_lsmr : bool Flag indicating to use LSDV with the Sparse Equations and Least Squares estimator to eliminate the fixed effects. low_memory : {bool, None} Flag indicating whether to use a low-memory algorithm when a model contains two-way fixed effects. If `None`, the choice is taken automatically, and the low memory algorithm is used if the required dummy variable array is both larger than then array of regressors in the model and requires more than 1 GiB . cov_type : str Name of covariance estimator. See Notes. debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. auto_df : bool Flag indicating that the treatment of estimated effects in degree of freedom adjustment is automatically handled. This is useful since clustered standard errors that are clustered using the same variable as an effect do not require degree of freedom correction while other estimators such as the unadjusted covariance do. count_effects : bool Flag indicating that the covariance estimator should be adjusted to account for the estimation of effects in the model. Only used if ``auto_df=False``. **cov_config Additional covariance-specific options. See Notes. Returns ------- PanelEffectsResults Estimation results Examples -------- >>> from linearmodels import PanelOLS >>> mod = PanelOLS(y, x, entity_effects=True) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Three covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer valued, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used.
def fit( self, *, use_lsdv: bool = False, use_lsmr: bool = False, low_memory: bool | None = None, cov_type: str = "unadjusted", debiased: bool = True, auto_df: bool = True, count_effects: bool = True, **cov_config: bool | float | str | IntArray | DataFrame | PanelData, ) -> PanelEffectsResults: """ Estimate model parameters Parameters ---------- use_lsdv : bool Flag indicating to use the Least Squares Dummy Variable estimator to eliminate effects. The default value uses only means and does note require constructing dummy variables for each effect. use_lsmr : bool Flag indicating to use LSDV with the Sparse Equations and Least Squares estimator to eliminate the fixed effects. low_memory : {bool, None} Flag indicating whether to use a low-memory algorithm when a model contains two-way fixed effects. If `None`, the choice is taken automatically, and the low memory algorithm is used if the required dummy variable array is both larger than then array of regressors in the model and requires more than 1 GiB . cov_type : str Name of covariance estimator. See Notes. debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. auto_df : bool Flag indicating that the treatment of estimated effects in degree of freedom adjustment is automatically handled. This is useful since clustered standard errors that are clustered using the same variable as an effect do not require degree of freedom correction while other estimators such as the unadjusted covariance do. count_effects : bool Flag indicating that the covariance estimator should be adjusted to account for the estimation of effects in the model. Only used if ``auto_df=False``. **cov_config Additional covariance-specific options. See Notes. Returns ------- PanelEffectsResults Estimation results Examples -------- >>> from linearmodels import PanelOLS >>> mod = PanelOLS(y, x, entity_effects=True) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Three covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer valued, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used. """ weighted = np.any(self.weights.values2d != 1.0) if use_lsmr: y, x, ybar, y_effects, x_effects = self._lsmr_path() elif use_lsdv: y, x, ybar, y_effects, x_effects = self._slow_path() else: low_memory = ( self._choose_twoway_algo() if low_memory is None else low_memory ) if not weighted: y, x, ybar = self._fast_path(low_memory=low_memory) y_effects = np.array([0.0]) x_effects = np.zeros(x.shape) else: y, x, ybar, y_effects, x_effects = self._weighted_fast_path( low_memory=low_memory ) neffects = 0 drop_first = self.has_constant if self.entity_effects: neffects += self.dependent.nentity - drop_first drop_first = True if self.time_effects: neffects += self.dependent.nobs - drop_first drop_first = True if self.other_effects: assert self._other_effect_cats is not None oe = self._other_effect_cats.dataframe for c in oe: neffects += oe[c].nunique() - drop_first drop_first = True if self.entity_effects or self.time_effects or self.other_effects: if not self._drop_absorbed: check_absorbed(x, [str(var) for var in self.exog.vars]) else: # TODO: Need to special case the constant here when determining which # to retain since we always want to retain the constant if present retain = not_absorbed(x, self._constant, self._constant_index) if not retain: raise ValueError( "All columns in exog have been fully absorbed by the included" " effects. This model cannot be estimated." ) if len(retain) != x.shape[1]: drop = set(range(x.shape[1])).difference(retain) dropped = ", ".join([str(self.exog.vars[i]) for i in drop]) import warnings warnings.warn( absorbing_warn_msg.format(absorbed_variables=dropped), AbsorbingEffectWarning, stacklevel=2, ) x = x[:, retain] # Update constant index loc if self._constant: assert isinstance(self._constant_index, int) self._constant_index = int( np.squeeze( np.argwhere(np.array(retain) == self._constant_index) ) ) # Adjust exog self.exog = PanelData(self.exog.dataframe.iloc[:, retain]) x_effects = x_effects[:, retain] params = _lstsq(x, y, rcond=None)[0] nobs = self.dependent.dataframe.shape[0] df_model = x.shape[1] + neffects df_resid = nobs - df_model # Check clusters if singletons were removed cov_config = self._setup_clusters(cov_config) if auto_df: count_effects = self._determine_df_adjustment(cov_type, **cov_config) extra_df = neffects if count_effects else 0 cov = setup_covariance_estimator( self._cov_estimators, cov_type, y, x, params, self.dependent.entity_ids, self.dependent.time_ids, debiased=debiased, extra_df=extra_df, **cov_config, ) weps = y - x @ params eps = weps _y = self.dependent.values2d _x = self.exog.values2d if weighted: eps = (_y - y_effects) - (_x - x_effects) @ params if self.has_constant: # Correction since y_effects and x_effects @ params add mean w = self.weights.values2d eps -= (w * eps).sum() / w.sum() index = self.dependent.index fitted = DataFrame(_x @ params, index, ["fitted_values"]) idiosyncratic = DataFrame(eps, index, ["idiosyncratic"]) eps_effects = _y - fitted.values sigma2_tot = float(np.squeeze(eps_effects.T @ eps_effects) / nobs) sigma2_eps = float(np.squeeze(eps.T @ eps) / nobs) sigma2_effects = sigma2_tot - sigma2_eps rho = sigma2_effects / sigma2_tot if sigma2_tot > 0.0 else 0.0 resid_ss = float(np.squeeze(weps.T @ weps)) if self.has_constant: mu = ybar else: mu = np.array([0.0]) total_ss = float(np.squeeze((y - mu).T @ (y - mu))) r2 = 1 - resid_ss / total_ss if total_ss > 0.0 else 0.0 root_w = cast(Float64Array, np.sqrt(self.weights.values2d)) y_ex = root_w * self.dependent.values2d mu_ex = 0 if ( self.has_constant or self.entity_effects or self.time_effects or self.other_effects ): mu_ex = root_w * ((root_w.T @ y_ex) / (root_w.T @ root_w)) total_ss_ex_effect = float(np.squeeze((y_ex -
(self, *, use_lsdv: bool = False, use_lsmr: bool = False, low_memory: Optional[bool] = None, cov_type: str = 'unadjusted', debiased: bool = True, auto_df: bool = True, count_effects: bool = True, **cov_config: bool | float | str | numpy.ndarray | pandas.core.frame.DataFrame | linearmodels.panel.data.PanelData) -> linearmodels.panel.results.PanelEffectsResults
[ 0.020857589319348335, -0.04380318522453308, 0.0018817295785993338, 0.008705629967153072, 0.049079325050115585, -0.01659177429974079, -0.0716656893491745, -0.06766929477453232, 0.008834727108478546, 0.041288599371910095, -0.0025089727714657784, -0.015918225049972534, 0.03392445668578148, 0.03199361264705658, -0.03093838505446911, 0.0742700845003128, -0.03868420794606209, 0.0033228453248739243, 0.02828908897936344, -0.020464686676859856, -0.029366768896579742, -0.026897085830569267, -0.04207440838217735, 0.0036764589603990316, -0.0022072785068303347, -0.044993121176958084, -0.01656932383775711, 0.006926336325705051, -0.016647905111312866, -0.041108984500169754, -0.029703542590141296, 0.004521202761679888, -0.04252343997359276, -0.03747181594371796, -0.0012685186229646206, -0.02537037432193756, 0.03762897849082947, 0.01221370231360197, 0.02709915116429329, -0.011399829760193825, -0.02346198260784149, -0.0034014261327683926, 0.08087087422609329, -0.001491632079705596, -0.06398722529411316, -0.005438914056867361, -0.03471026197075844, 0.07548247277736664, 0.03008522093296051, -0.0062022702768445015, 0.03176909685134888, -0.04566667228937149, 0.009255696088075638, -0.014660933054983616, 0.06713045388460159, 0.025437727570533752, 0.022968046367168427, 0.054647333920001984, 0.0759764090180397, -0.07943396270275116, 0.06834284961223602, 0.03488987684249878, -0.013268929906189442, 0.0057700760662555695, 0.010933957062661648, -0.021497461944818497, 0.005267720203846693, 0.00451558968052268, 0.02332727238535881, -0.009137825109064579, -0.010086406953632832, -0.017669454216957092, 0.026919538155198097, 0.007807563990354538, 0.007891757413744926, -0.05895805358886719, -0.0038111689500510693, -0.05990102142095566, -0.007240659557282925, -0.010468085296452045, 0.008391306735575199, 0.025729600340127945, -0.033677488565444946, 0.0013078090269118547, 0.0025679082609713078, -0.022193463519215584, -0.017759261652827263, 0.0023700532037764788, 0.05734153464436531, 0.010569117963314056, 0.01135492604225874, 0.06771419942378998, 0.006438012700527906, 0.010103246197104454, 0.046879060566425323, 0.03098328784108162, 0.011427894234657288, -0.041108984500169754, 0.06264012306928635, -0.008048919029533863, -0.026380697265267372, 0.05716191977262497, 0.0025061662308871746, 0.07889512926340103, -0.023102756589651108, -0.00013541156658902764, -0.02902999334037304, 0.017276551574468613, 0.026672570034861565, -0.04243363440036774, -0.0012923735193908215, 0.024607017636299133, -0.017893971875309944, -0.01728777587413788, -0.04979777708649635, -0.0395822711288929, -0.06645690649747849, -0.004529621917754412, -0.048091452568769455, 0.037224847823381424, -0.025527535006403923, 0.024786630645394325, -0.07409047335386276, 0.017040807753801346, 0.06771419942378998, -0.005194752477109432, 0.012999509461224079, 0.02169952727854252, 0.020049329847097397, -0.04086201637983322, -0.043219439685344696, -0.03801065683364868, -0.0006156665622256696, -0.0039795562624931335, 0.020329976454377174, 0.012022863142192364, -0.00729117589071393, -0.02727876417338848, -0.018724681809544563, -0.034463293850421906, 0.04187234118580818, 0.09393773972988129, -0.013280156068503857, 0.020397331565618515, 0.003468781244009733, 0.012034088373184204, 0.0639423206448555, -0.03677581623196602, -0.022159786894917488, 0.04961816221475601, -0.03228548541665077, -0.00914905034005642, -0.04162537306547165, -0.020655525848269463, -0.026762375608086586, -0.04669944941997528, -0.0224292054772377, -0.04180498793721199, 0.014324157498776913, -0.006264012772589922, -0.07588660717010498, -0.06277483701705933, 0.03744936361908913, 0.0031011351384222507, -0.004344395827502012, 0.0005974245723336935, -0.04295002296566963, -0.0003187083057127893, 0.011798346415162086, 0.01960029825568199, 0.00022749844356440008, -0.02224959246814251, -0.015199772082269192, -0.016883647069334984, -0.07198001444339752, 0.08352016657590866, -0.009008727967739105, -0.051908232271671295, -0.037382010370492935, -0.038235172629356384, 0.018836941570043564, -0.01407718937844038, -0.03471026197075844, -0.01702958159148693, -0.03558587655425072, 0.013897576369345188, 0.019757458940148354, -0.006471690256148577, 0.007616724818944931, 0.0371350422501564, -0.034395940601825714, -0.009362340904772282, 0.039447564631700516, -0.0183430053293705, 0.004333170130848885, -0.008941372856497765, 0.05918256938457489, -0.020621847361326218, 0.05698230862617493, -0.023664047941565514, -0.016423387452960014, 0.0030225543305277824, 0.01733268052339554, -0.007010530214756727, -0.05590462684631348, 0.017759261652827263, -0.008363242261111736, 0.006589561700820923, -0.052806299179792404, -0.022025076672434807, -0.03376729413866997, 0.016423387452960014, -0.0061573670245707035, -0.001429889933206141, 0.06331367790699005, 0.01953294314444065, -0.004535234998911619, -0.0026549084577709436, 0.029725994914770126, -0.00914905034005642, -0.015233449637889862, -0.018488939851522446, -0.08145461231470108, 0.04660964012145996, 0.029501479119062424, -0.02275475487112999, 0.016210097819566727, 0.03920059651136398, 0.08437333256006241, -0.05729662999510765, -0.0014818094205111265, 0.05056113377213478, 0.0282217338681221, -0.04351131245493889, 0.044342026114463806, 0.024607017636299133, -0.022664949297904968, 0.04934874549508095, -0.028783025220036507, -0.005368752870708704, -0.050022292882204056, -0.057745665311813354, 0.029928060248494148, 0.009626148268580437, -0.024696823209524155, 0.034440841525793076, 0.0721147283911705, 0.09160276502370834, -0.023439530283212662, -0.0072687240317463875, 0.0484955795109272, -0.015065062791109085, -0.021935269236564636, 0.015031385235488415, -0.008767371997237206, -0.0504264235496521, 0.07525795698165894, 0.004187234211713076, 0.01951049081981182, -0.07256375998258591, -0.043174538761377335, -0.006331367418169975, -0.02613372914493084, 0.012494347989559174, -0.058733537793159485, -0.010793634690344334, 0.010108859278261662, -0.025886761024594307, 0.005486623849719763, 0.043219439685344696, -0.06838774681091309, 0.07215962558984756, -0.03006277047097683, -0.012797445058822632, -0.03509194031357765, 0.032532453536987305, 0.01305563934147358, -0.05832940712571144, 0.06820813566446304, 0.07462931424379349, 0.015805967152118683, -0.02330482006072998, -0.012876025401055813, 0.037359558045864105, -0.0002973090740852058, -0.03899852931499481, -0.03206096589565277, -0.03767388314008713, 0.04180498793721199, 0.004279847256839275, -0.029681092128157616, 0.020026879385113716, 0.061742059886455536, -0.021912818774580956, 0.05047132819890976, -0.006106851156800985, 0.007442724425345659, 0.000502005044836551, -0.008475501090288162, 0.03199361264705658, 0.021093333140015602, 0.03778614103794098, 0.01942068338394165, -0.007453950587660074, 0.02029629796743393, -0.02898509055376053, 0.08167912811040878, -0.06766929477453232, 0.01588454842567444, 0.01974623277783394, 0.027637990191578865, 0.05949689447879791, 0.0002627545618452132, 0.020307524129748344, -0.010788021609187126, -0.04308473318815231, 0.004535234998911619, -0.010131310671567917, 0.04092937335371971, 0.08459784835577011, -0.004835525993257761, -0.05657817795872688, 0.03769633546471596, -0.028940187767148018, 0.013762866146862507, 0.017983777448534966, 0.05312062427401543, 0.008385694585740566, 0.001770874485373497, -0.06726516783237457, -0.05527598038315773, -0.06017044186592102, -0.02130662277340889, 0.012876025401055813, 0.01569370925426483, -0.08657359331846237, 0.016378484666347504, -0.014256802387535572, 0.0907495990395546, 0.017658228054642677, 0.03798820450901985, 0.019128812476992607, -0.04445428401231766, 0.02810947597026825, -0.0018648908007889986, -0.06299935281276703, 0.07148607820272446, 0.009564406238496304, 0.0311179980635643, 0.040121112018823624, 0.009076083078980446, 0.04541970416903496, 0.03318354859948158, 0.04528499394655228, 0.008722469210624695, 0.04182744026184082, -0.001834019785746932, 0.02521321177482605, 0.010440020821988583, -0.03412652015686035, -0.010097633115947247, -0.014391512610018253, -0.0417376309633255, 0.04490331560373306, -0.011113571003079414, 0.004891654942184687, -0.01792764849960804, -0.04970797151327133, 0.040098659694194794, -0.04153556749224663, -0.04528499394655228, -0.04083956405520439, -0.030556706711649895, -0.0016558098141103983, -0.003987975884228945, 0.03203851729631424, -0.02245165780186653, -0.020026879385113716, 0.06281974166631699, -0.014649706892669201, 0.04575647786259651, -0.04541970416903496, -0.0815444216132164, -0.013268929906189442, 0.015918225049972534, 0.020352428779006004, 0.021093333140015602, -0.0562189519405365, 0.011888152919709682, -0.04494822025299072, 0.11854475736618042, -0.029501479119062424, 0.056802693754434586, -0.03293658047914505, -0.007380982395261526, 0.009379180148243904, 0.0037241687532514334, 0.05527598038315773, -0.05307571962475777, 0.021991398185491562, -0.01983604021370411, -0.005983366630971432, 0.04176008328795433, 0.003286361461505294, -0.05904785916209221, -0.06618748605251312, 0.014537448063492775, 0.04651983454823494, -0.032622259110212326, 0.07242904603481293, -0.019566619768738747, 0.011596281081438065, -0.05460243299603462, -0.0075213052332401276, -0.018140939995646477, -0.01843281090259552, 0.0036764589603990316, -0.018253197893500328, 0.08140971511602402, 0.012236153706908226, 0.03190380707383156, -0.01815216615796089, 0.04584628716111183, 0.06120321899652481, -0.004021653439849615, 0.02095862291753292, -0.08262210339307785, 0.023933466523885727, -0.010877828113734722, 0.0030842965934425592, -0.02631334215402603, -0.008705629967153072, -0.051818426698446274, -0.03412652015686035, 0.002239552792161703, -0.033565226942300797, -0.013998609036207199, 0.03886381909251213, -0.023866113275289536, 0.04063750058412552, 0.006078786216676235, 0.035338908433914185, 0.025639792904257774, 0.026627665385603905, -0.03697787970304489, 0.014672158285975456, 0.005402429960668087, -0.006404335610568523, -0.08841463178396225, -0.015985580161213875, 0.06470567733049393, 0.06510980427265167, 0.020172813907265663, 0.02045346051454544, -0.023955918848514557, -0.017501067370176315, -0.01797255128622055, -0.056757792830467224, -0.014997707679867744, -0.032330386340618134, -0.02190159261226654, -0.014492545276880264, -0.020262621343135834, -0.01454867422580719, 0.006741110235452652, -0.008144338615238667, 0.008739307522773743, -0.041153889149427414, 0.016243774443864822, 0.008913308382034302, -0.011764668859541416, -0.011192151345312595, 0.011585055850446224, -0.028693219646811485, -0.015300804749131203, 0.006724271457642317, -0.014840546064078808, 0.0419621467590332, 0.043174538761377335, 0.009558793157339096, 0.019892169162631035, -0.041221242398023605, -0.002879425184801221, 0.005085300654172897, 0.029725994914770126, -0.015210998244583607, 0.003370555117726326, -0.033430520445108414, 0.04090692102909088, 0.027929862961173058, -0.022575141862034798, -0.0012341395486146212, 0.011910604313015938, 0.01305563934147358, -0.05051622912287712, 0.00725749833509326, 0.011865701526403427, -0.05056113377213478, 0.048226162791252136, -0.045195188373327255, 0.040300726890563965, -0.01165241003036499, -0.051055070012807846, -0.008632662706077099, -0.007835628464818, -0.0347551666200161, -0.006045108661055565, -0.0011534539517015219, -0.018792036920785904, -0.012763767503201962, -0.012898477725684643, -0.02080146037042141, 0.04261324554681778, -0.026470504701137543, 0.010928344912827015, -0.0160417091101408, 0.006028270348906517, 0.09133334457874298, 0.024607017636299133, -0.021093333140015602, 0.0042714281007647514, -0.023955918848514557, 0.03181399777531624, -0.00290187681093812, 0.037875946611166, 0.0388413667678833, -0.024494757875800133, -0.02626843936741352, 0.040233369916677475, 0.02137397788465023, -0.03322845324873924, -0.09101901948451996, -0.015188546851277351, 0.057700760662555695, 0.014065963216125965, -0.03717994689941406, -0.0028738121036440134, -0.08998624235391617, -0.04759751632809639, -0.0008749130647629499, -0.012932155281305313, -0.015570225194096565, 0.0407722108066082, -0.0025258115492761135, 0.0014004221884533763, -0.008323952555656433, 0.0282217338681221, -0.005548365879803896, -0.0525817833840847, -0.007240659557282925, -0.00016145900008268654, -0.007689693011343479, 0.02629089169204235, 0.027772700414061546, 0.09339889883995056, -0.01168608758598566, 0.0178602933883667, -0.00362874916754663, -0.04764241725206375, 0.03302638977766037, -0.031432319432497025, -0.05805998668074608, 0.046115703880786896, -0.09618290513753891, -0.01613151654601097, 0.02422533929347992, 0.030421996489167213, 0.003690491197630763, -0.01852261833846569, -0.019229844212532043, 0.012168798595666885, 0.0542881079018116, -0.0038111689500510693, 0.043286796659231186, -0.041198793798685074, 0.010299698449671268, 0.06735497713088989, -0.04202950373291969, -0.0409967266023159, 0.012449444271624088, 0.02512340433895588, -0.04831596836447716, -0.018511392176151276, -0.041311051696538925, 0.028446249663829803, 0.05060603842139244, -0.010911505669355392, 0.06286463886499405, 0.03219567611813545, 0.01303318701684475, -0.001682471134699881, 0.039425112307071686, -0.05240216851234436, -0.03973943367600441, 0.00476817088201642, 0.05550049990415573, -0.018309326842427254, 0.007515692617744207, 0.04261324554681778, 0.03964962810277939, -0.017916422337293625, 0.005944076459854841, 0.04000885412096977, -0.0003367748577147722, -0.01953294314444065, -0.020543266087770462, 0.022878238931298256, 0.031634386628866196, 0.03767388314008713, -0.028580959886312485, -0.0017315840814262629, -0.021317848935723305, 0.004184427671134472, -0.03176909685134888, -0.008026467636227608, -0.014773190952837467, -0.019409459084272385, 0.032644711434841156, 0.05617404729127884, -0.009003114886581898, 0.009738406166434288, 0.028850380331277847, -0.0037690720055252314, 0.020969849079847336, -0.03679826855659485, -0.012774993665516376, 0.035496070981025696, -0.11324616521596909, -0.0005539244739338756, -0.045329898595809937, -0.000372908019926399, 0.04467879980802536, 0.002689989283680916, -0.031634386628866196, 0.03947001323103905, 0.045980993658304214, 0.047911837697029114, 0.015368159860372543, 0.0017947293817996979, -0.0007591467001475394, 0.03098328784108162, 0.025841858237981796, 0.01687242090702057, 0.042096856981515884, -0.03170173987746239, 0.040278274565935135, -0.016816291958093643, 0.01059718243777752, 0.03127516061067581, 0.0047288802452385426, 0.004484718665480614, -0.03967208042740822, -0.06281974166631699, -0.009120985865592957, 0.045060478150844574, 0.013931253924965858, 0.03421632573008537, -0.0048748161643743515, 0.0540635921061039, -0.014380286447703838, 0.029321866109967232, 0.002173601184040308, 0.03509194031357765, 0.038324978202581406, 0.08123009651899338, -0.0352041982114315, 0.009637374430894852, -0.019016554579138756, 0.03237529098987579, 0.021587269380688667, 0.006662529427558184, -0.06686104089021683, -0.059856120496988297, 0.019274748861789703, 0.0041703954339027405, -0.07588660717010498, -0.0024781017564237118, 0.03583284467458725, 0.01645706593990326, -0.02705424837768078, 0.05603933706879616, 0.05900295823812485, 0.014862997457385063, -0.06142773479223251, 0.0819934532046318, -0.030444448813796043, -0.015177320688962936, -0.032622259110212326, 0.0061573670245707035, -0.053883977234363556, -0.055725015699863434, 0.022092431783676147, -0.032532453536987305, -0.009985375218093395, 0.03390200436115265, -0.11252770572900772, -0.03127516061067581, -0.015536547638475895, 0.03673091158270836, 0.004495944362133741, 0.005786914844065905, -0.0003341438132338226, -0.0030421996489167213, 0.04863028973340988, -0.013751640915870667, 0.07925435155630112, -0.037247300148010254, -0.016165193170309067, 0.007055433467030525, -0.07853589951992035, -0.03102819062769413, 0.03590020164847374, 0.027884958311915398, -0.0005686584045179188, 0.0243600495159626, -0.006370658054947853, -0.025954116135835648, -0.018859392032027245, -0.03013012558221817, 0.0357205867767334, 0.03850459307432175, 0.04355621710419655, -0.020677976310253143, 0.020060556009411812, -0.020307524129748344, -0.018747134134173393, 0.013437317684292793, -0.0058598825708031654, 0.06811832636594772, -0.02330482006072998, 0.051818426698446274, -0.009440922178328037, -0.006325754802674055, -0.033587679266929626, 0.014492545276880264, -0.036528848111629486, -0.0168948732316494, -0.0061124637722969055, -0.047058675438165665, -0.015603901818394661, -0.031477224081754684, -0.019207393750548363, -0.06281974166631699, -0.06968994438648224, -0.03383464738726616, 0.04768732190132141, 0.011820797808468342, 0.009845051914453506, 0.045150283724069595, -0.032622259110212326, 0.05653327330946922, -0.0009520906023681164, 0.02730121649801731, 0.0369105264544487, 0.05630875751376152, -0.010080794803798199, 0.02132907509803772, 0.003241458209231496, -0.010838537476956844, -0.03385709971189499, -0.005009526386857033, -0.03471026197075844, 0.05648837238550186, 0.050022292882204056, 0.025437727570533752, 0.0015744224656373262, -0.008941372856497765, 0.007583047263324261 ]
43,038
linearmodels.panel.model
PooledOLS
Pooled coefficient estimator for panel data Parameters ---------- dependent : array_like Dependent (left-hand-side) variable (time by entity) exog : array_like Exogenous or right-hand-side variables (variable by time by entity). weights : array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual time the weight should be homoskedastic. check_rank : bool Flag indicating whether to perform a rank check on the exogenous variables to ensure that the model is identified. Skipping this check can reduce the time required to validate a model specification. Results may be numerically unstable if this check is skipped and the matrix is not full rank. Notes ----- The model is given by .. math:: y_{it}=\beta^{\prime}x_{it}+\epsilon_{it}
class PooledOLS(_PanelModelBase): r""" Pooled coefficient estimator for panel data Parameters ---------- dependent : array_like Dependent (left-hand-side) variable (time by entity) exog : array_like Exogenous or right-hand-side variables (variable by time by entity). weights : array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual time the weight should be homoskedastic. check_rank : bool Flag indicating whether to perform a rank check on the exogenous variables to ensure that the model is identified. Skipping this check can reduce the time required to validate a model specification. Results may be numerically unstable if this check is skipped and the matrix is not full rank. Notes ----- The model is given by .. math:: y_{it}=\beta^{\prime}x_{it}+\epsilon_{it} """ def __init__( self, dependent: PanelDataLike, exog: PanelDataLike, *, weights: PanelDataLike | None = None, check_rank: bool = True, ) -> None: super().__init__(dependent, exog, weights=weights, check_rank=check_rank) @classmethod def from_formula( cls, formula: str, data: PanelDataLike, *, weights: PanelDataLike | None = None, check_rank: bool = True, ) -> PooledOLS: """ Create a model from a formula Parameters ---------- formula : str Formula to transform into model. Conforms to formulaic formula rules. data : array_like Data structure that can be coerced into a PanelData. In most cases, this should be a multi-index DataFrame where the level 0 index contains the entities and the level 1 contains the time. weights: array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual times the weight should be homoskedastic. check_rank : bool Flag indicating whether to perform a rank check on the exogenous variables to ensure that the model is identified. Skipping this check can reduce the time required to validate a model specification. Results may be numerically unstable if this check is skipped and the matrix is not full rank. Returns ------- PooledOLS Model specified using the formula Notes ----- Unlike standard formula syntax, it is necessary to explicitly include a constant using the constant indicator (1) Examples -------- >>> from linearmodels import PooledOLS >>> from linearmodels.panel import generate_panel_data >>> panel_data = generate_panel_data() >>> mod = PooledOLS.from_formula("y ~ 1 + x1", panel_data.data) >>> res = mod.fit() """ parser = PanelFormulaParser(formula, data, context=capture_context(1)) dependent, exog = parser.data mod = cls(dependent, exog, weights=weights, check_rank=check_rank) mod.formula = formula return mod def fit( self, *, cov_type: str = "unadjusted", debiased: bool = True, **cov_config: bool | float | str | IntArray | DataFrame | PanelData, ) -> PanelResults: """ Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator. See Notes. debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- PanelResults Estimation results Examples -------- >>> from linearmodels import PooledOLS >>> mod = PooledOLS(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used. """ y = self.dependent.values2d x = self.exog.values2d w = self.weights.values2d root_w = cast(Float64Array, np.sqrt(w)) wx = root_w * x wy = root_w * y params = _lstsq(wx, wy, rcond=None)[0] nobs = y.shape[0] df_model = x.shape[1] df_resid = nobs - df_model cov_config = self._setup_clusters(cov_config) extra_df = 0 if "extra_df" in cov_config: cov_config = cov_config.copy() _extra_df = cov_config.pop("extra_df") assert isinstance(_extra_df, (str, int)) extra_df = int(_extra_df) cov = setup_covariance_estimator( self._cov_estimators, cov_type, wy, wx, params, self.dependent.entity_ids, self.dependent.time_ids, debiased=debiased, extra_df=extra_df, **cov_config, ) weps = wy - wx @ params index = self.dependent.index fitted = DataFrame(x @ params, index, ["fitted_values"]) effects = DataFrame( np.full_like(np.asarray(fitted), np.nan), index, ["estimated_effects"] ) eps = y - fitted.values idiosyncratic = DataFrame(eps, index, ["idiosyncratic"]) residual_ss = float(np.squeeze(weps.T @ weps)) e = y if self._constant: e = e - (w * y).sum() / w.sum() total_ss = float(np.squeeze(w.T @ (e**2))) r2 = 1 - residual_ss / total_ss res = self._postestimation( params, cov, debiased, df_resid, weps, wy, wx, root_w ) res.update( dict( df_resid=df_resid, df_model=df_model, nobs=y.shape[0], residual_ss=residual_ss, total_ss=total_ss, r2=r2, wresids=weps, resids=eps, index=self.dependent.index, fitted=fitted, effects=effects, idiosyncratic=idiosyncratic, ) ) return PanelResults(res) def predict( self, params: ArrayLike, *, exog: PanelDataLike | None = None, data: PanelDataLike | None = None, eval_env: int = 1, context: Mapping[str, Any] | None = None, ) -> DataFrame: """ Predict values for additional data Parameters ---------- params : array_like Model parameters (nvar by 1) exog : array_like Exogenous regressors (nobs by nvar) data : DataFrame Values to use when making predictions from a model constructed from a formula context : int D
(dependent: 'PanelDataLike', exog: 'PanelDataLike', *, weights: 'PanelDataLike | None' = None, check_rank: 'bool' = True) -> 'None'
[ 0.04689444229006767, -0.08311697095632553, -0.020856736227869987, 0.027078330516815186, 0.02550632692873478, -0.02898244932293892, -0.06885822117328644, -0.053049616515636444, 0.03533688932657242, 0.014247674494981766, -0.011330610141158104, -0.022284824401140213, 0.03531474992632866, 0.06022327020764351, -0.04769151657819748, 0.06354440748691559, 0.005554600153118372, -0.005067500285804272, -0.0078102052211761475, -0.021952711045742035, -0.024864239618182182, -0.03422984480857849, -0.00731757003813982, 0.021609526127576828, -0.001937329419888556, 0.0002139711141353473, -0.0021698090713471174, 0.006033397279679775, -0.01012392994016409, -0.03821520879864693, -0.04977276176214218, -0.003894032211974263, -0.05132262408733368, -0.023491503670811653, 0.03305637463927269, -0.01720348559319973, 0.041115667670965195, 0.023314375430345535, -0.004176328890025616, -0.01486761961132288, 0.0023358657490462065, -0.045654553920030594, 0.06221595034003258, -0.01929580233991146, -0.06234879791736603, 0.01072173472493887, -0.03923368826508522, 0.07514624297618866, 0.022827276960015297, -0.021532032638788223, -0.009498449973762035, 0.005216951481997967, 0.011219905689358711, -0.005745565518736839, 0.018941547721624374, 0.06412006914615631, 0.012122146785259247, 0.06407579034566879, 0.06690982729196548, -0.08869647979736328, 0.020192507654428482, -0.006847075652331114, -0.0040296451188623905, -0.0026748983655124903, -0.010992961004376411, -0.017602022737264633, -0.019085463136434555, -0.0079153748229146, 0.02351364493370056, -0.02612627111375332, 0.002839571563526988, -0.02384575828909874, 0.028761040419340134, 0.03079800307750702, 0.006276947446167469, -0.019517211243510246, 0.029248138889670372, -0.05730067193508148, 0.032989952713251114, -0.028583912178874016, -0.019395435228943825, -0.0011679328745231032, -0.027941826730966568, -0.0041735609993338585, -0.0073563167825341225, -0.07944157719612122, 0.02127741277217865, 0.03580185025930405, 0.0500827357172966, -0.003744581015780568, -0.005388543475419283, 0.05809774249792099, 0.024687113240361214, 0.018343742936849594, 0.04151420295238495, -0.014779056422412395, 0.0034982634242624044, -0.008463362231850624, 0.026369821280241013, -0.008596207946538925, -0.02428857609629631, 0.03783881291747093, -0.04239983856678009, 0.08714661747217178, -0.038104504346847534, -0.00683047017082572, -0.0250413678586483, 0.0359346941113472, -0.020004309713840485, -0.0625259280204773, -0.058761969208717346, 0.0570792630314827, -0.03967650607228279, -0.020325353369116783, -0.022450881078839302, 0.003108029952272773, -0.08178851753473282, 0.034030575305223465, -0.05282820761203766, 0.02865033596754074, -0.04924137890338898, 0.04809005185961723, -0.08905073255300522, 0.019107604399323463, 0.02898244932293892, 0.003420770401135087, 0.03544759377837181, -0.023026544600725174, 0.009166335687041283, -0.06296874582767487, -0.027875402942299843, -0.027366163209080696, -0.001599680632352829, 0.012852797284722328, 0.0025351340882480145, 0.007018668111413717, -0.00047187809832394123, -0.01962791569530964, -0.02113349735736847, 0.013483813032507896, 0.07979582995176315, 0.060001861304044724, -0.017856642603874207, 0.029380984604358673, 0.03496049344539642, 0.009039025753736496, 0.05265108123421669, -0.05402381718158722, -0.009404351003468037, 0.03369846194982529, -0.01433623768389225, -0.05920478701591492, -0.010505860671401024, -0.024045025929808617, 0.009205082431435585, -0.011801104061305523, 0.0034899606835097075, -0.038569461554288864, 0.005156063940376043, -0.02230696566402912, -0.07178082317113876, -0.05362527817487717, -0.0011817709309980273, 0.013572377152740955, -0.03217073902487755, 0.01948399841785431, -0.013350967317819595, -0.07957442104816437, 0.01026231050491333, 0.018686925992369652, 0.019528280943632126, -0.042178429663181305, -0.008441220968961716, -0.013184910640120506, -0.0679725855588913, 0.06491713970899582, 0.02110028639435768, -0.024952802807092667, -0.02610412985086441, -0.021000651642680168, 0.023801475763320923, -0.014247674494981766, -0.06907963007688522, 0.010289987549185753, -0.04764723405241966, 0.0288053210824728, 0.023447221145033836, -0.019860394299030304, -0.0032242697197943926, 0.03500477597117424, -0.0757661908864975, -0.012354626320302486, 0.036908894777297974, -0.003365417942404747, -0.006171778310090303, -0.0011907657608389854, 0.04122637212276459, 0.014136970043182373, 0.00958701316267252, 0.028561770915985107, -0.01722562685608864, 0.007162583991885185, 0.04817861691117287, -0.019528280943632126, -0.05517514422535896, -0.004267659969627857, -0.02506350725889206, -0.001376887783408165, -0.019572563469409943, -0.028849603608250618, 0.006022327113896608, 0.022074485197663307, 0.009243829175829887, 0.049285661429166794, 0.0791316032409668, 0.009548266418278217, 0.0041652582585811615, -0.03228144347667694, 0.019052252173423767, -0.008070360869169235, -0.0025558911729604006, -0.02869461663067341, -0.04569883272051811, 0.04569883272051811, 0.025129931047558784, -0.04056214541196823, 0.030510172247886658, 0.036731768399477005, 0.08599528670310974, -0.04901996999979019, -0.004129279404878616, 0.0025960213970392942, 0.029956648126244545, -0.03363204002380371, 0.05096837133169174, -0.0006434701499529183, -0.06398722529411316, 0.013948772102594376, -0.049861326813697815, 0.013583446852862835, -0.04662875086069107, -0.04124851152300835, 0.003672623075544834, 0.010599959641695023, -0.013882349245250225, 0.017613092437386513, 0.06336727738380432, 0.08975924551486969, -0.006005721166729927, -0.03451767563819885, 0.059071943163871765, -0.0012592641869559884, -0.025572748854756355, 0.02114456705749035, -0.022960122674703598, -0.0827627182006836, 0.041558485478162766, -0.004043483175337315, 0.03580185025930405, -0.05087980628013611, -0.049861326813697815, -0.015653621405363083, -0.06491713970899582, 0.03912298381328583, -0.015055817551910877, 0.0029032265301793814, -0.03814878314733505, -0.00521141616627574, 0.026369821280241013, 0.036886751651763916, -0.012919220142066479, 0.08590672165155411, -0.0371081605553627, -0.01779021881520748, -0.006371046416461468, 0.02353578619658947, 0.0009402966825291514, -0.03693103417754173, 0.047912925481796265, 0.02913743443787098, 0.02128848247230053, -0.025129931047558784, -0.03790523484349251, 0.002782835392281413, 0.0005113165825605392, -0.022284824401140213, -0.034761227667331696, -0.04857715219259262, 0.04450322687625885, 0.0092106182128191, -0.05473232641816139, 0.005684677977114916, 0.05840771645307541, 0.012166429311037064, 0.018376953899860382, 0.005751100834459066, 0.007610937114804983, 0.011734681203961372, -0.0017422126838937402, -0.02307082712650299, 0.008579601533710957, 0.020480340346693993, 0.04742582514882088, 0.003559150965884328, -0.035204045474529266, -0.07288786768913269, 0.053802408277988434, -0.04089425876736641, 0.004740921780467033, 0.009670041501522064, 0.034207701683044434, 0.056193623691797256, 0.01002983096987009, 0.032392147928476334, 0.01838802359998226, -0.06341156363487244, 0.003913405351340771, -0.007334175985306501, 0.05991329625248909, 0.07133800536394119, -0.010660847648978233, -0.05601649731397629, 0.01480119675397873, -0.02262800745666027, 0.027565430849790573, 0.005950368940830231, 0.06664413213729858, 0.000509240897372365, 0.02353578619658947, -0.0021462843287736177, -0.04778008162975311, -0.03473908454179764, 0.02729973942041397, 0.03378702700138092, -0.0018709067953750491, -0.04738154262304306, 0.019495069980621338, -0.014657281339168549, 0.07930873334407806, -0.010865651071071625, 0.03943295776844025, -0.01612965203821659, -0.05978045240044594, 0.016993146389722824, -0.002398137003183365, -0.0661570355296135, 0.062083106487989426, 0.014823338016867638, 0.008828687481582165, 0.03110797517001629, 0.01735847257077694, 0.04403826594352722, 0.0343848317861557, 0.037373851984739304, -0.004962331149727106, 0.0332113616168499, -0.017380613833665848, 0.05690213292837143, 0.002310957293957472, -0.05433378741145134, -0.012620317749679089, -0.03626680746674538, -0.02971309795975685, 0.034938354045152664, -0.007716106716543436, -0.0031578470952808857, -0.00964790116995573, -0.014845479279756546, 0.04893140867352486, -0.035026915371418, -0.040517862886190414, -0.06921248137950897, -0.020170368254184723, 0.006836005486547947, -0.008889574557542801, 0.03637751191854477, -0.02729973942041397, -0.012044654227793217, 0.03194933012127876, -0.04177989438176155, 0.04755866900086403, -0.06177313253283501, -0.025683453306555748, 0.010544607415795326, 0.0024936196859925985, 0.018078051507472992, 0.026436245068907738, -0.022561585530638695, 0.01688244193792343, -0.056503597646951675, 0.0437282919883728, -0.0480014905333519, 0.04755866900086403, 0.02156524546444416, -0.002294351579621434, -0.008258558809757233, 0.03290139138698578, 0.03020019829273224, -0.06806115061044693, -0.006005721166729927, -0.01853194087743759, -0.027056189253926277, 0.05738923326134682, 0.02641410380601883, -0.04857715219259262, -0.05021557956933975, 0.03020019829273224, 0.052429672330617905, -0.026901204138994217, 0.06040039658546448, -0.02201913297176361, 0.03788309544324875, -0.014446942135691643, -0.03994219750165939, -0.019284730777144432, 0.02234017662703991, -0.02929242141544819, 0.008967068046331406, 0.09122054278850555, -0.01132507435977459, 0.0736849457025528, -0.026148412376642227, 0.031152257695794106, 0.03383130952715874, -0.02745472639799118, 0.020026450976729393, -0.037351712584495544, -0.003011163556948304, -0.02428857609629631, 0.004541653674095869, -0.03274640440940857, -0.03274640440940857, -0.06496142596006393, -0.02535133995115757, 0.00936006847769022, -0.0395658016204834, -0.019550422206521034, 0.047735799103975296, -0.056813571602106094, 0.032989952713251114, 0.028296081349253654, 0.03746241703629494, 0.034783367067575455, 0.01765737496316433, -0.01463514007627964, 0.0073784575797617435, 0.012409979477524757, -0.021343834698200226, -0.1074276864528656, -0.014502295292913914, 0.11061597615480423, 0.05353671684861183, 0.046983007341623306, 0.043219052255153656, -0.06828255951404572, -0.018620504066348076, 0.011790033429861069, -0.0724007710814476, -0.013240262866020203, -0.0047381543554365635, -0.022594796493649483, -0.009913591668009758, 0.011314003728330135, 0.002358006779104471, -0.028185376897454262, 0.021377047523856163, 0.01139149721711874, -0.03925583139061928, 0.003005628241226077, 0.01599680632352829, 0.006669948808848858, 0.0048654647544026375, 0.003108029952272773, -0.05752208083868027, -0.04461393132805824, 0.02371291257441044, -0.012232852168381214, 0.033255644142627716, 0.0480014905333519, -0.020148226991295815, 0.0014239371521398425, -0.038392335176467896, 0.024997085332870483, 0.006658878177404404, -0.00539131136611104, -0.0029225999023765326, 0.027189034968614578, -0.018631573766469955, 0.00278837070800364, 0.007860022597014904, -0.020148226991295815, 0.04946278780698776, 0.035403311252593994, 0.039145126938819885, -0.07514624297618866, 0.03261355683207512, 0.011369355954229832, -0.039322253316640854, 0.06531567871570587, -0.07682894915342331, 0.03002307191491127, 0.009459703229367733, -0.019793972373008728, -0.05251823365688324, 0.02459854818880558, -0.06248164176940918, -0.012166429311037064, 0.024642830714583397, -0.0437282919883728, -0.006420863326638937, -0.014170181006193161, -0.039742931723594666, 0.01961684413254261, -0.0035121014807373285, 0.03276854380965233, 0.023292236030101776, 0.029646676033735275, 0.08010580390691757, -0.010810298845171928, -0.019384365528821945, 0.07501339912414551, -0.004419878590852022, 0.04379471763968468, -0.003979828208684921, 0.007788064423948526, 0.03697531670331955, -0.05025986209511757, -0.027277598157525063, 0.035691145807504654, 0.04751439020037651, 0.004336850252002478, -0.06956673413515091, -0.029801663011312485, 0.0703195258975029, 0.005598882213234901, 0.006880287081003189, -0.037019599229097366, -0.05685785040259361, -0.007411669008433819, 0.01169039960950613, -0.05433378741145134, -0.004417111165821552, 0.04680588096380234, -0.01062763575464487, -0.00030270771821960807, -0.0009665890247561038, 0.03228144347667694, 0.015310438349843025, -0.04937422648072243, -0.013716292567551136, 0.011956090107560158, -0.00815338920801878, 0.03755098208785057, 0.010151606053113937, 0.07222364097833633, -0.018587293103337288, 0.002977952128276229, -0.012409979477524757, -0.04627449810504913, 0.020137155428528786, -0.02415573038160801, -0.042333416640758514, 0.06930103898048401, -0.05641503259539604, 0.02760971337556839, 0.014358378946781158, 0.008706912398338318, 0.03150651231408119, -0.022760853171348572, -0.03586827218532562, 0.0161517933011055, 0.05247395113110542, -0.002781451679766178, 0.021985922008752823, -0.011524342931807041, -0.00243134843185544, 0.04614165425300598, -0.023890040814876556, -0.05406809598207474, 0.009243829175829887, 0.0054715718142688274, -0.03832591325044632, -0.01948399841785431, -0.051499754190444946, -0.010240170173346996, 0.03608968108892441, -0.021952711045742035, 0.05433378741145134, 0.01185645628720522, 0.018299460411071777, -0.004580400418490171, 0.0697881430387497, -0.03487193211913109, -0.014136970043182373, 0.009326857514679432, 0.04915281757712364, -0.07173654437065125, 0.0024285807739943266, 0.06611274927854538, 0.029159575700759888, -0.056813571602106094, 0.02579415775835514, 0.005236324854195118, 0.010334269143640995, 0.005399614106863737, -0.027078330516815186, -0.02444356307387352, 0.012177499942481518, 0.026303399354219437, -0.028406785801053047, -0.016948865726590157, -0.004201237112283707, -0.005632093641906977, -0.03730743005871773, -0.016782809048891068, -0.02608199045062065, -0.05991329625248909, 0.022760853171348572, 0.0648728609085083, -0.025772016495466232, 0.02113349735736847, 0.01904118061065674, -0.011767893098294735, 0.04286479949951172, -0.046407341957092285, -0.01470156293362379, 0.0516325980424881, -0.08661523461341858, -0.00044039651402272284, -0.038857292383909225, -0.008673700504004955, 0.05690213292837143, 0.030997270718216896, -0.007118301931768656, 0.0480014905333519, 0.04600880667567253, 0.04946278780698776, 0.00025738804833963513, 0.029757380485534668, -0.008324981667101383, 0.007837881334125996, -0.018343742936849594, 0.022871557623147964, 0.013572377152740955, 0.00069709267700091, 0.03637751191854477, -0.01904118061065674, 0.0037113698199391365, 0.04680588096380234, -0.0020065198186784983, -0.006348905619233847, -0.04386113956570625, -0.03181648626923561, -0.03504905849695206, 0.059691887348890305, 0.0006503891781903803, -0.0006656110635958612, 0.005789847578853369, 0.07851166278123856, -0.003265783889219165, 0.00365878501906991, 0.000896706769708544, 0.061330314725637436, 0.014513364993035793, 0.055750805884599686, -0.0006953629199415445, 0.005133923143148422, 0.004231681115925312, 0.01689351350069046, 0.057876333594322205, -0.01645069569349289, -0.06465145200490952, -0.032812826335430145, 0.01289707887917757, 0.01630677841603756, -0.056193623691797256, -0.0018626039382070303, 0.004984471946954727, -0.016627822071313858, 0.011778962798416615, 0.0666884183883667, 0.037639543414115906, -0.015376861207187176, -0.03551401570439339, 0.06212738901376724, -0.02170916087925434, 0.001369968638755381, -0.02581629902124405, 0.004267659969627857, -0.05902766063809395, -0.032392147928476334, 0.02896030806005001, 0.0056210230104625225, -0.009033490903675556, -0.018963687121868134, -0.12336914241313934, -0.03595683351159096, -0.04328547418117523, 0.01674959622323513, -0.007428274489939213, 0.0031024948693811893, -0.0010523850796744227, -0.005895016714930534, 0.03571328520774841, 0.0022459183819592, 0.07842309772968292, -0.06141887977719307, -0.00034353003138676286, 0.05353671684861183, -0.09803993999958038, -0.02791968546807766, 0.05260679870843887, 0.05685785040259361, -0.028340362012386322, 0.04906425252556801, 0.016229284927248955, -0.01268674060702324, 0.00958147831261158, -0.05375812575221062, 0.03093084879219532, 0.04093853756785393, 0.028606053441762924, 0.04468035325407982, -0.00002222739567514509, -0.015775397419929504, -0.009741999208927155, 0.018487658351659775, -0.03188290819525719, 0.0594261959195137, 0.015487565658986568, 0.035026915371418, 0.01917402632534504, -0.013871278613805771, -0.004696640186011791, 0.017137063667178154, -0.052296824753284454, 0.014092688448727131, -0.007998403161764145, -0.05614934489130974, 0.010821368545293808, -0.018686925992369652, -0.052119698375463486, -0.03378702700138092, -0.06907963007688522, 0.008723517879843712, 0.04213414713740349, 0.03020019829273224, 0.012199640274047852, 0.0500827357172966, -0.038702309131622314, 0.05654788017272949, -0.013450602069497108, 0.022063415497541428, 0.02849534898996353, 0.024842098355293274, -0.028628194704651833, 0.0197829008102417, 0.001985762733966112, -0.04525601491332054, -0.04394970461726189, -0.029757380485534668, -0.008419080637395382, 0.048355743288993835, 0.04454750567674637, 0.028738899156451225, 0.00038054687320254743, 0.017701655626296997, 0.01617393270134926 ]
43,039
linearmodels.panel.model
__init__
null
def __init__( self, dependent: PanelDataLike, exog: PanelDataLike, *, weights: PanelDataLike | None = None, check_rank: bool = True, ) -> None: super().__init__(dependent, exog, weights=weights, check_rank=check_rank)
(self, dependent: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series], exog: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series], *, weights: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType] = None, check_rank: bool = True) -> NoneType
[ 0.004417177755385637, -0.024288063868880272, -0.02596428245306015, 0.050765473395586014, -0.013982740230858326, -0.006311475764960051, -0.03227575868368149, 0.004034469835460186, 0.03145475313067436, 0.009706673212349415, 0.010698720812797546, 0.052168022841215134, 0.03697943314909935, 0.01329001784324646, -0.03472166880965233, 0.01782264932990074, 0.06701453030109406, 0.060549113899469376, -0.0027730297297239304, 0.03988715633749962, -0.024270959198474884, -0.01643720269203186, -0.02457883581519127, 0.0683828741312027, -0.023210493847727776, 0.09462082386016846, -0.04190546274185181, 0.01464980747550726, -0.010467813350260258, -0.025844551622867584, -0.05945444107055664, -0.01741214655339718, -0.03855302557349205, 0.05962548404932022, 0.034396685659885406, 0.006585143972188234, -0.021807944402098656, 0.06044648960232735, -0.10330978780984879, 0.05699142813682556, 0.07450620085000992, -0.04546314850449562, 0.08552134782075882, 0.0004302792949602008, -0.030274556949734688, 0.0344822071492672, 0.03034297376871109, 0.008783042430877686, -0.010313875041902065, -0.03667155280709267, 0.012349282391369343, 0.019721223041415215, 0.06321737915277481, 0.009210648946464062, -0.03499533608555794, 0.07108534872531891, 0.05199697986245155, 0.055315207690000534, 0.05292060971260071, -0.02936803176999092, -0.027383936569094658, -0.0020717547740787268, 0.002174380235373974, -0.0386214405298233, -0.021636901423335075, -0.005225354339927435, -0.06869074702262878, -0.023740727454423904, -0.013597894459962845, 0.013101871125400066, 0.02753787487745285, 0.013734729029238224, -0.019618596881628036, 0.039750322699546814, -0.004759263247251511, -0.0016270437045022845, -0.0005762000801041722, -0.015487916767597198, 0.025416944175958633, -0.03591896593570709, 0.02676818147301674, -0.0011940918629989028, -0.049089252948760986, 0.04956817254424095, -0.004455662332475185, -0.0785428062081337, 0.006606524344533682, 0.007004198618233204, 0.04854191839694977, -0.010878315195441246, -0.0975627526640892, 0.01748056337237358, 0.01589841954410076, 0.001775637036189437, 0.06407259404659271, 0.000618426245637238, -0.010613199323415756, -0.0456341914832592, -0.024510418996214867, 0.013084766454994678, -0.02981274202466011, -0.00612332858145237, -0.0006392720970325172, 0.01642009988427162, -0.0503549687564373, -0.05972811207175255, -0.028393087908625603, -0.017198342829942703, -0.06314896792173386, -0.06044648960232735, -0.057128261774778366, 0.06263583898544312, -0.03749255836009979, 0.021380336955189705, -0.0072351060807704926, 0.0046694655902683735, -0.018677862361073494, -0.010921075940132141, -0.00922775361686945, 0.02736683189868927, 0.00439579738304019, 0.05709405243396759, -0.05685459449887276, 0.04450530931353569, 0.025143276900053024, 0.009877716191112995, 0.019105469807982445, 0.002390321809798479, 0.020679062232375145, -0.07751654833555222, 0.04826825112104416, -0.06321737915277481, -0.07758496701717377, 0.005845384206622839, 0.010604646988213062, 0.011553933843970299, 0.07997956871986389, 0.025245903059840202, -0.02534852735698223, 0.013178840279579163, 0.0502181351184845, -0.004626704845577478, 0.022697366774082184, 0.023826247081160545, 0.010553334839642048, 0.04180283471941948, -0.021893465891480446, -0.04002398997545242, -0.004737882874906063, 0.01105791050940752, -0.00882580317556858, -0.0033203663770109415, -0.02666555717587471, -0.047344617545604706, -0.009852059185504913, 0.007932105101644993, -0.006657836958765984, -0.03513216972351074, 0.05815451592206955, 0.009509974159300327, -0.047960370779037476, -0.019738327711820602, 0.022013194859027863, 0.023210493847727776, -0.03780043497681618, 0.03338753432035446, -0.024715669453144073, -0.0927051454782486, -0.00917644053697586, 0.030736373737454414, 0.043855346739292145, -0.08771069347858429, 0.018866010010242462, -0.007525878958404064, -0.0606517419219017, 0.024938024580478668, 0.019037052989006042, 0.029008841142058372, 0.014803745783865452, 0.014615598134696484, 0.03367830812931061, -0.007089719641953707, -0.03988715633749962, -0.021465858444571495, 0.0200290996581316, -0.01477808877825737, 0.01994357816874981, 0.007474565878510475, 0.03034297376871109, 0.03164289891719818, 0.00045753922313451767, -0.0015586265362799168, -0.00044364199857227504, -0.027572082355618477, 0.028170732781291008, -0.004269653465598822, 0.03749255836009979, -0.021807944402098656, -0.030838998034596443, 0.02526300586760044, 0.035542674362659454, -0.009852059185504913, 0.03855302557349205, -0.023364432156085968, -0.0256050918251276, 0.076969213783741, -0.010151384398341179, 0.02362099662423134, -0.01219534408301115, -0.030308766290545464, 0.05326269567012787, -0.009783642366528511, 0.001305269543081522, 0.006700597703456879, 0.023723622784018517, -0.03479008376598358, -0.05859922990202904, -0.021380336955189705, 0.06886179000139236, 0.010681616142392159, 0.06591985374689102, -0.015941180288791656, -0.03374672308564186, 0.025844551622867584, 0.039134569466114044, -0.01464980747550726, 0.06386734545230865, -0.044984228909015656, -0.020490914583206177, 0.01836998574435711, -0.022697366774082184, -0.003951086197048426, -0.008834355510771275, -0.025468258187174797, 0.01433337852358818, 0.0243222713470459, -0.05647829920053482, -0.016856258735060692, -0.06338842213153839, 0.012169688008725643, -0.016822049394249916, -0.001334133092314005, 0.012879515066742897, -0.004973066505044699, -0.002871379256248474, -0.035816341638565063, 0.031095562502741814, 0.0557941272854805, -0.038245148956775665, -0.02291972190141678, -0.007991970516741276, -0.028102315962314606, -0.04789195582270622, -0.002787996083498001, -0.012135479599237442, -0.004575392231345177, -0.005524679087102413, -0.06927229464054108, -0.003583344630897045, -0.0927051454782486, -0.026562931016087532, -0.018660757690668106, -0.05640988051891327, 0.042110711336135864, -0.01713847927749157, 0.013922875747084618, -0.023056555539369583, -0.018301568925380707, 0.008517926558852196, 0.0003672073071356863, -0.0005267580854706466, 0.05986494570970535, 0.03263494744896889, 0.005101348273456097, -0.010476365685462952, -0.022697366774082184, -0.0009444764000363648, -0.01811342127621174, -0.020251454785466194, 0.03316517919301987, 0.03667155280709267, -0.03670576214790344, -0.0341230183839798, 0.02781154215335846, -0.026870807632803917, -0.04111866652965546, -0.008586343377828598, -0.040263451635837555, -0.03338753432035446, -0.03595317527651787, -0.0243906881660223, 0.07491670548915863, 0.05025234445929527, 0.06441468000411987, -0.004981618374586105, -0.032566528767347336, 0.03145475313067436, 0.03176262974739075, 0.011887467466294765, 0.04029766097664833, 0.031078457832336426, -0.05220223218202591, 0.0155221251770854, -0.005011551082134247, -0.04159758239984512, -0.05969390273094177, 0.06496201455593109, -0.018575236201286316, 0.01907126046717167, -0.003181394189596176, 0.05432315915822983, 0.08292149752378464, -0.005956561770290136, 0.07997956871986389, 0.027418144047260284, -0.06496201455593109, 0.011588143184781075, -0.041837044060230255, 0.01879759319126606, 0.10597805678844452, -0.0043551744893193245, -0.04337642714381218, -0.04180283471941948, -0.03157448396086693, -0.07984273135662079, 0.014530077576637268, 0.0470709502696991, -0.013281465508043766, 0.03277178108692169, 0.04659203067421913, -0.06633035838603973, -0.01589841954410076, 0.0612332858145237, -0.01818183809518814, -0.05079968273639679, 0.002905587898567319, 0.01154538244009018, 0.03017193265259266, 0.06328579783439636, 0.0009129404206760228, 0.015761584043502808, -0.05042338743805885, -0.04399218037724495, 0.04679728299379349, 0.022355280816555023, -0.04884979501366615, 0.018233152106404305, -0.03095872886478901, 0.05558887869119644, 0.06598827242851257, -0.008718901313841343, 0.011220401152968407, -0.03157448396086693, 0.004750710912048817, 0.04601048678159714, 0.02368941344320774, -0.032652050256729126, 0.03331911936402321, -0.01592407561838627, -0.02220134250819683, 0.025639301165938377, -0.02132902480661869, -0.019515972584486008, 0.040263451635837555, 0.003946810495108366, -0.03415722772479057, 0.05432315915822983, 0.0039019116666167974, 0.03295992687344551, 0.021038250997662544, -0.015718823298811913, -0.06677506864070892, -0.03145475313067436, 0.020661957561969757, -0.005109900608658791, 0.049089252948760986, -0.025143276900053024, -0.0039211539551615715, 0.054083701223134995, -0.07970589399337769, 0.018677862361073494, -0.026990538462996483, 0.006414100993424654, 0.008227153681218624, -0.07190635055303574, -0.0019039190374314785, -0.002856413135305047, 0.03578213229775429, 0.03299413621425629, -0.008458061143755913, 0.040776580572128296, -0.03000088967382908, 0.03567950800061226, -0.017454907298088074, -0.04488160461187363, -0.008030454628169537, 0.045771025121212006, -0.00259984889999032, -0.05938602611422539, -0.02134612947702408, -0.023056555539369583, -0.07306943833827972, -0.0032177406828850508, 0.038176730275154114, -0.0071923453360795975, -0.009125128388404846, -0.00852647889405489, 0.07471144944429398, 0.018147630617022514, 0.017942378297448158, 0.004034469835460186, 0.03595317527651787, -0.00028008242952637374, 0.002420254284515977, -0.008287019096314907, -0.011784842237830162, 0.01811342127621174, -0.01167366374284029, 0.05052601173520088, -0.03260073810815811, 0.053467947989702225, 0.027315519750118256, 0.05411791056394577, 0.04050290957093239, 0.038074105978012085, 0.020268559455871582, -0.029419343918561935, -0.0015778689412400126, 0.013760385103523731, 0.010544782504439354, -0.06862232834100723, -0.0013223738642409444, -0.026819495484232903, -0.03316517919301987, 0.06783553212881088, -0.0005751310964114964, -0.028752276673913002, 0.02151717059314251, -0.026357680559158325, 0.042623840272426605, 0.023928873240947723, -0.007329179439693689, 0.04180283471941948, -0.03275467827916145, -0.052681151777505875, 0.00448131887242198, 0.005195422098040581, 0.026545826345682144, -0.06472256034612656, -0.046113111078739166, 0.06633035838603973, 0.03041139245033264, 0.04002398997545242, -0.0077696144580841064, -0.06273846328258514, -0.04580523446202278, -0.05261273309588432, -0.042555421590805054, 0.03855302557349205, -0.03184815123677254, -0.0033545750193297863, -0.019601494073867798, -0.05781243368983269, -0.05404949188232422, -0.046386778354644775, 0.0440605990588665, 0.043410636484622955, -0.05432315915822983, -0.0037608013954013586, -0.0038206663448363543, 0.06243058666586876, 0.030206140130758286, 0.022799991071224213, -0.060993827879428864, -0.006764738820493221, 0.020148830488324165, 0.006585143972188234, -0.021654006093740463, 0.029778534546494484, -0.019994892179965973, -0.005144109018146992, 0.020251454785466194, 0.05090230703353882, 0.002561364322900772, -0.02781154215335846, -0.020969834178686142, -0.06225954368710518, -0.022680262103676796, -0.0032626395113766193, 0.03311386704444885, -0.014803745783865452, 0.02929961495101452, 0.013486716896295547, 0.03494402393698692, 0.00992902833968401, 0.0344822071492672, 0.036603137850761414, -0.00631575146690011, 0.06219112500548363, -0.023655205965042114, 0.022081611678004265, -0.008021902292966843, -0.01433337852358818, -0.03157448396086693, -0.01572737656533718, -0.058975521475076675, -0.00909091904759407, 0.018677862361073494, -0.04703674092888832, 0.018643654882907867, 0.014701119624078274, 0.017942378297448158, -0.0016537690535187721, 0.030890312045812607, 0.05353636294603348, -0.01687336154282093, -0.056786175817251205, 0.08736860752105713, 0.006875916384160519, 0.00966391246765852, 0.06951175630092621, 0.019173886626958847, 0.055999379605054855, 0.01634312979876995, 0.02464725263416767, -0.012973588891327381, -0.025861656293272972, -0.02692212164402008, 0.040708161890506744, 0.053296905010938644, 0.00432524224743247, -0.06184903904795647, -0.03490981459617615, 0.08586343377828598, -0.005841108039021492, 0.021448753774166107, 0.0002974539529532194, 0.03200208768248558, -0.00007008741522440687, 0.016916122287511826, 0.0007680886192247272, -0.00029638494015671313, 0.04033186659216881, -0.08278466761112213, -0.007213725708425045, -0.0012838892871513963, -0.017181238159537315, 0.06431205570697784, -0.022628948092460632, -0.019550180062651634, -0.054870497435331345, -0.06102803349494934, -0.02964169904589653, 0.026374783366918564, 0.04286330193281174, -0.015778688713908195, -0.029949575662612915, 0.0036838320083916187, 0.019293615594506264, 0.024099916219711304, -0.001494485535658896, -0.03217313066124916, 0.04765249416232109, 0.000134696121676825, 0.004459938500076532, -0.044368475675582886, 0.02362099662423134, -0.009852059185504913, -0.03272046893835068, -0.00974943395704031, -0.00879159476608038, 0.00519969779998064, -0.012469012290239334, 0.03419143706560135, -0.026289261877536774, -0.028923319652676582, 0.03910036012530327, 0.010219801217317581, -0.028615443035960197, -0.03968190774321556, -0.04939712956547737, -0.010262561962008476, -0.020388290286064148, -0.025844551622867584, -0.007042683195322752, 0.007714025676250458, -0.004810575861483812, 0.028786486014723778, -0.00905671063810587, -0.010852659121155739, 0.004173441790044308, 0.006935781333595514, -0.012622951529920101, -0.002324042608961463, 0.0076370565220713615, -0.014530077576637268, -0.06386734545230865, -0.05972811207175255, 0.06598827242851257, 0.00404516002163291, -0.056341465562582016, 0.03673997148871422, -0.0056401328183710575, -0.004273929633200169, 0.00917644053697586, -0.06386734545230865, -0.016385890543460846, 0.03121529333293438, -0.03400328755378723, -0.010493469424545765, 0.011100671254098415, 0.020747479051351547, 0.0006537038134410977, -0.02536563202738762, -0.004759263247251511, -0.05777822434902191, -0.06472256034612656, -0.006786119192838669, 0.04881558567285538, -0.0006633249577134848, -0.016240503638982773, 0.01898573897778988, -0.007162413094192743, 0.05367320030927658, -0.04744724556803703, -0.007530154660344124, 0.04556577652692795, -0.10262561589479446, 0.013777489773929119, -0.011972988955676556, 0.021893465891480446, 0.025057755410671234, 0.02238948829472065, -0.03391776606440544, -0.005032931454479694, -0.029350927099585533, 0.0018248117994517088, -0.002627643523737788, 0.05042338743805885, -0.027777334675192833, 0.004273929633200169, 0.01149406936019659, 0.052510108798742294, 0.004430005792528391, 0.007940657436847687, -0.01263150293380022, -0.04074237123131752, -0.008068939670920372, -0.00439579738304019, -0.02998378500342369, -0.02228686399757862, 0.00492175342515111, -0.055041540414094925, 0.015402395278215408, 0.04669465497136116, 0.05432315915822983, 0.002950486494228244, 0.0028692411724478006, 0.08244258165359497, -0.007106824312359095, -0.010630303993821144, 0.01661679893732071, 0.07046958804130554, 0.03910036012530327, 0.07813230156898499, 0.034755878150463104, 0.01703585311770439, -0.05377582460641861, -0.03070216439664364, -0.027435248717665672, -0.04197387769818306, 0.010758585296571255, -0.014795193448662758, -0.02666555717587471, -0.009184992872178555, -0.008150184527039528, -0.012169688008725643, 0.036158427596092224, 0.015547781251370907, -0.009133679792284966, 0.03374672308564186, -0.01018559280782938, -0.004630981013178825, -0.05682038515806198, 0.04536052420735359, 0.027520770207047462, -0.0691012516617775, 0.021739527583122253, 0.000495756568852812, -0.03646630421280861, -0.015257008373737335, -0.017454907298088074, 0.036774180829524994, -0.022269759327173233, 0.00870607327669859, -0.09291039407253265, -0.06742503494024277, -0.05227064713835716, 0.028649652376770973, -0.01503465324640274, 0.022081611678004265, 0.0008177979034371674, -0.028564130887389183, 0.060720156878232956, -0.017275312915444374, 0.0008252810221165419, -0.057230886071920395, 0.011733529157936573, 0.07190635055303574, -0.05825714394450188, -0.03383224457502365, 0.06297792494297028, -0.00030146274366416037, -0.05900973081588745, -0.01228086557239294, 0.04347905516624451, 0.0463525727391243, 0.03530321270227432, -0.08791594952344894, 0.015231352299451828, 0.0034165778197348118, -0.00011839361832244322, 0.03400328755378723, 0.007654160726815462, 0.014393243007361889, 0.01210982259362936, 0.025673508644104004, -0.03940823674201965, 0.03224154934287071, -0.046113111078739166, 0.04101603850722313, -0.004344484768807888, -0.03224154934287071, 0.0007173102931119502, 0.028957528993487358, -0.00041344226337969303, 0.020508019253611565, 0.030633747577667236, 0.0052937716245651245, 0.02702474594116211, 0.006431205663830042, -0.0360557995736599, -0.029231196269392967, -0.020850105211138725, 0.05654671788215637, 0.015248456969857216, 0.013349882327020168, 0.024766983464360237, 0.04159758239984512, -0.027948377653956413, 0.04214492067694664, -0.007709749508649111, 0.03025745414197445, 0.012032853439450264, 0.026785286143422127, -0.012135479599237442, 0.03121529333293438, -0.010390844196081161, -0.031694211065769196, -0.09920476377010345, -0.03359278663992882, -0.025844551622867584, 0.0341230183839798, -0.009988893754780293, 0.021636901423335075, 0.028752276673913002, 0.07498511672019958, 0.02062775008380413 ]
43,053
linearmodels.panel.model
fit
Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator. See Notes. debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- PanelResults Estimation results Examples -------- >>> from linearmodels import PooledOLS >>> mod = PooledOLS(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used.
def fit( self, *, cov_type: str = "unadjusted", debiased: bool = True, **cov_config: bool | float | str | IntArray | DataFrame | PanelData, ) -> PanelResults: """ Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator. See Notes. debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- PanelResults Estimation results Examples -------- >>> from linearmodels import PooledOLS >>> mod = PooledOLS(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used. """ y = self.dependent.values2d x = self.exog.values2d w = self.weights.values2d root_w = cast(Float64Array, np.sqrt(w)) wx = root_w * x wy = root_w * y params = _lstsq(wx, wy, rcond=None)[0] nobs = y.shape[0] df_model = x.shape[1] df_resid = nobs - df_model cov_config = self._setup_clusters(cov_config) extra_df = 0 if "extra_df" in cov_config: cov_config = cov_config.copy() _extra_df = cov_config.pop("extra_df") assert isinstance(_extra_df, (str, int)) extra_df = int(_extra_df) cov = setup_covariance_estimator( self._cov_estimators, cov_type, wy, wx, params, self.dependent.entity_ids, self.dependent.time_ids, debiased=debiased, extra_df=extra_df, **cov_config, ) weps = wy - wx @ params index = self.dependent.index fitted = DataFrame(x @ params, index, ["fitted_values"]) effects = DataFrame( np.full_like(np.asarray(fitted), np.nan), index, ["estimated_effects"] ) eps = y - fitted.values idiosyncratic = DataFrame(eps, index, ["idiosyncratic"]) residual_ss = float(np.squeeze(weps.T @ weps)) e = y if self._constant: e = e - (w * y).sum() / w.sum() total_ss = float(np.squeeze(w.T @ (e**2))) r2 = 1 - residual_ss / total_ss res = self._postestimation( params, cov, debiased, df_resid, weps, wy, wx, root_w ) res.update( dict( df_resid=df_resid, df_model=df_model, nobs=y.shape[0], residual_ss=residual_ss, total_ss=total_ss, r2=r2, wresids=weps, resids=eps, index=self.dependent.index, fitted=fitted, effects=effects, idiosyncratic=idiosyncratic, ) ) return PanelResults(res)
(self, *, cov_type: str = 'unadjusted', debiased: bool = True, **cov_config: bool | float | str | numpy.ndarray | pandas.core.frame.DataFrame | linearmodels.panel.data.PanelData) -> linearmodels.panel.results.PanelResults
[ 0.03671063110232353, -0.04749753698706627, 0.018695838749408722, -0.020288610830903053, 0.02937289886176586, -0.02790095843374729, -0.05158381909132004, -0.06871984153985977, 0.02054125815629959, 0.013577002100646496, -0.02128821238875389, -0.028538066893815994, -0.018289407715201378, 0.032909948378801346, -0.015433404594659805, 0.08844823390245438, -0.023770738393068314, -0.0003420682332944125, 0.020574212074279785, -0.01454364974051714, -0.022891968488693237, -0.048024799674749374, -0.04890356957912445, -0.010759444907307625, 0.00037862645694985986, -0.03675457090139389, 0.01398343313485384, -0.017948884516954422, 0.015422419644892216, -0.029636530205607414, -0.022518491372466087, 0.017718207091093063, -0.06590777635574341, -0.021903350949287415, 0.029900161549448967, 0.0035672583617269993, 0.03813863545656204, 0.04187340661883354, 0.05400043725967407, 0.01668565161526203, -0.035062938928604126, -0.031020594760775566, 0.07140009105205536, -0.002209283644333482, -0.04037949815392494, 0.02467147819697857, -0.05988819897174835, 0.08743765205144882, 0.0000638052515569143, -0.006365593057125807, 0.008595472201704979, -0.05615342780947685, 0.016136420890688896, -0.03189936280250549, 0.04705815389752388, -0.012423615902662277, -0.003575496841222048, 0.04053328186273575, 0.09543446451425552, -0.052023205906152725, 0.028472159057855606, -0.013818664476275444, -0.0038473664317280054, 0.001042853225953877, -0.02072799578309059, -0.01789396069943905, -0.007299286313354969, 0.00486619072034955, 0.025901757180690765, -0.003473889082670212, 0.02541843242943287, -0.007854009978473186, -0.007843025960028172, 0.02873579040169716, 0.023331353440880775, -0.0179708544164896, 0.004176905378699303, -0.026231296360492706, -0.004824998322874308, -0.014334941282868385, -0.006546839140355587, 0.016092482954263687, -0.06889559328556061, -0.021837443113327026, -0.00953465886414051, -0.01159976888448, -0.03282207250595093, -0.022869998589158058, 0.06116241589188576, 0.01876174658536911, 0.02761535905301571, 0.03675457090139389, 0.03260238096117973, -0.014038356952369213, 0.027022188529372215, 0.008139610290527344, 0.000313920114422217, -0.02027762681245804, 0.037699248641729355, 0.0049513219855725765, -0.012500508688390255, 0.03864392638206482, 0.03304176405072212, 0.07258643209934235, -0.026275234296917915, -0.04237870126962662, -0.010902244597673416, 0.029570622369647026, -0.0006216613692231476, -0.05404437705874443, -0.02284802868962288, 0.004045089706778526, -0.022650307044386864, -0.027417635545134544, -0.001000974327325821, -0.019212117418646812, -0.08089081197977066, 0.016465960070490837, -0.07065314054489136, 0.0378090962767601, -0.0486399382352829, 0.07109252363443375, -0.08185745775699615, -0.011940292082726955, 0.013642909936606884, 0.004396597854793072, 0.012105061672627926, -0.010374982841312885, 0.015532266348600388, -0.043279439210891724, -0.014840235002338886, -0.04314762353897095, -0.017740176990628242, -0.006651193369179964, 0.017070114612579346, 0.05944881588220596, -0.019003409892320633, -0.01491712685674429, -0.023660892620682716, -0.021925320848822594, 0.06006395444273949, 0.08721795678138733, -0.013708817772567272, 0.01838826946914196, 0.029306991025805473, 0.042422641068696976, 0.03684244677424431, -0.09139211475849152, -0.011325153522193432, 0.06291995942592621, -0.043960489332675934, -0.045739997178316116, -0.03308570384979248, -0.0340743213891983, -0.048420246690511703, -0.0721031054854393, -0.0211454126983881, 0.008232980035245419, -0.003259688848629594, 0.0135989710688591, -0.0715758427977562, -0.015565220266580582, 0.03859998658299446, 0.0357879213988781, -0.015740973874926567, -0.010660583153367043, -0.04635513573884964, -0.04530061408877373, 0.002676130272448063, -0.010199228301644325, -0.0022999069187790155, -0.0342940129339695, -0.007518978789448738, -0.025066925212740898, -0.05650493502616882, 0.04828843101859093, 0.01344518642872572, -0.03635912388563156, -0.03719395399093628, -0.044333964586257935, 0.03088877908885479, -0.004805775359272957, -0.06059121713042259, -0.004014882259070873, -0.03644699975848198, 0.02427603118121624, 0.01873977854847908, -0.004967798944562674, 0.009710412472486496, -0.017278822138905525, -0.04701421409845352, 0.0018193292198702693, 0.010979137383401394, -0.022935906425118446, -0.0005104420124553144, -0.009479735046625137, 0.046486951410770416, -0.013818664476275444, 0.019289009273052216, 0.023748768493533134, -0.003229481168091297, -0.00579988444224, 0.04220294579863548, -0.035502322018146515, -0.04237870126962662, 0.020870795473456383, -0.014301987364888191, -0.03372281417250633, -0.010369489900767803, -0.011698630638420582, 0.026363110169768333, 0.025462372228503227, 0.009715904481709003, -0.024935109540820122, 0.05211108177900314, 0.004292244091629982, -0.021639719605445862, -0.021277228370308876, 0.009622535668313503, -0.014466756954789162, -0.0038116665091365576, -0.01950870268046856, -0.0071894400753080845, 0.04921114072203636, 0.03016379289329052, -0.059404876083135605, 0.008040748536586761, 0.00022312528744805604, 0.04294990003108978, -0.08800885081291199, -0.0021145411301404238, 0.027329757809638977, 0.026670681312680244, -0.043213531374931335, 0.00679948553442955, 0.014598572626709938, -0.05483527109026909, 0.02462754026055336, -0.044246088713407516, 0.020903749391436577, -0.020782919600605965, -0.028889575973153114, 0.004599813837558031, -0.003792443312704563, -0.03385462984442711, -0.0005413362523540854, 0.04048934578895569, 0.09165574610233307, 0.012873985804617405, -0.015905743464827538, 0.0626123920083046, -0.017904946580529213, -0.039171189069747925, 0.009633519686758518, -0.0008334587910212576, -0.030405454337596893, 0.05110049620270729, -0.03159179538488388, 0.032975856214761734, -0.04745360091328621, -0.054659515619277954, -0.01001248974353075, -0.04305974766612053, 0.06507294625043869, -0.05039748176932335, -0.004091774579137564, -0.02154085785150528, -0.0359417088329792, 0.006090977229177952, 0.04806873947381973, -0.09921317547559738, 0.11151596158742905, 0.0021145411301404238, -0.04226885363459587, 0.0016751560615375638, 0.06265632808208466, -0.006634716410189867, -0.04894750937819481, 0.06331540644168854, 0.06397448480129242, 0.021200334653258324, -0.04077494516968727, -0.008309871889650822, -0.006299685221165419, -0.011731584556400776, -0.02792292833328247, -0.0514080673456192, 0.002562164794653654, 0.018333347514271736, 0.02579190954566002, -0.026341142132878304, 0.025264648720622063, 0.05400043725967407, -0.010105859488248825, 0.006689639296382666, -0.03646897152066231, 0.024539662525057793, 0.005898746196180582, 0.0149061419069767, 0.017026176676154137, -0.021804489195346832, 0.04732178524136543, 0.00856251921504736, 0.011270229704678059, 0.019519686698913574, -0.03635912388563156, 0.061206355690956116, -0.09007396548986435, 0.015521281398832798, 0.004349913448095322, 0.003421712201088667, 0.060151830315589905, -0.00653036218136549, 0.032162994146347046, -0.01213801559060812, -0.053165607154369354, 0.002825795905664563, -0.03249253332614899, 0.023111660033464432, 0.08339530974626541, -0.014115248806774616, -0.0478929840028286, 0.01649891398847103, -0.035875800997018814, 0.03319555148482323, 0.05747158080339432, 0.041763562709093094, 0.040994636714458466, -0.001539221266284585, -0.006003099959343672, -0.03985223546624184, -0.03866589441895485, 0.018487131223082542, 0.02319953776896, -0.004542144481092691, -0.04371882602572441, 0.03833635896444321, -0.02754945121705532, 0.09086485952138901, 0.01915719360113144, 0.01693829894065857, -0.01990414969623089, -0.0381825715303421, -0.027044158428907394, -0.03460158407688141, -0.04075297713279724, 0.07504698634147644, 0.016575805842876434, 0.03761137276887894, 0.06806076318025589, -0.021771535277366638, 0.06028364598751068, 0.0616457425057888, 0.03642503172159195, -0.009051335044205189, 0.033986445516347885, 0.0020637372508645058, 0.03124028630554676, 0.007431101985275745, -0.06995011866092682, -0.037369709461927414, 0.010182751342654228, -0.018585992977023125, 0.044355932623147964, -0.0102925980463624, 0.019003409892320633, -0.017092084512114525, -0.035875800997018814, 0.05597767233848572, -0.0308228712528944, -0.03613943234086037, -0.02974637784063816, -0.04231279343366623, 0.030251670628786087, 0.038797710090875626, -0.005739469081163406, -0.05808672308921814, -0.0239464920014143, 0.07908933609724045, 0.009930104948580265, 0.01057270634919405, -0.06542445719242096, -0.013038755394518375, 0.0010730610229074955, -0.018289407715201378, 0.0012604861985892057, 0.016795499250292778, -0.018849624320864677, 0.00921610463410616, -0.04609150439500809, 0.05114443600177765, -0.03348115086555481, 0.022276828065514565, 0.02280409075319767, 0.011533861048519611, -0.005618637893348932, 0.018003808334469795, 0.009649996645748615, -0.06832439452409744, 0.0020046948920935392, -0.01960756443440914, -0.0040807900950312614, 0.060459401458501816, 0.04310368746519089, -0.03704017028212547, -0.06155786290764809, 0.009084288962185383, 0.03049333207309246, -0.008331841789186, 0.027000218629837036, -0.01431297231465578, 0.038116663694381714, -0.02154085785150528, 0.0046904366463422775, -0.03528263047337532, 0.0342940129339695, -0.023990431800484657, 0.01749851554632187, 0.1112523302435875, -0.006118438672274351, 0.09253451973199844, -0.04163174703717232, 0.048376306891441345, 0.02754945121705532, 0.013544048182666302, 0.03838029503822327, -0.03451370447874069, -0.005522522609680891, -0.007881471887230873, -0.04385064169764519, 0.0004078043857589364, -0.0009748858865350485, -0.03816060349345207, -0.0003676418273244053, -0.0028862114995718002, -0.003957212902605534, -0.002404260914772749, 0.03618336841464043, -0.02500101737678051, 0.06735774874687195, -0.010764936916530132, 0.0320531502366066, -0.01252247765660286, 0.008727287873625755, -0.03906134143471718, 0.025638125836849213, 0.052418652921915054, -0.03416219726204872, -0.09446781128644943, -0.0037896973080933094, 0.11643707007169724, 0.032887980341911316, 0.023748768493533134, 0.024210123345255852, -0.040972668677568436, -0.03521672263741493, 0.012873985804617405, -0.03570004552602768, -0.031789518892765045, 0.0122918002307415, 0.0032102579716593027, -0.02278212085366249, -0.01567506603896618, -0.020574212074279785, -0.029900161549448967, 0.04299383983016014, 0.005657084286212921, -0.0180807001888752, 0.032909948378801346, 0.007568409666419029, 0.0010318686254322529, 0.020925719290971756, -0.001008526305668056, -0.003462904365733266, -0.022145012393593788, 0.03528263047337532, -0.011907338164746761, 0.04552030563354492, 0.038424234837293625, -0.007211409509181976, 0.026297202333807945, -0.01906931772828102, -0.00407804362475872, -0.013686848804354668, 0.02904336154460907, -0.040049958974123, 0.00022329692728817463, 0.007958363741636276, 0.019541656598448753, 0.049079325050115585, 0.0016133674653246999, 0.035172782838344574, 0.02168365940451622, 0.0185310710221529, -0.05325348302721977, 0.02315559983253479, 0.013818664476275444, -0.04422411695122719, 0.049430832266807556, -0.05733976513147354, 0.06893953680992126, -0.008265933953225613, -0.017026176676154137, -0.04292793199419975, -0.019212117418646812, -0.06647897511720657, 0.00012400616833474487, 0.0173337459564209, -0.04382867366075516, -0.02184842899441719, -0.026560833677649498, -0.0011018957011401653, 0.023836646229028702, -0.024781323969364166, 0.03682047873735428, 0.0011142534203827381, 0.03723789379000664, 0.06959861516952515, 0.014664480462670326, -0.013027770444750786, 0.049123264849185944, 0.012335739098489285, 0.050133850425481796, 0.02943880669772625, 0.03972041979432106, 0.04404836520552635, -0.02579190954566002, -0.014082294888794422, 0.03908331319689751, 0.03831438720226288, -0.03198724240064621, -0.08699826896190643, -0.04040146619081497, 0.08339530974626541, 0.03233874961733818, -0.03488718345761299, -0.05303379148244858, -0.04189537838101387, -0.004179651383310556, -0.0077386717312037945, -0.05487921088933945, -0.023594984784722328, 0.029614562168717384, -0.0018811178160831332, 0.015180758200585842, -0.017674269154667854, 0.056109488010406494, 0.011654691770672798, -0.030713023617863655, -0.015147804282605648, -0.01575195975601673, -0.032931920140981674, 0.03910528123378754, 0.04226885363459587, 0.0456521213054657, -0.00006466342165367678, -0.01888257823884487, -0.009985027834773064, -0.040994636714458466, 0.025484340265393257, -0.004349913448095322, -0.013829648494720459, 0.04846418648958206, -0.06555627286434174, 0.060854848474264145, 0.03710607811808586, 0.0656002089381218, 0.018564023077487946, -0.01307170931249857, -0.045432429760694504, 0.00615688506513834, 0.035106875002384186, -0.05035354197025299, 0.03203117847442627, -0.017487529665231705, 0.03673260286450386, 0.027066126465797424, -0.0019401601748540998, -0.07460760325193405, 0.020903749391436577, -0.009507196955382824, -0.05320954695343971, 0.002242237562313676, -0.01640005223453045, -0.007475040387362242, 0.0057724229991436005, -0.019146209582686424, 0.005420914851129055, 0.019025377929210663, 0.028801698237657547, -0.02576994150876999, 0.05039748176932335, -0.05848216637969017, 0.009996012784540653, 0.026626741513609886, 0.04530061408877373, -0.05733976513147354, -0.01013881340622902, 0.044004425406455994, -0.0006968374364078045, -0.040291622281074524, -0.03194330260157585, 0.03563413769006729, 0.017278822138905525, -0.009853213094174862, -0.012500508688390255, -0.020760949701070786, 0.04196128621697426, 0.03196527063846588, -0.04051131382584572, -0.0003954466665163636, -0.005997607950121164, -0.005269876215606928, -0.020870795473456383, -0.01936590112745762, -0.024429816752672195, -0.034030381590127945, 0.008469149470329285, 0.06713805347681046, -0.0015529519878327847, 0.04264233261346817, 0.009314965456724167, 0.01969544030725956, 0.0194647628813982, -0.049123264849185944, 0.012357708066701889, 0.03084483928978443, -0.12715807557106018, -0.004915621597319841, -0.039918143302202225, 0.004715152084827423, 0.08783309906721115, 0.02752748131752014, 0.006475439295172691, 0.03563413769006729, 0.017817068845033646, 0.048376306891441345, 0.00023719934688415378, 0.029548654332756996, -0.025132833048701286, 0.022364705801010132, 0.030669085681438446, 0.04736572131514549, 0.030954686924815178, -0.019640518352389336, 0.026319172233343124, -0.0014019133523106575, 0.00996305886656046, 0.007299286313354969, -0.01631217449903488, 0.01509288139641285, -0.03618336841464043, -0.052023205906152725, -0.033590998500585556, 0.061997249722480774, -0.0009728262666612864, 0.02612144872546196, 0.028186559677124023, 0.06893953680992126, 0.002512733917683363, 0.05070504918694496, -0.0006182286888360977, 0.045783936977386475, -0.006535854656249285, 0.05101262032985687, 0.008068210445344448, 0.000972139707300812, -0.03192133456468582, -0.008232980035245419, -0.0034876198042184114, 0.004220843780785799, -0.055318593978881836, -0.04701421409845352, -0.004333436489105225, 0.005733976606279612, -0.07575000822544098, -0.026582803577184677, 0.0162133127450943, -0.043169595301151276, -0.011456968262791634, 0.0651608258485794, 0.05180351436138153, 0.01581786572933197, -0.016850421205163002, 0.10290400683879852, -0.034030381590127945, -0.006294192746281624, -0.0529019758105278, -0.01321450900286436, -0.04521273449063301, -0.03269025683403015, 0.009490719996392727, -0.015367496758699417, -0.04635513573884964, 0.03627124801278114, -0.13453973829746246, -0.010418920777738094, -0.05105656012892723, -0.012950878590345383, 0.000685166276525706, 0.013884571380913258, 0.005624130368232727, 0.008200026117265224, 0.06551232933998108, 0.00023771425185259432, 0.06770925968885422, -0.0009762589470483363, 0.010133320465683937, 0.05430800840258598, -0.08392257243394852, -0.02649492584168911, 0.02280409075319767, 0.03135013207793236, -0.004459759686142206, 0.028889575973153114, 0.028867606073617935, 0.0006237209890969098, 0.01509288139641285, -0.038028787821531296, 0.026648711413145065, 0.0426643006503582, 0.0224525835365057, -0.005157283507287502, -0.013587987050414085, 0.013038755394518375, -0.04218097776174545, 0.034008413553237915, 0.008776718750596046, 0.07025769352912903, -0.013807679526507854, 0.053824685513973236, -0.0218923669308424, -0.005278114695101976, -0.009880674071609974, -0.011413030326366425, -0.02284802868962288, -0.009979535825550556, 0.011094476096332073, -0.051671698689460754, -0.00551977613940835, -0.05250652879476547, 0.02502298541367054, -0.029548654332756996, -0.06419417262077332, -0.014049340970814228, 0.0275714211165905, 0.03128422424197197, 0.0006961508770473301, 0.06344722211360931, -0.044729411602020264, 0.025813879445195198, -0.021771535277366638, 0.03611746057868004, 0.02352907694876194, 0.028933513909578323, -0.020892765372991562, -0.009122734889388084, -0.01509288139641285, -0.020706025883555412, -0.020991627126932144, -0.0020596180111169815, -0.023726800456643105, 0.057164013385772705, 0.011478938162326813, 0.034337952733039856, 0.005739469081163406, 0.022869998589158058, 0.0010050935670733452 ]
43,054
linearmodels.panel.model
predict
Predict values for additional data Parameters ---------- params : array_like Model parameters (nvar by 1) exog : array_like Exogenous regressors (nobs by nvar) data : DataFrame Values to use when making predictions from a model constructed from a formula context : int Depth to use when evaluating formulas. Returns ------- DataFrame Fitted values from supplied data and parameters Notes ----- If `data` is not None, then `exog` must be None. Predictions from models constructed using formulas can be computed using either `exog`, which will treat these are arrays of values corresponding to the formula-processed data, or using `data` which will be processed using the formula used to construct the values corresponding to the original model specification.
def predict( self, params: ArrayLike, *, exog: PanelDataLike | None = None, data: PanelDataLike | None = None, eval_env: int = 1, context: Mapping[str, Any] | None = None, ) -> DataFrame: """ Predict values for additional data Parameters ---------- params : array_like Model parameters (nvar by 1) exog : array_like Exogenous regressors (nobs by nvar) data : DataFrame Values to use when making predictions from a model constructed from a formula context : int Depth to use when evaluating formulas. Returns ------- DataFrame Fitted values from supplied data and parameters Notes ----- If `data` is not None, then `exog` must be None. Predictions from models constructed using formulas can be computed using either `exog`, which will treat these are arrays of values corresponding to the formula-processed data, or using `data` which will be processed using the formula used to construct the values corresponding to the original model specification. """ if data is not None and self.formula is None: raise ValueError( "Unable to use data when the model was not " "created using a formula." ) if data is not None and exog is not None: raise ValueError( "Predictions can only be constructed using one " "of exog or data, but not both." ) if exog is not None: exog = PanelData(exog).dataframe else: assert self._formula is not None assert data is not None if context is None: context = capture_context(eval_env) parser = PanelFormulaParser(self._formula, data, context=context) exog = parser.exog x = exog.values params = np.atleast_2d(np.asarray(params)) if params.shape[0] == 1: params = params.T if x.shape[1] != params.shape[0]: raise ValueError( EXOG_PREDICT_MSG.format( x_shape=x.shape[1], params_shape=params.shape[0] ) ) pred = DataFrame(x @ params, index=exog.index, columns=["predictions"]) return pred
(self, params: Union[numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series], *, exog: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType] = None, data: Union[linearmodels.panel.data.PanelData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType] = None, eval_env: int = 1, context: Optional[collections.abc.Mapping[str, Any]] = None) -> pandas.core.frame.DataFrame
[ 0.07764091342687607, -0.05384049937129021, -0.007528702728450298, -0.01387112122029066, 0.02966645173728466, -0.00930812954902649, -0.027910377830266953, -0.07779037207365036, 0.008598227053880692, 0.027424655854701996, 0.05051516741514206, -0.011890866793692112, 0.019765179604291916, 0.027480699121952057, 0.00689352722838521, -0.0006515223649330437, 0.026920249685645103, -0.008378718048334122, 0.01553378812968731, -0.004889920819550753, 0.00515146367251873, -0.052345968782901764, -0.04106225445866585, -0.012180432677268982, 0.007846291176974773, -0.012927697971463203, -0.01048040296882391, 0.001996600767597556, -0.00403523538261652, 0.02426745742559433, 0.008154538460075855, -0.07719255983829498, -0.04289305582642555, 0.001613627071492374, 0.018550872802734375, -0.04289305582642555, -0.049319542944431305, 0.01903659664094448, -0.012638133019208908, -0.0162530317902565, -0.02112894132733345, -0.058772455900907516, 0.03131043538451195, 0.011059533804655075, -0.07356832176446915, -0.020101450383663177, -0.018999233841896057, -0.013310671783983707, 0.02768619731068611, -0.0539899542927742, -0.007089684251695871, 0.009621047414839268, 0.004551315680146217, -0.011648005805909634, -0.008654272183775902, 0.06598357111215591, 0.014310140162706375, 0.05107561871409416, 0.04453704133629799, -0.0736430436372757, 0.0481986440718174, -0.0233894195407629, -0.011535915546119213, 0.014711795374751091, 0.006309725809842348, 0.04498540237545967, -0.0079490402713418, -0.03822264447808266, -0.03183352202177048, -0.04121170938014984, -0.050178900361061096, -0.037064384669065475, -0.014478274621069431, -0.006884186062961817, -0.020344311371445656, 0.02071794494986534, 0.02768619731068611, -0.0332159660756588, 0.011507892981171608, 0.02520153857767582, -0.06617038697004318, -0.01260076928883791, -0.062097787857055664, 0.0025920781772583723, -0.026042213663458824, -0.03233792632818222, -0.04506012797355652, 0.019130004569888115, 0.0319456122815609, 0.021932251751422882, 0.016150282695889473, 0.017093705013394356, 0.008135856129229069, 0.017280520871281624, 0.06041644141077995, -0.036952294409275055, 0.004672746639698744, 0.052345968782901764, 0.020101450383663177, 0.02721915766596794, 0.006024830508977175, 0.05836145952343941, -0.04371504858136177, 0.026285074651241302, -0.018999233841896057, -0.027499381452798843, -0.024977359920740128, 0.03233792632818222, 0.011937570758163929, -0.05290642008185387, -0.07255951315164566, 0.03571930527687073, -0.02873237058520317, -0.042183153331279755, -0.005118770524859428, 0.047638196498155594, -0.03994135558605194, 0.04704038053750992, -0.07681892812252045, -0.0035705293994396925, -0.0009603532962501049, 0.08227396756410599, -0.052159152925014496, 0.005011351313441992, 0.014310140162706375, -0.014954657293856144, 0.04222051799297333, -0.0005540275597013533, -0.029348865151405334, -0.11156678199768066, 0.010088087990880013, -0.011769436299800873, -0.0027462018188089132, 0.0017292198026552796, -0.0037993795704096556, 0.040838077664375305, 0.052981145679950714, 0.013329354114830494, -0.024715816602110863, -0.021147621795535088, 0.045134853571653366, 0.010956784710288048, -0.01523488201200962, 0.029386227950453758, -0.005207508336752653, -0.027910377830266953, 0.04274360463023186, 0.02234324812889099, 0.01854153349995613, 0.05469985678792, 0.024061959236860275, 0.010321608744561672, -0.0017607450718060136, -0.07386722415685654, 0.02536967396736145, -0.012292522005736828, 0.011349099688231945, -0.004135649185627699, 0.025986168533563614, -0.00515146367251873, -0.01053644809871912, -0.02079267054796219, 0.0004001958586741239, 0.03616766631603241, 0.007734200917184353, 0.06348022818565369, -0.026135621592402458, -0.0078789833933115, 0.05081407353281975, -0.015253563411533833, 0.04483594745397568, -0.013254627585411072, 0.043042510747909546, -0.0322258360683918, -0.05701638013124466, 0.05798782780766487, 0.021801479160785675, -0.012955720536410809, -0.013693645596504211, 0.022903697565197945, 0.014422230422496796, -0.00018127034127246588, -0.0883268192410469, -0.03499072045087814, -0.025463081896305084, -0.01622500829398632, -0.019877269864082336, 0.019578363746404648, -0.03581271320581436, 0.03687756881117821, -0.04307987168431282, -0.048684366047382355, 0.034336864948272705, 0.005086077842861414, -0.009947976097464561, -0.022828970104455948, 0.03588743880391121, 0.014879929833114147, 0.02820928394794464, 0.03919409215450287, -0.002575731836259365, -0.028227966278791428, 0.0374566987156868, 0.002400591503828764, -0.0655725747346878, 0.009336152113974094, -0.005198167636990547, -0.03896991163492203, -0.021726753562688828, -0.08586084097623825, 0.015692582353949547, -0.020830033347010612, -0.001905527780763805, 0.02886314131319523, 0.05690428987145424, 0.06871108710765839, 0.006575939245522022, -0.01572994515299797, 0.02415536716580391, -0.012554065324366093, -0.021689390763640404, -0.06590884178876877, -0.011619983240962029, 0.06665611267089844, 0.09236205369234085, -0.07028035074472427, 0.04834809899330139, 0.0039745201356709, 0.0487590953707695, -0.012918357737362385, -0.017261840403079987, 0.002729855477809906, 0.01451563835144043, -0.08421685546636581, 0.08473993837833405, 0.029012594372034073, -0.027667516842484474, -0.0034584396053105593, 0.005132781807333231, 0.07102761417627335, 0.021614663302898407, 0.026845524087548256, 0.0002698622120078653, 0.004079604055732489, 0.026098258793354034, -0.02647189050912857, 0.04453704133629799, 0.04524694383144379, -0.016738753765821457, -0.08638392388820648, 0.056119661778211594, 0.05178552120923996, 0.011414485052227974, 0.04789973795413971, 0.000605402048677206, 0.03517753630876541, 0.09094224870204926, 0.02286633290350437, 0.04128643497824669, -0.03398191183805466, -0.019727816805243492, -0.005567130167037249, -0.024547681212425232, -0.006309725809842348, -0.002214942593127489, -0.011797458864748478, -0.013404080644249916, -0.033290691673755646, 0.04797446355223656, 0.026752116158604622, -0.04319196194410324, 0.09677091985940933, 0.011330417357385159, -0.015029383823275566, 0.026677388697862625, 0.05395258963108063, 0.02815323881804943, -0.08115306496620178, 0.021969614550471306, -0.01360957883298397, -0.0005858447402715683, -0.06878581643104553, -0.004189359024167061, -0.014132664538919926, 0.001252837828360498, -0.011479871347546577, 0.01809317246079445, 0.013506829738616943, 0.09916216880083084, -0.008808395825326443, -0.004614366218447685, 0.08115306496620178, 0.02787301503121853, 0.03614898398518562, -0.052869055420160294, -0.0024916643742471933, 0.024921314790844917, 0.006099557038396597, 0.0025570502039045095, 0.014272776432335377, 0.028190601617097855, 0.015496424399316311, 0.040314991027116776, -0.010816672816872597, -0.05410204455256462, -0.02682684175670147, 0.07831345498561859, -0.01349748857319355, -0.008210582658648491, -0.05354159325361252, 0.02746201865375042, 0.09452912211418152, -0.01710304617881775, 0.01198427565395832, -0.05548448488116264, -0.08167615532875061, 0.04300514608621597, -0.021502573043107986, 0.06796382367610931, -0.006846822798252106, 0.029049957171082497, 0.01595412567257881, 0.046816203743219376, -0.060528531670570374, 0.03687756881117821, 0.04420077055692673, 0.04420077055692673, -0.011134260334074497, 0.0514492504298687, -0.013880462385714054, -0.01149855274707079, -0.04102489352226257, 0.047638196498155594, 0.026976294815540314, -0.006375111173838377, -0.049730539321899414, -0.010162814520299435, 0.022324565798044205, 0.03878309577703476, 0.06613302230834961, -0.023781733587384224, -0.0429677851498127, -0.029797224327921867, -0.02090476080775261, 0.006141590885818005, -0.04745137691497803, 0.029218092560768127, 0.045022763311862946, 0.006706710439175367, 0.03431818261742592, -0.048908546566963196, 0.025930123403668404, 0.026397164911031723, -0.038110554218292236, -0.012357908301055431, -0.01944759301841259, -0.018588237464427948, 0.05115034431219101, 0.010723263956606388, -0.025052085518836975, 0.005048714578151703, -0.011078215204179287, -0.028377419337630272, 0.02071794494986534, -0.01878439448773861, -0.027947740629315376, -0.005749276373535395, 0.03949299827218056, 0.02919941209256649, -0.007598759140819311, 0.01289033517241478, -0.013142537325620651, 0.010592492297291756, 0.030264265835285187, 0.008481467142701149, 0.03314123675227165, -0.0067814369685947895, -0.07704310119152069, 0.04024026170372963, -0.03994135558605194, -0.016019510105252266, -0.041772156953811646, -0.01451563835144043, -0.03170275315642357, 0.038932546973228455, 0.013740349560976028, 0.04431286081671715, 0.011788117699325085, 0.03837209939956665, -0.03911936655640602, -0.01680414006114006, -0.03726988285779953, -0.02090476080775261, 0.03760614991188049, -0.04547112435102463, -0.015253563411533833, -0.009686432778835297, 0.012395271100103855, -0.09206314384937286, -0.0006836314569227397, -0.060752708464860916, 0.014085960574448109, 0.05051516741514206, -0.029330182820558548, -0.01787833496928215, -0.017336566001176834, -0.016131600365042686, -0.00811250414699316, -0.025649897754192352, 0.013628260232508183, -0.01920473203063011, 0.019653091207146645, 0.00928477756679058, 0.000196449167560786, -0.00987324956804514, 0.04655465856194496, -0.003776027588173747, 0.012740882113575935, 0.04431286081671715, -0.010583152063190937, 0.04248205944895744, -0.012180432677268982, -0.02305315062403679, 0.04024026170372963, -0.006155602168291807, 0.06762755662202835, -0.047339290380477905, -0.02223115786910057, -0.016533255577087402, 0.0075380438938736916, -0.062209878116846085, -0.07573539018630981, -0.04715247079730034, 0.024603726342320442, 0.005665208678692579, -0.029927995055913925, -0.007981732487678528, 0.012628791853785515, -0.04285569489002228, 0.03413136675953865, -0.018821757286787033, -0.008644931018352509, 0.05058989301323891, 0.02693893201649189, -0.05933290347456932, -0.006846822798252106, 0.030451081693172455, -0.008546852506697178, -0.08107834309339523, -0.0565306581556797, 0.0883268192410469, 0.05664274841547012, 0.06235933303833008, 0.03082471527159214, -0.024659771472215652, -0.046405207365751266, -0.023239966481924057, -0.057277925312519073, 0.025276266038417816, 0.04087543860077858, -0.008275968953967094, -0.028059830889105797, 0.00024023427977226675, -0.03291705995798111, -0.0447985865175724, 0.053728412836790085, 0.04674147441983223, -0.04371504858136177, -0.008490807376801968, -0.001221312559209764, 0.0049553061835467815, -0.015664558857679367, 0.010340290144085884, -0.018653621897101402, -0.044499680399894714, 0.0695330798625946, 0.010769967921078205, -0.025108130648732185, 0.05742737650871277, -0.02217511273920536, -0.005758617073297501, -0.010088087990880013, 0.021278394386172295, 0.03540171682834625, -0.0006194132729433477, 0.01980254426598549, 0.007822939194738865, -0.012096364982426167, 0.00666000647470355, 0.029516998678445816, 0.009233403019607067, 0.02421141229569912, 0.02856423519551754, 0.06362967938184738, -0.03454236313700676, 0.00705232098698616, 0.061275795102119446, 0.0018564885249361396, 0.019186049699783325, -0.076893649995327, 0.03409400209784508, -0.016010168939828873, 0.010293586179614067, -0.03713911026716232, -0.01608489640057087, -0.06900999695062637, -0.008243275806307793, 0.048161279410123825, -0.051000889390707016, 0.0069168792106211185, -0.06908472627401352, -0.006314395926892757, 0.03228188306093216, 0.023949868977069855, 0.013889803551137447, 0.011451848782598972, 0.04987999051809311, 0.023015785962343216, -0.026322437450289726, 0.00732787512242794, 0.054550401866436005, -0.0038624301087111235, 0.03941827267408371, -0.02903127670288086, -0.006010819226503372, 0.03564457967877388, 0.0003467780479695648, 0.021147621795535088, 0.006888856645673513, 0.036373164504766464, -0.03633579984307289, -0.05626911669969559, 0.013936507515609264, 0.04789973795413971, -0.0201388131827116, -0.018933847546577454, 0.02019485831260681, -0.0166079830378294, -0.000050024482334265485, 0.02723783813416958, -0.013506829738616943, -0.04674147441983223, 0.0013427432859316468, -0.0204937644302845, 0.02228720299899578, -0.049431633204221725, 0.03994135558605194, 0.03517753630876541, -0.011909549124538898, -0.029068639501929283, -0.028713688254356384, -0.04289305582642555, 0.051822882145643234, 0.08062998205423355, 0.021969614550471306, 0.0066880290396511555, 0.03818528354167938, 0.05742737650871277, -0.027854332700371742, -0.030862078070640564, -0.004086609929800034, -0.05186024680733681, 0.058324094861745834, -0.02880709618330002, 0.017747562378644943, 0.019727816805243492, -0.02236192859709263, 0.018606917932629585, -0.06781437247991562, -0.03975453972816467, -0.017009638249874115, 0.037643514573574066, 0.019895952194929123, -0.004754478577524424, 0.010312268510460854, 0.015262903645634651, 0.01619698666036129, -0.025818033143877983, -0.007332545705139637, 0.0233894195407629, -0.03319728374481201, -0.019186049699783325, -0.06617038697004318, -0.02153993584215641, 0.005207508336752653, 0.017345907166600227, -0.010415016673505306, 0.06142525002360344, -0.007911676540970802, -0.02641584537923336, -0.015935443341732025, 0.05010417103767395, 0.004476589150726795, 0.01694425195455551, 0.037120427936315536, 0.006814130116254091, -0.0624714195728302, -0.023352056741714478, 0.02525758370757103, -0.025294946506619453, -0.04307987168431282, 0.013637600466609001, 0.03246869891881943, -0.03837209939956665, 0.005249542184174061, -0.0733441412448883, -0.04184688627719879, 0.0720737874507904, 0.013843098655343056, -0.06478794664144516, 0.033234648406505585, 0.006347089074552059, -0.042183153331279755, -0.004691428039222956, -0.023931186646223068, 0.025967486202716827, -0.04797446355223656, 0.057502102106809616, -0.008299320936203003, 0.016215667128562927, 0.0416974313557148, -0.02368832565844059, -0.01524422224611044, 0.04349086806178093, -0.04180952161550522, -0.0034094001166522503, 0.0527196042239666, -0.06904736161231995, -0.021913569420576096, -0.038932546973228455, 0.010517765767872334, 0.05503612756729126, 0.03147857263684273, -0.005058055277913809, 0.06228460371494293, -0.002708838554099202, 0.04767555743455887, 0.013049129396677017, -0.00014792068395763636, -0.04894591122865677, -0.031777478754520416, -0.02514549344778061, -0.0035331661347299814, 0.003855424467474222, 0.02253006398677826, 0.045770030468702316, -0.020979488268494606, -0.007425954099744558, 0.05626911669969559, -0.00033335061743855476, 0.0442381352186203, -0.06437695026397705, -0.010134792886674404, 0.017925038933753967, 0.06265823543071747, 0.05369104817509651, 0.014693113975226879, 0.00987324956804514, 0.005917411297559738, 0.02721915766596794, -0.017663495615124702, -0.021222349256277084, 0.029591726139187813, 0.008061129599809647, 0.03413136675953865, 0.036541298031806946, -0.031497254967689514, -0.017747562378644943, 0.01851351000368595, 0.010106770321726799, -0.029218092560768127, -0.008892462588846684, -0.04588212072849274, 0.02908732183277607, 0.04823600873351097, -0.06691765040159225, -0.009480934590101242, 0.002839609980583191, -0.017280520871281624, -0.006459178868681192, 0.02137180231511593, 0.029853269457817078, 0.06306923180818558, -0.052047062665224075, 0.030002722516655922, -0.0898960754275322, 0.0354764424264431, 0.002862962195649743, 0.0014186374610289931, -0.030955485999584198, -0.022193795070052147, -0.016355780884623528, 0.02165202610194683, -0.05021626129746437, -0.020867398008704185, -0.09714455157518387, -0.03297310322523117, -0.0360368937253952, -0.02206302247941494, 0.025220220908522606, -0.05720319598913193, 0.024398228153586388, 0.009938634932041168, 0.018915165215730667, 0.03286101296544075, 0.04801182821393013, -0.030282946303486824, 0.013917825184762478, -0.016981614753603935, -0.11014697700738907, -0.034336864948272705, 0.0039581735618412495, 0.0552603043615818, -0.023034468293190002, 0.06400331854820251, 0.010172155685722828, -0.0009136492153629661, 0.03633579984307289, -0.07584747672080994, 0.0384468249976635, 0.021054213866591454, 0.016934910789132118, 0.045545849949121475, -0.01814921759068966, -0.014319481328129768, -0.02054980956017971, -0.019634408876299858, -0.05451304093003273, 0.07614638656377792, -0.006090216338634491, 0.006314395926892757, 0.024192729964852333, 0.012451316229999065, -0.022380610927939415, -0.029292820021510124, -0.05387786403298378, -0.030899440869688988, -0.068412184715271, -0.01933550275862217, -0.005665208678692579, -0.0030567841604351997, 0.009224061854183674, -0.015272244811058044, -0.052682239562273026, 0.01608489640057087, 0.035383034497499466, 0.0021624004002660513, -0.044387590140104294, 0.04431286081671715, -0.023837778717279434, 0.024192729964852333, -0.021876206621527672, 0.04453704133629799, 0.0047638192772865295, 0.04756346717476845, 0.04808655381202698, 0.023482827469706535, -0.0008149867644533515, -0.010573810897767544, -0.010499084368348122, -0.037830330431461334, 0.005380313843488693, -0.012385930866003036, -0.003885782090947032, -0.031142301857471466, -0.03030162863433361, 0.035794030874967575, 0.00871965754777193 ]
43,056
linearmodels.panel.model
RandomEffects
One-way Random Effects model for panel data Parameters ---------- dependent : array_like Dependent (left-hand-side) variable (time by entity) exog : array_like Exogenous or right-hand-side variables (variable by time by entity). weights : array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual time the weight should be homoskedastic. Notes ----- The model is given by .. math:: y_{it} = \beta^{\prime}x_{it} + u_i + \epsilon_{it} where :math:`u_i` is a shock that is independent of :math:`x_{it}` but common to all entities i.
class RandomEffects(_PanelModelBase): r""" One-way Random Effects model for panel data Parameters ---------- dependent : array_like Dependent (left-hand-side) variable (time by entity) exog : array_like Exogenous or right-hand-side variables (variable by time by entity). weights : array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual time the weight should be homoskedastic. Notes ----- The model is given by .. math:: y_{it} = \beta^{\prime}x_{it} + u_i + \epsilon_{it} where :math:`u_i` is a shock that is independent of :math:`x_{it}` but common to all entities i. """ def __init__( self, dependent: PanelDataLike, exog: PanelDataLike, *, weights: PanelDataLike | None = None, check_rank: bool = True, ) -> None: super().__init__(dependent, exog, weights=weights, check_rank=check_rank) @classmethod def from_formula( cls, formula: str, data: PanelDataLike, *, weights: PanelDataLike | None = None, check_rank: bool = True, ) -> RandomEffects: """ Create a model from a formula Parameters ---------- formula : str Formula to transform into model. Conforms to formulaic formula rules. data : array_like Data structure that can be coerced into a PanelData. In most cases, this should be a multi-index DataFrame where the level 0 index contains the entities and the level 1 contains the time. weights: array_like Weights to use in estimation. Assumes residual variance is proportional to inverse of weight to that the residual times the weight should be homoskedastic. check_rank : bool Flag indicating whether to perform a rank check on the exogenous variables to ensure that the model is identified. Skipping this check can reduce the time required to validate a model specification. Results may be numerically unstable if this check is skipped and the matrix is not full rank. Returns ------- RandomEffects Model specified using the formula Notes ----- Unlike standard formula syntax, it is necessary to explicitly include a constant using the constant indicator (1) Examples -------- >>> from linearmodels import RandomEffects >>> from linearmodels.panel import generate_panel_data >>> panel_data = generate_panel_data() >>> mod = RandomEffects.from_formula("y ~ 1 + x1", panel_data.data) >>> res = mod.fit() """ parser = PanelFormulaParser(formula, data, context=capture_context(1)) dependent, exog = parser.data mod = cls(dependent, exog, weights=weights, check_rank=check_rank) mod.formula = formula return mod def fit( self, *, small_sample: bool = False, cov_type: str = "unadjusted", debiased: bool = True, **cov_config: bool | float | str | IntArray | DataFrame | PanelData, ) -> RandomEffectsResults: """ Estimate model parameters Parameters ---------- small_sample : bool Apply a small-sample correction to the estimate of the variance of the random effect. cov_type : str Name of covariance estimator (see notes). Default is "unadjusted". debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- RandomEffectsResults Estimation results Examples -------- >>> from linearmodels import RandomEffects >>> mod = RandomEffects(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used. """ w = self.weights.values2d root_w = cast(Float64Array, np.sqrt(w)) demeaned_dep = self.dependent.demean("entity", weights=self.weights) demeaned_exog = self.exog.demean("entity", weights=self.weights) assert isinstance(demeaned_dep, PanelData) assert isinstance(demeaned_exog, PanelData) y = demeaned_dep.values2d x = demeaned_exog.values2d if self.has_constant: w_sum = w.sum() y_gm = (w * self.dependent.values2d).sum(0) / w_sum x_gm = (w * self.exog.values2d).sum(0) / w_sum y += root_w * y_gm x += root_w * x_gm params = _lstsq(x, y, rcond=None)[0] weps = y - x @ params wybar = self.dependent.mean("entity", weights=self.weights) wxbar = self.exog.mean("entity", weights=self.weights) params = _lstsq(np.asarray(wxbar), np.asarray(wybar), rcond=None)[0] wu = np.asarray(wybar) - np.asarray(wxbar) @ params nobs = weps.shape[0] neffects = wu.shape[0] nvar = x.shape[1] sigma2_e = float(np.squeeze(weps.T @ weps)) / (nobs - nvar - neffects + 1) ssr = float(np.squeeze(wu.T @ wu)) t = np.asarray(self.dependent.count("entity")) unbalanced = np.ptp(t) != 0 if small_sample and unbalanced: ssr = float(np.squeeze((t * wu).T @ wu)) wx_df = cast(DataFrame, root_w * self.exog.dataframe) means = wx_df.groupby(level=0).transform("mean").values denom = means.T @ means sums = wx_df.groupby(level=0).sum().values num = sums.T @ sums tr = np.trace(np.linalg.inv(denom) @ num) sigma2_u = max(0, (ssr - (neffects - nvar) * sigma2_e) / (nobs - tr)) else: t_bar = neffects / ((1.0 / t).sum()) sigma2_u = max(0, ssr / (neffects - nvar) - sigma2_e / t_bar) rho = sigma2_u / (sigma2_u + sigma2_e) theta = 1.0 - np.sqrt(sigma2_e / (t * sigma2_u + sigma2_e)) theta_out = DataFrame(theta, columns=["theta"], index=wybar.index) wy: Float64Array = np.asarray(root_w * self.dependent.values2d, dtype=float) wx: Float64Array = np.asarray(root_w * self.exog.values2d, dtype=float) index = self.dependent.index reindex = index.levels[0][index.codes[0]] wybar = (theta * wybar).loc[reindex] wxbar = (theta * wxbar).loc[reindex] wy -= wybar.values wx -= wxbar.values params = _lstsq(wx, wy, rcond=None)[0] df_resid = wy.shape[0] - wx.shape[1] cov_config = self._setup_clusters(cov_config) extra_df = 0 if "extra_df" in cov_config: cov_config = cov_config.copy() _extra_df = cov_config.pop("extra_df")
(dependent: 'PanelDataLike', exog: 'PanelDataLike', *, weights: 'PanelDataLike | None' = None, check_rank: 'bool' = True) -> 'None'
[ 0.02456222102046013, -0.05272330343723297, -0.007625085301697254, 0.03317699208855629, 0.03947499766945839, -0.03544877469539642, -0.08677751570940018, -0.03619103878736496, 0.022987719625234604, 0.037698060274124146, -0.0013713625958189368, 0.016858411952853203, 0.02813858911395073, 0.05011412873864174, -0.06360985338687897, 0.04957430064678192, -0.007968101650476456, 0.03990236297249794, 0.021424464881420135, -0.02883586846292019, -0.043996065855026245, -0.025304486975073814, -0.05564737692475319, 0.02435978502035141, 0.0049877953715622425, -0.0031939884647727013, -0.04930438473820686, 0.015317648649215698, -0.0051368107087910175, -0.04228660836815834, -0.037990469485521317, -0.033919259905815125, -0.011808760464191437, -0.03751811757683754, 0.008058072999119759, -0.0687832161784172, 0.03715823218226433, 0.00535330455750227, -0.04059964418411255, -0.01070660911500454, 0.01284343283623457, -0.028183573856949806, 0.11282426863908768, -0.01469909492880106, -0.06356486678123474, 0.010577275417745113, -0.016116145998239517, 0.08646261692047119, -0.01274221483618021, -0.013102101162075996, 0.022515369579195976, -0.011909978464245796, 0.030477847903966904, 0.009536979719996452, 0.020603474229574203, 0.04705509915947914, -0.005167738534510136, 0.047639913856983185, 0.07427147775888443, -0.08322364091873169, 0.05461270362138748, 0.01998492144048214, -0.0048387800343334675, -0.009936228394508362, -0.0013706596801057458, -0.004088080488145351, -0.012449807487428188, 0.01393433753401041, 0.017848096787929535, -0.014361701905727386, -0.01816299743950367, 0.019467584788799286, 0.05047401413321495, 0.017274528741836548, 0.007310185115784407, -0.052183475345373154, 0.00934579037129879, -0.06158549711108208, 0.020963361486792564, -0.012753461487591267, -0.005058085545897484, 0.014361701905727386, -0.0054320297203958035, -0.007748796138912439, 0.011831252835690975, -0.047774869948625565, -0.019377613440155983, 0.019400106742978096, 0.05213848873972893, -0.04282643646001816, -0.03331195190548897, 0.05474766343832016, 0.02204301953315735, 0.005724437069147825, 0.04239907115697861, 0.011094611138105392, 0.014687848277390003, -0.04397357255220413, 0.05663706362247467, -0.019467584788799286, -0.03835035488009453, 0.062350254505872726, -0.015328895300626755, 0.08691247552633286, -0.04239907115697861, 0.0036410344764590263, -0.05978606641292572, 0.009733792394399643, 0.008243639022111893, -0.0365959107875824, -0.044423431158065796, 0.05110381543636322, 0.014361701905727386, -0.015497592277824879, -0.012134906835854053, -0.03841783478856087, -0.07566604018211365, 0.025731850415468216, -0.009823763743042946, 0.03596610948443413, 0.02031106688082218, 0.021761858835816383, -0.0740465521812439, 0.022290440276265144, 0.05497258901596069, -0.005364551208913326, 0.011319540441036224, -0.008575409650802612, 0.0036550925578922033, -0.02737383171916008, -0.041544344276189804, -0.029848046600818634, 0.0012940432643517852, 0.0011119915870949626, 0.03585364669561386, 0.01974874548614025, 0.008423582650721073, -0.028183573856949806, -0.010622261092066765, 0.00859790202230215, 0.06725370138883591, 0.06428464502096176, 0.006382353603839874, 0.014148019254207611, -0.013225811533629894, 0.017285775393247604, 0.04030723497271538, -0.05132874473929405, -0.03452656418085098, -0.0022984908428043127, -0.020457271486520767, -0.03151252120733261, -0.021368233487010002, -0.022807776927947998, 0.008238015696406364, -0.02897082455456257, -0.02548442967236042, -0.05020410194993019, 0.007411403115838766, -0.006185540929436684, -0.09064629673957825, -0.046650227159261703, 0.031197620555758476, 0.03884519636631012, -0.01005993876606226, 0.02478715032339096, -0.018174244090914726, -0.039654940366744995, -0.011921225115656853, 0.008856570348143578, -0.016655975952744484, -0.03331195190548897, -0.017758125439286232, -0.027598759159445763, -0.08506806194782257, 0.0813792273402214, -0.011049625463783741, -0.03632599487900734, -0.02969059720635414, -0.013911844231188297, 0.0020145182497799397, -0.02611422911286354, -0.023617520928382874, -0.02933071181178093, -0.03477398678660393, 0.00981251709163189, 0.03850780427455902, -0.0012371082557365298, 0.024179842323064804, 0.039025142788887024, -0.060235925018787384, -0.017780618742108345, 0.040352221578359604, -0.0010459187906235456, 0.009402022697031498, -0.0028762766160070896, 0.05164364352822304, -0.01865784078836441, 0.03032039850950241, -0.03990236297249794, -0.009222079068422318, 0.002814421197399497, 0.04095952957868576, -0.019366366788744926, -0.04597543925046921, 0.005184608045965433, -0.005482638720422983, 0.021548176184296608, -0.04692013934254646, -0.0320073626935482, -0.02521451562643051, -0.00006022994784871116, 0.0026724350173026323, 0.008940918371081352, 0.06005598232150078, -0.010942784138023853, 0.02131200022995472, -0.004819098860025406, 0.031242605298757553, -0.002401114674285054, -0.017803112044930458, -0.01663348264992237, -0.08164913952350616, 0.029308218508958817, 0.015801245346665382, -0.01554257795214653, 0.0014353266451507807, 0.051823586225509644, 0.049259401857852936, -0.06653393059968948, 0.000820990011561662, 0.03569619357585907, 0.054927606135606766, -0.041544344276189804, 0.014991502277553082, -0.0018683145754039288, -0.017274528741836548, 0.033087022602558136, -0.008817207999527454, 0.010594145394861698, -0.06064079701900482, -0.0623052679002285, 0.01789308339357376, 0.022852763533592224, -0.017015861347317696, 0.04298388585448265, 0.09429013729095459, 0.07139238715171814, -0.02200927957892418, -0.04026224836707115, 0.024449756368994713, -0.0038687747437506914, -0.026159215718507767, 0.029870539903640747, -0.006961545441299677, -0.050653956830501556, 0.06756860017776489, 0.008305494673550129, 0.02849847450852394, -0.068423330783844, -0.020569736137986183, -0.031175127252936363, -0.03254719078540802, 0.01666722074151039, -0.0430738590657711, -0.0023462881799787283, -0.009615704417228699, 0.010133041068911552, 0.010768464766442776, 0.0252819936722517, -0.03292957320809364, 0.09168096631765366, -0.03987986966967583, -0.023752477020025253, -0.02651910111308098, 0.020772172138094902, 0.012584764510393143, -0.040487177670001984, 0.037967976182699203, 0.06617404520511627, -0.018432913348078728, -0.050024159252643585, -0.014215498231351376, 0.0599210225045681, 0.0013123187236487865, -0.02953314781188965, -0.03520135208964348, -0.039654940366744995, 0.05411786213517189, 0.008575409650802612, -0.024179842323064804, -0.005086201708763838, 0.05497258901596069, -0.024449756368994713, 0.0291957538574934, -0.008417959325015545, 0.013596943579614162, -0.0071864742785692215, -0.010099302046000957, 0.0005531841889023781, 0.04044219106435776, 0.04674019664525986, 0.06014595180749893, -0.00244891201145947, -0.03173745051026344, -0.03702327609062195, 0.08880187571048737, -0.054432760924100876, 0.025461936369538307, -0.02058098278939724, 0.01118458341807127, 0.046380311250686646, 0.00981251709163189, 0.039857376366853714, 0.012438560836017132, -0.05501757562160492, 0.002180403331294656, -0.023752477020025253, 0.07737549394369125, 0.08929672092199326, -0.001574501395225525, -0.031130140647292137, 0.04120694845914841, 0.0023603462614119053, 0.027463803067803383, -0.019175177440047264, 0.05096885934472084, -0.0003010179498232901, 0.0012167240492999554, -0.028678417205810547, -0.06648894399404526, -0.03868774697184563, -0.004855649545788765, 0.025326978415250778, -0.00027360476087778807, -0.05222845822572708, 0.02047976478934288, 0.001843010075390339, 0.0842583179473877, -0.009261442348361015, 0.04325380176305771, 0.02061472088098526, -0.03641596809029579, 0.049664270132780075, 0.024629700928926468, -0.08061446994543076, 0.06698378920555115, 0.015002748928964138, 0.008828453719615936, 0.0638347864151001, 0.035111378878355026, 0.026901479810476303, 0.03578616678714752, 0.05555740371346474, 0.01504773460328579, 0.03324447199702263, -0.03086022660136223, 0.03137756139039993, -0.003432975383475423, -0.015767507255077362, -0.01048730406910181, -0.01743197999894619, -0.04271397367119789, 0.0473250113427639, -0.008912802673876286, -0.012292357161641121, -0.003677585395053029, -0.024517236277461052, 0.04678518325090408, -0.02339259162545204, -0.01901772804558277, -0.05978606641292572, -0.014676601625978947, 0.014586630277335644, -0.005642900243401527, 0.029938019812107086, -0.01862410269677639, -0.018680334091186523, 0.04523317515850067, -0.04507572576403618, 0.04894449934363365, -0.024314800277352333, -0.04948432743549347, 0.0177018940448761, 0.007473258301615715, 0.0042089796625077724, 0.024899614974856377, -0.0347290001809597, -0.01239357516169548, -0.04228660836815834, 0.08259384334087372, -0.04849464073777199, 0.06172045320272446, -0.02144695818424225, -0.045885469764471054, -0.005775046069175005, -0.0030759009532630444, 0.04584048315882683, -0.07161732017993927, 0.0015196750173345208, -0.03425665199756622, -0.02303270623087883, 0.03178243339061737, 0.0007478881743736565, -0.051148802042007446, -0.05690697953104973, 0.009014020673930645, 0.060100965201854706, -0.023572534322738647, 0.06806344538927078, -0.02651910111308098, 0.03452656418085098, -0.05587230622768402, 0.004402980674058199, -0.004509821999818087, -0.021165797486901283, 0.005791915580630302, -0.03929505497217178, 0.06869324296712875, 0.013979323208332062, 0.02604675106704235, -0.013428247533738613, 0.06972791999578476, 0.05024908483028412, 0.021896814927458763, 0.02912827581167221, -0.07022275775671005, 0.01749945804476738, -0.029285725206136703, 0.0074620116502046585, -0.01756693609058857, -0.024584714323282242, -0.07715056836605072, -0.03740565478801727, 0.030770255252718925, -0.03477398678660393, -0.01848914474248886, 0.029803061857819557, -0.04683016985654831, 0.021660640835762024, 0.0025107674300670624, 0.030275411903858185, 0.046020425856113434, 0.0002853783662430942, -0.07238207757472992, 0.000726801052223891, -0.006506064441055059, -0.012449807487428188, -0.05938119441270828, -0.026721537113189697, 0.08556289970874786, 0.08691247552633286, 0.04736999794840813, 0.025304486975073814, -0.028296038508415222, -0.00013082771329209208, 0.011583831161260605, -0.05537746101617813, -0.008817207999527454, -0.03508888930082321, -0.015756260603666306, 0.016431046649813652, -0.0252819936722517, -0.010931538417935371, 0.011606324464082718, 0.019411353394389153, 0.04745997115969658, -0.05303820222616196, -0.00010455673327669501, 0.009638197720050812, 0.029983004555106163, 0.008873440325260162, 0.010121794417500496, -0.031332578510046005, -0.0161723792552948, -0.006292382255196571, -0.020963361486792564, 0.01945633813738823, 0.014485412277281284, -0.007473258301615715, 0.015025241300463676, -0.03668588027358055, -0.0025782459415495396, 0.013720654882490635, -0.004729127511382103, -0.005741306580603123, 0.017848096787929535, -0.034414101392030716, 0.04116196557879448, -0.0020384169183671474, -0.02505706436932087, 0.02366250567138195, 0.04311884567141533, 0.03848531097173691, -0.0660390853881836, 0.003646657569333911, 0.02701394446194172, -0.046875156462192535, 0.052813272923231125, -0.06266515702009201, 0.03486395999789238, 0.0012546807993203402, -0.05767173692584038, -0.026991453021764755, -0.005406725220382214, -0.05335310474038124, -0.007771288976073265, -0.007866883650422096, -0.02534947171807289, -0.028093602508306503, 0.006044960580766201, -0.019726252183318138, 0.03157999739050865, -0.03466152399778366, 0.03634848818182945, -0.01796056143939495, -0.008924048393964767, 0.09231076389551163, 0.02330262027680874, -0.01095403078943491, 0.029173260554671288, -0.015733767300844193, 0.015857478603720665, 0.002142446581274271, 0.042871423065662384, 0.028251053765416145, -0.026406636461615562, -0.014732833951711655, 0.045750509947538376, 0.0263841450214386, -0.019928688183426857, -0.06217031180858612, -0.0008554322412237525, 0.05861643701791763, 0.0009137731394730508, -0.028880853205919266, -0.0251920223236084, -0.0842583179473877, -0.029735583811998367, 0.021863076835870743, -0.02359502762556076, -0.025326978415250778, 0.014474166557192802, -0.03785551339387894, 0.018050532788038254, -0.00244891201145947, 0.03250220790505409, -0.005769422743469477, -0.059111278504133224, 0.002935320371761918, 0.025326978415250778, -0.02465219236910343, -0.0006811124039813876, 0.020243588835000992, 0.09037637710571289, -0.015250170603394508, -0.014395440928637981, -0.00027799789677374065, -0.04907945543527603, 0.03844032809138298, -0.026069244369864464, -0.07863509654998779, 0.03619103878736496, -0.06455455720424652, 0.013124593533575535, 0.02402239292860031, 0.017207050696015358, 0.032299771904945374, -0.050923872739076614, -0.0410270057618618, -0.019535062834620476, 0.07499124854803085, 0.026496609672904015, 0.0473250113427639, -0.03801296278834343, 0.012708475813269615, 0.06455455720424652, -0.04997917264699936, -0.021300753578543663, -0.01776937209069729, 0.034751493483781815, -0.036303501576185226, -0.03288458660244942, -0.03605608269572258, 0.0264741163700819, 0.043096352368593216, 0.012089921161532402, 0.07962478697299957, 0.017758125439286232, 0.009576342068612576, -0.0029943641275167465, 0.057356834411621094, -0.0389801561832428, -0.027463803067803383, 0.0145978769287467, 0.052048515528440475, -0.022414151579141617, -0.002935320371761918, 0.039947349578142166, 0.027688730508089066, -0.02780119515955448, 0.021165797486901283, 0.043298788368701935, -0.00422584917396307, 0.012888418510556221, -0.02141321823000908, 0.015621302649378777, -0.025776837021112442, 0.023977406322956085, -0.020963361486792564, -0.025709358975291252, -0.028813375160098076, -0.013383261859416962, -0.018680334091186523, 0.0200861394405365, -0.050294071435928345, -0.05272330343723297, 0.004965302534401417, 0.06378979980945587, 0.007765665650367737, 0.008912802673876286, 0.026834001764655113, -0.01653226464986801, 0.014226744882762432, -0.029668103903532028, -0.04145437106490135, 0.045188188552856445, -0.09087122231721878, -0.01961378939449787, -0.04768490046262741, 0.0040346598252654076, 0.025394458323717117, 0.006179918069392443, -0.03331195190548897, 0.0354037880897522, 0.04410853236913681, 0.035381294786930084, -0.0006744348793290555, 0.006730993278324604, -0.00734954746440053, 0.01869158074259758, 0.009289558045566082, -0.0059999749064445496, 0.03065779060125351, -0.015126459300518036, 0.040779586881399155, -0.03095019795000553, -0.003784426487982273, 0.008581032045185566, -0.0017038354417309165, 0.0010606796713545918, -0.014744080603122711, -0.055197518318891525, -0.0061180624179542065, 0.0291957538574934, 0.007096502464264631, 0.00500466488301754, -0.004515444859862328, 0.06473449617624283, 0.0016883715288713574, 0.020985854789614677, 0.020569736137986183, 0.0434112511575222, 0.018039287999272346, 0.06891817599534988, -0.01928764209151268, 0.01809551939368248, 0.004515444859862328, 0.03868774697184563, 0.02856595255434513, 0.010667246766388416, -0.05650210753083229, -0.04719005525112152, -0.0007155546336434782, -0.004284893162548542, -0.017443226650357246, 0.0228977482765913, 0.03218730539083481, 0.010200520046055317, -0.02144695818424225, 0.067073754966259, 0.05290324613451958, 0.0011105857556685805, -0.056322164833545685, 0.07391159236431122, -0.009452631697058678, 0.0017600676510483027, -0.023482562974095345, 0.0056091612204909325, -0.050159115344285965, -0.04957430064678192, 0.016948383301496506, -0.024944599717855453, 0.009441385045647621, 0.04208417236804962, -0.11894233524799347, -0.03956497088074684, -0.03508888930082321, 0.00990811176598072, -0.00560072623193264, 0.023550041019916534, -0.009188340045511723, -0.010172403417527676, 0.04795481264591217, -0.021401971578598022, 0.06284509599208832, -0.035606224089860916, -0.0036044835578650236, 0.021458204835653305, -0.07296688854694366, -0.020952114835381508, 0.07395657896995544, 0.04745997115969658, -0.007450765464454889, 0.03736066818237305, 0.007613838650286198, -0.009081498719751835, 0.01393433753401041, -0.05312817543745041, 0.005606349557638168, 0.024269813671708107, 0.04145437106490135, 0.00519585469737649, 0.017746880650520325, -0.019006481394171715, -0.03805794566869736, 0.022650327533483505, -0.01865784078836441, 0.042871423065662384, -0.04089204967021942, 0.03749562427401543, -0.0007682723226025701, -0.003205234883353114, -0.016352321952581406, 0.018410420045256615, -0.02449474297463894, 0.0005373688763938844, -0.017274528741836548, -0.06154051050543785, 0.0039699929766356945, -0.03556123748421669, -0.02555190771818161, -0.06828837096691132, -0.07571102678775787, 0.006837834604084492, 0.04871957004070282, 0.022312933579087257, 0.019906196743249893, 0.06477948278188705, -0.04431096836924553, 0.06873822957277298, -0.017117079347372055, 0.0082998713478446, 0.044918276369571686, 0.06203535571694374, 0.011088987812399864, 0.03562871739268303, -0.014429180882871151, -0.039722420275211334, -0.06113563850522041, -0.007816274650394917, -0.028183573856949806, 0.0452781617641449, 0.04521068185567856, 0.02211049757897854, 0.0034582798834890127, 0.005628842394798994, 0.014811559580266476 ]
43,071
linearmodels.panel.model
fit
Estimate model parameters Parameters ---------- small_sample : bool Apply a small-sample correction to the estimate of the variance of the random effect. cov_type : str Name of covariance estimator (see notes). Default is "unadjusted". debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- RandomEffectsResults Estimation results Examples -------- >>> from linearmodels import RandomEffects >>> mod = RandomEffects(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used.
def fit( self, *, small_sample: bool = False, cov_type: str = "unadjusted", debiased: bool = True, **cov_config: bool | float | str | IntArray | DataFrame | PanelData, ) -> RandomEffectsResults: """ Estimate model parameters Parameters ---------- small_sample : bool Apply a small-sample correction to the estimate of the variance of the random effect. cov_type : str Name of covariance estimator (see notes). Default is "unadjusted". debiased : bool Flag indicating whether to debiased the covariance estimator using a degree of freedom adjustment. **cov_config Additional covariance-specific options. See Notes. Returns ------- RandomEffectsResults Estimation results Examples -------- >>> from linearmodels import RandomEffects >>> mod = RandomEffects(y, x) >>> res = mod.fit(cov_type="clustered", cluster_entity=True) Notes ----- Four covariance estimators are supported: * "unadjusted", "homoskedastic" - Assume residual are homoskedastic * "robust", "heteroskedastic" - Control for heteroskedasticity using White's estimator * "clustered` - One- or two-way clustering. Configuration options are: * ``clusters`` - Input containing 1 or 2 variables. Clusters should be integer values, although other types will be coerced to integer values by treating as categorical variables * ``cluster_entity`` - Boolean flag indicating to use entity clusters * ``cluster_time`` - Boolean indicating to use time clusters * "kernel" - Driscoll-Kraay HAC estimator. Configurations options are: * ``kernel`` - One of the supported kernels (bartlett, parzen, qs). Default is Bartlett's kernel, which is produces a covariance estimator similar to the Newey-West covariance estimator. * ``bandwidth`` - Bandwidth to use when computing the kernel. If not provided, a naive default is used. """ w = self.weights.values2d root_w = cast(Float64Array, np.sqrt(w)) demeaned_dep = self.dependent.demean("entity", weights=self.weights) demeaned_exog = self.exog.demean("entity", weights=self.weights) assert isinstance(demeaned_dep, PanelData) assert isinstance(demeaned_exog, PanelData) y = demeaned_dep.values2d x = demeaned_exog.values2d if self.has_constant: w_sum = w.sum() y_gm = (w * self.dependent.values2d).sum(0) / w_sum x_gm = (w * self.exog.values2d).sum(0) / w_sum y += root_w * y_gm x += root_w * x_gm params = _lstsq(x, y, rcond=None)[0] weps = y - x @ params wybar = self.dependent.mean("entity", weights=self.weights) wxbar = self.exog.mean("entity", weights=self.weights) params = _lstsq(np.asarray(wxbar), np.asarray(wybar), rcond=None)[0] wu = np.asarray(wybar) - np.asarray(wxbar) @ params nobs = weps.shape[0] neffects = wu.shape[0] nvar = x.shape[1] sigma2_e = float(np.squeeze(weps.T @ weps)) / (nobs - nvar - neffects + 1) ssr = float(np.squeeze(wu.T @ wu)) t = np.asarray(self.dependent.count("entity")) unbalanced = np.ptp(t) != 0 if small_sample and unbalanced: ssr = float(np.squeeze((t * wu).T @ wu)) wx_df = cast(DataFrame, root_w * self.exog.dataframe) means = wx_df.groupby(level=0).transform("mean").values denom = means.T @ means sums = wx_df.groupby(level=0).sum().values num = sums.T @ sums tr = np.trace(np.linalg.inv(denom) @ num) sigma2_u = max(0, (ssr - (neffects - nvar) * sigma2_e) / (nobs - tr)) else: t_bar = neffects / ((1.0 / t).sum()) sigma2_u = max(0, ssr / (neffects - nvar) - sigma2_e / t_bar) rho = sigma2_u / (sigma2_u + sigma2_e) theta = 1.0 - np.sqrt(sigma2_e / (t * sigma2_u + sigma2_e)) theta_out = DataFrame(theta, columns=["theta"], index=wybar.index) wy: Float64Array = np.asarray(root_w * self.dependent.values2d, dtype=float) wx: Float64Array = np.asarray(root_w * self.exog.values2d, dtype=float) index = self.dependent.index reindex = index.levels[0][index.codes[0]] wybar = (theta * wybar).loc[reindex] wxbar = (theta * wxbar).loc[reindex] wy -= wybar.values wx -= wxbar.values params = _lstsq(wx, wy, rcond=None)[0] df_resid = wy.shape[0] - wx.shape[1] cov_config = self._setup_clusters(cov_config) extra_df = 0 if "extra_df" in cov_config: cov_config = cov_config.copy() _extra_df = cov_config.pop("extra_df") assert isinstance(_extra_df, (str, int)) extra_df = int(_extra_df) cov = setup_covariance_estimator( self._cov_estimators, cov_type, wy, np.asarray(wx), params, self.dependent.entity_ids, self.dependent.time_ids, debiased=debiased, extra_df=extra_df, **cov_config, ) weps = wy - wx @ params eps = weps / root_w index = self.dependent.index fitted = DataFrame(self.exog.values2d @ params, index, ["fitted_values"]) effects = DataFrame( self.dependent.values2d - np.asarray(fitted) - eps, index, ["estimated_effects"], ) idiosyncratic = DataFrame(eps, index, ["idiosyncratic"]) residual_ss = float(np.squeeze(weps.T @ weps)) wmu: float | Float64Array = 0.0 if self.has_constant: wmu = root_w * _lstsq(root_w, wy, rcond=None)[0] wy_demeaned = wy - wmu total_ss = float(np.squeeze(wy_demeaned.T @ wy_demeaned)) r2 = 1 - residual_ss / total_ss res = self._postestimation( params, cov, debiased, df_resid, weps, wy, wx, root_w ) res.update( dict( df_resid=df_resid, df_model=x.shape[1], nobs=y.shape[0], residual_ss=residual_ss, total_ss=total_ss, r2=r2, resids=eps, wresids=weps, index=index, sigma2_eps=sigma2_e, sigma2_effects=sigma2_u, rho=rho, theta=theta_out, fitted=fitted, effects=effects, idiosyncratic=idiosyncratic, ) ) return RandomEffectsResults(res)
(self, *, small_sample: bool = False, cov_type: str = 'unadjusted', debiased: bool = True, **cov_config: bool | float | str | numpy.ndarray | pandas.core.frame.DataFrame | linearmodels.panel.data.PanelData) -> linearmodels.panel.results.RandomEffectsResults
[ 0.019376732409000397, -0.03410126641392708, -0.001675013336353004, 0.016471892595291138, 0.044251516461372375, -0.04830271005630493, -0.07804115116596222, -0.06250414997339249, 0.014624369330704212, 0.0334557481110096, -0.009120753966271877, 0.0056455181911587715, 0.00033249848638661206, 0.03125207498669624, -0.04002224653959274, 0.06940454244613647, -0.04538673907518387, 0.037952128797769547, 0.03657205030322075, -0.014234830625355244, -0.04923760145902634, -0.0233055017888546, -0.07617136836051941, 0.006366163492202759, 0.0031246510334312916, -0.029270997270941734, -0.03790761157870293, -0.014646627940237522, 0.005523092113435268, -0.04834722727537155, -0.008825818076729774, -0.020623253658413887, 0.00007116893539205194, -0.03817472234368324, 0.014034496620297432, -0.04456314444541931, 0.03690594062209129, 0.0178853590041399, 0.001331385225057602, -0.004554811865091324, -0.05026153102517128, -0.038619909435510635, 0.09651638567447662, -0.006449636071920395, -0.04594322293996811, 0.026110174134373665, -0.030517518520355225, 0.07826374471187592, -0.005013910122215748, -0.004410126246511936, 0.039354465901851654, -0.0408458411693573, 0.029827479273080826, -0.0027949351351708174, 0.053823020309209824, -0.0016430155374109745, -0.013277680613100529, 0.04233721271157265, 0.08089034259319305, -0.07305506616830826, 0.07345573604106903, 0.019165268167853355, -0.012654419988393784, -0.0004538813082035631, 0.00034293255885131657, 0.0021215907763689756, -0.006304950453341007, 0.023016130551695824, 0.026666657999157906, 0.006627710536122322, 0.006393987685441971, 0.003077350091189146, -0.0029076228383928537, 0.012309400364756584, -0.002075680997222662, -0.043695032596588135, -0.001359904883429408, -0.06143570318818092, -0.018708953633904457, -0.022437388077378273, 0.010767943225800991, 0.031808558851480484, -0.03525875136256218, -0.0036922635044902563, 0.00913744792342186, -0.0011797435581684113, -0.05137449502944946, -0.011819695122539997, 0.028669996187090874, -0.015114073641598225, -0.005542568862438202, 0.06749023497104645, 0.024173613637685776, 0.00556761072948575, 0.05266553536057472, 0.026688916608691216, 0.002462436445057392, -0.04794656112790108, 0.04897049069404602, -0.013366717845201492, -0.03383415564894676, 0.05075123533606529, 0.0184640996158123, 0.06940454244613647, -0.020612124353647232, -0.015013907104730606, -0.02519754320383072, 0.0017988308100029826, 0.03338896855711937, -0.03971061483025551, -0.01354479230940342, 0.008202556520700455, 0.0018836944364011288, -0.028692254796624184, -0.017440171912312508, -0.0653088241815567, -0.06744571775197983, 0.027935437858104706, -0.0429159551858902, 0.05742902681231499, 0.020968273282051086, 0.021268773823976517, -0.06633275747299194, 0.00782414898276329, 0.04598774015903473, 0.0011581799481064081, 0.005052864085882902, 0.011157480999827385, 0.012331659905612469, -0.018052302300930023, -0.04547577723860741, -0.015859760344028473, -0.004045630339533091, -0.005534221883863211, 0.020868105813860893, 0.03770727664232254, -0.017941007390618324, -0.018219247460365295, -0.018675563856959343, -0.01599331572651863, 0.053155239671468735, 0.08480798453092575, 0.009827487170696259, 0.00022572334273718297, -0.007818583399057388, 0.023706167936325073, 0.026822471991181374, -0.06504171341657639, -0.04723426327109337, 0.017406782135367393, -0.0466110035777092, -0.01610461249947548, -0.0516861267387867, -0.027979956939816475, -0.036750126630067825, -0.0701613575220108, -0.023639390245079994, -0.01814134046435356, 0.0003385850286576897, 0.011224258691072464, -0.08102390170097351, -0.032943785190582275, 0.04736781865358353, 0.02070116065442562, 0.00016659704851917922, 0.019922085106372833, -0.03942124545574188, 0.01066221110522747, -0.010812461376190186, -0.009961042553186417, -0.005011127796024084, -0.006243737414479256, -0.012676678597927094, -0.02829158678650856, -0.07759596407413483, 0.08449635654687881, 0.003333332249894738, -0.04576514661312103, -0.046165816485881805, -0.02953810803592205, 0.009031716734170914, -0.020690031349658966, -0.021613793447613716, -0.02259320393204689, -0.016193650662899017, 0.00008168994099833071, 0.03378963842988014, 0.013633829541504383, 0.032365042716264725, 0.013422366231679916, -0.02764606662094593, -0.005520309787243605, 0.026911510154604912, -0.03534778952598572, 0.01293266098946333, -0.0024680013302713633, 0.056850288063287735, -0.03904283419251442, 0.04821367189288139, -0.031074000522494316, -0.031207557767629623, -0.0210016630589962, 0.02708958461880684, -0.035459086298942566, -0.04097939655184746, 0.01190873235464096, -0.01053422037512064, -0.009632717818021774, -0.03436838090419769, -0.01855313777923584, -0.020845847204327583, 0.0031107389368116856, 0.007161933928728104, -0.031051741912961006, 0.05551472678780556, -0.007801889441907406, 0.0029104051645845175, -0.00105870864354074, 0.017529210075736046, -0.015826372429728508, -0.034190304577350616, -0.02274901792407036, -0.05738450959324837, 0.014602109789848328, 0.022882573306560516, -0.023127427324652672, -0.0044991634786129, 0.043049510568380356, 0.03971061483025551, -0.08218138664960861, -0.004404561594128609, 0.05173064395785332, 0.05511406064033508, -0.04409569874405861, -0.0008124649175442755, 0.018909286707639694, -0.009538115933537483, 0.035637158900499344, -0.0010573173640295863, -0.010723424144089222, -0.028625477105379105, -0.05106286332011223, 0.012609900906682014, 0.008636613376438618, -0.04166943579912186, 0.03777405619621277, 0.07688366621732712, 0.07474677264690399, -0.00016607534780632704, -0.019810788333415985, 0.031163038685917854, -0.01381190400570631, -0.04260432720184326, 0.013489143922924995, -0.002256537787616253, -0.02319420501589775, 0.082626573741436, -0.010072339326143265, 0.027356695383787155, -0.0690038725733757, -0.013967718929052353, -0.0144240353256464, -0.011118526570498943, 0.033678341656923294, -0.0877016931772232, -0.0031329982448369265, 0.024396207183599472, -0.03701723739504814, -0.010745683684945107, 0.041802991181612015, -0.06179185211658478, 0.09420141577720642, -0.024329429492354393, -0.04525318369269371, -0.030584296211600304, 0.06312741339206696, 0.005932107102125883, -0.04040065407752991, 0.04207010194659233, 0.08213686943054199, -0.0037701711989939213, -0.04284917935729027, 0.015414574183523655, 0.048035599291324615, -0.010717859491705894, -0.027913179248571396, -0.03398996964097023, -0.0023024477995932102, 0.039176393300294876, -0.0029465765692293644, -0.013055087067186832, 0.023750687018036842, 0.06597660481929779, -0.04416247829794884, 0.028625477105379105, -0.04567611217498779, 0.022348349913954735, -0.014869221486151218, 0.007139674853533506, 0.0378408320248127, 0.014501942321658134, 0.06726764142513275, 0.03813020512461662, 0.0009682801319286227, 0.004454644862562418, 0.009777403436601162, 0.09847520291805267, -0.08476346731185913, 0.011997769586741924, -0.022904833778738976, -0.021268773823976517, 0.05778517574071884, -0.00038466876139864326, 0.039977725595235825, -0.02515302412211895, -0.05026153102517128, 0.007173063699156046, -0.0270005464553833, 0.0436059944331646, 0.10239284485578537, -0.008324983529746532, -0.031074000522494316, 0.06317193061113358, -0.02833610586822033, 0.03726208955049515, -0.0070673320442438126, 0.033032819628715515, 0.024351688101887703, -0.012053417973220348, -0.04736781865358353, -0.0440734401345253, -0.05547020956873894, -0.023594873026013374, 0.02381746470928192, 0.01988869719207287, -0.04652196541428566, 0.03381189703941345, -0.020345011726021767, 0.07808566838502884, 0.003422369481995702, 0.007095156237483025, 0.02631050907075405, -0.03334445133805275, 0.027979956939816475, 0.00611018156632781, -0.08062323182821274, 0.08373953402042389, -0.004159708973020315, 0.03721757233142853, 0.0579187348484993, -0.00658319192007184, 0.05199775472283363, 0.055069539695978165, 0.07029490917921066, 0.02635502628982067, 0.04082357883453369, -0.021502496674656868, 0.02397328056395054, 0.013099606148898602, -0.02711184322834015, -0.04042291268706322, 0.022003332152962685, -0.028068993240594864, 0.04901500791311264, 0.0053811888210475445, 0.00022781016014050692, -0.015214241109788418, -0.05475791171193123, 0.008725650608539581, -0.029716182500123978, -0.022003332152962685, -0.03496938198804855, -0.0408458411693573, 0.03452419489622116, 0.02021145634353161, 0.011302166618406773, -0.05342235043644905, -0.02240399830043316, 0.05417916923761368, 0.00453533511608839, 0.026599880307912827, -0.004844183102250099, -0.061302147805690765, 0.008002223446965218, 0.01947689987719059, -0.018352804705500603, 0.023728428408503532, -0.04848078265786171, -0.0237729474902153, -0.03975513204932213, 0.08151360601186752, -0.028781292960047722, 0.03332219272851944, -0.00263355509378016, -0.01698385551571846, -0.004001111723482609, -0.026644397526979446, 0.029849739745259285, -0.07746241241693497, 0.022882573306560516, -0.03701723739504814, 0.005703948903828859, 0.025353357195854187, 0.008580964989960194, -0.05613798648118973, -0.07608233392238617, -0.005612129345536232, 0.03499164059758186, -0.012031158432364464, 0.058141324669122696, -0.046744558960199356, 0.0334557481110096, -0.06468556821346283, 0.03020588867366314, -0.03979965299367905, -0.009961042553186417, 0.015792982652783394, -0.008497492410242558, 0.07737337052822113, 0.024129096418619156, 0.04324984550476074, -0.021335551515221596, 0.07425706833600998, 0.06214800104498863, 0.022904833778738976, 0.019677232950925827, -0.06606563925743103, 0.01347801461815834, -0.007729546632617712, -0.01848636008799076, 0.005609347019344568, -0.010239284485578537, -0.055559247732162476, -0.02633276768028736, 0.030005553737282753, -0.0005930020124651492, -0.010333886370062828, 0.021769609302282333, -0.012097937054932117, 0.03717305511236191, -0.018375063315033913, 0.029983295127749443, 0.013978849165141582, -0.00033302020165137947, -0.050038937479257584, 0.001588758546859026, 0.013455755077302456, -0.014357256703078747, -0.04830271005630493, -0.02639954537153244, 0.08734554797410965, 0.06259319186210632, 0.04202558472752571, 0.00883694738149643, -0.017640504986047745, -0.005406230688095093, 0.017117412760853767, -0.034902602434158325, -0.03071785159409046, -0.03140789270401001, -0.010934887453913689, 0.0038619907572865486, -0.029961036518216133, -0.012264881283044815, 0.021914293989539146, 0.030406221747398376, 0.023572612553834915, -0.03697272017598152, 0.01444629393517971, 0.016505280509591103, 0.027245398610830307, 0.014835832640528679, 0.0025653857737779617, -0.010773507878184319, 0.01762937568128109, -0.004991651047021151, -0.03572619706392288, 0.03521423414349556, 0.039354465901851654, 0.007863102480769157, 0.03786309063434601, -0.037462424486875534, -0.008146909065544605, 0.005294934380799532, 0.02033388242125511, -0.03140789270401001, -0.001137311803176999, -0.020255975425243378, 0.04888145253062248, 0.04006676375865936, -0.0031802994199097157, 0.00771841686218977, 0.05132997781038284, 0.00924318004399538, -0.07100720703601837, 0.011752917431294918, 0.012543123215436935, -0.039955466985702515, 0.05088479071855545, -0.05132997781038284, 0.06027822196483612, -0.024195874109864235, -0.0655314177274704, -0.021725090220570564, -0.039332207292318344, -0.04520866647362709, -0.010829156264662743, -0.00798552855849266, -0.017095152288675308, -0.03151918947696686, -0.011975510977208614, -0.0020075119100511074, 0.029293255880475044, -0.057473547756671906, 0.04280465841293335, -0.018052302300930023, 0.013667218387126923, 0.08391761034727097, 0.036193642765283585, -0.015013907104730606, 0.011174174956977367, 0.003400110173970461, 0.014101275242865086, 0.018909286707639694, 0.058764588087797165, 0.03407900780439377, -0.021235384047031403, 0.0007623814744874835, 0.05012797191739082, 0.02775736339390278, -0.046922631561756134, -0.0840066522359848, -0.0005349191487766802, 0.04794656112790108, 0.0339231938123703, -0.05346687138080597, -0.027401214465498924, -0.07928767055273056, -0.03770727664232254, 0.008658872917294502, -0.028002215549349785, -0.039176393300294876, 0.005300499033182859, -0.040511950850486755, 0.012810234911739826, -0.0013070390559732914, 0.02951584942638874, 0.00470784492790699, -0.03329993411898613, -0.004410126246511936, 0.00044275165419094265, -0.031007222831249237, 0.024307170882821083, 0.059521403163671494, 0.0851641297340393, -0.01319977268576622, -0.004412909038364887, 0.00031093478901311755, -0.04759041219949722, 0.04901500791311264, -0.015269888564944267, -0.056894805282354355, 0.030962705612182617, -0.07296603173017502, 0.004446297883987427, 0.039398983120918274, 0.03465775027871132, 0.049415674060583115, -0.041802991181612015, -0.04723426327109337, -0.02001112326979637, 0.052576497197151184, -0.0013905115192756057, 0.04910404607653618, -0.03592653200030327, 0.02949359081685543, 0.04580966755747795, -0.03463549166917801, -0.031830817461013794, 0.012175844050943851, 0.04276014119386673, -0.03959931805729866, -0.028068993240594864, -0.020578734576702118, 0.0218029972165823, 0.01784083992242813, 0.010907063260674477, 0.05288812890648842, 0.030005553737282753, 0.00009851485083345324, -0.022971611469984055, 0.04191428795456886, -0.05872006714344025, -0.012654419988393784, 0.024373948574066162, 0.05920977517962456, -0.02136894129216671, 0.0049220905639231205, 0.030406221747398376, 0.004101278260350227, -0.010161376558244228, 0.000060126232710899785, 0.061880890280008316, -0.00495547940954566, 0.0074179163202643394, -0.010840285569429398, 0.022114627063274384, -0.002305230125784874, 0.03187533840537071, -0.02508624643087387, 0.008002223446965218, -0.038642168045043945, -0.016149131581187248, -0.020345011726021767, 0.008402890525758266, -0.03944350406527519, -0.04612129554152489, 0.0017139671836048365, 0.06628823280334473, 0.014134664088487625, 0.02635502628982067, 0.02586532197892666, 0.002060377737507224, 0.0036978283897042274, -0.031719520688056946, -0.031074000522494316, 0.051819682121276855, -0.10016690939664841, -0.018653305247426033, -0.054490797221660614, 0.00252086715772748, 0.05208679288625717, 0.03025040775537491, -0.033589303493499756, 0.025464653968811035, 0.04391762614250183, 0.0296494048088789, -0.0017654418479651213, -0.003817472141236067, -0.010673340409994125, 0.03882024064660072, 0.06312741339206696, 0.012877012602984905, 0.03848635405302048, -0.02390650287270546, 0.031808558851480484, -0.025976618751883507, -0.00768502801656723, -0.017061764374375343, -0.0058820233680307865, 0.008452974259853363, -0.007646074052900076, -0.06615468114614487, -0.015281018801033497, 0.024952691048383713, 0.008653308264911175, 0.010272673331201077, 0.0171953197568655, 0.05226486921310425, 0.013088475912809372, 0.04160265624523163, 0.01723983883857727, 0.037974387407302856, -0.01594879850745201, 0.06717860698699951, -0.01567055657505989, -0.0016930990386754274, -0.04149135947227478, 0.03819698095321655, -0.005205896683037281, 0.017317745834589005, -0.042982734739780426, -0.04271562397480011, -0.0039899819530546665, 0.0009940174641087651, -0.022448517382144928, 0.012765715830028057, 0.03134111315011978, 0.02021145634353161, -0.03151918947696686, 0.0717640295624733, 0.07118528336286545, 0.03309959918260574, -0.04031161591410637, 0.102927066385746, -0.03269893303513527, -0.023105166852474213, -0.0383082777261734, -0.008881466463208199, -0.031007222831249237, -0.053155239671468735, -0.013400106690824032, -0.061257630586624146, -0.012020029127597809, 0.05337783321738243, -0.10862544924020767, -0.01053422037512064, -0.031118519604206085, -0.004649414215236902, 0.0016304947203025222, 0.024307170882821083, -0.010127987712621689, 0.0026544230058789253, 0.0396883562207222, -0.0039760698564350605, 0.06811349838972092, 0.0010684470180422068, -0.0026794648729264736, 0.02584306336939335, -0.06579852849245071, -0.01859765686094761, 0.03835279867053032, 0.0029437942430377007, -0.0046994974836707115, 0.019599325954914093, 0.022415129467844963, -0.02175847813487053, 0.028180290013551712, -0.027490252628922462, 0.01654979959130287, 0.012109066359698772, 0.03657205030322075, -0.032943785190582275, -0.00153171899728477, -0.01640511304140091, -0.05017249286174774, 0.03341123089194298, 0.0012854753294959664, 0.05547020956873894, -0.03503615781664848, 0.03405674919486046, -0.027935437858104706, -0.004012241028249264, -0.027801882475614548, -0.011174174956977367, -0.01818585954606533, -0.0002450263418722898, 0.006405117455869913, -0.05092930793762207, -0.012164714746177197, -0.05342235043644905, 0.024841394275426865, -0.06731216609477997, -0.06855868548154831, -0.01255425252020359, 0.03381189703941345, 0.029983295127749443, -0.01506955549120903, 0.049949899315834045, -0.04852530360221863, 0.0629938542842865, 0.001789092319086194, 0.018653305247426033, 0.03341123089194298, 0.06593208760023117, 0.029382294043898582, 0.026933768764138222, -0.007651639170944691, -0.03009459190070629, -0.03071785159409046, 0.0035976616200059652, -0.030984964221715927, 0.035414569079875946, 0.034390639513731, 0.014067886397242546, 0.02444072626531124, 0.010194765403866768, -0.000937673554290086 ]
43,074
linearmodels.system.model
SUR
Seemingly unrelated regression estimation (SUR/SURE) Parameters ---------- equations : dict Dictionary-like structure containing dependent and exogenous variable values. Each key is an equations label and must be a string. Each value must be either a tuple of the form (dependent, exog, [weights]) or a dictionary with keys "dependent" and "exog" and the optional key "weights". sigma : array_like Prespecified residual covariance to use in GLS estimation. If not provided, FGLS is implemented based on an estimate of sigma. Notes ----- Estimates a set of regressions which are seemingly unrelated in the sense that separate estimation would lead to consistent parameter estimates. Each equation is of the form .. math:: y_{i,k} = x_{i,k}\beta_i + \epsilon_{i,k} where k denotes the equation and i denoted the observation index. By stacking vertically arrays of dependent and placing the exogenous variables into a block diagonal array, the entire system can be compactly expressed as .. math:: Y = X\beta + \epsilon where .. math:: Y = \left[\begin{array}{x}Y_1 \\ Y_2 \\ \vdots \\ Y_K\end{array}\right] and .. math:: X = \left[\begin{array}{cccc} X_1 & 0 & \ldots & 0 \\ 0 & X_2 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & X_K \end{array}\right] The system OLS estimator is .. math:: \hat{\beta}_{OLS} = (X'X)^{-1}X'Y When certain conditions are satisfied, a GLS estimator of the form .. math:: \hat{\beta}_{GLS} = (X'\Omega^{-1}X)^{-1}X'\Omega^{-1}Y can improve accuracy of coefficient estimates where .. math:: \Omega = \Sigma \otimes I_N where :math:`\Sigma` is the covariance matrix of the residuals. SUR is a special case of 3SLS where there are no endogenous regressors and no instruments.
class SUR(_LSSystemModelBase): r""" Seemingly unrelated regression estimation (SUR/SURE) Parameters ---------- equations : dict Dictionary-like structure containing dependent and exogenous variable values. Each key is an equations label and must be a string. Each value must be either a tuple of the form (dependent, exog, [weights]) or a dictionary with keys "dependent" and "exog" and the optional key "weights". sigma : array_like Prespecified residual covariance to use in GLS estimation. If not provided, FGLS is implemented based on an estimate of sigma. Notes ----- Estimates a set of regressions which are seemingly unrelated in the sense that separate estimation would lead to consistent parameter estimates. Each equation is of the form .. math:: y_{i,k} = x_{i,k}\beta_i + \epsilon_{i,k} where k denotes the equation and i denoted the observation index. By stacking vertically arrays of dependent and placing the exogenous variables into a block diagonal array, the entire system can be compactly expressed as .. math:: Y = X\beta + \epsilon where .. math:: Y = \left[\begin{array}{x}Y_1 \\ Y_2 \\ \vdots \\ Y_K\end{array}\right] and .. math:: X = \left[\begin{array}{cccc} X_1 & 0 & \ldots & 0 \\ 0 & X_2 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & X_K \end{array}\right] The system OLS estimator is .. math:: \hat{\beta}_{OLS} = (X'X)^{-1}X'Y When certain conditions are satisfied, a GLS estimator of the form .. math:: \hat{\beta}_{GLS} = (X'\Omega^{-1}X)^{-1}X'\Omega^{-1}Y can improve accuracy of coefficient estimates where .. math:: \Omega = \Sigma \otimes I_N where :math:`\Sigma` is the covariance matrix of the residuals. SUR is a special case of 3SLS where there are no endogenous regressors and no instruments. """ def __init__( self, equations: Mapping[ str, Mapping[str, ArrayLike | None] | Sequence[ArrayLike | None] ], *, sigma: ArrayLike | None = None, ) -> None: if not isinstance(equations, Mapping): raise TypeError("equations must be a dictionary-like") for key in equations: if not isinstance(key, str): raise ValueError("Equation labels (keys) must be strings") reformatted = {} for key in equations: eqn = equations[key] if isinstance(eqn, tuple): if len(eqn) == 3: w = eqn[-1] eqn = eqn[:2] eqn = eqn + (None, None) + (w,) else: eqn = eqn + (None, None) reformatted[key] = eqn super().__init__(reformatted, sigma=sigma) self._model_name = "Seemingly Unrelated Regression (SUR)" @classmethod def multivariate_ls(cls, dependent: ArrayLike, exog: ArrayLike) -> SUR: """ Interface for specification of multivariate regression models Parameters ---------- dependent : array_like nobs by ndep array of dependent variables exog : array_like nobs by nvar array of exogenous regressors common to all models Returns ------- model : SUR Model instance Notes ----- Utility function to simplify the construction of multivariate regression models which all use the same regressors. Constructs the dictionary of equations from the variables using the common exogenous variable. Examples -------- A simple CAP-M can be estimated as a multivariate regression >>> from linearmodels.datasets import french >>> from linearmodels.system import SUR >>> data = french.load() >>> portfolios = data[["S1V1","S1V5","S5V1","S5V5"]] >>> factors = data[["MktRF"]].copy() >>> factors["alpha"] = 1 >>> mod = SUR.multivariate_ls(portfolios, factors) """ equations = {} dependent_ivd = IVData(dependent, var_name="dependent") exog_ivd = IVData(exog, var_name="exog") for col in dependent_ivd.pandas: # TODO: Bug in pandas-stubs # https://github.com/pandas-dev/pandas-stubs/issues/97 equations[str(col)] = (dependent_ivd.pandas[[col]], exog_ivd.pandas) return cls(equations) @classmethod def from_formula( cls, formula: str | dict[str, str], data: DataFrame, *, sigma: ArrayLike | None = None, weights: Mapping[str, ArrayLike] | None = None, ) -> SUR: """ Specify a SUR using the formula interface Parameters ---------- formula : {str, dict[str, str]} Either a string or a dictionary of strings where each value in the dictionary represents a single equation. See Notes for a description of the accepted syntax data : DataFrame Frame containing named variables sigma : array_like Prespecified residual covariance to use in GLS estimation. If not provided, FGLS is implemented based on an estimate of sigma. weights : dict[str, array_like] Dictionary like object (e.g. a DataFrame) containing variable weights. Each entry must have the same number of observations as data. If an equation label is not a key weights, the weights will be set to unity Returns ------- model : SUR Model instance Notes ----- Models can be specified in one of two ways. The first uses curly braces to encapsulate equations. The second uses a dictionary where each key is an equation name. Examples -------- The simplest format uses standard formulas for each equation in a dictionary. Best practice is to use an Ordered Dictionary >>> import pandas as pd >>> import numpy as np >>> data = pd.DataFrame(np.random.randn(500, 4), ... columns=["y1", "x1_1", "y2", "x2_1"]) >>> from linearmodels.system import SUR >>> formula = {"eq1": "y1 ~ 1 + x1_1", "eq2": "y2 ~ 1 + x2_1"} >>> mod = SUR.from_formula(formula, data) The second format uses curly braces {} to surround distinct equations >>> formula = "{y1 ~ 1 + x1_1} {y2 ~ 1 + x2_1}" >>> mod = SUR.from_formula(formula, data) It is also possible to include equation labels when using curly braces >>> formula = "{eq1: y1 ~ 1 + x1_1} {eq2: y2 ~ 1 + x2_1}" >>> mod = SUR.from_formula(formula, data) """ context = capture_context(1) parser = SystemFormulaParser(formula, data, weights, context=context) eqns = parser.data mod = cls(eqns, sigma=sigma) mod.formula = formula return mod
(equations: 'Mapping[str, Mapping[str, ArrayLike | None] | Sequence[ArrayLike | None]]', *, sigma: 'ArrayLike | None' = None) -> 'None'
[ 0.07052771747112274, -0.060863569378852844, 0.0029120955150574446, 0.0013648038730025291, -0.013591492548584938, -0.05769701674580574, -0.04934883862733841, -0.05226864665746689, 0.054530467838048935, 0.03127482533454895, -0.01901986449956894, -0.00832761637866497, -0.03657982498407364, 0.024838915094733238, -0.04889647290110588, 0.05514732748270035, 0.005824191030114889, -0.05239201709628105, -0.0070116473361849785, -0.06818364560604095, -0.03524329513311386, 0.028560640290379524, -0.004911751486361027, 0.02146674506366253, 0.04293349012732506, -0.014311163686215878, 0.01683001033961773, -0.03620970994234085, 0.04102122038602829, -0.04733376204967499, -0.03178887814283371, 0.0011444047559052706, -0.03653870150446892, -0.023625755682587624, 0.016994506120681763, -0.06164492294192314, 0.0165729857981205, 0.030431784689426422, 0.011422200128436089, 0.010702528990805149, 0.0006399927660822868, 0.0058653149753808975, 0.06415349245071411, -0.02387250028550625, -0.013396153226494789, 0.052021902054548264, -0.03468812257051468, 0.037957482039928436, 0.024160368368029594, -0.029115814715623856, -0.01732349768280983, -0.02736804261803627, -0.009653866291046143, -0.013087723404169083, -0.044784072786569595, -0.006646671798080206, -0.00404043635353446, 0.11736799031496048, 0.04433170706033707, -0.07653182744979858, 0.04293349012732506, 0.003528956091031432, -0.03958187997341156, 0.03069908916950226, -0.053132250905036926, 0.010003420524299145, 0.007839269004762173, 0.023235078901052475, 0.021281687542796135, -0.014999990351498127, -0.07283066213130951, -0.018721716478466988, -0.054982829838991165, 0.01753940060734749, 0.0775599256157875, 0.023296764120459557, -0.008970179595053196, -0.027964342385530472, -0.012450301088392735, -0.009623023681342602, 0.02152843028306961, -0.003346468089148402, -0.033413276076316833, -0.055476319044828415, -0.05362573638558388, -0.028252210468053818, 0.036415331065654755, -0.008070590905845165, 0.05962984636425972, -0.00030168332159519196, -0.07509247958660126, 0.005423231981694698, 0.017117878422141075, 0.033495523035526276, 0.05124054476618767, -0.015185048803687096, 0.013478401117026806, -0.0734063982963562, 0.034996550530195236, -0.08393415063619614, 0.03078133799135685, 0.0052330330945551395, -0.046141162514686584, 0.03627139702439308, -0.06111031025648117, -0.010702528990805149, -0.010918430984020233, 0.022618217393755913, 0.010106231085956097, -0.02342013642191887, -0.05428372323513031, 0.06382449716329575, -0.039376262575387955, 0.013139128684997559, -0.06744341552257538, -0.02794378064572811, -0.07464011758565903, 0.05736802518367767, -0.016737481579184532, 0.0066672335378825665, -0.07632620632648468, 0.01103152148425579, -0.09581899642944336, 0.07365313917398453, 0.014784089289605618, -0.0012754875933751464, 0.0064307707361876965, -0.00367031991481781, 0.02835502102971077, -0.06579845398664474, -0.014424254186451435, -0.0239753108471632, 0.015740223228931427, 0.032426297664642334, 0.025250155478715897, 0.009540775790810585, -0.020675107836723328, -0.024263178929686546, 0.034544188529253006, 0.08372852951288223, 0.0414324626326561, 0.04244000092148781, -0.05588756129145622, 0.00330020347610116, 0.0027424588333815336, 0.033557210117578506, 0.059588722884655, -0.0185469388961792, -0.054036978632211685, -0.025085659697651863, -0.04589442163705826, 0.030966395512223244, 0.04737488552927971, -0.018927335739135742, 0.006184026133269072, -0.0037140140775591135, 0.009730974212288857, -0.01534954458475113, 0.007314937189221382, 0.009103832766413689, -0.03485261648893356, -0.01929745264351368, -0.007690194062888622, -0.022864961996674538, 0.025250155478715897, -0.01882452517747879, -0.02582589164376259, -0.04334472864866257, -0.01121657993644476, 0.043221358209848404, -0.04445507749915123, -0.014712122268974781, -0.08808767795562744, 0.001882709562778473, 0.00407384941354394, 0.028149399906396866, 0.044290583580732346, 0.019204923883080482, 0.005808769725263119, 0.009422543458640575, 0.06382449716329575, -0.007659350987523794, -0.08039748668670654, 0.006934539880603552, -0.04790949821472168, 0.030945833772420883, -0.03477036952972412, -0.027059612795710564, -0.004968297202140093, 0.006852291990071535, 0.024242617189884186, -0.021322811022400856, 0.03822478652000427, -0.011113769374787807, 0.024818353354930878, 0.02109662815928459, 0.02354350872337818, -0.011494167149066925, -0.010373537428677082, 0.01610005833208561, -0.03164494410157204, -0.01637764647603035, -0.01200821716338396, 0.01614118181169033, -0.0664975568652153, 0.003315625013783574, -0.013221376575529575, -0.0499245747923851, -0.015719661489129066, 0.005505479872226715, -0.01680944859981537, 0.010610000230371952, -0.007741598878055811, 0.043755970895290375, 0.06834813952445984, 0.02736804261803627, 0.0449896901845932, 0.028067151084542274, -0.016994506120681763, -0.01961616426706314, 0.021281687542796135, -0.06723779439926147, -0.03760792687535286, -0.015801910310983658, -0.0546538382768631, -0.01712816022336483, 0.0038887911941856146, 0.03771073743700981, 0.00015357256052084267, -0.02874569781124592, 0.048731978982686996, -0.02448936179280281, 0.03760792687535286, -0.044290583580732346, -0.0036985925398766994, -0.04256337508559227, -0.04560655355453491, 0.04511306434869766, 0.05329674482345581, -0.01760108582675457, 0.009859486483037472, 0.0053769671358168125, -0.060781318694353104, 0.017888953909277916, 0.01714872196316719, -0.020418081432580948, 0.04799174517393112, 0.027697036042809486, -0.03773130103945732, -0.06723779439926147, 0.04926659166812897, 0.02008908987045288, -0.018773119896650314, 0.04219325631856918, -0.03756680339574814, -0.06407124549150467, 0.04023986682295799, 0.04106234759092331, 0.07307740300893784, -0.041864264756441116, -0.02391362562775612, -0.005029983352869749, -0.016686076298356056, 0.04889647290110588, -0.013252219185233116, 0.014835494570434093, -0.02075735479593277, 0.005942422430962324, 0.07352977246046066, 0.018639467656612396, 0.041884828358888626, 0.06217953562736511, -0.05082930251955986, 0.000871957978233695, 0.004184370394796133, 0.0694584921002388, -0.007535978686064482, -0.006096637807786465, 0.046716902405023575, 0.0317683145403862, 0.04642903059720993, -0.010599719360470772, 0.01886565051972866, 0.015986967831850052, 0.05317337438464165, 0.006883135065436363, -0.05041806399822235, -0.09162434190511703, 0.04383821785449982, 0.0027013348881155252, 0.037834107875823975, 0.018896492198109627, 0.04387934133410454, 0.008538377471268177, 0.021775174885988235, -0.017827268689870834, 0.0022284085862338543, 0.022350911051034927, 0.08759418874979019, -0.03131594881415367, -0.012100746855139732, 0.058396127074956894, 0.095490001142025, -0.00600410858169198, -0.039314575493335724, -0.08594922721385956, 0.027182985097169876, -0.05708015710115433, -0.019904032349586487, -0.003156269434839487, -0.011740910820662975, 0.0706510841846466, -0.015935562551021576, 0.030596280470490456, -0.0030945835169404745, 0.027553102001547813, 0.010018842294812202, -0.009854346513748169, 0.036374207586050034, 0.038821086287498474, 0.029999980702996254, -0.036374207586050034, 0.014629874378442764, -0.044208332896232605, 0.05411922559142113, -0.019184360280632973, 0.0009368568425998092, -0.04708701744675636, 0.013550369068980217, 0.016696356236934662, 0.020747074857354164, -0.040363237261772156, 0.033516086637973785, 0.023296764120459557, -0.006137761753052473, -0.038800522685050964, 0.009967437013983727, -0.01295407023280859, 0.009211783297359943, -0.059917714446783066, 0.030966395512223244, -0.03919120132923126, -0.047703877091407776, -0.007993483915925026, -0.019307732582092285, -0.06575732678174973, 0.03316653147339821, -0.044208332896232605, 0.026298819109797478, 0.004485089797526598, -0.08126109093427658, -0.0016822299221530557, 0.0380808524787426, 0.05658666789531708, -0.02245372161269188, 0.021857423707842827, -0.04733376204967499, 0.01534954458475113, 0.048690855503082275, -0.05921860784292221, 0.014393411576747894, 0.04408496245741844, -0.07842352986335754, -0.01977037824690342, -0.010651124641299248, -0.056463297456502914, 0.0027064753230661154, 0.028663450852036476, 0.0655105859041214, -0.035017114132642746, 0.001984234666451812, -0.015287859365344048, -0.015102800913155079, 0.042810115963220596, -0.03625083342194557, 0.006070935167372227, 0.024078121408820152, -0.005387248005717993, -0.029568178579211235, -0.08253592997789383, 0.037792984396219254, -0.0047318339347839355, -0.0007781438180245459, 0.021137753501534462, 0.06119256094098091, -0.004320593550801277, 0.0017863251268863678, 0.039808064699172974, 0.05218639597296715, -0.02296777255833149, 0.0028478391468524933, -0.043303605169057846, 0.06172717362642288, 0.032015059143304825, -0.027100738137960434, -0.0289101954549551, 0.000014497827578452416, 0.007078473921865225, -0.05337899550795555, 0.022741589695215225, -0.03806029260158539, -0.00048224354395642877, 0.005495199002325535, -0.0002261821791762486, -0.02348182164132595, -0.011802596971392632, 0.03419463336467743, 0.04215213283896446, -0.015236454084515572, 0.033989012241363525, -0.0013583782128989697, 0.010275867767632008, -0.06974636018276215, -0.07743655145168304, -0.04486631974577904, 0.03680600970983505, 0.0278204083442688, 0.026525000110268593, 0.031603820621967316, 0.051117170602083206, 0.013591492548584938, -0.006662093102931976, 0.014794370159506798, 0.020747074857354164, -0.027285795658826828, 0.07862915098667145, -0.05724465474486351, -0.02880738489329815, 0.004225494340062141, 0.043797094374895096, -0.04190538823604584, 0.03224124014377594, -0.012851259671151638, -0.02350238524377346, -0.02196023240685463, -0.02697736583650112, -0.016819728538393974, 0.0035726502537727356, -0.030082229524850845, -0.032960910350084305, 0.01631595939397812, 0.015380388125777245, -0.00830705463886261, -0.015801910310983658, -0.051610659807920456, -0.004772957880049944, 0.003277071285992861, -0.005433512851595879, -0.03324877843260765, -0.02296777255833149, 0.05082930251955986, 0.008718295022845268, 0.01221383735537529, 0.05124054476618767, -0.02989717200398445, -0.03287866339087486, 0.08891015499830246, -0.03162438049912453, 0.0033670300617814064, 0.01738518476486206, -0.0586017444729805, -0.0027373183984309435, 0.031069206073880196, 0.03616858646273613, -0.01983206532895565, 0.022268664091825485, 0.062302909791469574, -0.05835500359535217, -0.02086016535758972, -0.033413276076316833, -0.02893075719475746, 0.03166550397872925, 0.027717597782611847, 0.010137073695659637, -0.07291290909051895, 0.05082930251955986, 0.031110329553484917, -0.00041895106551237404, -0.05346124246716499, -0.06139817833900452, 0.03902670741081238, -0.07040434330701828, -0.04001368209719658, 0.039869748055934906, 0.04758050665259361, -0.025661395862698555, 0.03993143513798714, -0.0536668635904789, -0.007145300507545471, -0.004279469605535269, -0.04840298742055893, 0.020366676151752472, 0.051076047122478485, 0.0536668635904789, -0.002948079025372863, 0.03189168870449066, -0.01195681281387806, -0.02975323796272278, -0.0032873523887246847, -0.03705275431275368, 0.018742278218269348, -0.04881422594189644, -0.023276202380657196, -0.05000682175159454, 0.0347292460501194, 0.007489714305847883, -0.013231657445430756, 0.032529108226299286, -0.022823838517069817, -0.03565453737974167, -0.03972581401467323, -0.05642217397689819, 0.054036978632211685, -0.04120628163218498, 0.007916375994682312, 0.005762504879385233, 0.010671686381101608, -0.015873877331614494, -0.054982829838991165, 0.03417406976222992, 0.022145291790366173, -0.008661748841404915, 0.014208353124558926, 0.03277585282921791, 0.03561341017484665, 0.02099381759762764, -0.009345436468720436, -0.015853313729166985, 0.056504420936107635, 0.0010473777074366808, 0.03861546516418457, -0.010938992723822594, -0.008440707810223103, 0.04733376204967499, 0.031973935663700104, 0.038841649889945984, 0.014126105234026909, -0.04988345131278038, -0.05362573638558388, -0.008738856762647629, -0.04889647290110588, 0.01910211332142353, -0.024633295834064484, 0.02932143583893776, 0.02444823645055294, -0.031562693417072296, 0.004929743241518736, -0.011843721382319927, -0.05773814022541046, -0.04938996210694313, -0.043797094374895096, 0.021322811022400856, 0.033516086637973785, -0.01468127965927124, 0.036456454545259476, -0.002763020806014538, -0.03030841238796711, 0.053132250905036926, -0.018145978450775146, 0.01145304273813963, -0.018454410135746002, -0.02305001951754093, 0.06246740370988846, 0.005235603544861078, 0.00904728751629591, 0.04535980895161629, 0.03485261648893356, 0.02047976851463318, -0.03228236362338066, -0.009900610893964767, -0.025065097957849503, -0.007073333486914635, 0.06464698165655136, 0.0672789141535759, -0.025291278958320618, -0.005834471900016069, 0.014496221207082272, -0.02024330571293831, -0.06213841214776039, -0.0010795058915391564, 0.014033575542271137, -0.033043161034584045, -0.06974636018276215, -0.02387250028550625, 0.029239187017083168, -0.01592528074979782, -0.004960586316883564, 0.07114457339048386, -0.045236434787511826, 0.040856726467609406, 0.00794207863509655, 0.014948586001992226, -0.00867203064262867, -0.01687113381922245, -0.006759762763977051, 0.03830703720450401, -0.019739534705877304, -0.01683001033961773, 0.022186415269970894, 0.016254274174571037, -0.053050000220537186, -0.0011572559596970677, 0.015699099749326706, -0.013519525527954102, 0.01687113381922245, -0.008373880758881569, -0.0001932508166646585, -0.0008372595766559243, 0.021220000460743904, -0.03131594881415367, 0.023687442764639854, 0.0193385761231184, 0.006574704777449369, 0.054448217153549194, 0.026668934151530266, 0.016017811372876167, -0.0279232170432806, 0.03600408881902695, 0.038368720561265945, 0.005073677282780409, 0.03069908916950226, 0.011391356587409973, -0.020880727097392082, 0.012758730910718441, -0.026689497753977776, 0.04486631974577904, 0.02541465125977993, -0.05370798707008362, -0.021363934502005577, -0.058889612555503845, 0.016490736976265907, 0.025517461821436882, 0.043755970895290375, 0.01766277104616165, 0.03516104817390442, 0.02146674506366253, 0.020037684589624405, 0.039787501096725464, -0.021672364324331284, 0.0684715136885643, -0.04342697933316231, -0.0297943614423275, 0.024633295834064484, 0.03277585282921791, -0.008343038149178028, 0.0396641306579113, 0.019132956862449646, -0.04067166894674301, 0.04700477048754692, 0.04507194086909294, -0.024201493710279465, 0.015853313729166985, -0.039294011890888214, -0.06382449716329575, -0.01704591140151024, 0.008749137632548809, -0.03322821855545044, -0.06653868407011032, 0.02490060217678547, 0.004153527319431305, -0.03565453737974167, -0.02401643432676792, 0.054448217153549194, 0.014629874378442764, 0.01415694784373045, 0.019585320726037025, 0.02492116391658783, 0.01949279196560383, 0.045729923993349075, 0.044742945581674576, -0.0017953210044652224, -0.03725837171077728, 0.01671691983938217, -0.015935562551021576, -0.018516095355153084, 0.02549690008163452, 0.03822478652000427, -0.010856744833290577, -0.013807393610477448, 0.015287859365344048, 0.05473608523607254, 0.04145302623510361, 0.010388958267867565, -0.04346810281276703, 0.0353255420923233, -0.04355034977197647, 0.022700466215610504, 0.016172025352716446, -0.015606570057570934, -0.060411203652620316, -0.00771075626835227, -0.0023877641651779413, 0.012769011780619621, -0.05411922559142113, 0.009052427485585213, -0.064317986369133, -0.013529806397855282, -0.021754613146185875, 0.04346810281276703, 0.0008077016682364047, 0.049595583230257034, 0.011288546957075596, -0.011411919258534908, 0.031089767813682556, 0.006934539880603552, 0.048156242817640305, -0.014948586001992226, -0.017056193202733994, 0.014866338111460209, -0.09022612869739532, 0.01734406128525734, -0.013797112740576267, 0.08138445764780045, -0.029444806277751923, 0.07591496407985687, 0.020253585651516914, -0.02391362562775612, 0.034420814365148544, -0.0076696318574249744, -0.004025014583021402, 0.07307740300893784, -0.015956124290823936, 0.0724194198846817, -0.04445507749915123, -0.014516782946884632, -0.033145971596241, -0.0015498619759455323, 0.008795402012765408, 0.08023298531770706, 0.0139616085216403, -0.0034595592878758907, 0.04093897342681885, -0.04161752015352249, 0.011566134169697762, -0.04011649265885353, -0.05675116553902626, -0.05716240406036377, -0.023317325860261917, -0.03820422664284706, 0.04733376204967499, -0.0008231232059188187, -0.006019530352205038, -0.014989709481596947, -0.044167209416627884, 0.0017734739230945706, 0.0459766685962677, -0.010234743356704712, 0.03224124014377594, 0.013797112740576267, -0.019667567685246468, 0.05913635715842247, -0.015102800913155079, 0.002657640492543578, -0.008815964683890343, 0.028478391468524933, -0.02101438120007515, 0.04359147325158119, -0.009998280555009842, 0.0022669623140245676, -0.0032873523887246847, 0.022638779133558273, -0.024694981053471565, 0.040383800864219666, 0.0364975780248642, -0.026504438370466232, 0.006045232526957989, -0.012481143698096275, 0.018660029396414757 ]
43,075
linearmodels.system.model
__init__
null
def __init__( self, equations: Mapping[ str, Mapping[str, ArrayLike | None] | Sequence[ArrayLike | None] ], *, sigma: ArrayLike | None = None, ) -> None: if not isinstance(equations, Mapping): raise TypeError("equations must be a dictionary-like") for key in equations: if not isinstance(key, str): raise ValueError("Equation labels (keys) must be strings") reformatted = {} for key in equations: eqn = equations[key] if isinstance(eqn, tuple): if len(eqn) == 3: w = eqn[-1] eqn = eqn[:2] eqn = eqn + (None, None) + (w,) else: eqn = eqn + (None, None) reformatted[key] = eqn super().__init__(reformatted, sigma=sigma) self._model_name = "Seemingly Unrelated Regression (SUR)"
(self, equations: collections.abc.Mapping[str, collections.abc.Mapping[str, typing.Union[numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType]] | collections.abc.Sequence[typing.Union[numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType]]], *, sigma: Union[numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series, NoneType] = None) -> NoneType
[ 0.0481300950050354, -0.05458013340830803, 0.02761068195104599, -0.010552032850682735, -0.08132326602935791, -0.04820553585886955, -0.07128987461328506, -0.05299591273069382, 0.06857407093048096, 0.03400414064526558, -0.017747029662132263, 0.0393037311732769, -0.039039693772792816, 0.04767746105790138, -0.03343834728002548, 0.004561703186482191, 0.03274053707718849, -0.015766754746437073, -0.015266971662640572, -0.04895992577075958, -0.03192956745624542, 0.01831282302737236, -0.00255785440094769, 0.06868723034858704, 0.045301131904125214, 0.027233486995100975, -0.005327880848199129, -0.039266008883714676, 0.02981727384030819, -0.049563437700271606, -0.019302960485219955, 0.009175270795822144, -0.036701083183288574, 0.000949470791965723, 0.030005870386958122, -0.07551445811986923, -0.0008716743323020637, 0.023933028802275658, -0.023386096581816673, 0.03377782180905342, 0.04907308518886566, -0.03324974700808525, 0.03494712710380554, -0.023933028802275658, -0.006949820090085268, 0.023970749229192734, -0.025592688471078873, -0.005695646163076162, 0.007642915938049555, -0.030062450096011162, -0.023819871246814728, -0.025422949343919754, 0.027874719351530075, -0.004743228666484356, -0.06212403252720833, 0.04515025392174721, 0.00694510480388999, 0.08781102299690247, 0.03300457075238228, -0.04620639979839325, -0.019500987604260445, 0.032287899404764175, -0.016577724367380142, 0.003705941839143634, -0.04028443619608879, 0.0036493625957518816, -0.026083040982484818, 0.0018600433832034469, 0.036776524037122726, -0.030665962025523186, 0.005789944902062416, 0.008783930912613869, -0.07098811864852905, 0.004337743856012821, 0.06687669456005096, 0.053788021206855774, -0.09294087439775467, 0.014257974922657013, -0.009863652288913727, -0.01098580751568079, 0.005808804649859667, -0.002444695681333542, -0.04488621652126312, -0.02487601712346077, -0.0068178013898432255, -0.062274910509586334, 0.03771951049566269, -0.006534905172884464, 0.027101468294858932, 0.010118259117007256, -0.0949777290225029, 0.0015594660071656108, -0.008203993551433086, 0.0036564350593835115, 0.036248449236154556, 0.03800240531563759, 0.041868656873703, -0.09920231252908707, 0.04779062047600746, -0.06253895163536072, 0.05771085247397423, -0.018935194239020348, -0.04085022956132889, -0.02429136447608471, -0.0640854462981224, -0.015879914164543152, 0.013050951063632965, -0.016709743067622185, -0.00048210250679403543, -0.014125957153737545, -0.021424682810902596, 0.0740434005856514, -0.04179321974515915, 0.03736117482185364, -0.0481300950050354, -0.00087403180077672, -0.03140149265527725, 0.032231323421001434, 0.0240650475025177, 0.00026934087509289384, -0.03098657727241516, 0.015210392884910107, -0.09822160750627518, 0.0935443863272667, 0.020896609872579575, 0.023857589811086655, 0.013362136669456959, 0.0134564358741045, 0.03447563201189041, -0.06144508346915245, 0.008991388604044914, -0.007713640108704567, -0.0020840030629187822, 0.01775646023452282, 0.035833533853292465, 0.023914169520139694, -0.019689584150910378, -0.04118970409035683, 0.023216359317302704, 0.09090401977300644, 0.044546741992235184, 0.003010488348081708, -0.00838787667453289, 0.0015193891013041139, -0.04111426696181297, 0.04069935157895088, 0.04239673167467117, 0.01467288937419653, 0.011749627999961376, 0.010872649028897285, -0.030156748369336128, 0.0684986338019371, 0.004686649423092604, 0.008524609729647636, 0.011466731317341328, -0.016153380274772644, 0.05039326474070549, -0.013437575660645962, 0.04164234176278114, 0.03079798072576523, -0.004729083739221096, -0.0013732259394600987, -0.008260573260486126, -0.056126631796360016, -0.00593139324337244, -0.033344049006700516, -0.021141786128282547, -0.08803734183311462, 0.004988405387848616, 0.0001481522194808349, -0.027459803968667984, -0.08260572701692581, -0.08894260972738266, 0.026516815647482872, 0.05793716758489609, 0.012400289066135883, 0.016568295657634735, 0.06732932478189468, -0.03192956745624542, -0.022122493013739586, 0.06050209701061249, 0.010599182918667793, -0.0753258615732193, 0.013418716378509998, -0.006737647578120232, 0.003507914487272501, -0.033287469297647476, -0.011240414343774319, -0.00912812165915966, 0.0008846403798088431, 0.037983547896146774, -0.00402655778452754, 0.00774664431810379, 0.022593986243009567, 0.02953437715768814, -0.0003934027045033872, 0.028515949845314026, -0.027987876906991005, -0.01496521569788456, 0.03208044543862343, -0.0582389235496521, -0.0030694252345710993, -0.01661544479429722, 0.029251480475068092, -0.04322655871510506, 0.022990042343735695, 0.008034255355596542, -0.03428703546524048, -0.02534751035273075, -0.019444407895207405, 0.02517777308821678, -0.029836133122444153, 0.014078807085752487, -0.0028501804918050766, 0.03662564605474472, 0.02615847997367382, 0.06680124998092651, 0.0336080826818943, -0.0405861921608448, -0.03191070631146431, 0.05352398753166199, -0.013248978182673454, 0.009222419932484627, -0.03687082231044769, -0.03504142537713051, 0.000752622087020427, 0.01691720075905323, 0.04790377989411354, -0.028855426236987114, 0.025649268180131912, 0.019029492512345314, -0.02568698674440384, -0.018209094181656837, -0.060124900192022324, -0.005893673747777939, -0.032118164002895355, -0.03570151701569557, -0.040774792432785034, 0.04232129082083702, -0.028214193880558014, 0.03168438747525215, 0.007487322669476271, -0.045074816793203354, -0.036361608654260635, 0.044433582574129105, -0.05650382861495018, 0.05820120498538017, 0.029609816148877144, -0.07611797004938126, -0.04692307114601135, 0.03919057175517082, 0.020840030163526535, 0.003479624865576625, 0.037115998566150665, 0.005752225406467915, 0.013899640180170536, 0.036078713834285736, 0.02725234627723694, 0.07012057304382324, -0.04971431568264961, 0.00693095987662673, -0.01098580751568079, -0.016323117539286613, 0.018557999283075333, 0.01725667528808117, 0.018642868846654892, -0.019689584150910378, 0.02225451171398163, 0.041416022926568985, -0.002890257630497217, 0.017709311097860336, 0.0600871816277504, -0.007897522300481796, 0.006846091244369745, 0.01834111288189888, 0.04816781356930733, 0.03945460915565491, -0.013645033352077007, 0.016936060041189194, 0.050430987030267715, 0.059031035751104355, -0.039794083684682846, 0.011966514401137829, 0.02295232191681862, 0.07943729311227798, -0.020198797807097435, -0.03694625943899155, -0.03098657727241516, 0.040548473596572876, -0.03922829031944275, 0.049563437700271606, 0.05288275331258774, 0.03570151701569557, 0.0320427231490612, -0.0014427712885662913, -0.061822276562452316, 0.04277392476797104, 0.03274053707718849, 0.05201520398259163, -0.03341948613524437, -0.008977243676781654, -0.021311523392796516, 0.11164975166320801, -0.012126822955906391, -0.06253895163536072, -0.07509954273700714, 0.00362578802742064, -0.0066669234074652195, 0.022688286378979683, 0.014635169878602028, 0.003314601955935359, 0.0861513614654541, -0.021462401375174522, 0.019057782366871834, -0.02074573002755642, 0.041755497455596924, 0.016125090420246124, -0.003121289424598217, 0.025158913806080818, 0.06250122934579849, 0.03592783585190773, -0.031533509492874146, -0.016907770186662674, -0.04824325442314148, 0.012334279716014862, -0.024517681449651718, 0.002916189609095454, -0.06804599612951279, 0.041944097727537155, 0.01851085014641285, 0.0011522131972014904, -0.060200341045856476, 0.015106664039194584, -0.0024164060596376657, -0.04160461947321892, -0.06385913491249084, 0.002023887587711215, -0.009533606469631195, -0.054542411118745804, -0.05748453363776207, 0.0038780372124165297, -0.06597142666578293, -0.044094108045101166, -0.006030406802892685, -0.000895838369615376, -0.04209497570991516, -0.01761501096189022, -0.07800395041704178, 0.01337156631052494, 0.003314601955935359, -0.05231695994734764, 0.02023651823401451, 0.040661633014678955, 0.011947655119001865, -0.014078807085752487, -0.0021158289164304733, -0.03221246227622032, 0.0063745975494384766, 0.006167139858007431, -0.03975636512041092, 0.04149146005511284, 0.019199231639504433, -0.050317827612161636, -0.006294443272054195, 0.007473178207874298, -0.04307568073272705, 0.014116526581346989, 0.01940668746829033, 0.05620207265019417, 0.011466731317341328, 0.015050085261464119, -0.01179677713662386, -0.05748453363776207, 0.046470437198877335, -0.020255377516150475, 0.03294799104332924, -0.003571566194295883, -0.005271301604807377, -0.02434794418513775, -0.11202694475650787, -0.023461535573005676, -0.019802743569016457, 0.028440510854125023, 0.030477365478873253, -0.03081684000790119, -0.02587558515369892, 0.005035554524511099, 0.043037962168455124, 0.08456714451313019, 0.028214193880558014, -0.02180187776684761, -0.06325562298297882, 0.051298536360263824, 0.021726438775658607, -0.04288708418607712, -0.005134568549692631, 0.011674189008772373, -0.01316410955041647, -0.06517931818962097, 0.02808217518031597, -0.03998268023133278, -0.034965988248586655, -0.019274670630693436, 0.03187298774719238, 0.009825932793319225, -0.022707145661115646, 0.021726438775658607, 0.05163801088929176, 0.055598560720682144, 0.03660678490996361, 0.03347606584429741, -0.010976377874612808, -0.006072841119021177, -0.06540562957525253, -0.06559422612190247, 0.0063557373359799385, 0.006299158092588186, -0.03994496166706085, -0.0068272314965724945, -0.009500601328909397, 0.032872553914785385, 0.030213328078389168, 0.021650999784469604, 0.020726870745420456, 0.02487601712346077, 0.06401000916957855, -0.013909069821238518, -0.06291614472866058, 0.025064615532755852, 0.03209930285811424, -0.07393024116754532, 0.005082704126834869, 0.005997402127832174, -0.022537408396601677, 0.007270435802638531, -0.011004667729139328, -0.006610344164073467, 0.014654030092060566, -0.012994371354579926, -0.03581467643380165, 0.007114842534065247, 0.0035126295406371355, 0.015625307336449623, -0.03590897470712662, -0.049676597118377686, -0.002847823081538081, 0.02447996288537979, 0.0030694252345710993, -0.02721462771296501, -0.025140054523944855, 0.06027577817440033, -0.0012907144846394658, -0.022424248978495598, 0.010570893064141273, 0.04254760965704918, -0.010580322705209255, 0.0582389235496521, -0.024970315396785736, 0.025969883427023888, 0.03811556473374367, -0.03385326266288757, -0.023801011964678764, 0.02604532241821289, 0.03922829031944275, -0.039379168301820755, 0.018218522891402245, 0.0532599501311779, -0.02872340753674507, -0.0320427231490612, -0.0481300950050354, 0.0022560982033610344, 0.049902912229299545, 0.028610248118638992, 0.012881212867796421, -0.10108828544616699, 0.027007170021533966, 0.03534318134188652, -0.02331065759062767, -0.034268174320459366, -0.04601780325174332, 0.002078109188005328, -0.035663798451423645, -0.03166553005576134, 0.02300890162587166, 0.02598874270915985, -0.010834929533302784, -0.002751166932284832, -0.06502843648195267, 0.011315853334963322, 0.033268608152866364, -0.06412316858768463, 0.029854992404580116, 0.017916766926646233, 0.06959249824285507, 0.008175703696906567, 0.0177281703799963, -0.023819871246814728, -0.001719773979857564, -0.0019684869330376387, -0.01898234337568283, 0.014625740237534046, -0.07257233560085297, -0.024951456114649773, -0.04877132922410965, 0.0294777974486351, 0.030383065342903137, -0.03551292046904564, 0.028327353298664093, 0.00035273635876365006, -0.03040192648768425, -0.033909838646650314, -0.061181046068668365, 0.0005442807450890541, -0.003991195932030678, 0.013569594360888004, -0.018888045102357864, -0.02894972451031208, -0.009010247886180878, -0.03941689059138298, 0.041717778891325, 0.033683523535728455, 0.025008035823702812, -0.003514986950904131, 0.025008035823702812, 0.017398124560713768, 0.024800578132271767, 0.032005004584789276, -0.027629541233181953, 0.039869524538517, 0.000687791733071208, 0.009274284355342388, -0.04405638948082924, -0.03381554037332535, 0.05654154717922211, -0.015766754746437073, 0.08886716514825821, 0.08268116414546967, -0.017539571970701218, 0.008100264705717564, 0.02632821910083294, -0.007944672368466854, 0.043264277279376984, 0.011240414343774319, -0.006020976696163416, 0.060313496738672256, -0.009750493802130222, -0.0034089006949216127, 0.033268608152866364, -0.023122061043977737, -0.043264277279376984, -0.0532599501311779, 0.01554986834526062, 0.012192832306027412, 0.023518115282058716, 0.021764157339930534, -0.013352707028388977, -0.021198365837335587, -0.005063844379037619, -0.007001684047281742, 0.03481511026620865, 0.013126390054821968, -0.004175078123807907, 0.07264778017997742, 0.019689584150910378, -0.0025389946531504393, 0.040774792432785034, 0.004111426882445812, 0.024838298559188843, -0.018859755247831345, 0.026761993765830994, -0.021952755749225616, -0.013711041770875454, 0.057861730456352234, 0.05642838776111603, -0.02953437715768814, -0.02359355427324772, 0.010655761696398258, 0.00619071489199996, -0.06231263279914856, -0.028459370136260986, -0.020840030163526535, -0.019859323278069496, -0.07079952210187912, -0.044094108045101166, 0.04816781356930733, -0.009222419932484627, -0.03968092426657677, 0.0525432787835598, -0.022461969405412674, 0.022650565952062607, -0.012607746757566929, -0.009524176828563213, -0.024197066202759743, 0.026780853047966957, -0.02993043139576912, 0.01569131575524807, 0.0000941514372243546, -0.041001107543706894, -0.018001636490225792, -0.013956218957901001, -0.06951706111431122, -0.005822949577122927, -0.01677575334906578, 0.04092567041516304, 0.018642868846654892, -0.009543036110699177, 0.04296252131462097, 0.03534318134188652, -0.012145682238042355, -0.040246717631816864, 0.04201953485608101, 0.029949290677905083, 0.010278566740453243, 0.022801443934440613, 0.04047303646802902, -0.028629109263420105, -0.04511253535747528, 0.025969883427023888, 0.028440510854125023, 0.012947222217917442, 0.023555833846330643, -0.009184700436890125, -0.042698487639427185, 0.024461103603243828, -0.04835641384124756, 0.044207267463207245, 0.05103449895977974, -0.05642838776111603, 0.005030839703977108, -0.056994181126356125, 0.05857840180397034, 0.017511282116174698, 0.026026463136076927, -0.039492327719926834, -0.023329516872763634, 0.056994181126356125, 0.03598441183567047, 0.03815328702330589, -0.027120327576994896, 0.07166706770658493, -0.04831869155168533, -0.062463510781526566, 0.017492422834038734, 0.0404353141784668, -0.011353572830557823, 0.037229157984256744, -0.023499255999922752, -0.03900197520852089, -0.0013119317591190338, 0.0431511215865612, -0.006888525560498238, 0.019444407895207405, -0.02063257247209549, -0.017350975424051285, -0.0010484845843166113, -0.00038102600956335664, -0.03626731038093567, -0.06996969133615494, 0.01819966360926628, 0.0038379603065550327, -0.038209863007068634, -0.028761126101017, 0.018888045102357864, -0.004182150587439537, 0.06619773805141449, -0.000003131014182145009, 0.004490979481488466, 0.0036682223435491323, 0.046885352581739426, 0.04201953485608101, 0.009816502220928669, -0.047866057604551315, 0.005276016425341368, -0.029666395857930183, -0.027931297197937965, 0.045716047286987305, 0.03694625943899155, 0.003729516640305519, 0.04424498602747917, -0.03628616780042648, 0.027535242959856987, 0.027271205559372902, 0.005120423622429371, -0.045829206705093384, -0.003941688686609268, -0.04575376585125923, -0.02378215081989765, 0.05046870559453964, 0.0019354823743924499, -0.029685255140066147, 0.003708299482241273, -0.0318918451666832, 0.023235218599438667, -0.05970998480916023, -0.0056815012358129025, -0.03783266991376877, -0.027459803968667984, -0.058502960950136185, 0.05209064483642578, -0.013607313856482506, 0.06883810460567474, 0.03945460915565491, -0.03202386572957039, 0.028817705810070038, -0.027271205559372902, 0.02808217518031597, -0.0024211211130023003, 0.014899206347763538, 0.03202386572957039, -0.06446264684200287, 0.02453654259443283, 0.01959528587758541, 0.06517931818962097, -0.03477738797664642, 0.04081251099705696, 0.020500553771853447, 0.05250556021928787, 0.04273620620369911, -0.027233486995100975, -0.045376572757959366, 0.03692740201950073, 0.0033263894729316235, 0.04201953485608101, -0.013296127319335938, -0.005205292720347643, -0.029628675431013107, -0.03796468675136566, -0.014974645338952541, 0.030024729669094086, -0.01287178322672844, 0.0017103441059589386, 0.059370510280132294, -0.027629541233181953, -0.02911946177482605, -0.05906875431537628, -0.04311339929699898, -0.05133625492453575, -0.010674621909856796, 0.016096800565719604, 0.06038893759250641, -0.010137118399143219, -0.014144816435873508, 0.0023834016174077988, 0.008760356344282627, 0.009920231066644192, 0.030156748369336128, 0.004399037919938564, 0.0525432787835598, 0.010891508311033249, 0.008486890234053135, 0.03685196116566658, 0.023103199899196625, 0.010825499892234802, 0.007444888353347778, 0.021236084401607513, -0.06785739958286285, 0.06510387361049652, -0.03570151701569557, -0.009024392813444138, 0.0023775079753249884, 0.014456002973020077, -0.0256304070353508, 0.043566033244132996, 0.013767621479928493, -0.0040831370279192924, 0.010014530271291733, 0.01604965142905712, -0.013050951063632965 ]
43,094
linearmodels.asset_pricing.model
TradedFactorModel
Linear factor models estimator applicable to traded factors Parameters ---------- portfolios : array_like Test portfolio returns (nobs by nportfolio) factors : array_like Priced factor returns (nobs by nfactor) Notes ----- Implements both time-series estimators of risk premia, factor loadings and zero-alpha tests. The model estimated is .. math:: r_{it}^e = \alpha_i + f_t \beta_i + \epsilon_{it} where :math:`r_{it}^e` is the excess return on test portfolio i and :math:`f_t` are the traded factor returns. The model is directly tested using the estimated values :math:`\hat{\alpha}_i`. Risk premia, :math:`\lambda_i` are estimated using the sample averages of the factors, which must be excess returns on traded portfolios.
class TradedFactorModel(_FactorModelBase): r""" Linear factor models estimator applicable to traded factors Parameters ---------- portfolios : array_like Test portfolio returns (nobs by nportfolio) factors : array_like Priced factor returns (nobs by nfactor) Notes ----- Implements both time-series estimators of risk premia, factor loadings and zero-alpha tests. The model estimated is .. math:: r_{it}^e = \alpha_i + f_t \beta_i + \epsilon_{it} where :math:`r_{it}^e` is the excess return on test portfolio i and :math:`f_t` are the traded factor returns. The model is directly tested using the estimated values :math:`\hat{\alpha}_i`. Risk premia, :math:`\lambda_i` are estimated using the sample averages of the factors, which must be excess returns on traded portfolios. """ def __init__(self, portfolios: IVDataLike, factors: IVDataLike): super().__init__(portfolios, factors) @classmethod def from_formula( cls, formula: str, data: DataFrame, *, portfolios: DataFrame | None = None ) -> TradedFactorModel: """ Parameters ---------- formula : str Formula modified for the syntax described in the notes data : DataFrame DataFrame containing the variables used in the formula portfolios : array_like Portfolios to be used in the model Returns ------- TradedFactorModel Model instance Notes ----- The formula can be used in one of two ways. The first specified only the factors and uses the data provided in ``portfolios`` as the test portfolios. The second specified the portfolio using ``+`` to separate the test portfolios and ``~`` to separate the test portfolios from the factors. Examples -------- >>> from linearmodels.datasets import french >>> from linearmodels.asset_pricing import TradedFactorModel >>> data = french.load() >>> formula = "S1M1 + S1M5 + S3M3 + S5M1 + S5M5 ~ MktRF + SMB + HML" >>> mod = TradedFactorModel.from_formula(formula, data) Using only factors >>> portfolios = data[["S1M1", "S1M5", "S3M1", "S3M5", "S5M1", "S5M5"]] >>> formula = "MktRF + SMB + HML" >>> mod = TradedFactorModel.from_formula(formula, data, portfolios=portfolios) """ factors, portfolios, formula = cls._prepare_data_from_formula( formula, data, portfolios ) mod = cls(portfolios, factors) mod.formula = formula return mod def fit( self, cov_type: str = "robust", debiased: bool = True, **cov_config: str | float, ) -> LinearFactorModelResults: """ Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator debiased : bool Flag indicating whether to debias the covariance estimator using a degree of freedom adjustment **cov_config : dict Additional covariance-specific options. See Notes. Returns ------- LinearFactorModelResults Results class with parameter estimates, covariance and test statistics Notes ----- Supported covariance estimators are: * "robust" - Heteroskedasticity-robust covariance estimator * "kernel" - Heteroskedasticity and Autocorrelation consistent (HAC) covariance estimator The kernel covariance estimator takes the optional arguments ``kernel``, one of "bartlett", "parzen" or "qs" (quadratic spectral) and ``bandwidth`` (a positive integer). """ p = self.portfolios.ndarray f = self.factors.ndarray nportfolio = p.shape[1] nobs, nfactor = f.shape fc = np.c_[np.ones((nobs, 1)), f] rp = f.mean(0)[:, None] fe = f - f.mean(0) b = np.linalg.pinv(fc) @ p eps = p - fc @ b alphas = b[:1].T nloading = (nfactor + 1) * nportfolio xpxi = np.eye(nloading + nfactor) xpxi[:nloading, :nloading] = np.kron( np.eye(nportfolio), np.linalg.pinv(fc.T @ fc / nobs) ) f_rep = np.tile(fc, (1, nportfolio)) eps_rep = np.tile(eps, (nfactor + 1, 1)) # 1 2 3 ... 25 1 2 3 ... eps_rep = eps_rep.ravel(order="F") eps_rep = np.reshape(eps_rep, (nobs, (nfactor + 1) * nportfolio), order="F") xe = f_rep * eps_rep xe = np.c_[xe, fe] if cov_type in ("robust", "heteroskedastic"): cov_est = HeteroskedasticCovariance( xe, inv_jacobian=xpxi, center=False, debiased=debiased, df=fc.shape[1] ) rp_cov_est = HeteroskedasticCovariance( fe, jacobian=np.eye(f.shape[1]), center=False, debiased=debiased, df=1 ) elif cov_type == "kernel": kernel = get_string(cov_config, "kernel") bandwidth = get_float(cov_config, "bandwidth") cov_est = KernelCovariance( xe, inv_jacobian=xpxi, center=False, debiased=debiased, df=fc.shape[1], bandwidth=bandwidth, kernel=kernel, ) bw = cov_est.bandwidth _cov_config = {k: v for k, v in cov_config.items()} _cov_config["bandwidth"] = bw rp_cov_est = KernelCovariance( fe, jacobian=np.eye(f.shape[1]), center=False, debiased=debiased, df=1, bandwidth=bw, kernel=kernel, ) else: raise ValueError(f"Unknown cov_type: {cov_type}") full_vcv = cov_est.cov rp_cov = rp_cov_est.cov vcv = full_vcv[:nloading, :nloading] # Rearrange VCV order = np.reshape( np.arange((nfactor + 1) * nportfolio), (nportfolio, nfactor + 1) ) order = order.T.ravel() vcv = vcv[order][:, order] # Return values alpha_vcv = vcv[:nportfolio, :nportfolio] stat = float(np.squeeze(alphas.T @ np.linalg.pinv(alpha_vcv) @ alphas)) jstat = WaldTestStatistic( stat, "All alphas are 0", nportfolio, name="J-statistic" ) params = b.T betas = b[1:].T residual_ss = (eps**2).sum() e = p - p.mean(0)[None, :] total_ss = (e**2).sum() r2 = 1 - residual_ss / total_ss param_names = [] for portfolio in self.portfolios.cols: param_names.append(f"alpha-{portfolio}") for factor in self.factors.cols: param_names.append(f"beta-{portfolio}-{factor}") for factor in self.factors.cols: param_names.append(f"lambda-{factor}") res = AttrDict( params=params, cov=full_vcv, betas=betas, rp=rp, rp_cov=rp_cov, alphas=alphas, alpha_vcv=alpha_vcv, jstat=jstat, rsquared=r2, total_ss=total_ss, residual_ss=residual_ss, param_names=param_names, portfolio_names=self.portfolios.cols, factor_names=self.factors.cols, name=self._name, cov_type=cov_type, model=self, nobs=nobs, rp_names=self.factors.cols, cov_est=cov_est, ) return LinearFactorModelResults(res)
(portfolios: 'IVDataLike', factors: 'IVDataLike')
[ 0.0211898535490036, -0.06509523093700409, -0.023619623854756355, 0.023133670911192894, -0.006797705311328173, -0.04084273800253868, -0.06500482559204102, -0.03752017021179199, 0.03720373287796974, 0.009764284826815128, -0.003266062820330262, 0.0031869541853666306, -0.007860023528337479, 0.05040359869599342, -0.03037777543067932, 0.09149497002363205, 0.03813043609261513, 0.028818201273679733, -0.001719203544780612, 0.01939295418560505, -0.04859539866447449, -0.020342260599136353, -0.05139810964465141, 0.03322569280862808, 0.029699699953198433, 0.0032293337862938643, 0.03905713930726051, -0.04479817673563957, 0.02010493353009224, 0.00797868613153696, -0.07079106569290161, 0.014556017704308033, -0.056325457990169525, 0.004650466609746218, 0.009606067091226578, -0.007238454185426235, 0.02655795030295849, 0.012239259667694569, 0.010900061577558517, 0.02960929088294506, 0.02852436900138855, -0.024071674793958664, 0.007780914660543203, -0.02377784252166748, -0.06034870445728302, -0.017471741884946823, -0.052347417920827866, 0.07635128498077393, 0.04109136760234833, -0.03177913278341293, -0.02687438577413559, -0.04253792762756348, 0.05108167603611946, 0.0035316424909979105, -0.021494988352060318, 0.026603156700730324, 0.013165962882339954, 0.05189536511898041, 0.02130286768078804, -0.014160473830997944, 0.009843394160270691, -0.010724891908466816, 0.03191474452614784, 0.019031314179301262, -0.05519533157348633, -0.01967548578977585, -0.005565868224948645, 0.0034129791893064976, 0.01071924064308405, 0.015968674793839455, -0.007464479189366102, -0.01113173644989729, 0.028659984469413757, 0.010442360304296017, 0.038831114768981934, 0.005489584989845753, 0.020014524459838867, -0.07485951483249664, -0.028999021276831627, -0.04341942444443703, 0.028569573536515236, 0.00099733576644212, -0.046651583164930344, -0.053025491535663605, 0.015708744525909424, -0.03623182699084282, 0.015098477713763714, -0.016432026401162148, 0.035418134182691574, 0.055647384375333786, -0.023099767044186592, 0.007475780788809061, 0.017562150955200195, -0.0018647072138264775, 0.005498060956597328, -0.016929281875491142, 0.013358084484934807, -0.031191466376185417, -0.0036305284593254328, -0.04000644385814667, 0.011787209659814835, 0.055782999843358994, -0.05551176890730858, 0.08697446435689926, -0.03982562571763992, -0.013990954495966434, -0.08023891597986221, -0.00688246451318264, 0.03625442832708359, -0.05370356887578964, -0.09963186830282211, 0.08466900885105133, -0.006837259512394667, 0.003195430152118206, -0.05759119987487793, -0.035508546978235245, -0.043577641248703, 0.030558595433831215, -0.05090085417032242, 0.013414590619504452, 0.014940259978175163, 0.053477540612220764, -0.03458184376358986, 0.031101055443286896, -0.039260562509298325, -0.024591531604528427, 0.03731674700975418, 0.046741992235183716, 0.02130286768078804, -0.04502420127391815, 0.008216013200581074, -0.026354528963565826, 0.019302545115351677, -0.01200193352997303, 0.05343233793973923, -0.013911846093833447, 0.003884806763380766, -0.026377130299806595, -0.03191474452614784, 0.025947682559490204, 0.05736517533659935, 0.046741992235183716, -0.06943491846323013, -0.008204711601138115, -0.032638028264045715, 0.021969640627503395, 0.05044880509376526, -0.06681302189826965, -0.05144331604242325, -0.001322953263297677, -0.015821758657693863, -0.03137228637933731, -0.061930879950523376, -0.015991276130080223, 0.04082013666629791, -0.012815623544156551, 0.02303195931017399, -0.0364578515291214, 0.0089562451466918, 0.007148044183850288, -0.06175006181001663, -0.03489827737212181, -0.011809811927378178, 0.040481097996234894, -0.0020427019335329533, 0.004051500000059605, -0.04197286441922188, -0.0889182835817337, -0.05772681534290314, 0.03774619475007057, 0.01567484252154827, 0.005520663224160671, -0.032864052802324295, 0.013346782885491848, -0.03290925547480583, 0.019347749650478363, 0.03537293151021004, -0.04382627084851265, 0.022817235440015793, -0.0007783739711157978, 0.0022447118535637856, -0.04945429414510727, -0.04373585805296898, -0.006012267898768187, -0.022647716104984283, 0.004517676774412394, -0.01649983413517475, 0.004068451933562756, 0.031982552260160446, -0.008442037738859653, -0.03919275477528572, -0.029428469017148018, 0.040345482528209686, 0.020489176735281944, -0.031010646373033524, -0.03819824382662773, 0.03338390961289406, 0.009984659031033516, 0.03611881285905838, -0.03467225283384323, -0.012295765802264214, 0.01783338189125061, 0.03207296505570412, -0.0185453612357378, -0.08566351979970932, -0.006051822565495968, -0.038492076098918915, -0.0394187793135643, 0.007662251591682434, 0.01899741031229496, -0.03130447864532471, 0.0188617967069149, 0.01948336511850357, 0.023257983848452568, 0.0032773641869425774, -0.0535227470099926, 0.043125592172145844, -0.005659103859215975, 0.03736194968223572, 0.019924113526940346, 0.04176944121718407, -0.061840470880270004, -0.01916692964732647, 0.01920083351433277, -0.005122294183820486, -0.02047787606716156, 0.013030347414314747, 0.06030350178480148, 0.014714234508574009, -0.0482337586581707, -0.01674846187233925, -0.017822079360485077, 0.022432992234826088, -0.02863738127052784, 0.003819824429228902, 0.01089441031217575, -0.03788181021809578, 0.038266051560640335, -0.07273488491773605, -0.019890209659934044, -0.01113173644989729, -0.03304487094283104, 0.0447077676653862, 0.03794961795210838, -0.011855017393827438, -0.004554406274110079, 0.051262494176626205, 0.050584420561790466, -0.034853070974349976, -0.015595733188092709, 0.014883753843605518, -0.012058439664542675, -0.021088143810629845, 0.055873408913612366, -0.025179198011755943, -0.09764284640550613, 0.052799466997385025, 0.038040027022361755, 0.07540197670459747, -0.019268641248345375, 0.006842910312116146, -0.04226669669151306, 0.01751694642007351, 0.05727476254105568, -0.027484653517603874, 0.002319582737982273, -0.03912494704127312, -0.012261862866580486, 0.046651583164930344, 0.020319657400250435, 0.018556661903858185, 0.049951549619436264, -0.04595090448856354, 0.010012912563979626, -0.009148366749286652, 0.018500154837965965, -0.041588619351387024, -0.007210201118141413, 0.021110745146870613, 0.04011945798993111, 0.003232159186154604, -0.04613172635436058, -0.05307069793343544, 0.003201080719009042, 0.030106544494628906, -0.015166285447776318, -0.024636738002300262, -0.014635126106441021, 0.03467225283384323, 0.015448816120624542, -0.012736515142023563, -0.027823692187666893, 0.05745558440685272, -0.020319657400250435, 0.05781722441315651, 0.024049071595072746, -0.007063284981995821, -0.02863738127052784, 0.04303518310189247, -0.020568285137414932, -0.0052974633872509, 0.0400516502559185, 0.09972228109836578, -0.019618980586528778, -0.05067482963204384, -0.00843073707073927, 0.016658050939440727, -0.02809492126107216, 0.02198094315826893, -0.0004223844443913549, 0.027145616710186005, 0.01868097484111786, -0.01578785479068756, 0.010973519645631313, 0.009210523217916489, -0.03464965149760246, -0.03733934834599495, -0.056551482528448105, 0.08787856251001358, 0.01646593026816845, -0.021619301289319992, -0.01607038639485836, 0.02036486193537712, -0.02929285541176796, 0.032864052802324295, -0.011369063518941402, 0.03910234570503235, 0.01475943997502327, -0.03284144774079323, 0.007967385463416576, 0.005656278692185879, 0.01228446513414383, 0.02479495480656624, 0.07535677403211594, -0.04855019599199295, -0.030558595433831215, 0.035192109644412994, -0.009408295154571533, 0.05420082062482834, 0.004302952904254198, 0.08317723870277405, -0.0037604928947985172, -0.06848561018705368, 0.0033395211212337017, -0.006379558704793453, -0.034966085106134415, 0.07210201025009155, 0.028117524459958076, 0.02377784252166748, 0.0681239664554596, 0.0008151030633598566, -0.02038746513426304, 0.04931867867708206, 0.09208263456821442, -0.00009667871199781075, 0.031666118651628494, -0.027258628979325294, -0.07327733933925629, 0.049815934151411057, -0.04922826960682869, 0.007368418853729963, 0.03467225283384323, -0.034084588289260864, 0.041566018015146255, 0.03557635471224785, -0.0600774772465229, -0.030581198632717133, -0.02087341994047165, 0.0746786966919899, -0.029451072216033936, 0.012035837396979332, -0.04561186954379082, 0.0006265133852139115, -0.03611881285905838, 0.02520179934799671, -0.046968020498752594, -0.017302222549915314, 0.015460117720067501, 0.009029703214764595, -0.0001161027466878295, 0.014702933840453625, -0.03372294828295708, -0.06373908370733261, 0.02741684578359127, 0.004690021276473999, -0.0055997720919549465, 0.008329025469720364, -0.044549550861120224, 0.09691956639289856, -0.005690182093530893, 0.005051661282777786, 0.004161687567830086, 0.08679364621639252, 0.017019690945744514, 0.007430575788021088, -0.012793021276593208, 0.006797705311328173, -0.010741843841969967, -0.007204550318419933, -0.03487567603588104, -0.0352599173784256, -0.03636744245886803, 0.03128187730908394, 0.051262494176626205, -0.014160473830997944, -0.04855019599199295, 0.0488666296005249, 0.015663539990782738, -0.03026476316154003, 0.08408134430646896, -0.00017976059461943805, 0.034853070974349976, -0.03722633793950081, -0.04129478707909584, -0.050041958689689636, 0.05899255350232124, -0.03162091225385666, -0.039486587047576904, 0.07427185028791428, 0.04778170958161354, 0.060167886316776276, -0.004147560801357031, 0.036955107003450394, 0.019698088988661766, -0.0026416685432195663, 0.051578931510448456, -0.023958662524819374, 0.0754471868276596, -0.022082652896642685, -0.00013623310951516032, 0.008458989672362804, -0.010690988041460514, -0.03521471098065376, -0.034536637365818024, -0.04093314707279205, 0.0049047451466321945, -0.060845959931612015, -0.009815140627324581, -0.01635291613638401, 0.03137228637933731, 0.03193734958767891, 0.02850176766514778, 0.025812068954110146, -0.02511139027774334, -0.03874070569872856, 0.03006133995950222, -0.009832092560827732, -0.022986754775047302, -0.09502095729112625, -0.018048105761408806, 0.029157239943742752, 0.02286243997514248, 0.005687356926500797, 0.018692277371883392, -0.04479817673563957, -0.0077131069265306, 0.028253139927983284, -0.03523731604218483, -0.0023662003222852945, 0.008204711601138115, 0.021935736760497093, 0.03105585090816021, 0.013256372883915901, -0.004899094346910715, -0.017110101878643036, 0.012962540611624718, 0.05307069793343544, -0.022387787699699402, -0.014329992234706879, -0.0041955909691751, 0.005079914350062609, 0.0033960272558033466, 0.010939615778625011, -0.05270905792713165, -0.016172096133232117, 0.0671294555068016, -0.025405222550034523, 0.0060461717657744884, 0.006594282574951649, 0.007385370787233114, 0.004805859178304672, -0.0676267147064209, 0.015618335455656052, 0.01987890899181366, 0.02820793353021145, -0.001963593065738678, 0.027597665786743164, 0.04468516632914543, 0.022478196769952774, -0.02092992514371872, -0.04977073147892952, -0.006130931433290243, 0.0376557856798172, 0.07449787855148315, -0.025518234819173813, -0.00435945950448513, 0.04990634694695473, 0.021709712222218513, 0.023755239322781563, -0.04000644385814667, 0.018760085105895996, 0.00398934306576848, -0.04100095480680466, -0.029812712222337723, 0.003867854829877615, -0.017200510948896408, -0.03467225283384323, -0.011278653517365456, -0.028456561267375946, -0.0506296269595623, -0.02173231542110443, -0.04877622053027153, 0.04059411212801933, -0.053025491535663605, 0.008295121602714062, 0.03523731604218483, -0.018748782575130463, 0.016771063208580017, -0.029225047677755356, -0.01228446513414383, 0.019743293523788452, -0.009148366749286652, 0.035960596054792404, -0.01729092188179493, 0.02115595154464245, 0.08403613418340683, -0.019065218046307564, -0.0019339274149388075, 0.051262494176626205, 0.02664836123585701, -0.014499510638415813, -0.05618984252214432, 0.028456561267375946, 0.06717466562986374, 0.007328864187002182, -0.009962056763470173, -0.012962540611624718, -0.07024860382080078, -0.005286162253469229, -0.0185453612357378, -0.01783338189125061, 0.0423797070980072, -0.009888598695397377, -0.04122697934508324, 0.013877942226827145, -0.00814820546656847, 0.021370675414800644, 0.0035881486255675554, -0.0026586204767227173, -0.021935736760497093, 0.032434605062007904, 0.02685178443789482, 0.024930570274591446, -0.011606389656662941, 0.03876330703496933, 0.02597028575837612, -0.03568936511874199, -0.01036890223622322, -0.008266869001090527, -0.019980620592832565, 0.006159184500575066, 0.016477230936288834, 0.057319968938827515, -0.0600774772465229, -0.005331367254257202, 0.01018243096768856, 0.026467541232705116, 0.005173149984329939, -0.031327079981565475, -0.05121729150414467, 0.03026476316154003, -0.018025502562522888, -0.011323858052492142, 0.07395541667938232, -0.027439448982477188, -0.02244429476559162, 0.020658696070313454, -0.046651583164930344, -0.016307711601257324, 0.0009521307656541467, -0.0023096941877156496, -0.06292539089918137, 0.000653000664897263, -0.08371970057487488, -0.008837581612169743, 0.029699699953198433, -0.008882787078619003, 0.054562464356422424, 0.002282853703945875, 0.012566996738314629, -0.05524053797125816, 0.05194057151675224, -0.06767191737890244, -0.057772018015384674, -0.01491765771061182, 0.028569573536515236, -0.05194057151675224, 0.02685178443789482, 0.04882142320275307, -0.00892799161374569, -0.07504034042358398, -0.024388110265135765, -0.0009259966318495572, 0.007215851917862892, -0.018963506445288658, -0.024071674793958664, -0.03225378319621086, 0.00745882885530591, 0.055873408913612366, -0.0005410476005636156, 0.02366483025252819, 0.003921535797417164, 0.011482075788080692, -0.01942685805261135, 0.018466250970959663, -0.03141748905181885, -0.034401021897792816, -0.004497899673879147, 0.05989665538072586, 0.02841135673224926, -0.0068711633794009686, -0.004000644665211439, -0.014070063829421997, 0.02283983863890171, -0.05546656250953674, -0.010917012579739094, 0.04592830315232277, -0.09212783724069595, -0.011877619661390781, -0.07359378039836884, 0.019630281254649162, 0.08566351979970932, 0.029225047677755356, 0.02454632706940174, 0.01982240192592144, 0.004365109838545322, 0.056099433451890945, 0.018409745767712593, 0.004317079670727253, -0.00830642320215702, -0.01578785479068756, 0.003907409030944109, -0.010176780633628368, 0.017223114147782326, -0.013199866749346256, -0.032434605062007904, -0.00092952826526016, -0.03959960117936134, 0.1041523739695549, 0.032434605062007904, -0.026060694828629494, -0.01173070352524519, -0.06030350178480148, -0.017584754154086113, -0.013346782885491848, 0.03713592514395714, 0.013301578350365162, 0.0493638850748539, 0.06089116632938385, -0.011126086115837097, -0.007792215794324875, -0.01885049417614937, 0.022274775430560112, -0.048278965055942535, 0.042334504425525665, 0.0016669351607561111, 0.05361315608024597, 0.021766219288110733, -0.02531481347978115, 0.04242491349577904, -0.014137870632112026, 0.0010538421338424087, -0.033632535487413406, -0.001805375562980771, 0.0037633180618286133, -0.02355181612074375, -0.0023308841045945883, 0.04493379220366478, 0.016737159341573715, 0.014522113837301731, 0.07535677403211594, 0.0464707650244236, -0.013471096754074097, 0.030581198632717133, 0.05867611989378929, -0.024026470258831978, -0.017641259357333183, -0.027010001242160797, -0.020658696070313454, -0.0382208451628685, -0.054020002484321594, -0.013505000621080399, 0.02608329802751541, 0.003141749184578657, 0.009097510948777199, -0.040368083864450455, -0.06066514179110527, -0.0010962218511849642, -0.02809492126107216, -0.02201484702527523, 0.005887954030185938, -0.014126569963991642, -0.0002993067028000951, 0.05194057151675224, -0.014228280633687973, 0.04280915483832359, -0.02107684127986431, -0.03817564249038696, 0.03523731604218483, -0.0711527094244957, 0.014623824506998062, 0.03632223606109619, 0.04129478707909584, -0.042560528963804245, 0.03137228637933731, 0.05600902438163757, -0.029134636744856834, -0.028275741264224052, -0.0019367526983842254, 0.04626734182238579, 0.0647335946559906, 0.01021068450063467, 0.047962527722120285, 0.03921535611152649, -0.056325457990169525, -0.062066495418548584, -0.006837259512394667, 0.02520179934799671, 0.049273476004600525, 0.008340327069163322, 0.05781722441315651, 0.06401031464338303, -0.017268318682909012, -0.026286721229553223, -0.03257022053003311, -0.0523926205933094, 0.03223118185997009, -0.027145616710186005, -0.029541483148932457, 0.044097498059272766, -0.05266385152935982, -0.01271391287446022, -0.06093636900186539, -0.01629641093313694, 0.02454632706940174, 0.08051014691591263, 0.020037125796079636, 0.010058118030428886, 0.05451725795865059, -0.06740068644285202, 0.044639959931373596, -0.038288652896881104, -0.03259282186627388, 0.014431703835725784, 0.024478519335389137, -0.0036898599937558174, 0.057093944400548935, -0.028320947661995888, -0.015573129989206791, -0.058630913496017456, -0.00954391062259674, -0.026806578040122986, 0.03819824382662773, 0.06328703463077545, 0.04059411212801933, 0.0214723851531744, 0.004093879833817482, 0.022274775430560112 ]
43,095
linearmodels.asset_pricing.model
__init__
null
def __init__(self, portfolios: IVDataLike, factors: IVDataLike): super().__init__(portfolios, factors)
(self, portfolios: Union[linearmodels.iv.data.IVData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series], factors: Union[linearmodels.iv.data.IVData, numpy.ndarray, pandas.core.frame.DataFrame, pandas.core.series.Series])
[ 0.005356785375624895, -0.05926356837153435, -0.04859401285648346, 0.014278892427682877, -0.07109515368938446, -0.01553775928914547, -0.021867305040359497, -0.001722138375043869, 0.012439010664820671, 0.02612808533012867, 0.01463102363049984, 0.029438111931085587, -0.05426331236958504, 0.03160371631383896, -0.021779272705316544, 0.024754775688052177, 0.049016568809747696, 0.06292572617530823, -0.010537506081163883, 0.008688820526003838, -0.016391675919294357, 0.032800957560539246, -0.05901707708835602, 0.013618648052215576, 0.027325328439474106, 0.10535745322704315, 0.0072538889944553375, -0.005158712156116962, 0.010942456312477589, -0.02457871101796627, -0.06672873347997665, 0.03704413026571274, -0.02695559151470661, 0.06370041519403458, 0.01931435987353325, 0.016514921560883522, -0.0046261148527264595, 0.038276586681604385, -0.07429954409599304, 0.11599179357290268, 0.0564817376434803, -0.0459178201854229, 0.01855727843940258, 0.008591984398663044, -0.038311801850795746, 0.0007449761615134776, -0.007680846843868494, -0.0007350724772550166, 0.034103840589523315, -0.006602447479963303, -0.05859451740980148, -0.0059554073959589005, 0.05908750370144844, -0.011761159636080265, -0.046375591307878494, 0.10416021198034286, 0.02716686949133873, 0.05778462067246437, -0.017316019162535667, 0.0701444000005722, -0.05690429359674454, -0.021744059398770332, 0.06598926335573196, -0.04574175551533699, -0.03167413920164108, 0.010572719387710094, -0.05612960457801819, 0.009930080734193325, 0.015335284173488617, 0.07894766330718994, 0.0313396155834198, 0.015088792890310287, -0.03561800345778465, 0.05665780231356621, 0.053981609642505646, 0.010123752988874912, 0.0034794898238033056, 0.008961722254753113, 0.004494065884500742, -0.044262807816267014, 0.04711506515741348, -0.017324822023510933, -0.06894715875387192, 0.02873385138809681, 0.03732583671808243, -0.043276842683553696, -0.0008544667507521808, -0.04334726929664612, 0.011910814791917801, 0.04049501195549965, -0.07704615592956543, 0.007650035433471203, -0.019279146566987038, -0.0045072706416249275, 0.032836172729730606, -0.019191114231944084, -0.02169124037027359, -0.029843062162399292, -0.054721083492040634, 0.0029975110664963722, -0.0028060402255505323, 0.00798455998301506, -0.04077671468257904, -0.0164444949477911, -0.03472007066011429, -0.05063636973500252, -0.05380554497241974, -0.052115317434072495, -0.00041402847273275256, -0.022677205502986908, -0.05637609586119652, 0.11310432106256485, -0.02431461215019226, 0.04070628806948662, -0.08289152383804321, 0.01657654531300068, -0.013477795757353306, -0.010599128901958466, -0.0009573548450134695, 0.01162911020219326, -0.023170188069343567, 0.05514363944530487, -0.009305048733949661, 0.06563712656497955, 0.006765307858586311, 0.018486851826310158, -0.026797132566571236, 0.004542483948171139, 0.005647293291985989, -0.05507321283221245, 0.03785403072834015, -0.04651644080877304, -0.031181158497929573, -0.03883999586105347, 0.035441938787698746, -0.06848938763141632, 0.060777727514505386, -0.00914659071713686, -0.04722070321440697, 0.05753812938928604, 0.0024935242254287004, 0.01984255574643612, -0.026585854589939117, 0.017720969393849373, -0.06387647986412048, 0.06940492987632751, -0.008204640820622444, -0.03551236167550087, -0.05567183718085289, -0.0001470420102123171, -0.021832091733813286, 0.0015372697962448, -0.04158661514520645, -0.01827557384967804, 0.01765054278075695, -0.012509437277913094, -0.0029336875304579735, -0.045389626175165176, 0.01859249174594879, -0.021075012162327766, -0.041692253202199936, -0.018099509179592133, -0.0012313564075157046, 0.0322023369371891, -0.036199018359184265, 0.02848736010491848, -0.040600650012493134, -0.10218828171491623, 0.0002929836045950651, 0.042748644948005676, 0.02193773165345192, -0.06134113669395447, -0.03350521996617317, -0.0008687720401212573, -0.009613162837922573, -0.007390339393168688, 0.021022193133831024, -0.014199662953615189, 0.06243274360895157, 0.04102320596575737, -0.012641485780477524, -0.020986979827284813, -0.05232659727334976, 0.013557025231420994, 0.02273002453148365, -0.049544766545295715, 0.004722950514405966, 0.021022193133831024, 0.034649644047021866, -0.04000202566385269, -0.02642739564180374, -0.002372479299083352, 0.011849191971123219, -0.01083681732416153, -0.01371548417955637, -0.028364114463329315, 0.01735123246908188, -0.002588159404695034, -0.031251583248376846, -0.003924054559320211, 0.021550387144088745, 0.033593252301216125, 0.0064175790175795555, -0.05250266194343567, -0.026761919260025024, 0.058488879352808, -0.012430207803845406, -0.02845214679837227, -0.020247505977749825, -0.012192519381642342, 0.03336436673998833, -0.009014541283249855, 0.009894867427647114, -0.01687585562467575, -0.004095718264579773, -0.04827709496021271, -0.01682303659617901, -0.06870066374540329, 0.02456110343337059, 0.047150276601314545, 0.09979379177093506, -0.03419187292456627, -0.015845874324440956, -0.027888737618923187, -0.0134601891040802, 0.005563662387430668, 0.047185491770505905, -0.02480759471654892, -0.05715078487992287, -0.006576037500053644, -0.06845417618751526, -0.026744313538074493, -0.017227984964847565, 0.039016060531139374, -0.0026409788988530636, 0.02660346031188965, -0.034632038325071335, 0.0032021868973970413, -0.09923037886619568, -0.014604613184928894, 0.024631530046463013, 0.003052531508728862, 0.029825454577803612, 0.040882352739572525, -0.03214951604604721, -0.015793053433299065, -0.011946028098464012, 0.056833866983652115, -0.04278386011719704, 0.006078653037548065, -0.010546308942139149, -0.07591933757066727, -0.04278386011719704, 0.01596911996603012, 0.008737239055335522, -0.0569395050406456, -0.03058253601193428, -0.008297075517475605, 0.05063636973500252, -0.062291890382766724, 0.008319083601236343, -0.017060723155736923, -0.0050398679450154305, 0.08014490455389023, -0.02088133990764618, 0.010396653786301613, -0.023909661918878555, -0.037713177502155304, 0.02454349771142006, 0.014005991630256176, 0.08838476240634918, -0.0005015109200030565, 0.029719816520810127, 0.021303895860910416, -0.0028478556778281927, -0.016787823289632797, -0.007245085667818785, -0.0014811489963904023, -0.0408119261264801, 0.028804276138544083, 0.058418452739715576, -0.01647970825433731, -0.021832091733813286, 0.01370668038725853, 0.01661175675690174, -0.051340632140636444, 0.008076993748545647, 0.011153734289109707, -0.041128844022750854, -0.01672619953751564, -0.024930840358138084, 0.06834853440523148, 0.005845366511493921, 0.04443887248635292, 0.03338197246193886, 0.06524978578090668, 0.02667388692498207, 0.014798285439610481, 0.020159471780061722, -0.02850496582686901, 0.029455717653036118, -0.05359426513314247, 0.03496656194329262, -0.004555688705295324, -0.0439106747508049, -0.028874702751636505, 0.03257207199931145, 0.016893461346626282, 0.01738644391298294, 0.0038646324537694454, 0.06542585045099258, 0.06095379218459129, -0.02403290756046772, 0.05334777384996414, -0.0044478485360741615, -0.02901555597782135, -0.029895881190896034, -0.05324213579297066, 0.01804669015109539, 0.05454501882195473, -0.01765054278075695, -0.019279146566987038, 0.008099001832306385, -0.05542534589767456, 0.007033807225525379, 0.026374576613307, 0.0335228256881237, -0.01883898302912712, -0.013389763422310352, 0.03873435780405998, -0.03345239907503128, 0.06637660413980484, 0.0522913821041584, 0.03584688901901245, -0.04697421193122864, -0.016435692086815834, 0.011232963763177395, 0.005414006765931845, 0.03422708809375763, -0.011576291173696518, 0.05172797292470932, -0.047431983053684235, -0.05278436467051506, 0.006813725456595421, 0.04486142843961716, -0.036163803189992905, 0.008724033832550049, -0.04225566238164902, 0.04204438626766205, 0.06299614906311035, -0.011857995763421059, -0.01859249174594879, 0.01490392442792654, 0.03450879082083702, 0.02956135757267475, 0.038276586681604385, -0.020036226138472557, -0.05095328763127327, -0.012500633485615253, -0.022166617214679718, 0.06848938763141632, 0.03213191032409668, -0.0016198004595935345, 0.04443887248635292, -0.0024363030679523945, -0.020969372242689133, 0.014833498746156693, -0.0342094786465168, 0.04852358624339104, 0.031498074531555176, 0.0027378147933632135, -0.017316019162535667, -0.0018486852059140801, -0.01451658084988594, 0.01110091432929039, -0.006461595185101032, -0.015247251838445663, 0.028276080265641212, -0.01449017133563757, -0.02741336077451706, -0.00173204205930233, -0.019930588081479073, 0.013926762156188488, 0.01725439541041851, -0.046093884855508804, -0.0060742516070604324, -0.025142120197415352, -0.004494065884500742, 0.10261083394289017, 0.05531970411539078, 0.001459140912629664, -0.012588665820658207, 0.010282211005687714, -0.020846126601099968, -0.002557347994297743, -0.04422759264707565, 0.023469500243663788, -0.03561800345778465, -0.005330375861376524, -0.0569395050406456, 0.006355955731123686, -0.06327785551548004, 0.03165653347969055, 0.04260779172182083, -0.008658009581267834, -0.037501901388168335, 0.039614684879779816, -0.00867561623454094, 0.012236535549163818, 0.00490341754630208, 0.06014389172196388, 0.016189200803637505, -0.01933196559548378, -0.052749153226614, 0.015168022364377975, -0.012896780855953693, 0.008785656653344631, -0.0575733408331871, 0.06352434307336807, 0.003096547909080982, 0.057326849550008774, 0.03859350457787514, 0.02720208279788494, 0.06063687801361084, -0.0064175790175795555, 0.036692000925540924, -0.017069527879357338, 0.043981101363897324, 0.021550387144088745, -0.021497568115592003, -0.02486041560769081, 0.039825960993766785, -0.039297766983509064, -0.02903316169977188, 0.025423822924494743, 0.014666236005723476, -0.04887571558356285, -0.024508284404873848, -0.015000760555267334, 0.057045143097639084, 0.03922734037041664, -0.019138293340802193, 0.06771469861268997, -0.0063383495435118675, -0.01006213016808033, -0.005136704072356224, -0.05612960457801819, 0.024930840358138084, -0.05091807246208191, -0.02797676995396614, 0.00913778692483902, -0.006162283942103386, 0.006743299309164286, -0.03232558071613312, -0.009164196439087391, -0.0381709486246109, -0.036656785756349564, -0.014410941861569881, 0.05024902522563934, 0.004643721505999565, 0.046657294034957886, 0.019807342439889908, -0.010607931762933731, -0.05412246286869049, -0.008041780441999435, -0.0032594080548733473, 0.023962482810020447, -0.04517834633588791, 0.026233723387122154, -0.003618141170591116, 0.034632038325071335, 0.056552160531282425, 0.015872282907366753, -0.07253888994455338, -0.014921531081199646, 0.055249277502298355, 0.01265028864145279, -0.007179060950875282, -0.010458276607096195, -0.00399227999150753, -0.025036480277776718, -0.028416933491826057, 0.018962228670716286, 0.027237296104431152, -0.04292470961809158, -0.009023345075547695, -0.042678218334913254, 0.02461392432451248, 0.003083342919126153, -0.004012087360024452, 0.0011455245548859239, 0.004740557167679071, -0.04567132890224457, 0.03637508302927017, 0.05620003119111061, 0.006052243523299694, 0.04148097708821297, 0.03281856328248978, 0.02297651581466198, 0.0009507524082437158, -0.024367433041334152, 0.0011763360816985369, -0.01619800366461277, -0.04859401285648346, -0.012782338075339794, -0.05517885461449623, 0.004489663988351822, -0.007597215939313173, -0.025494249537587166, -0.020810913294553757, 0.033839743584394455, -0.04859401285648346, -0.007148249540477991, -0.018997441977262497, 0.034367937594652176, 0.009093770757317543, -0.07338400185108185, 0.0172191821038723, -0.02378641627728939, 0.009762818925082684, 0.024508284404873848, 0.006571636069566011, 0.04257258027791977, -0.006963381078094244, 0.004982647020369768, 0.0020247504580765963, -0.037008918821811676, -0.041727468371391296, 0.005414006765931845, 0.024173760786652565, -0.019508030265569687, -0.07641232013702393, -0.011153734289109707, 0.06683437526226044, -0.009173000231385231, 0.031498074531555176, -0.034843314439058304, -0.04908699542284012, 0.022870877757668495, 0.01424368005245924, -0.01332814060151577, 0.02531818486750126, 0.049509551376104355, -0.07366570830345154, -0.0031075519509613514, -0.04891093075275421, -0.06116507202386856, 0.04616431146860123, 0.029314866289496422, -0.010114949196577072, 0.005779342260211706, -0.021849699318408966, -0.03630465641617775, -0.007029405795037746, 0.001206047018058598, 0.022677205502986908, -0.029931094497442245, -0.015599382109940052, 0.003743587527424097, -0.009472311474382877, 0.022606778889894485, 0.025740740820765495, 0.03084663301706314, -0.002625573193654418, -0.0142348762601614, -0.029649389907717705, 0.008878090418875217, -0.014683842658996582, -0.04232608899474144, -0.007421150803565979, 0.045037493109703064, -0.046093884855508804, -0.016664577648043633, 0.06715129315853119, 0.010748784057796001, -0.011972437612712383, 0.010607931762933731, 0.009375475347042084, 0.007077823393046856, -0.057397276163101196, -0.047431983053684235, -0.008319083601236343, -0.03369889035820961, -0.09366671741008759, -0.0020478591322898865, 0.03526587039232254, -0.023346254602074623, 0.024666743353009224, 0.05641131103038788, 0.018416427075862885, -0.0058805798180401325, 0.016382873058319092, -0.06303136050701141, -0.030969878658652306, -0.03841743990778923, 0.009067361243069172, -0.0366215743124485, -0.06063687801361084, -0.005528449080884457, -0.019032655283808708, -0.06676394492387772, 0.048734866082668304, -0.05127020552754402, 0.022360287606716156, 0.02116304449737072, -0.03655114769935608, -0.04130490869283676, 0.047431983053684235, 0.0008500650874339044, 0.042185235768556595, 0.04880528897047043, 0.023469500243663788, 0.015168022364377975, -0.02144474908709526, 0.014833498746156693, -0.017905836924910545, -0.022166617214679718, -0.009322655387222767, 0.040107667446136475, 0.031480468809604645, -0.04676293209195137, -0.00011437364446464926, -0.01321369782090187, 0.03873435780405998, -0.06553149223327637, -0.0008836275083012879, 0.014789481647312641, -0.07845468074083328, -0.001712234690785408, -0.06880630552768707, 0.05141105502843857, 0.04912220686674118, 0.009305048733949661, 0.019508030265569687, -0.020529208704829216, 0.012474223971366882, 0.011681930162012577, -0.004221164621412754, 0.038276586681604385, 0.033082664012908936, 0.02427939884364605, 0.021620813757181168, 0.032008662819862366, -0.008200239390134811, 0.009569146670401096, -0.06598926335573196, -0.04102320596575737, -0.01385633647441864, 0.03577646240592003, -0.013486598618328571, -0.022025763988494873, -0.0013931164285168052, -0.028029588982462883, 0.010246998630464077, -0.02688516490161419, 0.04757283255457878, 0.029702208936214447, 0.039614684879779816, 0.06824289262294769, -0.021233471110463142, -0.011320996098220348, 0.027290115132927895, 0.046093884855508804, -0.0055020395666360855, 0.07204590737819672, 0.001119114807806909, 0.052397020161151886, -0.04556569084525108, -0.037008918821811676, 0.053418200463056564, -0.006109464447945356, 0.03193823993206024, -0.008327886462211609, -0.0006982088088989258, 0.003384854644536972, -0.014182057231664658, -0.025775954127311707, 0.03257207199931145, 0.0564817376434803, 0.02140953578054905, 0.01515041571110487, -0.028011983260512352, 0.008732836693525314, -0.0054976376704871655, -0.00817382987588644, 0.0816238522529602, -0.0816238522529602, 0.00875044334679842, -0.02739575505256653, -0.058488879352808, -0.017571313306689262, -0.045354411005973816, 0.0026717903092503548, -0.013090452179312706, 0.036938492208719254, -0.019508030265569687, -0.08331408351659775, -0.040318943560123444, 0.008979327976703644, 0.025652708485722542, 0.020335538312792778, 0.006954577751457691, -0.00523794163018465, 0.06852459907531738, -0.03137483075261116, -0.01906786859035492, 0.00274221645668149, -0.008662411011755466, 0.03922734037041664, -0.017756180837750435, 0.030177585780620575, 0.07408826053142548, -0.0030481298454105854, -0.07225718349218369, 0.03736104816198349, 0.09275118261575699, 0.0064175790175795555, 0.0276950653642416, -0.044333234429359436, -0.009437098167836666, 0.047713685780763626, -0.02352231927216053, 0.037008918821811676, 0.024930840358138084, 0.009965294040739536, -0.023328647017478943, 0.0059554073959589005, 0.033610858023166656, 0.0538407564163208, -0.003783202264457941, 0.06560191512107849, 0.020212292671203613, -0.045636117458343506, -0.04866443946957588, 0.018169935792684555, -0.017166363075375557, -0.003296822076663375, 0.019261538982391357, 0.027078837156295776, 0.022289862856268883, -0.030388863757252693, -0.031040305271744728, -0.03626944497227669, 0.033593252301216125, 0.042959924787282944, 0.015317677520215511, 0.043981101363897324, -0.003197785234078765, 0.005141105502843857, 0.0073683313094079494, 0.0061490791849792, 0.018979834392666817, -0.04250215366482735, 0.03764275461435318, 0.008437927812337875, -0.01110091432929039, 0.06771469861268997, -0.026198510080575943, -0.014947940595448017, -0.0657779797911644, -0.02195533737540245, -0.008596386760473251, 0.05623524636030197, 0.008442329242825508, 0.05222095549106598, 0.038065310567617416, 0.062080610543489456, -0.0010679458500817418 ]
43,097
linearmodels.asset_pricing.model
__str__
null
def __str__(self) -> str: out = self.__class__.__name__ f, p = self.factors.shape[1], self.portfolios.shape[1] out += f" with {f} factors, {p} test portfolios" return out
(self) -> str
[ 0.016933120787143707, -0.02991730347275734, 0.01383038330823183, -0.0030253964941948652, 0.02505847066640854, -0.05779644474387169, 0.004226455930620432, -0.05077206715941429, 0.0037123661022633314, -0.02500387839972973, 0.015495489351451397, 0.009617576375603676, -0.03623196482658386, 0.012975083664059639, 0.03486712649464607, 0.0065421354956924915, 0.04982577636837959, -0.08159926533699036, 0.026496103033423424, 0.053428955376148224, 0.027023842558264732, 0.08480209112167358, 0.004817886743694544, -0.05677736550569534, 0.013211656361818314, 0.050080545246601105, 0.009854148142039776, -0.033229317516088486, -0.013166161254048347, -0.014976849779486656, -0.08785933256149292, -0.015559181571006775, -0.02101854421198368, -0.003050418570637703, -0.025640802457928658, 0.04371128976345062, -0.008807770907878876, 0.011155296117067337, -0.015140630304813385, 0.01568656601011753, 0.041345566511154175, -0.006505739875137806, -0.04261941835284233, -0.015550082549452782, -0.07049856334924698, -0.018762007355690002, 0.018134180456399918, 0.030099282041192055, -0.02212861366569996, -0.03168249875307083, -0.01961730793118477, -0.015095136128365993, -0.024075785651803017, -0.01469478290528059, -0.03832472115755081, 0.02238338440656662, 0.034430377185344696, -0.05757807195186615, 0.011683034710586071, 0.05051729455590248, -0.04658655449748039, 0.022510768845677376, 0.0797794759273529, -0.031828079372644424, -0.02897101454436779, -0.027333205565810204, -0.024221369996666908, 0.05146358534693718, 0.025749990716576576, 0.04440281167626381, 0.05353814363479614, -0.022183207795023918, -0.017588244751095772, 0.03916182368993759, -0.0023998445831239223, 0.0025818231515586376, -0.0028911870904266834, -0.04487595334649086, 0.05968902260065079, -0.050080545246601105, 0.004826985765248537, 0.004945272114127874, -0.02620493806898594, -0.04567665979266167, 0.05586747080087662, -0.07868760079145432, -0.01236545480787754, -0.05372012034058571, -0.005354724358767271, 0.026368718594312668, -0.03210105001926422, 0.01970829628407955, 0.005450263153761625, 0.0021803327836096287, -0.04272860661149025, -0.004515347070991993, -0.01981748454272747, -0.02928037755191326, 0.016032326966524124, -0.006978884339332581, 0.024985680356621742, -0.001877792994491756, -0.03623196482658386, 0.04462118446826935, -0.06809644401073456, -0.01680573634803295, -0.03923461586236954, 0.010099819861352444, -0.021455291658639908, -0.004474401939660311, -0.015941336750984192, 0.058451566845178604, 0.014112450182437897, -0.016341689974069595, 0.04946181923151016, -0.009954236447811127, -0.05084485933184624, -0.015577379614114761, 0.010955119505524635, -0.025240449234843254, 0.009048892185091972, 0.021873842924833298, -0.014585595577955246, -0.003882971126586199, -0.034066420048475266, 0.04141835868358612, -0.030135678127408028, -0.009754059836268425, 0.030354052782058716, -0.09026145190000534, 0.04720528423786163, -0.017815718427300453, -0.019599109888076782, 0.027060236781835556, 0.08742257952690125, -0.004749645013362169, -0.0027092082891613245, 0.006082639098167419, 0.019125964492559433, 0.09695826470851898, 0.012165278196334839, -0.03337489813566208, -0.041818711906671524, 0.03150051832199097, 0.002995824906975031, 0.03552224859595299, 0.012410949915647507, 0.02505847066640854, 0.0029867258854210377, -0.0017390341963618994, -0.0011311115231364965, -0.0017015010816976428, -0.0025340537540614605, -0.06554874032735825, 0.044220831245183945, -0.00029486240237019956, 0.007957019843161106, -0.03737843036651611, 0.029935501515865326, -0.050808463245630264, -0.014294429682195187, -0.0496801920235157, -0.027988329529762268, 0.04178231582045555, 0.005272833630442619, 0.00803891010582447, -0.014339923858642578, -0.028115713968873024, 0.032028257846832275, 0.0064875418320298195, 0.006210024002939463, -0.05299220606684685, -0.02154628187417984, 0.05168195813894272, 0.012984182685613632, 0.0418551079928875, 0.004117268603295088, 0.04858832061290741, 0.021528083831071854, -0.015468192286789417, -0.01388497743755579, -0.02034522220492363, -0.07621268928050995, -0.007693151012063026, 0.024603525176644325, -0.06179997697472572, -0.0036668714601546526, 0.02291112206876278, 0.02949875220656395, -0.01544999424368143, -0.04880669713020325, 0.02274734154343605, 0.014649287797510624, 0.03781517967581749, 0.007770491763949394, -0.0567045733332634, 0.007588513195514679, -0.049498215317726135, 0.07017099857330322, -0.05160916969180107, -0.02462172321975231, 0.09593918919563293, 0.01657826267182827, 0.011573847383260727, 0.004483500961214304, 0.04152754694223404, -0.003118660533800721, -0.02258356101810932, -0.03306553512811661, -0.00030054926173761487, 0.03843390941619873, 0.02112773060798645, -0.026368718594312668, -0.02860705740749836, 0.023493453860282898, -0.018161477521061897, 0.04389327019453049, -0.012383652850985527, -0.0687151700258255, 0.03452136367559433, 0.030572427436709404, -0.029626136645674706, 0.04917065426707268, -0.007588513195514679, -0.04156394302845001, -0.008675836026668549, 0.04007171839475632, 0.008184493519365788, -0.018907589837908745, -0.010299996472895145, -0.028643451631069183, -0.033174723386764526, -0.0006676344783045352, 0.051754750311374664, -0.03594079986214638, 0.052955809980630875, -0.0702073946595192, -0.013621107675135136, -0.01888939179480076, -0.011173494160175323, -0.02363903634250164, -0.010909625329077244, 0.03173708915710449, 0.002000628737732768, 0.04596782848238945, -0.07817806303501129, -0.018816601485013962, 0.020381618291139603, -0.016287095844745636, -0.015568280592560768, 0.010982416570186615, -0.018398050218820572, -0.018580028787255287, -0.04491234943270683, 0.03246500715613365, -0.036905284970998764, -0.03938019648194313, -0.021873842924833298, 0.03854309394955635, 0.001702638459391892, -0.0010856168810278177, -0.0054366146214306355, -0.00008892788900993764, 0.04982577636837959, -0.033083733171224594, -0.031209353357553482, -0.06329220533370972, -0.002675087423995137, 0.012856797315180302, -0.004342467524111271, 0.04993496462702751, 0.01738806813955307, -0.03452136367559433, 0.024548931047320366, -0.03619556874036789, -0.03150051832199097, -0.014385418966412544, 0.04032648727297783, -0.018762007355690002, -0.02578638680279255, 0.01908956840634346, -0.0519731268286705, -0.015486390329897404, -0.008753176778554916, 0.04079963266849518, -0.020690981298685074, 0.002026788191869855, -0.02704203873872757, 0.0394165925681591, 0.031045570969581604, 0.006210024002939463, -0.0035713326651602983, -0.02394840121269226, 0.008407417684793472, 0.011182593181729317, -0.008794122375547886, 0.07253672182559967, -0.029171191155910492, 0.011628440581262112, -0.024203171953558922, -0.025185856968164444, -0.01441271509975195, 0.04895227774977684, -0.01148285809904337, -0.06008937582373619, -0.02311129868030548, 0.0010162374237552285, -0.042437441647052765, 0.029480554163455963, -0.008930605836212635, -0.02305670455098152, 0.0204544086009264, 0.02216500975191593, 0.05299220606684685, 0.023147694766521454, 0.03634115308523178, -0.0641293078660965, -0.017242485657334328, 0.027315007522702217, 0.048879485577344894, 0.010209007188677788, 0.01067305263131857, -0.017533650621771812, 0.007870580069720745, 0.03552224859595299, -0.02039981633424759, -0.03792436793446541, 0.004813337232917547, 0.015559181571006775, -0.006555784028023481, -0.035121895372867584, -0.03887065872550011, 0.052737437188625336, 0.0371236614882946, 0.002916209166869521, 0.027988329529762268, 0.04247383773326874, 0.0016707922331988811, -0.0033415844663977623, -0.013994164764881134, 0.057141322642564774, -0.038106344640254974, -0.05797842517495155, 0.0153226088732481, 0.014358121901750565, 0.03541306033730507, -0.008885111659765244, 0.013275348581373692, 0.06631305068731308, 0.011919606477022171, 0.0040285540744662285, -0.046404577791690826, 0.008284581825137138, -0.027678964659571648, -0.0033233866561204195, 0.060344148427248, -0.01892578788101673, 0.009526586160063744, -0.03106376901268959, 0.07119008153676987, 0.04953461140394211, -0.02258356101810932, 0.018907589837908745, 0.04007171839475632, -0.025349637493491173, 0.002342976164072752, 0.015368103981018066, -0.01001792959868908, 0.052118707448244095, -0.010836833156645298, -0.028898222371935844, 0.011573847383260727, -0.004060400649905205, -0.0515727736055851, -0.03839751332998276, 0.08880562335252762, 0.024239566177129745, 0.015167927369475365, -0.013675701804459095, -0.09492010623216629, -0.009790455922484398, -0.003614552551880479, -0.015431796200573444, 0.048442739993333817, -0.06329220533370972, 0.03472154214978218, -0.035631436854600906, -0.0029457807540893555, 0.03974415361881256, 0.05317418649792671, -0.025440625846385956, -0.007038027513772249, 0.029225783422589302, 0.010390985757112503, 0.012893193401396275, -0.04884309321641922, -0.020581794902682304, -0.01746995747089386, -0.03497631102800369, 0.009508389048278332, 0.02955334633588791, -0.05648619681596756, -0.026223136112093925, 0.0012613401049748063, -0.03575881943106651, 0.0028707145247608423, 0.01292048953473568, 0.002625043271109462, -0.01872561126947403, 0.030572427436709404, 0.059179484844207764, -0.00060621666489169, -0.0593978576362133, -0.035631436854600906, 0.041709523648023605, 0.0034439475275576115, -0.0725003257393837, -0.042546626180410385, 0.0593978576362133, -0.007793239317834377, -0.004055851139128208, 0.025695396587252617, 0.037160057574510574, 0.06951587647199631, -0.024457940831780434, 0.053792912513017654, -0.044366415590047836, 0.05746888369321823, 0.07664944231510162, 0.04334733262658119, -0.037633202970027924, 0.022419780492782593, -0.02463991940021515, 0.022729143500328064, 0.02154628187417984, -0.07082612067461014, -0.02740599773824215, -0.00993603840470314, -0.018580028787255287, 0.026750873774290085, 0.05233708396553993, -0.030881790444254875, 0.018834799528121948, 0.07599432021379471, -0.019271546974778175, 0.023966599255800247, -0.048406343907117844, -0.06605827808380127, -0.05288301780819893, 0.031209353357553482, 0.01635078899562359, 0.006842400413006544, -0.05270104110240936, -0.00859849527478218, 0.044584788382053375, -0.021928437054157257, -0.00390344369225204, -0.036159172654151917, 0.0061372327618300915, 0.013357238844037056, 0.009171728044748306, 0.05543072149157524, 0.007497523911297321, 0.07563035935163498, -0.014549199491739273, -0.05732329934835434, 0.04822436347603798, 0.014030559919774532, -0.009317311458289623, -0.017451759427785873, 0.043165355920791626, 0.041454754769802094, -0.021819250658154488, -0.027369601652026176, -0.03142772614955902, 0.08873283118009567, -0.019489921629428864, 0.0319918617606163, 0.004958920646458864, -0.005245537031441927, -0.035485852509737015, -0.04018090292811394, -0.003723739879205823, 0.0052273389883339405, -0.006482992321252823, 0.01950811967253685, -0.014021460898220539, 0.06711375713348389, -0.0007500936044380069, 0.005145448725670576, 0.01967190019786358, 0.005300130695104599, -0.049971360713243484, -0.01671474613249302, -0.003946663811802864, 0.020436212420463562, 0.018024994060397148, -0.006219123024493456, -0.09739501774311066, 0.04655015841126442, 0.004381137900054455, 0.0006380629492923617, 0.023821016773581505, -0.037997160106897354, 0.016933120787143707, -0.041491150856018066, 0.06427488476037979, -0.000533140788320452, -0.020581794902682304, -0.024912888184189796, 0.03284716233611107, -0.06463884562253952, 0.012274465523660183, -0.026059353724122047, 0.0019369361689314246, -0.007588513195514679, 0.0013648405438289046, -0.006701366975903511, 0.018707413226366043, 0.05539432540535927, -0.015759358182549477, -0.008739528246223927, -0.02986270934343338, 0.023966599255800247, -0.010636656545102596, 0.04214627295732498, 0.032610587775707245, 0.03708726540207863, -0.039780549705028534, 0.08989749103784561, -0.003730563912540674, -0.0045267208479344845, 0.018061388283967972, 0.07635827362537384, -0.02191023901104927, 0.058014821261167526, -0.0966671034693718, -0.02107313647866249, 0.08654908835887909, 0.01561377476900816, 0.018452642485499382, -0.009417399764060974, 0.0010554766049608588, -0.08698583394289017, 0.012693016789853573, -0.05364733189344406, 0.07686781883239746, 0.0042855991050601006, 0.08290950953960419, -0.04272860661149025, 0.02112773060798645, -0.02185564488172531, -0.03479433432221413, -0.049971360713243484, 0.018762007355690002, 0.0733010321855545, 0.014876761473715305, 0.023511651903390884, 0.005277383141219616, -0.016005029901862144, -0.04425722733139992, 0.018652819097042084, 0.0662766546010971, -0.021509885787963867, 0.03366606682538986, 0.013630206696689129, 0.0031118362676352262, 0.010309095494449139, -0.04429362341761589, -0.057869236916303635, 0.04247383773326874, -0.03879786655306816, 0.008643989451229572, 0.011501056142151356, -0.053574539721012115, -0.01705140806734562, 0.01898038201034069, 0.05120881646871567, 0.03876147046685219, 0.046732138842344284, -0.07049856334924698, 0.005309229716658592, -0.00405357638373971, -0.044148039072752, -0.02776995487511158, 0.03080900013446808, -0.037414826452732086, -0.04425722733139992, -0.001164663932286203, -0.028516067191958427, -0.04593143239617348, -0.022074019536376, -0.007693151012063026, -0.028479671105742455, 0.018343456089496613, -0.023566246032714844, -0.017424464225769043, -0.020254231989383698, 0.012774907052516937, 0.01498594880104065, 0.010199908167123795, 0.03117295727133751, -0.01666015200316906, 0.06067170947790146, 0.04655015841126442, 0.002470361301675439, -0.011464660055935383, 0.055612701922655106, -0.037633202970027924, 0.061945561319589615, 0.0000739288589102216, 0.03759680688381195, -0.017852112650871277, -0.06201835349202156, -0.02824309840798378, -0.050917647778987885, 0.020308826118707657, -0.04611340910196304, -0.029298575595021248, -0.003614552551880479, -0.01847084052860737, 0.057396091520786285, -0.0367233082652092, 0.02453073300421238, -0.029062002897262573, 0.03934380039572716, -0.03080900013446808, -0.05433885008096695, 0.03581341356039047, -0.10969677567481995, 0.011801321059465408, 0.06878796219825745, 0.00437431363388896, -0.06391093134880066, -0.07563035935163498, -0.015004146844148636, 0.00390799343585968, 0.024931086227297783, -0.02776995487511158, -0.010372787714004517, -0.03128214552998543, 0.027424193918704987, -0.02824309840798378, -0.0066968174651265144, -0.026969248428940773, -0.0345577597618103, -0.012420048005878925, -0.051172420382499695, 0.03817913681268692, -0.058961108326911926, -0.0654759481549263, -0.00472234794870019, 0.02039981633424759, 0.012665719725191593, 0.02023603580892086, 0.047314468771219254, 0.03235581889748573, 0.043274544179439545, -0.011146197095513344, -0.028643451631069183, -0.015240718610584736, -0.04105440154671669, 0.036322955042123795, -0.03279256820678711, 0.06660421937704086, 0.021455291658639908, 0.04651376232504845, -0.012056090869009495, -0.016560064628720284, -0.04633178561925888, -0.013803087174892426, 0.04775121808052063, 0.016933120787143707, -0.06929749995470047, -0.05262824892997742, 0.01563197374343872, 0.017961300909519196, 0.09149890393018723, 0.03970775753259659, -0.06751410663127899, 0.052009522914886475, -0.018489038571715355, -0.04065404832363129, -0.05466641113162041, 0.06631305068731308, 0.06991622596979141, -0.05459361895918846, 0.006678619422018528, -0.03432118892669678, -0.017215188592672348, -0.06558513641357422, -0.056668177247047424, 0.03106376901268959, -0.01375759206712246, 0.08058018237352371, 0.0367233082652092, 0.031718891113996506, -0.008935155346989632, 0.014649287797510624, -0.03337489813566208, 0.024494336917996407, 0.03206465393304825, 0.00967216957360506, 0.03393903374671936, -0.01582305133342743, 0.016141513362526894, 0.03817913681268692, 0.008061657659709454, 0.013530118390917778, -0.040763236582279205, 0.029789919033646584, 0.1020536720752716, 0.018043192103505135, -0.0288254301995039, -0.02573179267346859, 0.006264617666602135, 0.007229105103760958, 0.031081967055797577, -0.01223806943744421, -0.0028934618458151817, 0.028479671105742455, 0.03686889261007309, 0.0283522866666317, -0.012638422660529613, -0.00018809207540471107, 0.05335616320371628, 0.008116251789033413, -0.0008154921815730631, 0.016869427636265755, -0.03472154214978218, 0.005732330027967691, 0.024821899831295013, -0.0384703055024147, -0.001494500320404768, 0.013784889131784439, 0.00019648016314022243, 0.008507505990564823, -0.003744212444871664, 0.029062002897262573, -0.016623757779598236, -0.009772257879376411, 0.04240104556083679, 0.019744692370295525, -0.0015616050222888589, 0.041964296251535416, 0.04174591973423958, 0.046986907720565796, 0.034648749977350235, -0.03675970435142517, -0.017069604247808456, 0.03157331049442291, -0.002390745561569929, -0.04167313128709793, -0.020527200773358345, 0.006287365220487118, -0.06081729382276535, 0.05983460694551468, -0.033811647444963455, 0.0035713326651602983, -0.0445483922958374, -0.02453073300421238, -0.04047207161784172, 0.06409291177988052, 0.05339255928993225, 0.007329193409532309, 0.05470280721783638, -0.0013295820681378245, -0.026550697162747383 ]
43,101
linearmodels.asset_pricing.model
fit
Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator debiased : bool Flag indicating whether to debias the covariance estimator using a degree of freedom adjustment **cov_config : dict Additional covariance-specific options. See Notes. Returns ------- LinearFactorModelResults Results class with parameter estimates, covariance and test statistics Notes ----- Supported covariance estimators are: * "robust" - Heteroskedasticity-robust covariance estimator * "kernel" - Heteroskedasticity and Autocorrelation consistent (HAC) covariance estimator The kernel covariance estimator takes the optional arguments ``kernel``, one of "bartlett", "parzen" or "qs" (quadratic spectral) and ``bandwidth`` (a positive integer).
def fit( self, cov_type: str = "robust", debiased: bool = True, **cov_config: str | float, ) -> LinearFactorModelResults: """ Estimate model parameters Parameters ---------- cov_type : str Name of covariance estimator debiased : bool Flag indicating whether to debias the covariance estimator using a degree of freedom adjustment **cov_config : dict Additional covariance-specific options. See Notes. Returns ------- LinearFactorModelResults Results class with parameter estimates, covariance and test statistics Notes ----- Supported covariance estimators are: * "robust" - Heteroskedasticity-robust covariance estimator * "kernel" - Heteroskedasticity and Autocorrelation consistent (HAC) covariance estimator The kernel covariance estimator takes the optional arguments ``kernel``, one of "bartlett", "parzen" or "qs" (quadratic spectral) and ``bandwidth`` (a positive integer). """ p = self.portfolios.ndarray f = self.factors.ndarray nportfolio = p.shape[1] nobs, nfactor = f.shape fc = np.c_[np.ones((nobs, 1)), f] rp = f.mean(0)[:, None] fe = f - f.mean(0) b = np.linalg.pinv(fc) @ p eps = p - fc @ b alphas = b[:1].T nloading = (nfactor + 1) * nportfolio xpxi = np.eye(nloading + nfactor) xpxi[:nloading, :nloading] = np.kron( np.eye(nportfolio), np.linalg.pinv(fc.T @ fc / nobs) ) f_rep = np.tile(fc, (1, nportfolio)) eps_rep = np.tile(eps, (nfactor + 1, 1)) # 1 2 3 ... 25 1 2 3 ... eps_rep = eps_rep.ravel(order="F") eps_rep = np.reshape(eps_rep, (nobs, (nfactor + 1) * nportfolio), order="F") xe = f_rep * eps_rep xe = np.c_[xe, fe] if cov_type in ("robust", "heteroskedastic"): cov_est = HeteroskedasticCovariance( xe, inv_jacobian=xpxi, center=False, debiased=debiased, df=fc.shape[1] ) rp_cov_est = HeteroskedasticCovariance( fe, jacobian=np.eye(f.shape[1]), center=False, debiased=debiased, df=1 ) elif cov_type == "kernel": kernel = get_string(cov_config, "kernel") bandwidth = get_float(cov_config, "bandwidth") cov_est = KernelCovariance( xe, inv_jacobian=xpxi, center=False, debiased=debiased, df=fc.shape[1], bandwidth=bandwidth, kernel=kernel, ) bw = cov_est.bandwidth _cov_config = {k: v for k, v in cov_config.items()} _cov_config["bandwidth"] = bw rp_cov_est = KernelCovariance( fe, jacobian=np.eye(f.shape[1]), center=False, debiased=debiased, df=1, bandwidth=bw, kernel=kernel, ) else: raise ValueError(f"Unknown cov_type: {cov_type}") full_vcv = cov_est.cov rp_cov = rp_cov_est.cov vcv = full_vcv[:nloading, :nloading] # Rearrange VCV order = np.reshape( np.arange((nfactor + 1) * nportfolio), (nportfolio, nfactor + 1) ) order = order.T.ravel() vcv = vcv[order][:, order] # Return values alpha_vcv = vcv[:nportfolio, :nportfolio] stat = float(np.squeeze(alphas.T @ np.linalg.pinv(alpha_vcv) @ alphas)) jstat = WaldTestStatistic( stat, "All alphas are 0", nportfolio, name="J-statistic" ) params = b.T betas = b[1:].T residual_ss = (eps**2).sum() e = p - p.mean(0)[None, :] total_ss = (e**2).sum() r2 = 1 - residual_ss / total_ss param_names = [] for portfolio in self.portfolios.cols: param_names.append(f"alpha-{portfolio}") for factor in self.factors.cols: param_names.append(f"beta-{portfolio}-{factor}") for factor in self.factors.cols: param_names.append(f"lambda-{factor}") res = AttrDict( params=params, cov=full_vcv, betas=betas, rp=rp, rp_cov=rp_cov, alphas=alphas, alpha_vcv=alpha_vcv, jstat=jstat, rsquared=r2, total_ss=total_ss, residual_ss=residual_ss, param_names=param_names, portfolio_names=self.portfolios.cols, factor_names=self.factors.cols, name=self._name, cov_type=cov_type, model=self, nobs=nobs, rp_names=self.factors.cols, cov_est=cov_est, ) return LinearFactorModelResults(res)
(self, cov_type: str = 'robust', debiased: bool = True, **cov_config: str | float) -> linearmodels.asset_pricing.results.LinearFactorModelResults
[ 0.019882511347532272, -0.04389037564396858, -0.0009017569245770574, -0.011163976974785328, 0.00544376764446497, -0.0440179668366909, -0.045591555535793304, -0.06859997659921646, 0.03138672187924385, 0.03959490358829498, -0.022859571501612663, -0.011259667575359344, -0.028707368299365044, 0.046909965574741364, -0.01690545119345188, 0.11032135039567947, 0.016246244311332703, 0.008511203341186047, 0.011759388260543346, 0.02764413319528103, -0.041976552456617355, -0.027410220354795456, -0.05452273413538933, 0.00602323142811656, 0.03153557702898979, -0.010759946890175343, 0.05243879184126854, -0.046909965574741364, 0.035979900509119034, 0.017681611701846123, -0.06447461992502213, 0.037681080400943756, -0.046357084065675735, 0.013354242779314518, 0.012280374765396118, 0.02923898585140705, 0.037617284804582596, 0.010355917736887932, 0.036894284188747406, 0.043507613241672516, 0.0007043937803246081, -0.007304430473595858, -0.01027617510408163, -0.01612928882241249, -0.050567496567964554, -0.007873261347413063, -0.054267559200525284, 0.09696710854768753, 0.02415671944618225, -0.020116422325372696, -0.022157834842801094, -0.05660667642951012, 0.04444326087832451, -0.027133779600262642, 0.01094069704413414, -0.01819196529686451, 0.009313946589827538, 0.02556019090116024, 0.03878684341907501, 0.0005272985436022282, 0.011578639037907124, -0.030408546328544617, 0.02479466050863266, -0.0021743173711001873, -0.056479088962078094, -0.024326836690306664, -0.0015576404985040426, -0.0003287724684923887, 0.019170142710208893, 0.027325162664055824, 0.022285424172878265, 0.0004106748674530536, -0.010653623379766941, 0.01595916971564293, 0.0469524972140789, 0.001830094726756215, 0.011472314596176147, -0.07391615957021713, -0.06111479923129082, -0.03223730996251106, 0.06111479923129082, 0.009553174488246441, -0.07276786118745804, -0.05898832529783249, 0.012163418345153332, -0.0038595462683588266, 0.00400042487308383, -0.06051938608288765, 0.048483554273843765, 0.08569680899381638, -0.007671246770769358, -0.0034236195497214794, 0.03585231304168701, -0.01978681981563568, 0.006437893025577068, -0.0005223146290518343, 0.011110815219581127, -0.010334652848541737, 0.017819833010435104, -0.026028014719486237, 0.005714892875403166, 0.04029664024710655, 0.002049387199804187, 0.08046568930149078, -0.03145051747560501, -0.030323486775159836, -0.04971690848469734, 0.004104090388864279, 0.044868554919958115, -0.029685545712709427, -0.06315620988607407, 0.0539698526263237, 0.0029265566263347864, 0.01352436002343893, -0.04937667399644852, -0.024624543264508247, -0.05171579122543335, 0.02692113257944584, -0.06196538731455803, 0.03851040452718735, -0.017171259969472885, 0.069578155875206, -0.016586478799581528, 0.006491054780781269, -0.036894284188747406, -0.0032162885181605816, 0.008059327490627766, 0.03255628049373627, 0.047803085297346115, -0.012641874141991138, 0.01058982964605093, -0.0423380509018898, 0.009436218068003654, -0.030110839754343033, 0.047803085297346115, -0.005414528772234917, -0.008638791739940643, -0.029005074873566628, -0.006895084399729967, 0.0025796759873628616, 0.04622949659824371, 0.06387921422719955, -0.0742989256978035, -0.0016838997835293412, -0.002679354278370738, 0.027388956397771835, 0.07425639033317566, -0.08956699073314667, -0.05605379492044449, 0.023454982787370682, -0.017181891947984695, -0.02698492631316185, -0.07161957025527954, -0.01162116788327694, 0.004909491632133722, -0.06409186124801636, 0.02706998586654663, -0.033938489854335785, -0.006698385812342167, 0.019988834857940674, -0.057202089577913284, -0.0017051645554602146, 0.023944072425365448, 0.06183779984712601, 0.00005511382914846763, -0.014832139946520329, -0.03255628049373627, -0.04427314177155495, -0.026113072410225868, 0.011759388260543346, 0.002324499422684312, -0.010090108029544353, -0.039148345589637756, 0.00873448234051466, -0.026793543249368668, 0.01759655401110649, 0.025347543880343437, -0.05975385755300522, 0.01423672866076231, -0.023901542648673058, 0.011525477282702923, -0.04363520070910454, -0.02762286737561226, -0.010552615858614445, -0.014747081324458122, 0.007575555704534054, -0.013492463156580925, 0.018638525158166885, 0.011217138729989529, -0.044911082834005356, -0.04882379248738289, -0.006719650700688362, 0.021456100046634674, 0.0014207488857209682, -0.019978202879428864, -0.03619254752993584, 0.037553489208221436, 0.011376623995602131, 0.02254060097038746, -0.03200339898467064, 0.001988250995054841, 0.007346959784626961, 0.012801360338926315, -0.043358758091926575, -0.07706333696842194, -0.0009170409175567329, -0.034533899277448654, -0.06383667886257172, 0.041083432734012604, 0.03198213502764702, -0.024475689977407455, 0.04072193428874016, 0.007176842074841261, -0.025283748283982277, -0.005215171724557877, -0.04937667399644852, 0.029366575181484222, -0.02547513134777546, 0.01273756567388773, 0.03795751929283142, 0.025709044188261032, -0.0654953271150589, 0.02770792692899704, 0.039148345589637756, 0.016512053087353706, -0.01819196529686451, -0.0028920015320181847, 0.017713509500026703, 0.01239733025431633, -0.06026420742273331, -0.017872994765639305, 0.0037425903137773275, 0.016405729576945305, -0.03210972249507904, -0.03561840206384659, 0.013928390108048916, -0.03863799199461937, 0.059328559786081314, -0.09101299196481705, 0.002783019794151187, 0.019574172794818878, -0.02409292571246624, 0.04135987535119057, 0.04805826023221016, -0.024582013487815857, -0.015916641801595688, 0.03593737259507179, 0.052864085882902145, -0.015576405450701714, 0.0015762471593916416, 0.011706226505339146, -0.02042476087808609, -0.028834957629442215, 0.04610190913081169, -0.0204885546118021, -0.06660109758377075, 0.036873020231723785, 0.013832698576152325, 0.0569043830037117, -0.016246244311332703, -0.0038382813800126314, -0.03523563593626022, 0.03151430934667587, 0.07089656591415405, -0.05043990910053253, -0.014747081324458122, -0.015789052471518517, -0.0409771092236042, 0.05269397050142288, 0.02200898341834545, -0.017330745235085487, 0.0711517408490181, 0.0024627200327813625, -0.010685520246624947, -0.001756997313350439, 0.03412987291812897, -0.04355014115571976, -0.007128996308892965, 0.044145554304122925, 0.06579303741455078, 0.015172376297414303, -0.03882937505841255, -0.03938225656747818, 0.007373540662229061, 0.010100740939378738, -0.009898725897073746, -0.03600116819143295, 0.012875786051154137, 0.02268945425748825, 0.029728075489401817, 0.006182716693729162, -0.020637407898902893, 0.025857895612716675, -0.03162063658237457, 0.053587086498737335, -0.000495401443913579, 0.02928151562809944, -0.023646365851163864, 0.05686185508966446, 0.011972036212682724, -0.012280374765396118, 0.045591555535793304, 0.06328380107879639, -0.02050982043147087, 0.000691767840180546, 0.001952366903424263, 0.03057866357266903, -0.07463915646076202, 0.025092367082834244, 0.0337471067905426, 0.012376065365970135, 0.0167672298848629, -0.011918874457478523, 0.020988276228308678, 0.00011512851051520556, -0.04584673047065735, -0.016894817352294922, -0.06898274272680283, 0.058690618723630905, 0.01683102361857891, -0.024326836690306664, -0.03000451624393463, 0.026474572718143463, -0.043443817645311356, 0.0018181332852691412, 0.02543260157108307, 0.006299672648310661, 0.05677679553627968, -0.04057307913899422, -0.008893967606127262, -0.004712793044745922, 0.004242311231791973, 0.019361525774002075, 0.0702160969376564, -0.038276489824056625, -0.010132637806236744, 0.05252385139465332, -0.006778128445148468, 0.0745115727186203, 0.007559606805443764, 0.052864085882902145, -0.016650274395942688, -0.06507003307342529, -0.018819274380803108, -0.036107491701841354, -0.0217431727796793, 0.06723903864622116, 0.02194518782198429, 0.042550697922706604, 0.060179151594638824, -0.01736264117062092, -0.00871321838349104, 0.059498678892850876, 0.08046568930149078, -0.017245685681700706, 0.04865367338061333, -0.009834932163357735, -0.07455410063266754, 0.06315620988607407, -0.047122612595558167, -0.006437893025577068, 0.06056191399693489, -0.034661490470170975, 0.04252943396568298, 0.024369366466999054, -0.02692113257944584, -0.02921772189438343, -0.03491666540503502, 0.0869726911187172, -0.028707368299365044, 0.022221630439162254, -0.018500303849577904, -0.026836073026061058, -0.033236753195524216, 0.03504425287246704, -0.06196538731455803, -0.044911082834005356, 0.02268945425748825, 0.03434251993894577, 0.015544508583843708, -0.0017968686297535896, -0.05409744009375572, -0.05409744009375572, 0.004388506058603525, -0.023837748914957047, -0.003835623385384679, -0.004319395869970322, -0.03629887104034424, 0.06524015218019485, -0.002526514232158661, -0.004420402925461531, 0.008208180777728558, 0.06655856221914291, 0.015512611716985703, 0.03340687230229378, -0.0020480582024902105, 0.025134896859526634, -0.016171816736459732, -0.0211690254509449, -0.019233936443924904, -0.036256343126297, -0.025283748283982277, 0.012514285743236542, 0.044188082218170166, -0.02847345732152462, -0.06438956409692764, 0.02347624860703945, 0.008718534372746944, -0.019563540816307068, 0.07013104110956192, 0.015151111409068108, 0.03291778266429901, -0.041912756860256195, -0.022221630439162254, -0.04678237810730934, 0.06911033391952515, -0.03629887104034424, -0.0350017249584198, 0.10045452415943146, 0.03736210986971855, 0.06949310004711151, -0.028069427236914635, 0.032535016536712646, 0.01590600796043873, -0.004659631289541721, 0.060221679508686066, -0.02117965929210186, 0.06205044686794281, -0.02468833699822426, -0.03136545792222023, 0.01749023050069809, 0.00834108516573906, -0.020148320123553276, -0.02692113257944584, -0.041083432734012604, 0.008325137197971344, -0.06081709265708923, -0.0035910792648792267, -0.013928390108048916, 0.046442143619060516, 0.023646365851163864, 0.02339118905365467, -0.0035538659431040287, -0.0175008624792099, -0.033236753195524216, 0.049972087144851685, 0.011259667575359344, -0.02849472127854824, -0.09407510608434677, -0.012673771940171719, 0.04089205339550972, 0.009191674180328846, 0.00008755082671996206, -0.003750564530491829, -0.019499745219945908, -0.010451608337461948, -0.010632358491420746, -0.01347119826823473, 0.006405996158719063, 0.0167672298848629, 0.030280956998467445, 0.0006738257361575961, -0.004462932702153921, -0.03157810494303703, -0.024454424157738686, 0.014810875989496708, 0.03819143399596214, -0.012482388876378536, 0.016607744619250298, -0.005911591462790966, -0.023944072425365448, 0.006310305092483759, -0.007160893641412258, -0.03870178386569023, -0.016320670023560524, 0.05852050334215164, -0.02260439470410347, 0.027112513780593872, 0.028962545096874237, 0.0181281715631485, 0.011833814904093742, -0.04465590789914131, 0.0013596129138022661, 0.01903192140161991, 0.0539698526263237, -0.04397543519735336, 0.004641024395823479, 0.05681932345032692, 0.018032480031251907, 0.009680762887001038, -0.0395098440349102, -0.0017902234103530645, 0.026793543249368668, 0.07417133450508118, -0.015459449961781502, 0.004391164053231478, 0.04435820132493973, 0.0016666222363710403, 0.010860954411327839, -0.02768666297197342, 0.042614493519067764, 0.004271550104022026, -0.03965869918465614, -0.02411418966948986, -0.026772279292345047, -0.04499614238739014, -0.02326360158622265, -0.022987158969044685, -0.027835514396429062, -0.04240184649825096, -0.02704872004687786, -0.014874669723212719, 0.019925041124224663, -0.06923791766166687, 0.002158368704840541, 0.02319980598986149, -0.004143961705267429, 0.028771162033081055, -0.023221071809530258, -0.020584246143698692, 0.020796893164515495, -0.006437893025577068, 0.044060494750738144, 0.012291006743907928, 0.021626217290759087, 0.09271416813135147, -0.008309188298881054, -0.003003641264513135, 0.04818585142493248, 0.026410778984427452, -0.03619254752993584, -0.07276786118745804, 0.00123667623847723, 0.06443209201097488, 0.027155043557286263, -0.045506495982408524, -0.020148320123553276, -0.05609632283449173, -0.02772919088602066, -0.02692113257944584, -0.025219954550266266, 0.03449137136340141, 0.007586188148707151, -0.025326278060674667, 0.03049360401928425, -0.01893623173236847, 0.033917225897312164, -0.008729166351258755, -0.00007409424870274961, -0.05265143886208534, 0.040424227714538574, 0.007862629368901253, 0.026028014719486237, 0.007198106963187456, 0.041083432734012604, 0.0378299318253994, -0.03372584283351898, -0.03200339898467064, -0.0053719994612038136, -0.02836713381111622, 0.003782461630180478, 0.029579222202301025, 0.02249807119369507, -0.046995025128126144, -0.017777303233742714, 0.01095132902264595, 0.04614443704485893, 0.013917757198214531, -0.007315062917768955, -0.0582653246819973, 0.030280956998467445, -0.008606893941760063, -0.06681374460458755, 0.058648090809583664, -0.013449933379888535, -0.005725525319576263, 0.02477339655160904, -0.018659789115190506, -0.03876557946205139, 0.03642646223306656, -0.02632571943104267, -0.0774461030960083, 0.00912787951529026, -0.0727253332734108, -0.0337471067905426, 0.014832139946520329, -0.021594321355223656, 0.004529384896159172, 0.013226654380559921, 0.03593737259507179, -0.039786286652088165, 0.04525131732225418, -0.07485180348157883, -0.06936550885438919, -0.017001140862703323, 0.01492783147841692, -0.03721325471997261, 0.012269741855561733, 0.03504425287246704, -0.011344727128744125, -0.05698944255709648, -0.05596873536705971, 0.009680762887001038, 0.0211158636957407, -0.03965869918465614, -0.015682728961110115, -0.03957363963127136, 0.04729273170232773, 0.07161957025527954, 0.013003374449908733, 0.02619813196361065, -0.0038090425077825785, 0.005193907301872969, 0.002876053098589182, 0.008293239399790764, -0.009664813987910748, -0.011227770708501339, -0.01830892078578472, 0.05345949903130531, 0.034597694873809814, -0.011684962548315525, 0.006182716693729162, 0.019361525774002075, 0.028898751363158226, -0.05180085077881813, -0.018723582848906517, 0.02760160341858864, -0.1264825463294983, -0.008856754750013351, -0.06583556532859802, 0.014066610485315323, 0.09433028846979141, 0.016522685065865517, 0.01745833270251751, 0.0028627626597881317, 0.0011801918735727668, 0.05490550026297569, 0.017330745235085487, 0.006778128445148468, -0.010669572278857231, 0.01428989041596651, 0.035363223403692245, 0.023773953318595886, 0.01740517094731331, -0.013822066597640514, -0.011578639037907124, 0.005938172340393066, -0.02251933515071869, 0.09722229093313217, -0.012982109561562538, -0.020733099430799484, -0.02917519211769104, -0.06783445179462433, -0.0024746814742684364, -0.011227770708501339, 0.018755480647087097, 0.04801573231816292, 0.07076898217201233, 0.04759043827652931, -0.010387814603745937, 0.006948246620595455, -0.031663164496421814, 0.028133220970630646, -0.04980196803808212, 0.03568219766020775, 0.009441534988582134, 0.032322369515895844, -0.006172084249556065, -0.06196538731455803, 0.0044150869362056255, 0.0046729217283427715, 0.018638525158166885, -0.02764413319528103, -0.011142712086439133, 0.010010365396738052, -0.024220513179898262, -0.044826023280620575, 0.04750537872314453, -0.005387947894632816, 0.006028547417372465, 0.10292123258113861, 0.051545675843954086, -0.00918635819107294, 0.05107785016298294, 0.07991281151771545, -0.0350017249584198, -0.0204885546118021, -0.04835596680641174, -0.03442757576704025, -0.016607744619250298, -0.059541210532188416, -0.021434834226965904, 0.019574172794818878, -0.018351450562477112, 0.035384491086006165, -0.035363223403692245, -0.04280587658286095, -0.002501262351870537, -0.03262007609009743, 0.00031913688872009516, -0.004704818595200777, -0.010781211778521538, 0.003721325658261776, 0.08620716631412506, -0.021275348961353302, 0.0420190803706646, 0.02698492631316185, -0.015789052471518517, 0.04214667156338692, -0.06068950518965721, 0.00658674631267786, 0.016480155289173126, 0.027984367683529854, -0.041211023926734924, 0.009664813987910748, 0.06757926940917969, -0.020010098814964294, -0.03155684098601341, 0.004704818595200777, 0.042657021433115005, 0.06341138482093811, 0.006480422802269459, 0.00637409882619977, 0.02702745608985424, -0.026623426005244255, -0.07931739836931229, -0.0059807016514241695, 0.02334865927696228, 0.049249086529016495, 0.0036920865532010794, 0.07387363165616989, 0.021530525758862495, -0.024263042956590652, -0.01825575903058052, -0.03412987291812897, -0.036958079785108566, 0.02328486554324627, -0.0019988834392279387, -0.02764413319528103, 0.026091808453202248, -0.058052677661180496, 0.04452831670641899, -0.05188591033220291, -0.0334281362593174, 0.0042237043380737305, 0.05379973351955414, 0.03419366478919983, -0.009239519946277142, 0.05133302882313728, -0.056479088962078094, 0.020860686898231506, -0.036107491701841354, -0.014832139946520329, 0.029026338830590248, 0.013364874757826328, -0.0160867590457201, 0.030748780816793442, -0.024369366466999054, -0.0010067514376714826, -0.0363626666367054, -0.003577788593247533, -0.023752689361572266, 0.04110470041632652, 0.04503867030143738, 0.024560749530792236, 0.023050954565405846, 0.0053188372403383255, -0.008947130292654037 ]
43,123
linearmodels
test
null
def test( extra_args: str | list[str] | None = None, exit: bool = True, append: bool = True, location: str = "", ) -> int: import sys try: import pytest except ImportError: # pragma: no cover raise ImportError("Need pytest to run tests") cmd = ["--tb=auto"] if extra_args: if not isinstance(extra_args, list): pytest_args = [extra_args] else: pytest_args = extra_args if append: cmd += pytest_args[:] else: cmd = pytest_args print(location) pkg = os.path.dirname(__file__) print(pkg) if location: pkg = os.path.abspath(os.path.join(pkg, location)) print(pkg) if not os.path.exists(pkg): raise RuntimeError(f"{pkg} was not found. Unable to run tests") cmd = [pkg] + cmd print("running: pytest {}".format(" ".join(cmd))) status = pytest.main(cmd) if exit: # pragma: no cover sys.exit(status) return status
(extra_args: Union[str, list[str], NoneType] = None, exit: bool = True, append: bool = True, location: str = '') -> int
[ -0.019375484436750412, -0.017797555774450302, -0.008747407235205173, 0.015861842781305313, 0.04278752952814102, 0.0337236188352108, -0.030090713873505592, 0.013063773512840271, -0.028200870379805565, -0.052145007997751236, 0.026384418830275536, 0.011467497795820236, 0.00954095833003521, -0.0198892280459404, 0.01941218040883541, 0.00887584313750267, 0.06293363124132156, -0.01714620366692543, 0.04968637600541115, 0.027833910658955574, 0.010073049925267696, 0.0755937471985817, 0.01550405751913786, 0.01449491735547781, 0.00810981448739767, 0.015293055213987827, 0.05408989265561104, -0.039851848036050797, 0.021246980875730515, -0.014118783175945282, -0.0036718929186463356, -0.06748393177986145, -0.0575026199221611, 0.07196084409952164, 0.010412488132715225, -0.0183204747736454, -0.0657959133386612, 0.03816383332014084, 0.0367143414914608, 0.06366755068302155, 0.006949303671717644, -0.02777886763215065, 0.05108082294464111, 0.0007906839600764215, 0.01103631965816021, -0.017659947276115417, -0.02801739051938057, -0.07115352898836136, -0.04476911202073097, -0.041906822472810745, 0.060878653079271317, -0.046603910624980927, 0.08564844727516174, 0.042273785918951035, -0.008192380890250206, 0.05254866182804108, 0.06506199389696121, -0.013999521732330322, 0.014256393536925316, 0.018366344273090363, -0.0077978987246751785, 0.04414527863264084, -0.04076924920082092, 0.017614075914025307, -0.0148985730484128, -0.04418197646737099, -0.041466470807790756, -0.02502666786313057, -0.0026512856129556894, -0.004752131178975105, -0.02317352034151554, 0.030054017901420593, -0.008586862124502659, -0.06561243534088135, 0.037301477044820786, 0.012770205736160278, -0.04931941628456116, -0.030512718483805656, 0.009476739913225174, 0.01820121333003044, -0.004908089060336351, 0.03845740109682083, -0.021412111818790436, 0.06275014579296112, 0.02029288373887539, 0.05130099877715111, 0.02640276774764061, -0.009632698260247707, 0.031044811010360718, 0.04047568142414093, 0.02297169156372547, -0.013926129788160324, 0.02932009845972061, 0.00638968963176012, 0.048658885061740875, -0.03930141031742096, 0.048658885061740875, -0.007375894580036402, -0.06704358011484146, -0.006738301832228899, 0.008985931053757668, 0.002559545449912548, 0.048695582896471024, 0.010082224383950233, 0.005628247745335102, 0.017247116193175316, -0.009467566385865211, -0.016632458195090294, 0.0029333860147744417, 0.026622943580150604, -0.003605381352826953, -0.053062405437231064, -0.058236539363861084, -0.036567557603120804, -0.014082087203860283, -0.025136755779385567, 0.022714819759130478, -0.020347928628325462, -0.0019139254000037909, -0.002782014897093177, 0.05265875160694122, 0.04176003858447075, 0.04315448924899101, -0.018953479826450348, 0.03190716728568077, -0.010467532090842724, 0.01820121333003044, 0.09841865301132202, -0.02337534725666046, -0.028237566351890564, 0.0713370069861412, -0.03533824160695076, -0.05706226825714111, 0.013091295957565308, -0.012384898029267788, 0.04774148762226105, 0.04931941628456116, 0.06197953224182129, 0.013926129788160324, -0.03915462642908096, 0.02341204322874546, 0.006164927035570145, -0.015017835423350334, 0.02744860202074051, -0.02632937580347061, 0.02851278707385063, -0.08506131172180176, -0.01771499030292034, 0.034384146332740784, 0.022916648536920547, 0.03726477921009064, -0.041062816977500916, -0.07808907330036163, -0.006256666965782642, -0.001691455952823162, -0.007972204126417637, 0.006816280540078878, 0.001737325917929411, 0.024806492030620575, 0.017494814470410347, -0.003256769385188818, -0.019724097102880478, 0.00248615350574255, 0.019467223435640335, -0.013687605038285255, 0.008949235081672668, -0.07720836997032166, 0.050567079335451126, -0.039558280259370804, -0.01742142252624035, 0.05119090899825096, 0.013357341289520264, 0.05797966942191124, -0.039484888315200806, 0.04513607174158096, -0.04124629497528076, 0.013072947971522808, -0.042273785918951035, 0.008380447514355183, -0.04535624757409096, -0.045869991183280945, -0.01961400918662548, 0.02462301217019558, -0.04010872170329094, 0.0337236188352108, -0.02398083172738552, -0.027687126770615578, 0.03207229822874069, -0.0023382229264825583, 0.01581597328186035, -0.015861842781305313, 0.039925239980220795, 0.008426317013800144, 0.0615391805768013, -0.002024013316258788, 0.02398083172738552, -0.003261356381699443, 0.03405388072133064, 0.0033209873363375664, 0.0020113990176469088, -0.05519077181816101, 0.08124493062496185, 0.03113655000925064, -0.05786957964301109, 0.027393558993935585, 0.01649484969675541, -0.036255642771720886, 0.0078116594813764095, -0.08234580606222153, -0.023723959922790527, 0.045099373906850815, -0.02401752769947052, -0.032365866005420685, 0.03827391937375069, 0.011210625991225243, -0.008995105512440205, 0.03036593459546566, -0.015348099172115326, -0.005816314835101366, 0.01840304024517536, 0.025503715500235558, -0.022714819759130478, 0.049062542617321014, 0.05111751705408096, 0.0912996307015419, -0.04524615779519081, 0.04612686485052109, 0.01952226832509041, -0.024531271308660507, -0.0017017766367644072, -0.007169479504227638, 0.00780248548835516, 0.06957560032606125, -0.04491589590907097, -0.06275014579296112, 0.03278787061572075, -0.015027008950710297, 0.010944579727947712, -0.04220039024949074, 0.004192517139017582, -0.04814514145255089, 0.04333796724677086, -0.0038530791644006968, -0.03842070326209068, -0.02143046073615551, -0.05119090899825096, -0.00955930631607771, -0.03308143839240074, 0.022219423204660416, 0.031998906284570694, 0.0049814810045063496, 0.03473275899887085, 0.03117324598133564, 0.019173655658960342, -0.03680608049035072, 0.04814514145255089, 0.010641838423907757, -0.040365591645240784, -0.005174134857952595, 0.006174101028591394, 0.03302639350295067, 0.015338924713432789, 0.011660152114927769, 0.008591449819505215, -0.10641837865114212, -0.04128299281001091, 0.010485880076885223, -0.0048392838798463345, -0.009132714942097664, -0.019705748185515404, -0.058199845254421234, -0.01031157374382019, 0.01843973621726036, 0.011045494116842747, -0.03676938638091087, 0.00599520793184638, 0.02321021631360054, 0.02365056797862053, -0.05269544571638107, 0.008123575709760189, -0.025852326303720474, 0.049062542617321014, -0.005646595731377602, -0.0032177797984331846, -0.05875028669834137, -0.042677439749240875, -0.03842070326209068, 0.051814742386341095, -0.04418197646737099, 0.00244716415181756, -0.01941218040883541, -0.007233697455376387, 0.04715435206890106, 0.008976757526397705, 0.012017937377095222, 0.02398083172738552, -0.09041892737150192, -0.04286092147231102, 0.03541163355112076, -0.021045152097940445, 0.025448670610785484, -0.0073850685730576515, -0.05049368739128113, 0.037906959652900696, -0.007485982496291399, 0.026072503998875618, -0.017320508137345314, -0.051044125109910965, -0.039081234484910965, -0.023320304229855537, -0.007866703905165195, 0.036292336881160736, 0.03563180938363075, 0.01019231230020523, 0.022384556010365486, -0.00784376822412014, -0.02851278707385063, -0.03926471248269081, -0.03561346232891083, -0.0012935337144881487, -0.02798069454729557, -0.006949303671717644, 0.06807106733322144, 0.028843050822615623, -0.009889570064842701, -0.00012693087046500295, -0.024311095476150513, 0.02664129063487053, -0.01283442322164774, -0.021246980875730515, 0.007669462356716394, -0.024237703531980515, 0.029943929985165596, -0.02223777212202549, -0.013614213094115257, 0.02049471251666546, -0.023100128397345543, -0.010852839797735214, 0.02227446809411049, -0.01103631965816021, 0.03702625632286072, 0.06150248274207115, -0.005412659142166376, 0.017210420221090317, 0.0336502268910408, -0.002823297865688801, 0.0031053985003381968, 0.004747543949633837, 0.05089734122157097, -0.024678055197000504, 0.038750968873500824, 0.031797077506780624, -0.07662123441696167, -0.06851141899824142, -0.00335080293007195, 0.01661411114037037, -0.02251299098134041, -0.030017321929335594, 0.04249396175146103, -0.001456372207030654, -0.028035739436745644, -0.013210557401180267, 0.02405422367155552, -0.026531202718615532, -0.02794399857521057, -0.08542827516794205, 0.09328121691942215, -0.007499743718653917, -0.061319004744291306, 0.030659502372145653, 0.025577107444405556, -0.018210386857390404, 0.029485231265425682, -0.0004119698714930564, -0.012540855444967747, -0.017054462805390358, 0.010008832439780235, 0.022898299619555473, -0.05133769288659096, -0.005128264892846346, -0.03363187611103058, 0.0049723070114851, -0.05922733247280121, -0.04421867057681084, 0.0010991597082465887, -0.03539328649640083, -0.010641838423907757, 0.00705480482429266, -0.03550337255001068, -0.01593523472547531, -0.01283442322164774, -0.012219766154885292, 0.03405388072133064, -0.02304508350789547, 0.008586862124502659, -0.013632561080157757, -0.03322822228074074, -0.029338447377085686, -0.024274399504065514, 0.04876897484064102, 0.038310617208480835, 0.011082190088927746, 0.026989903301000595, -0.007288741413503885, 0.03152185678482056, -0.008898777887225151, -0.025338582694530487, -0.0657225251197815, -0.027393558993935585, 0.02216438017785549, -0.07412590831518173, -0.002283178735524416, -0.04377831891179085, 0.032732825726270676, -0.09709759801626205, 0.059374116361141205, -0.019724097102880478, 0.0417967364192009, 0.018008558079600334, 0.012421594001352787, 0.01061431597918272, -0.04080594331026077, 0.0071465447545051575, 0.10260199755430222, 0.07474973797798157, -0.011733544059097767, -0.01941218040883541, -0.007522678468376398, -0.01690767891705036, 0.003651251317933202, -0.027668779715895653, -0.09460227191448212, -0.00778413750231266, 0.04935611039400101, -0.040328897535800934, 0.02159559167921543, -0.02207263931632042, -0.03157690167427063, 0.04341135919094086, 0.021522199735045433, -0.03594372421503067, -0.030109062790870667, 0.004089309833943844, 0.003855372779071331, -0.03897114470601082, 0.018650738522410393, -0.014219697564840317, -0.016357239335775375, -0.015953583642840385, 0.022898299619555473, 0.019063567742705345, -0.007907986640930176, 0.015137096866965294, -0.01884339191019535, 0.026824770495295525, -0.10913388431072235, -0.06465833634138107, 0.049723070114851, -0.024733100086450577, -0.010109745897352695, 0.014605005271732807, 0.01820121333003044, 0.05196152627468109, -0.039851848036050797, 0.042273785918951035, -0.04935611039400101, 0.01277937926352024, -0.017779208719730377, -0.01212802529335022, -0.005733748897910118, 0.005807140842080116, 0.0015618732431903481, -0.005206244066357613, 0.0347694531083107, 0.04212699830532074, 0.02361387200653553, -0.06286023557186127, -0.031558554619550705, -0.007944682613015175, -0.005632834974676371, 0.05706226825714111, 0.0034471298567950726, 0.06652983278036118, 0.06741053611040115, -0.03440249338746071, -0.010825318284332752, 0.007352959830313921, -0.024109266698360443, -0.03352179005742073, -0.007907986640930176, 0.0657959133386612, -0.04396180063486099, -0.005752096883952618, -0.028439395129680634, 0.0034150208812206984, -0.062163013964891434, 0.061392396688461304, 0.034714408218860626, -0.009449218399822712, -0.015403143130242825, 0.05607147887349129, 0.014485742896795273, 0.09959292411804199, 0.006486016791313887, 0.01721959561109543, 0.016302194446325302, 0.061685964465141296, -0.026072503998875618, -0.06480512022972107, 0.010990450158715248, -0.015577449463307858, 0.061722658574581146, 0.040695857256650925, -0.01751316338777542, 0.06106213107705116, 0.029283402487635612, 0.0476313978433609, -0.030586110427975655, 0.07706158608198166, 0.05317249521613121, -0.013953651301562786, 0.003392085898667574, 0.01673337258398533, 0.012302331626415253, 0.04484250396490097, -0.01481600757688284, 0.024879883974790573, 0.09885900467634201, 0.03264108672738075, 0.10172129422426224, 0.014100435189902782, -0.008041009306907654, 0.012173895724117756, -0.02724677510559559, 0.038310617208480835, -0.0020584159065037966, -0.007807072717696428, 0.026622943580150604, 0.1073724776506424, -0.05243857577443123, 0.06667661666870117, 0.02546701952815056, 0.015027008950710297, -0.048989150673151016, -0.00019193724438082427, 0.028292611241340637, -0.000012202134712424595, 0.019999315962195396, 0.013926129788160324, -0.002908157417550683, -0.00920152012258768, -0.017880123108625412, -0.007600657641887665, 0.1031157374382019, -0.023540480062365532, -0.058933764696121216, 0.0248248390853405, 0.020347928628325462, -0.0033691509161144495, -0.012586725875735283, 0.013944477774202824, 0.0064263856038451195, -0.004463150165975094, 0.0025870674289762974, -0.0009489354561083019, -0.021980900317430496, -0.003502173814922571, -0.007545613683760166, 0.014531613327562809, -0.05948420614004135, -0.01965070515871048, -0.019595660269260406, -0.032696131616830826, -0.025375278666615486, -0.10135433077812195, -0.01024735625833273, -0.016962721943855286, 0.0536862388253212, 0.050603773444890976, 0.006687844637781382, -0.057429227977991104, -0.013696779496967793, 0.02139376476407051, 0.01662328466773033, 0.0054906378500163555, -0.006444733589887619, 0.053355973213911057, 0.009343717247247696, -0.02280656062066555, -0.02895313873887062, -0.012072981335222721, -0.0017522337147966027, 0.041062816977500916, -0.027852259576320648, 0.021980900317430496, -0.047447919845581055, -0.048255231231451035, 0.025650499388575554, 0.02341204322874546, -0.0318521223962307, 0.0376867838203907, 0.02110019512474537, 0.03805374354124069, -0.02170567959547043, 0.004130592569708824, -0.01568753644824028, 0.0017247116193175316, -0.0011559238191694021, -0.06403450667858124, -0.00008041582623263821, -0.0028026564978063107, -0.011513368226587772, 0.0034677714575082064, -0.03882436081767082, -0.035723548382520676, -0.04337466508150101, -0.033741965889930725, 0.013219731859862804, 0.05089734122157097, 0.021375415846705437, -0.030861329287290573, 0.06319049745798111, 0.01273350976407528, 0.01629302091896534, 0.00784376822412014, 0.04766809567809105, -0.014338959008455276, -0.011678500100970268, 0.002488447120413184, -0.049466200172901154, -0.04282422363758087, -0.011100538074970245, 0.030017321929335594, -0.07904317229986191, 0.06796097755432129, -0.14421525597572327, 0.016760895028710365, -0.027687126770615578, 0.03667764365673065, -0.009724438190460205, 0.003355389926582575, 0.03399883583188057, 0.013559169135987759, 0.009132714942097664, -0.0019391538808122277, -0.027466950938105583, 0.016357239335775375, -0.00966021977365017, 0.07764872163534164, 0.004334714263677597, 0.0397050641477108, 0.05849341303110123, 0.024678055197000504, 0.02284325659275055, -0.019136959686875343, 0.015779277309775352, 0.015430664643645287, 0.018182864412665367, 0.015219663269817829, 0.013302297331392765, -0.006949303671717644, 0.01843973621726036, -0.009357478469610214, 0.04058576747775078, -0.02713668718934059, -0.06080526113510132, 0.04810844734311104, -0.04840201511979103, 0.05988785997033119, -0.03376031294465065, 0.007857529446482658, 0.01564166694879532, -0.025448670610785484, 0.026677986606955528, 0.0037475782446563244, -0.005380549933761358, -0.03493458405137062, 0.0007809366215951741, -0.020806627348065376, -0.050236813724040985, -0.01200876384973526, 0.01952226832509041, -0.02882470190525055, -0.04403519257903099, 0.015192140825092793, 0.04766809567809105, -0.02438448742032051, 0.015953583642840385, 0.012072981335222721, -0.022366207093000412, -0.01840304024517536, -0.011201451532542706, 0.03605381399393082, -0.06898846477270126, -0.05045698955655098, 0.03915462642908096, -0.01904522068798542, -0.029742103070020676, -0.027301818132400513, -0.08763003349304199, 0.012082155793905258, 0.033301614224910736, -0.024127615615725517, 0.020568104460835457, 0.013293123804032803, 0.00212722085416317, -0.027485297992825508, -0.025118406862020493, 0.019265396520495415, -0.0732818990945816, -0.021980900317430496, -0.013843563385307789, 0.0013646322768181562, -0.06777749955654144, -0.03667764365673065, -0.023797351866960526, -0.024090919643640518, -0.005719988141208887, 0.0052658747881650925, 0.01352247316390276, -0.013247253373265266, 0.054677028208971024, 0.016687503084540367, -0.04256735369563103, -0.025522062554955482, -0.026788074523210526, -0.04377831891179085, -0.06836463510990143, 0.0001065760588971898, 0.017696643248200417, -0.03537493571639061, -0.05530086159706116, 0.006164927035570145, 0.011495020240545273, 0.004784239921718836, 0.014485742896795273, -0.036494165658950806, -0.010063876397907734, 0.06829124689102173, -0.040622465312480927, 0.002065296284854412, 0.03541163355112076, -0.010559272021055222, -0.09166659414768219, 0.027723822742700577, 0.008701537735760212, 0.04399849474430084, 0.04010872170329094, 0.0009655633475631475, -0.043925102800130844, 0.013650909066200256, 0.0298338420689106, -0.03642077371478081, 0.019375484436750412, 0.034952934831380844, 0.06311710923910141, 0.03801704943180084, -0.0031764968298375607, -0.005600725766271353, -0.03209064528346062, 0.003396672895178199, -0.004142060410231352, 0.01617375947535038, -0.007481395732611418, 0.011733544059097767, 0.016843460500240326, -0.01952226832509041, 0.054677028208971024 ]
43,125
ltxpdflinks._extractor
ExtractedGraphicLinks
null
class ExtractedGraphicLinks: def __init__(self, graphic_fname, size, links, *, unitlength='1bp', **kwargs): self.graphic_fname = graphic_fname self.unitlength = unitlength # LaTeX length (w,h) = size self.size = (float(w),float(h)) # (width, height) self.links = links self.dic = dict(kwargs) def __repr__(self): return self.__class__.__name__ + \ '({!r}, {!r}, {!r}, unitlength={!r}, **{!r})'.format( self.graphic_fname, self.size, self.links, self.unitlength, self.dic )
(graphic_fname, size, links, *, unitlength='1bp', **kwargs)
[ 0.041243139654397964, -0.03841728717088699, -0.003972737584263086, -0.005253760609775782, -0.024878233671188354, 0.023232800886034966, -0.041815463453531265, -0.005200105253607035, 0.018976137042045593, 0.060809485614299774, 0.0045785969123244286, 0.03162093460559845, 0.03670031577348709, 0.04135045036673546, -0.04338935762643814, 0.004209715407341719, 0.026774059981107712, -0.001380509464070201, -0.024967659264802933, -0.01082945428788662, -0.014728415757417679, 0.052475009113550186, 0.04170815274119377, 0.01865420490503311, -0.005115150939673185, 0.03516219183802605, -0.0006494542467407882, -0.00003636413021013141, -0.006067534908652306, -0.014916209504008293, -0.03546623885631561, -0.060022540390491486, -0.003836363321170211, 0.04811103641986847, 0.03367772325873375, -0.015130830928683281, 0.03448255732655525, 0.010078278370201588, -0.10308996587991714, 0.014782071113586426, 0.005660647992044687, 0.014576391316950321, 0.03196075186133385, -0.0050078402273356915, -0.0021518063731491566, 0.004721677862107754, -0.04138622060418129, -0.019834624603390694, -0.09765288233757019, -0.09564974904060364, 0.03410696983337402, 0.0020959151443094015, -0.007905233651399612, 0.030404742807149887, -0.022249117493629456, 0.05297579616308212, -0.01615922711789608, 0.13428165018558502, 0.04875490069389343, 0.012895188294351101, -0.03129900246858597, 0.00246591423638165, 0.020442718639969826, -0.07869463413953781, 0.017151853069663048, 0.0037804720923304558, -0.02452053129673004, -0.011044075712561607, -0.015846237540245056, 0.01324394904077053, 0.018099764361977577, 0.03435736149549484, -0.019745199009776115, 0.002120507415384054, 0.00403980677947402, -0.04260241240262985, -0.00033143407199531794, -0.06295570731163025, 0.04228048026561737, -0.020621569827198982, -0.033320020884275436, 0.023286456242203712, 0.007878405973315239, -0.023518962785601616, 0.07061054557561874, -0.06427920609712601, 0.06653273105621338, -0.008383660577237606, -0.014817841351032257, 0.014102435670793056, -0.04160084202885628, 0.024753037840127945, -0.011920448392629623, -0.002772197127342224, -0.07404449582099915, 0.006608560215681791, 0.008352361619472504, -0.03231845423579216, 0.06259800493717194, -0.008182452991604805, 0.0035569078754633665, -0.04249510169029236, -0.048504509031772614, 0.03088764287531376, -0.025396903976798058, -0.0330517441034317, -0.012045644223690033, -0.03503699600696564, -0.025486329570412636, 0.009023054502904415, -0.019369609653949738, 0.010122991167008877, 0.037594571709632874, 0.023983977735042572, 0.0800539031624794, -0.05183114483952522, -0.023357996717095375, -0.025897687301039696, -0.006183788180351257, -0.053548119962215424, -0.031728245317935944, -0.028401607647538185, -0.06596040725708008, 0.05265386030077934, -0.009702689945697784, 0.011231870390474796, -0.006402881350368261, -0.012170840054750443, 0.0377376526594162, -0.06048755347728729, 0.04342512786388397, -0.0024837993551045656, -0.02219546213746071, 0.054656997323036194, 0.049684926867485046, -0.04639406129717827, -0.042709723114967346, 0.0012653738958761096, -0.006063063628971577, 0.06746275722980499, 0.009148250333964825, -0.01324394904077053, -0.014943037182092667, 0.016677895560860634, -0.09314582496881485, 0.0032148545142263174, 0.03834574669599533, -0.03342733159661293, -0.0255578700453043, -0.030047040432691574, 0.017491670325398445, -0.02879508025944233, 0.02239220030605793, 0.0005214636912569404, -0.006376053672283888, -0.05175960436463356, -0.017894085496664047, 0.03088764287531376, 0.004699321463704109, 0.04557134583592415, 0.022249117493629456, 0.0029219852294772863, -0.03577028587460518, -0.015926720574498177, -0.011714768595993519, 0.004527176730334759, 0.0823431983590126, -0.07819384336471558, 0.021211780607700348, 0.014057722873985767, 0.014469080604612827, -0.025933457538485527, -0.04625098034739494, 0.01976308412849903, 0.02809756062924862, 0.03891807049512863, 0.02264259196817875, 0.06127450242638588, 0.01911921799182892, -0.0030181179754436016, 0.012635854072868824, -0.005539922975003719, -0.040742356330156326, 0.024699382483959198, 0.03267615661025047, 0.0034182979725301266, 0.01591777801513672, 0.021962955594062805, 0.014531678520143032, -0.0296177975833416, 0.01845746859908104, 0.00799913052469492, -0.01328866183757782, -0.008227165788412094, 0.007869463413953781, -0.059772148728370667, -0.018260730430483818, -0.017742061987519264, -0.04614366963505745, 0.07382987439632416, -0.029170669615268707, -0.031513623893260956, -0.04503479227423668, -0.025039199739694595, 0.030619366094470024, 0.012412289157509804, -0.0016946173273026943, 0.020657340064644814, -0.05458545684814453, 0.029456831514835358, -0.005714303348213434, -0.03194286674261093, 0.03605644777417183, -0.003053888212889433, 0.04417630285024643, -0.02092561684548855, -0.06903665512800217, 0.07812230288982391, -0.04160084202885628, -0.025575755164027214, 0.017232336103916168, -0.024502646178007126, 0.03326636552810669, -0.009175078943371773, -0.004308084025979042, -0.020120786502957344, 0.0852048248052597, 0.0400269515812397, 0.002828088356181979, -0.010802626609802246, 0.029456831514835358, -0.0852048248052597, 0.002064616186544299, 0.05265386030077934, 0.03813112527132034, -0.06925127655267715, -0.001296672853641212, 0.02382301166653633, 0.03319482505321503, -0.010874167084693909, -0.018350157886743546, 0.05197422578930855, 0.0010457219323143363, 0.01441542524844408, 0.03219325840473175, 0.012922015972435474, 0.00018430080672260374, 0.0021015042439103127, -0.0522603876888752, -0.06105988100171089, 0.00018485971668269485, 0.023554733023047447, 0.0018254024907946587, 0.01595354825258255, 0.005911039654165506, -0.009201906621456146, -0.061167191714048386, -0.07468836009502411, 0.019584231078624725, -0.03120957501232624, 0.04786064475774765, -0.03326636552810669, -0.0033937059342861176, 0.014612162485718727, 0.07647687196731567, 0.013887813314795494, -0.013691077008843422, 0.02375147119164467, -0.06127450242638588, 0.012135069817304611, 0.0701097622513771, 0.033856574445962906, -0.012269208207726479, 0.021515827625989914, -0.010614832863211632, 0.04360397905111313, 0.016132399439811707, -0.027668315917253494, -0.005727717187255621, -0.0069886199198663235, 0.04392591118812561, -0.02489611878991127, -0.040599275380373, 0.002548632910475135, 0.044068992137908936, 0.006398410070687532, 0.021050814539194107, 0.07533222436904907, 0.021015042439103127, -0.016311250627040863, 0.02731061354279518, 0.047431398183107376, 0.01705348491668701, -0.013404915109276772, 0.017438014969229698, 0.004196301568299532, 0.022696247324347496, -0.0007483814842998981, -0.008312120102345943, 0.016373848542571068, -0.014236574061214924, -0.0730786919593811, 0.08076930791139603, 0.043496668338775635, -0.13177773356437683, 0.009166136384010315, 0.02359050326049328, -0.03269404172897339, 0.05987945944070816, -0.029421061277389526, 0.03866767883300781, 0.06281262636184692, 0.02004924602806568, 0.0777646005153656, -0.03863190859556198, 0.02904547192156315, -0.03551989421248436, 0.012439116835594177, 0.018958251923322678, 0.06828548014163971, -0.016624240204691887, 0.007932061329483986, -0.017768889665603638, -0.013664249330759048, 0.10688161849975586, -0.00604964978992939, -0.0028593873139470816, -0.008933628909289837, 0.08384554833173752, 0.03687916696071625, -0.017947740852832794, 0.020156556740403175, 0.027221187949180603, -0.005817142780870199, -0.052439238876104355, 0.025074969977140427, -0.021801989525556564, -0.007856049574911594, -0.04199431464076042, -0.0991552323102951, 0.029170669615268707, -0.03852459788322449, -0.04317473620176315, -0.008566983975470066, 0.031316887587308884, -0.014021952636539936, -0.004323733504861593, -0.06939435750246048, 0.00024927419144660234, -0.020854076370596886, -0.01579258218407631, 0.03403542935848236, 0.023983977735042572, 0.029725108295679092, 0.0021093289833515882, 0.03755880147218704, -0.012904130853712559, 0.0026067595463246107, -0.007762152235955, 0.035788170993328094, 0.08470404148101807, 0.04081389680504799, -0.06281262636184692, -0.03834574669599533, 0.0188688263297081, -0.027453694492578506, 0.045213643461465836, 0.03088764287531376, 0.027417924255132675, 0.00731949508190155, 0.003912375308573246, 0.005826085340231657, -0.03047628328204155, -0.027060221880674362, 0.030422627925872803, -0.0027587832883000374, -0.007923118770122528, -0.005718774627894163, -0.05029302462935448, -0.030243776738643646, -0.05286848172545433, 0.034589868038892746, 0.04932722449302673, 0.026201734319329262, 0.017813602462410927, -0.03670031577348709, -0.009550666436553001, 0.0580909438431263, 0.021104469895362854, 0.02219546213746071, -0.0007601185934618115, -0.031066494062542915, 0.013807330280542374, 0.05279694125056267, 0.028687769547104836, -0.07769306004047394, 0.05175960436463356, 0.04524941369891167, -0.06281262636184692, 0.005356600508093834, 0.013476455584168434, -0.029456831514835358, -0.10237456113100052, 0.01751849800348282, -0.018242845311760902, -0.03215748816728592, 0.008003601804375648, 0.053870052099227905, -0.0038698979187756777, 0.01665106788277626, 0.00875924900174141, -0.01560478750616312, -0.0639215037226677, -0.04281703382730484, -0.012403346598148346, 0.007529645226895809, -0.029510486871004105, -0.011839964427053928, -0.0545496866106987, -0.00358373555354774, 0.01078474149107933, 0.01890459656715393, -0.007274781819432974, 0.019584231078624725, 0.021104469895362854, 0.004882643930613995, -0.023733584210276604, -0.022481625899672508, 0.027221187949180603, 0.03219325840473175, -0.030744561925530434, -0.006268742494285107, -0.0005427023279480636, -0.03834574669599533, 0.04363974928855896, -0.0027341912500560284, -0.03095918335020542, -0.015649501234292984, -0.014871496707201004, -0.01985250972211361, 0.02822275646030903, -0.020406948402523994, 0.0008618403226137161, 0.05955752730369568, -0.022410085424780846, -0.06102410703897476, 0.004574125166982412, -0.04449823498725891, -0.01652587205171585, -0.0030673020519316196, -0.005776901263743639, 0.04832565784454346, 0.06460113823413849, -0.056087810546159744, 0.03196075186133385, -0.0585559606552124, 0.03643203526735306, -0.023268571123480797, -0.037916503846645355, 0.030422627925872803, 0.010632717981934547, -0.0075654154643416405, -0.0019494806183502078, 0.012144012376666069, -0.04635829105973244, 0.040706586092710495, 0.030565710738301277, 0.054442375898361206, -0.09622207283973694, -0.011732653714716434, 0.027739856392145157, -0.008423902094364166, -0.02858045883476734, -0.016186054795980453, 0.027417924255132675, 0.0220702663064003, -0.03462563827633858, 0.01293990109115839, -0.02464572712779045, -0.061989907175302505, 0.0019383024191483855, -0.0754753053188324, 0.021068699657917023, -0.0022356428671628237, -0.029796648770570755, 0.060523323714733124, -0.0017784539377316833, -0.0045651826076209545, -0.032622501254081726, 0.013485398143529892, -0.03956193849444389, 0.06377842277288437, -0.046286750584840775, -0.008423902094364166, 0.01341385766863823, 0.048862211406230927, 0.041779693216085434, 0.044963251799345016, -0.025808261707425117, -0.04160084202885628, 0.009094594977796078, -0.08799490332603455, 0.030780332162976265, -0.043782830238342285, 0.07633379101753235, 0.017992453649640083, 0.01694617234170437, 0.01953057572245598, -0.03392811864614487, 0.00955960899591446, -0.02124755084514618, -0.01660635508596897, 0.026935026049613953, 0.035537779331207275, 0.009461240842938423, -0.004554004408419132, -0.04253087192773819, 0.0019595411140471697, 0.0010362204629927874, 0.029224324971437454, 0.04868336021900177, 0.05766170099377632, -0.04160084202885628, -0.07805076241493225, -0.03784496337175369, 0.03174613043665886, -0.026434240862727165, 0.030243776738643646, 0.01956634595990181, 0.031191689893603325, 0.05483584851026535, -0.0014218689175322652, -0.038774989545345306, 0.020818306133151054, 0.011535917408764362, 0.0834878459572792, 0.004985483828932047, -0.019387494772672653, 0.027632545679807663, 0.023697813972830772, 0.05093688890337944, 0.00015160453040152788, -0.041278909891843796, -0.05004262924194336, 0.030243776738643646, 0.009282389655709267, 0.054406605660915375, 0.02661309391260147, 0.05147344246506691, -0.022535281255841255, -0.007695083040744066, -0.0269886814057827, -0.04764602333307266, -0.006273214239627123, 0.022535281255841255, 0.05902097374200821, 0.018815170973539352, -0.03712955862283707, 0.020639454945921898, -0.0003825743915513158, 0.014138205908238888, -0.01644538901746273, -0.01460321992635727, 0.019995590671896935, -0.019745199009776115, 0.003972737584263086, 0.00716747110709548, 0.03813112527132034, -0.0783369243144989, 0.009036468341946602, 0.00342500489205122, 0.022410085424780846, -0.008522271178662777, 0.00342500489205122, 0.020228097215294838, -0.03974078968167305, 0.010900994762778282, 0.016928287222981453, 0.048504509031772614, -0.029993385076522827, 0.021605253219604492, 0.03600279241800308, -0.020353293046355247, 0.01591777801513672, 0.021587368100881577, -0.024806693196296692, -0.014361769892275333, -0.00048010432510636747, -0.01956634595990181, -0.032837122678756714, -0.02822275646030903, -0.019655771553516388, -0.03140631318092346, -0.002568753669038415, -0.02616596408188343, -0.01861843466758728, 0.02604076825082302, -0.010713201016187668, -0.06317032873630524, 0.021301206201314926, -0.009130365215241909, 0.02816910110414028, -0.029421061277389526, 0.08284398168325424, -0.005173277575522661, 0.0066666873171925545, 0.0817708745598793, -0.009711632505059242, -0.058305565267801285, -0.05873481184244156, -0.020889846608042717, 0.031352657824754715, 0.007587771862745285, -0.0322469137609005, -0.04979223757982254, -0.0458575077354908, -0.036843396723270416, 0.020532144233584404, 0.027775626629590988, 0.03383868932723999, -0.0021763984113931656, -0.030261661857366562, -0.046322520822286606, 0.0522603876888752, -0.0043103196658194065, -0.001976308412849903, 0.01484466902911663, 0.026935026049613953, 0.02296452410519123, 0.013306546956300735, 0.04696638509631157, -0.0037827077321708202, 0.04954184591770172, -0.01906556263566017, -0.01488938182592392, -0.0014989986084401608, 0.008522271178662777, 0.02600499801337719, -0.004439986776560545, 0.03745149075984955, -0.024055518209934235, -0.025808261707425117, -0.05476430803537369, -0.008526742458343506, 0.0036463337019085884, 0.034303706139326096, 0.009210849180817604, -0.056660134345293045, 0.061703745275735855, -0.0027990250382572412, 0.0028102032374590635, 0.07018130272626877, 0.050543416291475296, -0.020907731726765633, -0.013834157958626747, -0.013914641924202442, -0.02509285695850849, -0.03278346732258797, -0.0037558800540864468, -0.007538587786257267, -0.030941298231482506, -0.015506419353187084, 0.040456194430589676, -0.05873481184244156, 0.0016890282277017832, -0.016212882474064827, 0.02432379499077797, 0.02858045883476734, -0.03691493719816208, -0.00012051512749167159, -0.04371128976345062, 0.056087810546159744, -0.00803937204182148, -0.037344180047512054, -0.03253307566046715, 0.018403813242912292, 0.027382154017686844, -0.045499805361032486, 0.0631345584988594, 0.002597816986963153, 0.0023697814904153347, 0.03784496337175369, -0.05404890328645706, -0.016847804188728333, -0.028043905273079872, 0.0341963954269886, 0.0036821039393544197, -0.0011351476423442364, -0.00047535356134176254, 0.02473515272140503, -0.04310319572687149, 0.0008059492683969438, 0.03970501944422722, -0.03475083410739899, -0.020442718639969826, 0.006107776425778866, 0.00013525639951694757, -0.07064631581306458, 0.07669149339199066, -0.0556943379342556, 0.02051425911486149, 0.015738926827907562, -0.010516464710235596, 0.01829650066792965, -0.00844625849276781, -0.056660134345293045, -0.01899402216076851, 0.0341963954269886, -0.01969154365360737, -0.0025329834315925837, 0.01404878031462431, 0.04646560177206993, 0.033409446477890015, -0.023447422310709953, 0.019745199009776115, -0.03226479887962341, -0.01652587205171585, 0.03777342289686203, -0.015560074709355831, -0.009979910217225552, 0.03226479887962341, 0.023894552141427994, 0.07064631581306458, 0.02822275646030903, -0.04610789939761162, 0.03256884589791298, -0.06452959775924683, -0.04689484462141991, 0.008276349864900112, -0.04360397905111313, -0.05029302462935448, 0.06706928461790085, -0.049398764967918396, 0.034589868038892746, -0.09765288233757019, -0.01014981884509325, -0.03543046861886978, -0.07382987439632416, 0.02993972972035408, 0.03380291908979416, 0.007028861436992884, 0.032211143523454666, 0.005115150939673185, 0.01023030187934637, -0.022088151425123215, -0.01591777801513672, -0.01591777801513672, 0.07139749079942703, -0.006161431781947613, -0.01874363049864769, 0.029456831514835358, 0.022535281255841255, -0.048576049506664276, -0.010659545660018921, 0.05712514743208885, -0.03557354956865311, 0.044068992137908936, -0.0330517441034317, 0.029796648770570755, -0.04836142808198929, -0.042423561215400696, -0.016919344663619995, 0.006926021538674831, 0.01673155091702938, -0.03126323223114014, 0.036807626485824585, -0.05004262924194336, 0.013458570465445518 ]
43,126
ltxpdflinks._extractor
__init__
null
def __init__(self, graphic_fname, size, links, *, unitlength='1bp', **kwargs): self.graphic_fname = graphic_fname self.unitlength = unitlength # LaTeX length (w,h) = size self.size = (float(w),float(h)) # (width, height) self.links = links self.dic = dict(kwargs)
(self, graphic_fname, size, links, *, unitlength='1bp', **kwargs)
[ 0.05688205733895302, -0.020794644951820374, 0.02415202371776104, 0.00912292581051588, -0.048339203000068665, 0.01766578108072281, -0.07140139490365982, 0.02408171072602272, -0.03726512938737869, 0.03541945293545723, -0.006451086141169071, 0.051011040806770325, 0.006807038560509682, 0.045456428080797195, -0.03947994485497475, 0.008925174362957478, 0.04858529195189476, -0.02183174155652523, -0.054104749113321304, -0.027421509847044945, -0.007936418056488037, 0.04563220590353012, 0.030690997838974, 0.039269011467695236, -0.004477967973798513, 0.029267190024256706, -0.007281641475856304, 0.022218454629182816, 0.0254176314920187, -0.045667361468076706, -0.00823524221777916, -0.03062068670988083, -0.0005273367278277874, 0.07129592448472977, 0.04499940201640129, -0.03156989440321922, 0.022991882637143135, -0.015152142383158207, -0.10750638693571091, 0.03373197466135025, 0.04222209379076958, 0.01590799167752266, 0.06285853683948517, 0.014976363629102707, -0.008986696600914001, 0.03621045500040054, -0.007325586397200823, -0.008393443189561367, -0.05730392783880234, -0.047354839742183685, 0.027298465371131897, -0.010889504104852676, 0.0004932796000503004, 0.0069740284234285355, -0.05062432587146759, 0.08163172751665115, -0.02429264597594738, 0.134927898645401, 0.0384252704679966, -0.006051189266145229, -0.03304643556475639, -0.0013864561915397644, 0.018140384927392006, -0.09913931041955948, -0.008670294657349586, 0.013886534608900547, -0.015574011951684952, -0.01327130850404501, -0.0006492833490483463, -0.005449146497994661, 0.05853438004851341, 0.055792227387428284, -0.022868836298584938, 0.014308403246104717, 0.00584464892745018, -0.024538736790418625, -0.06064372509717941, -0.017138443887233734, 0.024345379322767258, 0.018685298040509224, -0.014484182931482792, 0.015240032225847244, -0.00630167406052351, -0.014440237544476986, 0.049393873661756516, -0.03515578433871269, 0.06036248058080673, 0.00667080981656909, 0.00848572701215744, 0.0041373963467776775, -0.05111650750041008, 0.0005707321688532829, 0.02415202371776104, -0.02068917825818062, -0.01879076659679413, -0.020267309620976448, 0.025681300088763237, -0.03424173220992088, 0.03814402595162392, 0.0035946788266301155, -0.01738453470170498, -0.08395200967788696, 0.014071102254092693, -0.02823009341955185, -0.02133955992758274, -0.03853073716163635, 0.007817767560482025, -0.04738999530673027, -0.026419570669531822, 0.023782886564731598, -0.019107168540358543, -0.007620016112923622, 0.016558373346924782, 0.042433030903339386, 0.02872227504849434, -0.004324161447584629, -0.04074555262923241, -0.04039399325847626, 0.004684508312493563, -0.025716455653309822, -0.031446848064661026, -0.021146204322576523, -0.06036248058080673, 0.06011638790369034, 0.04274943098425865, 0.01857983134686947, -0.005633714143186808, -0.005435963161289692, 0.0342065766453743, -0.026577772572636604, 0.06654989719390869, -0.015415810979902744, -0.00024389324244111776, 0.02858165092766285, 0.0416947603225708, -0.03541945293545723, -0.02394108846783638, 0.008494515903294086, -0.002001682296395302, 0.06524913012981415, 0.031007399782538414, 0.006108317524194717, -0.005264578387141228, -0.0027267704717814922, -0.05399928241968155, 0.03853073716163635, 0.023642264306545258, -0.06444054841995239, -0.06391321122646332, -0.001918187364935875, 0.01288459450006485, 0.004209904931485653, 0.004064887296408415, -0.03494484722614288, 0.0008959231781773269, -0.06373743712902069, -0.01545096654444933, 0.014572071842849255, 0.011241061612963676, 0.0550539568066597, 0.019898172467947006, 0.01949388161301613, -0.013121896423399448, -0.024591470137238503, -0.020548555999994278, 0.017375744879245758, 0.024556314572691917, -0.06261245161294937, 0.03155231475830078, 0.025944968685507774, 0.019353259354829788, -0.07488181442022324, -0.015477333217859268, 0.024380534887313843, 0.01944114826619625, 0.025153962895274162, 0.0004545532865449786, 0.01232210174202919, 0.018491942435503006, 0.002867393661290407, 0.024819983169436455, 0.0027882929425686598, -0.025312162935733795, 0.04011274874210358, 0.02162080630660057, 0.01717359945178032, 0.015688268467783928, 0.05378834903240204, 0.034681178629398346, -0.02944296784698963, 0.026946907863020897, 0.02140987105667591, -0.03174567222595215, -0.010353378020226955, 0.015283976681530476, -0.02218329906463623, 0.052698519080877304, -0.05519457906484604, -0.01866772025823593, 0.07104983925819397, -0.013710754923522472, -0.03656201437115669, -0.022587589919567108, -0.04816342145204544, 0.01843920908868313, 0.024626625701785088, -0.0075233373790979385, 0.023431329056620598, -0.01648806221783161, 0.02909141033887863, -0.01577615737915039, -0.05456177517771721, 0.028933210298419, 0.035524919629096985, 0.03589405491948128, -0.0384252704679966, -0.09822525829076767, 0.06475695222616196, -0.031657781451940536, -0.00730800861492753, 0.05779610574245453, 0.01242756936699152, 0.021497761830687523, -0.0452103354036808, 0.012559403665363789, -0.011153171770274639, 0.08613166958093643, 0.026419570669531822, -0.029882416129112244, 0.04162444546818733, -0.019669661298394203, -0.05498364567756653, 0.02949570119380951, 0.057057835161685944, 0.018843499943614006, -0.08163172751665115, -0.0277554914355278, 0.022974304854869843, -0.007804583758115768, -0.03357377275824547, 0.010098498314619064, 0.044261131435632706, -0.004128607455641031, -0.010590679943561554, 0.0024433268699795008, 0.01590799167752266, -0.004102240316569805, 0.030603108927607536, -0.07347558438777924, -0.043909572064876556, -0.0333804152905941, 0.035524919629096985, -0.0360698327422142, 0.040534619241952896, -0.005638108588755131, 0.022517278790473938, -0.0342065766453743, -0.08992849290370941, 0.01865014247596264, -0.02309734933078289, 0.03577100858092308, -0.03649170324206352, -0.006332435645163059, 0.03712450712919235, 0.11228757351636887, 0.012585770338773727, -0.014264458790421486, 0.017410902306437492, -0.0618390217423439, -0.006644443143159151, 0.042011160403490067, 0.052346959710121155, 0.0015622350620105863, 0.020337620750069618, -0.0012447343906387687, 0.022570012137293816, 0.03464602306485176, -0.03452298045158386, 0.004387881141155958, 0.0016468287212774158, 0.051432911306619644, -0.02429264597594738, 0.0023180844727903605, 0.01901927776634693, -0.010678568854928017, -0.00004737791095976718, 0.0020566133316606283, 0.05849922448396683, 0.011575041338801384, 0.00032766288495622575, -0.010915870778262615, 0.0550539568066597, -0.0007465110975317657, 0.03204449638724327, -0.008854863233864307, -0.01873803324997425, 0.034048374742269516, 0.015398233197629452, -0.00401654839515686, 0.0037023434415459633, -0.01418535877019167, -0.08331920206546783, 0.08739727735519409, 0.032554253935813904, -0.0817723497748375, 0.000049094502173829824, 0.024450847879052162, -0.048339203000068665, 0.048479825258255005, -0.021708695217967033, 0.045104868710041046, 0.07094436883926392, 0.0007553000468760729, 0.08627229183912277, -0.011988122016191483, 0.03563038632273674, -0.031921450048685074, -0.022693058475852013, 0.017771247774362564, 0.06011638790369034, -0.011636564508080482, -0.04549158364534378, 0.003117878455668688, -0.06345618516206741, 0.0932331383228302, 0.015011519193649292, 0.0208473801612854, -0.0033090380020439625, 0.06936235725879669, 0.04999152198433876, -0.02007395215332508, 0.025892233476042747, 0.041800227016210556, -0.04274943098425865, -0.0670069232583046, 0.002020358806475997, -0.02478482760488987, 0.029530858621001244, -0.03424173220992088, -0.07642867416143417, 0.07277247309684753, -0.05196024850010872, -0.03881198540329933, -0.005690842401236296, 0.020583711564540863, -0.04907747358083725, -0.0014018368674442172, -0.10996729135513306, 0.03570069745182991, -0.0011139988200739026, -0.03062068670988083, 0.03691357374191284, 0.02520669624209404, 0.0034716336522251368, 0.005132744554430246, 0.015477333217859268, -0.008213269524276257, -0.0037726550363004208, -0.03860104829072952, 0.00873621180653572, 0.05336647853255272, 0.04485877975821495, -0.07312402874231339, 0.00858679972589016, 0.022376656532287598, 0.0065477644093334675, 0.03680810332298279, -0.0006196206668391824, 0.024767249822616577, 0.049604810774326324, 0.03779246658086777, -0.004012153949588537, -0.04141351208090782, 0.008424204774200916, 0.029741792008280754, -0.0004949275171384215, -0.02605043537914753, 0.008731817826628685, -0.04007759317755699, -0.07031156867742538, -0.07126077264547348, 0.0009228393319062889, 0.052557896822690964, 0.04007759317755699, -0.016215605661273003, -0.025716455653309822, -0.03610498830676079, 0.03663232550024986, 0.024345379322767258, 0.003858347190544009, -0.020864957943558693, -0.0003515578282531351, 0.0326773002743721, 0.046300165355205536, -0.003990181256085634, -0.04074555262923241, 0.06595224887132645, 0.046651724725961685, -0.06264760345220566, 0.02253485657274723, 0.01711207814514637, -0.08992849290370941, -0.09056130051612854, 0.0557570718228817, -0.01822827383875847, -0.03649170324206352, 0.005747970659285784, 0.049956366419792175, 0.011610196903347969, 0.05533520132303238, 0.028546495363116264, -0.002970663597807288, -0.07614742964506149, -0.012102378532290459, -0.03571827709674835, -0.017015399411320686, -0.052839141339063644, -0.049253251403570175, -0.029741792008280754, -0.021655961871147156, 0.022288765758275986, 0.03944478929042816, 0.016452906653285027, 0.0333804152905941, 0.01824585162103176, 0.03385501727461815, -0.011847498826682568, -0.04267911985516548, 0.0264723040163517, 0.010511578992009163, -0.06310462951660156, 0.023905932903289795, -0.009922719560563564, -0.009219604544341564, 0.05315554514527321, -0.014949996955692768, -0.03485696017742157, -0.023044615983963013, -0.026173479855060577, -0.024486003443598747, 0.03768699988722801, -0.0388822965323925, 0.0006179727497510612, 0.05811250954866409, -0.04281974211335182, -0.03244878724217415, -0.0007377221481874585, -0.045807983726263046, 0.004097845871001482, -0.0025312164798378944, 0.02330828458070755, 0.05097588524222374, 0.05305007845163345, -0.06204995885491371, 0.04436659812927246, -0.06978423148393631, -0.01654958538711071, -0.03898776322603226, -0.007870500907301903, -0.0034716336522251368, -0.007712299935519695, -0.006424719467759132, -0.009245971217751503, 0.00904382485896349, -0.048761069774627686, 0.046722035855054855, 0.03803855553269386, 0.0571633018553257, -0.03810887038707733, 0.0004471376014407724, -0.02866954170167446, 0.01545096654444933, -0.027228154242038727, -0.012823072262108326, 0.01986301690340042, -0.00520745012909174, -0.03345072641968727, 0.03149958327412605, -0.03589405491948128, -0.05048370361328125, 0.024609047919511795, -0.03881198540329933, 0.017358167096972466, 0.031095290556550026, -0.006855377461761236, 0.04963996633887291, -0.0025356109254062176, -0.01038853358477354, -0.025153962895274162, 0.03007577173411846, -0.04549158364534378, 0.04746030643582344, -0.01901927776634693, 0.01717359945178032, 0.023202816024422646, 0.06190933287143707, 0.020900113508105278, 0.023677419871091843, -0.048761069774627686, -0.026999641209840775, -0.011197117157280445, -0.06370227783918381, 0.022077832370996475, -0.045315805822610855, 0.02429264597594738, 0.025944968685507774, -0.01453691627830267, 0.015811312943696976, -0.03937447816133499, 0.010757669806480408, -0.02844102866947651, -0.015178509056568146, -0.0034650417510420084, 0.02970663644373417, 0.028001580387353897, 0.005101982969790697, -0.050659485161304474, 0.01640017330646515, -0.02668323926627636, 0.008705451153218746, 0.07031156867742538, 0.021216515451669693, -0.01197054423391819, -0.06574131548404694, -0.013816222548484802, 0.012576981447637081, 0.014062313362956047, 0.00292232446372509, 0.07108499109745026, 0.02965390309691429, 0.019898172467947006, -0.014949996955692768, -0.015890413895249367, 0.044823624193668365, 0.005405201576650143, 0.05210087075829506, -0.0026828257832676172, -0.01613650470972061, 0.020337620750069618, -0.011575041338801384, 0.018491942435503006, 0.01872045360505581, 0.035032738000154495, -0.06855377554893494, 0.02330828458070755, -0.001007982180453837, 0.040604930371046066, -0.005730392411351204, 0.03786277770996094, -0.026718394830822945, -0.022271187976002693, -0.05329616740345955, -0.04296036809682846, -0.007132229395210743, -0.0003411209618207067, 0.02202509716153145, 0.04035883769392967, -0.0431009903550148, 0.027403932064771652, -0.0195641927421093, 0.003412308171391487, -0.0021576862782239914, 0.003491408657282591, 0.010045764967799187, -0.022851258516311646, -0.01787671633064747, -0.0013480045599862933, 0.010124865919351578, -0.0684131532907486, 0.025013338774442673, 0.0038341775070875883, 0.05565160512924194, 0.00456146290525794, 0.011065282858908176, -0.014027157798409462, -0.052698519080877304, 0.008336314931511879, 0.06226089224219322, -0.002460904885083437, -0.03673779219388962, -0.012726393528282642, 0.05913202837109566, -0.07129592448472977, 0.06338587403297424, 0.013262519612908363, 0.0008739507757127285, -0.020320042967796326, 0.019247790798544884, -0.019458726048469543, -0.01979270577430725, -0.0075453100726008415, -0.03459329158067703, -0.029671480879187584, -0.02028488740324974, -0.044683001935482025, 0.012445147149264812, 0.028757430613040924, -0.0480227991938591, -0.03839011490345001, 0.022060254588723183, -0.030304284766316414, 0.016927508637309074, -0.05118681862950325, 0.10321737825870514, -0.01725270040333271, 0.02105831354856491, 0.06950297951698303, 0.048550136387348175, -0.05994061008095741, -0.05090557411313057, -0.003212359733879566, 0.028124626725912094, -0.0056864479556679726, -0.03628076985478401, -0.07206935435533524, -0.04165960103273392, -0.03452298045158386, 0.002237885259091854, 0.05305007845163345, 0.011847498826682568, -0.053893815726041794, -0.013227363117039204, -0.04324161261320114, 0.04935871809720993, -0.021497761830687523, -0.012796704657375813, 0.024450847879052162, -0.001679787295870483, 0.008349498733878136, -0.0257691890001297, 0.028405873104929924, 0.00484270928427577, 0.04134320095181465, -0.02991757169365883, -0.0002749292179942131, 0.0016863789642229676, -0.021146204322576523, 0.03737059608101845, 0.012796704657375813, 0.03499758243560791, 0.03281792253255844, -0.025364898145198822, -0.01942357048392296, -0.011750820092856884, 0.02562856674194336, 0.03568312153220177, -0.0005234915879555047, -0.029267190024256706, 0.04408535361289978, -0.006969633977860212, 0.002403776627033949, 0.04324161261320114, 0.04485877975821495, -0.021093469113111496, 0.018773188814520836, -0.008613166399300098, -0.010221543721854687, -0.06268276274204254, 0.006587314885109663, -0.02253485657274723, -0.040534619241952896, -0.009333860129117966, 0.012972484342753887, -0.028616806492209435, 0.03976118937134743, -0.03457571193575859, 0.015389444306492805, -0.01752515695989132, -0.049464188516139984, -0.007874895818531513, -0.03930416703224182, 0.04992121085524559, -0.016250761225819588, -0.027069952338933945, -0.02956601418554783, 0.028317982330918312, 0.01052036788314581, -0.04095648601651192, 0.06433508545160294, 0.03048006445169449, -0.0009360227268189192, 0.015670690685510635, -0.027017218992114067, -0.05385866016149521, -0.026525039225816727, 0.05958905071020126, -0.016039825975894928, -0.0026344864163547754, -0.022657902911305428, 0.030392173677682877, -0.02520669624209404, -0.012840650044381618, 0.009817252866923809, -0.04478846862912178, -0.02520669624209404, -0.05698752403259277, -0.01175960898399353, -0.04317130148410797, 0.05849922448396683, -0.031306225806474686, -0.008630745112895966, 0.009131714701652527, -0.02499576099216938, 0.030321862548589706, -0.01753394678235054, -0.05853438004851341, -0.006763093639165163, 0.018755611032247543, 0.000012754270755976904, -0.01014244370162487, 0.03364408388733864, 0.045737672597169876, 0.045807983726263046, -0.0073167975060641766, -0.0015809115720912814, 0.007514548487961292, -0.000054347270634025335, 0.0543508417904377, -0.033626507967710495, -0.025944968685507774, 0.01951145939528942, 0.0319741852581501, 0.046018920838832855, -0.005071221850812435, -0.022903991863131523, -0.010450056754052639, -0.05048370361328125, -0.03406595438718796, 0.015565223060548306, -0.046440787613391876, -0.029056254774332047, 0.05399928241968155, -0.06275307387113571, -0.0016940692439675331, -0.09028004854917526, -0.010168810375034809, -0.02830040454864502, -0.062788225710392, 0.030655842274427414, 0.0480227991938591, -0.0181579627096653, 0.03394290804862976, -0.01831616275012493, 0.0057172090746462345, -0.009456905536353588, 0.01453691627830267, -0.01824585162103176, 0.06204995885491371, 0.005624925252050161, 0.031446848064661026, 0.02731604315340519, 0.03302885964512825, -0.04204631596803665, 0.01958177052438259, 0.077764593064785, -0.04851498082280159, 0.0312710702419281, -0.018491942435503006, 0.025821922346949577, -0.03761668875813484, -0.04485877975821495, -0.05983514338731766, 0.02837071754038334, 0.02365984208881855, 0.011197117157280445, 0.03649170324206352, -0.010441267862915993, 0.013921690173447132 ]
43,127
ltxpdflinks._extractor
__repr__
null
def __repr__(self): return self.__class__.__name__ + \ '({!r}, {!r}, {!r}, unitlength={!r}, **{!r})'.format( self.graphic_fname, self.size, self.links, self.unitlength, self.dic )
(self)
[ 0.04774584248661995, -0.030253779143095016, 0.042709216475486755, 0.0072188787162303925, 0.0428793728351593, -0.04805212467908859, -0.018308810889720917, -0.028892530128359795, 0.01854703016579151, -0.012651116587221622, -0.02220539003610611, 0.0050111012533307076, 0.004951546899974346, 0.06112012267112732, -0.017364444211125374, 0.03978252783417702, 0.002584247849881649, -0.05540287122130394, -0.027071857824921608, 0.02843310870230198, 0.003983783069998026, 0.06714365631341934, 0.029930483549833298, -0.032857172191143036, 0.001668594661168754, 0.02766740508377552, 0.0004259223351255059, -0.007852710783481598, 0.004789898172020912, -0.03398020192980766, -0.0693216547369957, -0.05251021683216095, -0.003254238050431013, -0.005368429701775312, -0.0037476911675184965, 0.012710670940577984, -0.006602062378078699, -0.021745968610048294, -0.06496565043926239, -0.02528521791100502, 0.0309684369713068, 0.006308542564511299, 0.007929281331598759, -0.005002593621611595, -0.0310364980250597, 0.00753792142495513, 0.029215827584266663, 0.010855968110263348, -0.03624327853322029, -0.07439231127500534, 0.024859827011823654, 0.04216471686959267, -0.041790373623371124, 0.019908281043171883, -0.03147890418767929, 0.003307411912828684, 0.007065738085657358, 0.01623290590941906, 0.013995351269841194, 0.03896578028798103, -0.04002074897289276, -0.004917515441775322, 0.04869871586561203, -0.09739743173122406, -0.009026789106428623, -0.023549623787403107, -0.04162021726369858, 0.03084932640194893, -0.013978335075080395, 0.023804858326911926, 0.05070656165480614, -0.018240749835968018, -0.011400468647480011, 0.030253779143095016, -0.04396837204694748, -0.045567840337753296, -0.008631175383925438, -0.01931273378431797, 0.03522234410047531, -0.06731381267309189, -0.020214561372995377, 0.0073209721595048904, -0.014122968539595604, -0.03049199841916561, 0.020946234464645386, -0.03675374761223793, 0.002106746891513467, -0.02620406076312065, -0.07697868347167969, -0.0067424410954117775, -0.02843310870230198, 0.03682181239128113, -0.03100246749818325, 0.03212549909949303, -0.054143715649843216, -0.03814902901649475, -0.01575646735727787, -0.048392437398433685, 0.07187400013208389, -0.00886514037847519, 0.004947292618453503, -0.06666721403598785, -0.022579733282327652, 0.011596147902309895, -0.04638459160923958, -0.017560124397277832, -0.008694984018802643, 0.008090929128229618, -0.028603265061974525, 0.014148491434752941, -0.010668796487152576, 0.07085306197404861, 0.03081529587507248, -0.0010033900616690516, 0.06493162363767624, -0.015263015404343605, -0.028977608308196068, -0.017560124397277832, 0.043287746608257294, -0.012047061696648598, -0.015092859044671059, 0.01049864012748003, -0.04257309064269066, 0.009707413613796234, -0.045567840337753296, 0.038387250155210495, -0.04618040472269058, -0.012115124613046646, 0.011264343746006489, -0.09181630611419678, 0.04812018573284149, -0.004632503725588322, -0.034575749188661575, 0.0477798730134964, 0.06857296824455261, 0.00905231200158596, 0.013033968396484852, 0.01264260895550251, 0.017968500033020973, 0.14606212079524994, 0.013859226368367672, -0.0033116659615188837, 0.007435827981680632, 0.03671971708536148, -0.03255088999867439, 0.0050664022564888, 0.00770382396876812, 0.031240686774253845, -0.008916187100112438, -0.037910811603069305, 0.004836691077798605, 0.02554045245051384, 0.02712290547788143, -0.030730217695236206, 0.0010416752193123102, -0.022273452952504158, -0.020401732996106148, 0.0040199412032961845, 0.00943516381084919, -0.015365108847618103, -0.05720653012394905, -0.018989436328411102, -0.00023104027786757797, -0.04539768397808075, 0.006457429379224777, 0.012736194767057896, 0.024757733568549156, -0.03688987344503403, 0.012361851520836353, 0.03129173442721367, 0.0017132606590166688, -0.09344980865716934, -0.033690936863422394, 0.05281649902462959, 0.0008241942850872874, 0.05138718709349632, 0.010609242133796215, 0.07684256136417389, -0.012123632244765759, -0.044580936431884766, 0.05625365301966667, -0.04042912274599075, -0.06163059175014496, 0.028296982869505882, 0.024859827011823654, -0.04880081117153168, 0.025710608810186386, 0.012353342957794666, 0.060337405651807785, -0.0202656090259552, 0.036957934498786926, 0.035562653094530106, -0.019176607951521873, -0.000037254911148920655, 0.007197609171271324, -0.06112012267112732, 0.03539250046014786, -0.06408084183931351, 0.02703782729804516, 0.02356663905084133, -0.03382706269621849, -0.009818015620112419, -0.019295718520879745, -0.00306919333525002, -0.012268264777958393, 0.004836691077798605, 0.005581124685704708, -0.016590233892202377, 0.01582453027367592, 0.025046998634934425, 0.002873513614758849, -0.020725030452013016, 0.014761053957045078, 0.004453839734196663, 0.03634537383913994, -0.023838888853788376, -0.08255980908870697, 0.014778070151805878, -0.06738187372684479, 0.023311404511332512, 0.025370296090841293, -0.0179514829069376, 0.010736859403550625, -0.044648997485637665, -0.0809263065457344, -0.019244670867919922, 0.04611234366893768, 0.04185843467712402, -0.030696187168359756, 0.009154405444860458, 0.019550953060388565, -0.03903384134173393, -0.022443609312176704, 0.04570396617054939, -0.023209311068058014, 0.031563982367515564, -0.042641155421733856, 0.022988108918070793, 0.016556203365325928, -0.004977070260792971, -0.021967170760035515, 0.007699570152908564, 0.01346786692738533, -0.004589964635670185, 0.04444481059908867, -0.052680373191833496, 0.004904753528535366, 0.05029818415641785, -0.028739389032125473, -0.018053578212857246, 0.01581602357327938, 0.012378866784274578, -0.03682181239128113, 0.01820671744644642, 0.028722373768687248, -0.03358884155750275, -0.05822746828198433, -0.06819862127304077, 0.03757049888372421, 0.009494718164205551, -0.00029564645956270397, 0.0011155868414789438, -0.006989167537540197, 0.03498412296175957, 0.05805731192231178, 0.045533809810876846, -0.045159466564655304, -0.002909671748057008, -0.03187026455998421, 0.0029564646538347006, 0.051251061260700226, 0.047065217047929764, -0.05775102972984314, 0.024264279752969742, -0.028790436685085297, -0.025302233174443245, 0.027565311640501022, -0.004132669884711504, -0.022443609312176704, -0.04192649945616722, 0.025914795696735382, -0.03287418559193611, -0.009681889787316322, -0.026731545105576515, -0.008039882406592369, 0.0007385844364762306, 0.013825194910168648, 0.018564045429229736, 0.023753810673952103, 0.02484281174838543, 0.04233487322926521, 0.03906787186861038, -0.0274121705442667, 0.019908281043171883, 0.03132576495409012, -0.037876781076192856, 0.014139983803033829, 0.0024289803113788366, 0.0007034896989353001, 0.027242014184594154, -0.039816562086343765, -0.0500599667429924, 0.08936605602502823, 0.04502334073185921, -0.08725611865520477, 0.0039752754382789135, 0.021779999136924744, -0.020861156284809113, 0.029981529340147972, -0.021014295518398285, -0.0051259566098451614, 0.036617621779441833, 0.04247099906206131, 0.07936087250709534, 0.03151293471455574, 0.042743247002363205, -0.048460498452186584, -0.014973749406635761, 0.03774065524339676, 0.1005283072590828, -0.02700379490852356, 0.028160858899354935, -0.0190234687179327, 0.0009007646003738046, 0.07772736996412277, -0.029215827584266663, -0.0010608178563416004, 0.012098109349608421, 0.0671776831150055, 0.017679233103990555, -0.028943577781319618, -0.05165943503379822, 0.02172895148396492, 0.020163515582680702, 0.020503826439380646, 0.03539250046014786, 0.015841545537114143, 0.022069264203310013, -0.030423935502767563, -0.05819343402981758, 0.07520905882120132, -0.012429913505911827, -0.020350687205791473, -0.0202656090259552, -0.015203460119664669, -0.0034626794513314962, 0.006942374631762505, -0.042743247002363205, 0.0428793728351593, 0.011621671728789806, -0.06282168626785278, 0.007610238157212734, 0.023736795410513878, 0.013399804010987282, -0.010456101037561893, 0.0038668005727231503, -0.031172623857855797, 0.03251685947179794, -0.05690024793148041, 0.06258346885442734, 0.03947624936699867, 0.023651717230677605, -0.019840218126773834, 0.008363178931176662, 0.0008816220215521753, -0.0347629189491272, 0.0358349047601223, -0.024706685915589333, 0.024026062339544296, 0.025370296090841293, -0.056083496659994125, -0.004747359082102776, -0.045533809810876846, -0.046010248363018036, -0.024128155782818794, 0.039408184587955475, 0.008363178931176662, 0.01588408462703228, -0.032227590680122375, -0.07507293671369553, 0.0019025595393031836, 0.022086279466748238, 0.018512999638915062, 0.06254943460226059, 0.015348093584179878, 0.025336263701319695, -0.02128654532134533, 0.028126826509833336, -0.008780062198638916, 0.012557530775666237, -0.044138528406620026, -0.0069551365450024605, 0.011825858615338802, 0.043628059327602386, -0.02312423288822174, -0.04253906011581421, 0.025115061551332474, 0.011655702255666256, -0.07895249873399734, 0.00910335872322321, -0.002601263578981161, -0.07534518092870712, -0.0620729960501194, 0.023498577997088432, -0.02451951429247856, -0.04304952919483185, 0.02213732711970806, 0.037944842129945755, 0.005585378501564264, -0.02106534317135811, 0.019244670867919922, -0.002046128734946251, -0.07677450031042099, -0.008754538372159004, 0.05199974775314331, -0.00894171092659235, -0.04713327810168266, -0.034609779715538025, 0.0066105700097978115, 0.034065280109643936, -0.003983783069998026, 0.05625365301966667, 0.04148409143090248, 0.03872755914926529, 0.0013920908095315099, 0.019193625077605247, -0.027207983657717705, 0.027973687276244164, 0.05921437218785286, 0.043185655027627945, -0.040327031165361404, 0.029334936290979385, 0.01868315599858761, 0.01086447574198246, 0.037468403577804565, -0.060847871005535126, 0.00838444847613573, -0.03974849730730057, -0.03084932640194893, 0.04355999827384949, 0.035494592040777206, -0.039952684193849564, -0.01528003066778183, 0.04621443524956703, -0.03430349752306938, -0.004500632639974356, -0.03961237519979477, -0.03132576495409012, 0.03144487366080284, 0.0036413436755537987, 0.04737149924039841, 0.015603327192366123, 0.0009847792098298669, -0.05206780880689621, 0.0038944510743021965, -0.024689670652151108, -0.0148971788585186, -0.04733746871352196, -0.0161393191665411, -0.02290303073823452, -0.05142121762037277, 0.0502641536295414, 0.0003544035425875336, 0.02480877935886383, -0.030934404581785202, -0.0029713534750044346, 0.0523400604724884, 0.03529040515422821, -0.05720653012394905, 0.004373015370219946, 0.016428586095571518, 0.02715693600475788, -0.028484154492616653, -0.01744101569056511, 0.002673580078408122, 0.058567777276039124, -0.03416737541556358, 0.035494592040777206, -0.04247099906206131, -0.05434790253639221, -0.017526093870401382, -0.0694577768445015, -0.018121639266610146, 0.003805119078606367, 0.0030989705119282007, 0.06741590052843094, -0.025404326617717743, 0.0689813420176506, -0.0047601209953427315, 0.012370359152555466, -0.010354007594287395, 0.06217509135603905, -0.09909899532794952, -0.0024268534034490585, 0.002741642529144883, 0.08010955899953842, 0.013859226368367672, -0.028007717803120613, -0.07309912145137787, 0.013655038550496101, 0.006317050661891699, -0.057512808591127396, 0.037502437829971313, -0.029947498813271523, 0.01326367910951376, 0.012157663702964783, 0.018921373412013054, 0.01773028075695038, -0.0015516122803092003, -0.0178493894636631, 0.023328421637415886, -0.04168827831745148, 0.011970492079854012, 0.013144569471478462, 0.00827384740114212, -0.024060092866420746, -0.015603327192366123, 0.014318647794425488, -0.03183623403310776, 0.0052748434245586395, 0.03037288971245289, 0.01864912360906601, -0.0597929023206234, -0.024264279752969742, -0.04546574875712395, 0.04233487322926521, -0.012412898242473602, 0.022120311856269836, -0.004124161787331104, 0.04614637419581413, 0.0310364980250597, 0.02121848426759243, 0.01396131981164217, 0.015645867213606834, -0.016794420778751373, 0.07098918408155441, -0.03763855993747711, 0.018121639266610146, 0.006576539017260075, 0.007355003617703915, 0.042743247002363205, -0.024978935718536377, 0.0050664022564888, -0.05526674911379814, 0.008303624577820301, -0.047507621347904205, 0.07588968425989151, -0.015016288496553898, 0.06217509135603905, -0.04253906011581421, 0.005929945036768913, -0.041347965598106384, -0.01781535893678665, -0.05587930977344513, 0.0405312180519104, 0.08337655663490295, 0.0500599667429924, 0.004555933643132448, -0.005249320063740015, 0.012668131850659847, -0.0058023277670145035, 0.019363779574632645, 0.04158618673682213, -0.01661575771868229, 0.03418438881635666, 0.03129173442721367, -0.002543835900723934, 0.043151624500751495, -0.058499716222286224, -0.020827123895287514, 0.0036243279464542866, 0.04978771507740021, 0.039374154061079025, -0.01049864012748003, -0.010524163953959942, -0.010175343602895737, 0.03141084313392639, 0.07330331206321716, 0.021609842777252197, -0.03532443568110466, -0.010855968110263348, 0.042198747396469116, -0.022511670365929604, 0.014846132136881351, -0.01407192088663578, 0.011102695018053055, -0.023906951770186424, 0.00678923400118947, 0.009860554710030556, -0.0358349047601223, -0.030423935502767563, -0.0477118119597435, -0.008235562592744827, -0.027820546180009842, 0.028977608308196068, -0.0060022613033652306, -0.0032180799171328545, -0.019448857754468918, -0.00808667577803135, 0.061358340084552765, 0.010030710138380527, 0.014412233605980873, -0.00011492193152662367, 0.07820381224155426, 0.003445663955062628, -0.005985246039927006, 0.05581124871969223, 0.045057374984025955, -0.0358349047601223, -0.003856165800243616, -0.022851983085274696, 0.05023012310266495, -0.03532443568110466, -0.08351268619298935, -0.03374198451638222, -0.06527193635702133, -0.02029963955283165, 0.00967338215559721, 0.0025544706732034683, 0.022222405299544334, -0.009698905982077122, 0.024230249226093292, -0.06809652596712112, 0.038897715508937836, -0.00031133275479078293, 0.011664210818707943, 0.007248655892908573, 0.02594882622361183, 0.05479031056165695, -0.05819343402981758, 0.025625530630350113, 0.023039154708385468, 0.01839388906955719, -0.0524761863052845, -0.0572405606508255, -0.015875577926635742, -0.016122303903102875, 0.03916996717453003, -0.0430154986679554, 0.047473590821027756, 0.03081529587507248, -0.03001556172966957, -0.06969599425792694, 0.014667468145489693, -0.02220539003610611, 0.03501815348863602, -0.00795905850827694, -0.055130623281002045, 0.036549560725688934, -0.035494592040777206, -0.02242659218609333, 0.019942311570048332, 0.036039091646671295, -0.039952684193849564, 0.016496647149324417, -0.007491128519177437, -0.023464545607566833, -0.03192131221294403, -0.04961755871772766, -0.003452044678851962, -0.04686103016138077, -0.04335581138730049, 0.01724533550441265, -0.07275880873203278, 0.07085306197404861, 0.008660952560603619, -0.01591811701655388, 0.01152808591723442, -0.019244670867919922, -0.04737149924039841, -0.03876159340143204, 0.037060029804706573, -0.018053578212857246, -0.045057374984025955, -0.0761619359254837, 0.029692264273762703, 0.020622937008738518, 0.007848456501960754, 0.06329812109470367, -0.01978917047381401, 0.0012974413111805916, 0.006589300464838743, -0.04709924757480621, -0.055641092360019684, 0.025778671726584435, 0.059452589601278305, -0.030185718089342117, 0.01773028075695038, -0.0039688944816589355, -0.008546097204089165, -0.05199974775314331, -0.03542653098702431, 0.017713265493512154, -0.020435765385627747, 0.04025896638631821, -0.030440952628850937, 0.07337137311697006, -0.04740552976727486, 0.04451287165284157, -0.020622937008738518, 0.013187108561396599, 0.021320577710866928, 0.0356987789273262, -0.007427319884300232, 0.05046834051609039, 0.004013560246676207, 0.03084932640194893, 0.019363779574632645, -0.0028203397523611784, 0.005359921604394913, 0.03580087423324585, 0.10440786927938461, 0.016666803508996964, -0.01676889695227146, -0.014939717948436737, -0.010643272660672665, -0.014667468145489693, 0.05870390310883522, -0.027650389820337296, -0.0014218681026250124, -0.014607913792133331, 0.06074577942490578, 0.049311280250549316, -0.004147558473050594, 0.001595214824192226, 0.09903093427419662, -0.028535202145576477, -0.031155608594417572, -0.049413371831178665, -0.01744101569056511, -0.02154177986085415, 0.04005477949976921, -0.0430835597217083, -0.004300699103623629, 0.0005290795816108584, 0.009350085631012917, -0.013433835469186306, -0.030423935502767563, 0.023430515080690384, 0.041245874017477036, -0.00547052314504981, 0.05914631113409996, 0.01623290590941906, 0.009835030883550644, -0.018717186525464058, 0.013774148188531399, -0.0018313066102564335, 0.05839762091636658, -0.011111202649772167, 0.026357201859354973, 0.07092112302780151, 0.04682699963450432, -0.048426467925310135, 0.003532869042828679, 0.0619368739426136, -0.04475109279155731, 0.03753646835684776, -0.015211967751383781, 0.04818824678659439, -0.06163059175014496, -0.04621443524956703, -0.06094996631145477, 0.03916996717453003, 0.048970967531204224, -0.04158618673682213, 0.07207818329334259, -0.030219748616218567, -0.029249858111143112 ]
43,128
ltxpdflinks._extractor
ExtractedLink
.......... - `link_bbox` is relative to the page bottom left corner in user space units, given as `(x, y, w, h)` - `link_type` is one of 'URI', 'latex-ref', 'latex-cite'. When extracting special types of URLs (e.g. 'latexpdf://xxx/xxx') then the extracted type is 'URI' with the special URI, then use a relevant SpecialLinkConverter to convert the special URI's to specialized types.
class ExtractedLink: """ .......... - `link_bbox` is relative to the page bottom left corner in user space units, given as `(x, y, w, h)` - `link_type` is one of 'URI', 'latex-ref', 'latex-cite'. When extracting special types of URLs (e.g. 'latexpdf://xxx/xxx') then the extracted type is 'URI' with the special URI, then use a relevant SpecialLinkConverter to convert the special URI's to specialized types. """ def __init__(self, link_bbox, link_type, link_target, **kwargs): super().__init__() x, y, w, h = link_bbox self.link_bbox = (float(x), float(y), float(w), float(h)) self.link_type = link_type self.link_target = link_target self.dic = dict(kwargs) def __repr__(self): return self.__class__.__name__ + '({!r}, {!r}, {!r}, **{!r})'.format( self.link_bbox, self.link_type, self.link_target, self.dic )
(link_bbox, link_type, link_target, **kwargs)
[ 0.02966289222240448, -0.02435263805091381, -0.04956236854195595, 0.004653459414839745, -0.006274484097957611, -0.0002145645412383601, 0.01680648699402809, -0.009567772969603539, 0.005077348090708256, 0.03003554232418537, 0.03495451435446739, 0.04866801202297211, 0.056419119238853455, 0.02563827857375145, -0.05612099915742874, -0.008216919377446175, 0.007774398196488619, 0.04341365396976471, 0.013676232658326626, 0.004960895050317049, -0.015921445563435555, 0.0020495716016739607, 0.011962045915424824, 0.002019293839111924, -0.007378458045423031, 0.004557968117296696, -0.009511875919997692, -0.017719479277729988, -0.0071921334601938725, -0.007005808874964714, -0.014095463789999485, -0.07646765559911728, -0.0008512709755450487, 0.04121502488851547, 0.022154007107019424, -0.035438958555459976, 0.017523838207125664, 0.05295347794890404, -0.11119858175516129, 0.018110761418938637, -0.07397090643644333, 0.023048365488648415, -0.010965208522975445, -0.021315544843673706, 0.006544655188918114, -0.008682730607688427, -0.060480996966362, -0.02148323692381382, -0.12580643594264984, -0.07281569391489029, -0.01172913983464241, -0.031432975083589554, 0.03290494158864021, 0.0415504090487957, -0.02237759716808796, 0.016713324934244156, -0.014393582940101624, 0.1183534488081932, -0.001368322060443461, 0.057313475757837296, -0.009400080889463425, -0.0017467940924689174, -0.009605037979781628, -0.038643743842840195, 0.02748289331793785, -0.021315544843673706, -0.03473092243075371, -0.002415233990177512, -0.05291621387004852, 0.04196032136678696, 0.023122895509004593, -0.017309565097093582, -0.010350337252020836, 0.007234056480228901, 0.017635632306337357, -0.0368177592754364, 0.026364944875240326, -0.049189720302820206, 0.07307654619216919, -0.028731267899274826, 0.00208450760692358, -0.01112358458340168, 0.02051434852182865, -0.062046125531196594, 0.034805454313755035, -0.055971939116716385, 0.09524918347597122, -0.005855253431946039, 0.03201058506965637, 0.03100443072617054, -0.03318442776799202, 0.01738409511744976, -0.03715314343571663, -0.023830929771065712, -0.042034853249788284, 0.034171950072050095, 0.01845546066761017, -0.004026942420750856, 0.03258819133043289, -0.01875358074903488, 0.01814802549779415, -0.017682213336229324, -0.08161021769046783, 0.04889160022139549, -0.02422221004962921, -0.0025410030502825975, 0.0008314739679917693, -0.036016564816236496, -0.0515374131500721, 0.010182645171880722, -0.024911612272262573, -0.01384392473846674, 0.002008813200518489, 0.040432460606098175, 0.05645638331770897, -0.053475189954042435, -0.014142044819891453, -0.018734948709607124, -0.032960839569568634, -0.028600841760635376, 0.00666576623916626, 0.021706826984882355, -0.06566082686185837, 0.029998276382684708, -0.03432101011276245, -0.006754270289093256, 0.00301380199380219, 0.0018865375313907862, 0.033091265708208084, -0.038718272000551224, 0.01387187372893095, -0.014142044819891453, -0.05377330631017685, 0.04673023521900177, 0.00015706589329056442, -0.020234862342476845, -0.08496405929327011, 0.04143861308693886, -0.04609673097729683, 0.058133307844400406, -0.00002505557677068282, -0.00938610639423132, 0.026551268994808197, -0.025750072672963142, -0.04844442009925842, -0.005589740816503763, 0.012073840014636517, -0.0027902123983949423, -0.004304100759327412, -0.044978782534599304, 0.03515947237610817, -0.06797125190496445, 0.011868882924318314, 0.052767153829336166, -0.005766749382019043, -0.04572408273816109, -0.012250849045813084, 0.02058887854218483, -0.01796170137822628, 0.03139571100473404, 0.051872797310352325, -0.022023579105734825, 0.012716660276055336, -0.012092472985386848, -0.023290587589144707, 0.00915320124477148, 0.08973397314548492, -0.099944569170475, 0.03536442667245865, 0.024073151871562004, 0.0150550352409482, 0.019899478182196617, -0.047214679419994354, 0.011049054563045502, 0.0017945397412404418, 0.08906320482492447, 0.050605788826942444, 0.0339297279715538, 0.010657772421836853, 0.006945253349840641, 0.01208315696567297, -0.04378630593419075, -0.024408536031842232, 0.007392432540655136, 0.04278014972805977, 0.024632126092910767, -0.0007487923721782863, -0.009176491759717464, -0.01390913873910904, -0.009022773243486881, 0.0029346139635890722, 0.004760595969855785, -0.0033957676496356726, -0.0001853057328844443, -0.02351417765021324, -0.05351245403289795, -0.07684030383825302, -0.017533153295516968, -0.06077911704778671, 0.07766013592481613, -0.040059808641672134, -0.014598540030419827, -0.0381220318377018, 0.021371442824602127, 0.009772730059921741, -0.01322905346751213, 0.0297187902033329, 0.02858220785856247, -0.03987348452210426, 0.018343666568398476, -0.016284778714179993, 0.007769739720970392, 0.01716982014477253, 0.0003709025913849473, 0.05056852474808693, -0.022340331226587296, -0.06618253141641617, 0.05805877596139908, 0.0033515156246721745, -0.013704181648790836, 0.038271091878414154, -0.026290414854884148, 0.05608373507857323, 0.012409225106239319, 0.045686814934015274, -0.050084080547094345, 0.09666525572538376, -0.020626144483685493, 0.03739536553621292, -0.04039519652724266, 0.007820979692041874, -0.08481500297784805, -0.03657553717494011, 0.04702835530042648, 0.0820573940873146, -0.020924264565110207, -0.009642302989959717, 0.015213411301374435, 0.01364828459918499, 0.0019354477990418673, -0.010648456402122974, 0.06130082532763481, -0.019396401941776276, 0.04255656152963638, 0.021595032885670662, 0.007466962095350027, 0.022936569526791573, 0.018837427720427513, -0.04840715602040291, -0.08764714002609253, 0.023700501769781113, 0.003106964286416769, 0.0227502454072237, 0.012576917186379433, 0.018977170810103416, -0.008603543043136597, -0.08034320920705795, -0.052580829709768295, -0.036221522837877274, -0.022731613367795944, 0.013359480537474155, -0.0633876621723175, 0.00862683355808258, 0.02615998685359955, 0.028526311740279198, -0.02545195445418358, -0.005165852140635252, 0.013340848498046398, -0.0295883622020483, 0.0028065156657248735, 0.10471448302268982, 0.004744292702525854, -0.023309219628572464, 0.053922366350889206, -0.0012705015251412988, 0.020365290343761444, -0.010080166161060333, -0.012753925286233425, -0.02166956290602684, -0.012819139286875725, 0.015772385522723198, -0.032644085586071014, -0.019675888121128082, 0.0009345348225906491, 0.05805877596139908, -0.009446661919355392, 0.017318880185484886, 0.07292748987674713, 0.012604866176843643, -0.045686814934015274, -0.01816665753722191, 0.015008454211056232, 0.023551441729068756, 0.0025410030502825975, 0.024371270090341568, 0.02921571210026741, -0.015744436532258987, -0.016061188653111458, -0.011580079793930054, -0.0022428836673498154, -0.0024245502427220345, -0.007150210440158844, 0.03074357472360134, 0.015213411301374435, -0.07426902651786804, 0.016545632854104042, 0.029495200142264366, -0.007485594600439072, 0.04460613429546356, -0.01454264298081398, 0.0631268098950386, 0.017924435436725616, -0.006623843219131231, 0.03987348452210426, -0.07035620510578156, -0.0061207665130496025, 0.005631663836538792, 0.019638624042272568, -0.01859520561993122, 0.048742540180683136, -0.044270750135183334, 0.038830067962408066, -0.03750716149806976, 0.01390913873910904, 0.03964989632368088, -0.05019587278366089, -0.016554949805140495, -0.014309736900031567, 0.031432975083589554, 0.017887171357870102, -0.017980333417654037, 0.039426304399967194, 0.016415206715464592, 0.011710506863892078, -0.05913946032524109, 0.00916251726448536, -0.018548624590039253, 0.0018248175038024783, 0.0022428836673498154, -0.06361125409603119, -0.040879640728235245, -0.0052543566562235355, -0.027147509157657623, 0.02377503179013729, 0.022358963266015053, -0.011198114603757858, -0.04665570333600044, -0.009726149030029774, -0.00819362886250019, -0.05269262567162514, -0.016704009845852852, 0.0016594543121755123, 0.018026914447546005, 0.02071930654346943, 0.02364460378885269, 0.017104607075452805, -0.028284089639782906, -0.06670424342155457, 0.0030044857412576675, 0.01856725662946701, 0.09390764683485031, -0.0022556933108717203, -0.07631859928369522, -0.06778492778539658, 0.05082937702536583, -0.018818793818354607, 0.029234346002340317, 0.06428202241659164, 0.057127151638269424, -0.028153661638498306, -0.007154868450015783, -0.0473264716565609, -0.013564437627792358, -0.0301100704818964, 0.048481687903404236, -0.018995802849531174, -0.011198114603757858, 0.003959399648010731, -0.03968716040253639, 0.016191616654396057, 0.02071930654346943, 0.048556216061115265, 0.021967681124806404, 0.01208315696567297, 0.03508494049310684, -0.05246903374791145, 0.06808304786682129, 0.045351430773735046, 0.03571844473481178, 0.02461349219083786, 0.001963396556675434, 0.007951406762003899, 0.008719995617866516, 0.03305400162935257, 0.05880407616496086, -0.06558629125356674, -0.013527173548936844, 0.03178699314594269, -0.03931451216340065, 0.018110761418938637, 0.039985280483961105, 0.04352544993162155, -0.05000954866409302, 0.020085802301764488, 0.007033757399767637, -0.031153488904237747, 0.02468802221119404, 0.0357557088136673, 0.018287768587470055, 0.021203750744462013, -0.015399736352264881, -0.014822130091488361, -0.01830640248954296, -0.025153834372758865, -0.003926793113350868, 0.044009894132614136, 0.025302894413471222, -0.006800851318985224, -0.0954727753996849, -0.047475531697273254, 0.017262984067201614, 0.014626489020884037, -0.03842015191912651, 0.02416631393134594, 0.018921272829174995, -0.04646937921643257, -0.011226062662899494, -0.027128875255584717, 0.04728920757770538, 0.06130082532763481, 0.011077003553509712, -0.035886138677597046, -0.05466766655445099, -0.039538100361824036, 0.03691092133522034, 0.03428374603390694, -0.0368177592754364, -0.012893669307231903, -0.0009485091431997716, -0.027669217437505722, -0.044270750135183334, -0.0203839223831892, 0.01822255551815033, 0.03830835968255997, 0.012418541125953197, -0.07564783096313477, -0.015930762514472008, -0.004425211809575558, -0.058841340243816376, -0.016769222915172577, 0.008901662193238735, 0.010974524542689323, 0.03950083628296852, -0.017756743356585503, -0.02863810583949089, -0.07169774174690247, 0.011840934865176678, 0.012679396197199821, -0.016741273924708366, 0.03441417217254639, 0.00723871449008584, -0.026234516873955727, -0.01659221388399601, -0.01580965146422386, -0.010033585131168365, 0.0649527907371521, -0.013927770778536797, -0.008584910072386265, -0.09010662138462067, -0.006330381613224745, 0.04073058068752289, -0.0044717928394675255, -0.00044543249532580376, -0.005654954817146063, 0.04482972249388695, 0.03726493939757347, -0.014263155870139599, -0.034935880452394485, -0.002620191080495715, -0.055003050714731216, 0.017523838207125664, -0.0547049306333065, 0.026439474895596504, -0.01822255551815033, -0.030240498483181, 0.053661514073610306, 0.0048584165051579475, 0.0368177592754364, 0.005259014666080475, 0.042482029646635056, -0.03849468380212784, 0.1085900366306305, -0.04032066464424133, -0.003889528103172779, -0.014878027141094208, 0.006307091098278761, 0.01483144611120224, 0.07639312744140625, 0.03074357472360134, -0.0468047633767128, 0.03292357549071312, -0.07307654619216919, 0.02263845130801201, -0.02569417655467987, 0.07877808064222336, -0.0010108115384355187, -0.016890333965420723, 0.04974869638681412, -0.02179998904466629, 0.031488873064517975, -0.014458796940743923, 0.011738455854356289, 0.06066732108592987, 0.04781091585755348, 0.017924435436725616, 0.024334006011486053, -0.026644431054592133, 0.004026942420750856, 0.04091690480709076, 0.0020449135918170214, 0.03357570990920067, 0.08041773736476898, 0.006013629492372274, -0.08183380961418152, -0.02748289331793785, 0.03063178062438965, -0.021781357005238533, 0.033277589827775955, 0.027445627376437187, 0.02351417765021324, 0.04974869638681412, -0.024147680029273033, -0.04054425284266472, -0.016871701925992966, 0.03335212171077728, 0.1159684956073761, 0.0001589582534506917, -0.014533326961100101, 0.02703571319580078, 0.026383576914668083, 0.029551098123192787, -0.0420721173286438, -0.09949739277362823, -0.03599793091416359, 0.025042040273547173, 0.008943585678935051, 0.05109023302793503, 0.037432633340358734, 0.027054347097873688, 0.0011290112743154168, 0.003724165027961135, -0.01134717371314764, 0.005710851866751909, 0.014281787909567356, -0.0008687389199621975, 0.05727621167898178, -0.013545805588364601, -0.041662201285362244, 0.027706483379006386, -0.007411065045744181, -0.022731613367795944, -0.03145160898566246, 0.004918972030282021, 0.03447007015347481, -0.006577261723577976, 0.024650758132338524, 0.009698200970888138, 0.021949049085378647, -0.06774765998125076, -0.011077003553509712, -0.001257691765204072, 0.0020286100916564465, -0.04430801421403885, -0.0012064523762091994, 0.04039519652724266, 0.004010639153420925, -0.0009007634944282472, -0.042742885649204254, 0.10061533749103546, -0.0161729846149683, 0.059549372643232346, 0.025601014494895935, 0.0376003235578537, -0.03691092133522034, 0.00012984502245672047, -0.03987348452210426, 0.006321065593510866, -0.023048365488648415, -0.007439013570547104, -0.07382184267044067, -0.02748289331793785, -0.021334178745746613, -0.03292357549071312, 0.009632986970245838, -0.00361935724504292, -0.04941330850124359, -0.0019820290617644787, -0.019135545939207077, -0.035774342715740204, -0.021054690703749657, 0.0007709184428676963, 0.02658853493630886, -0.024520330131053925, 0.04263108968734741, 0.0015476595144718885, -0.026625799015164375, 0.022358963266015053, -0.009893841110169888, -0.05176100134849548, -0.07009535282850266, 0.0018341337563470006, 0.0018993474077433348, -0.011393755674362183, -0.013052045367658138, -0.03400425612926483, -0.05563655495643616, -0.02371913380920887, 0.001628012047149241, -0.023961355909705162, 0.026364944875240326, 0.0069173043593764305, -0.030594514682888985, -0.026048192754387856, 0.05064305290579796, -0.01845546066761017, -0.0117664048448205, 0.032252807170152664, 0.042742885649204254, 0.0063117491081357, 0.05146288126707077, 0.038718272000551224, 0.0053288862109184265, 0.04013434052467346, -0.042295705527067184, 0.006642475724220276, 0.010424867272377014, 0.019340503960847855, 0.02461349219083786, 0.018287768587470055, 0.020626144483685493, -0.040246136486530304, 0.008990166708827019, -0.03875553607940674, 0.015157514251768589, -0.025097936391830444, 0.039426304399967194, 0.04479245841503143, -0.06927552074193954, 0.04922698438167572, 0.019415033981204033, 0.011030422523617744, 0.08421876281499863, 0.07460440695285797, -0.0063257236033678055, -0.008105124346911907, 0.0020402553491294384, -0.0523199737071991, 0.01911691389977932, 0.011840934865176678, 0.029774686321616173, -0.004641814157366753, -0.009428029879927635, 0.02737109735608101, -0.05563655495643616, -0.026197252795100212, 0.02487434819340706, 0.009726149030029774, 0.021259648725390434, -0.008277474902570248, 0.0008757261093705893, -0.03691092133522034, 0.03229007124900818, -0.017756743356585503, -0.06282868981361389, -0.015278625302016735, -0.017048709094524384, 0.017262984067201614, -0.06908919662237167, 0.026868021115660667, -0.00898085068911314, 0.0009409397025592625, 0.012865720316767693, -0.068381167948246, 0.044270750135183334, -0.029551098123192787, -0.005040083080530167, 0.0061207665130496025, 0.008603543043136597, -0.008971534669399261, -0.023290587589144707, -0.0040129683911800385, -0.023290587589144707, 0.026700329035520554, -0.04974869638681412, -0.018371615558862686, 0.003498246194794774, -0.01243717409670353, -0.07773466408252716, 0.051798265427351, -0.05593467503786087, 0.03842015191912651, -0.002389614237472415, 0.007397090550512075, 0.014933924190700054, -0.00031413178658112884, -0.006675082258880138, -0.03875553607940674, 0.02384956181049347, 0.0032420498318970203, 0.008365979418158531, 0.00930691882967949, 0.020570246502757072, 0.016992812976241112, -0.022358963266015053, 0.036221522837877274, -0.006847432814538479, -0.021632296964526176, 0.04020886868238449, -0.03294220566749573, -0.01049008034169674, 0.06189706549048424, -0.010322388261556625, 0.05064305290579796, 0.07143688946962357, -0.014924608170986176, 0.031302548944950104, -0.03165656700730324, -0.0507548488676548, 0.026812124997377396, -0.033594343811273575, -0.022787511348724365, 0.08556029945611954, -0.04646937921643257, 0.07177227735519409, -0.0560092031955719, -0.03804750367999077, -0.010014952160418034, -0.04281741753220558, 0.004385617561638355, -0.014030249789357185, 0.019265973940491676, 0.021427340805530548, 0.0067123472690582275, 0.006768244784325361, -0.006670424249023199, -0.007294612005352974, 0.01355512160807848, 0.04967416450381279, 0.015232044272124767, -0.025228364393115044, 0.010667089372873306, 0.011179481633007526, -0.02390545792877674, 0.0015919116558507085, 0.04430801421403885, -0.05388510227203369, 0.035643916577100754, -0.03592340275645256, 0.016480419784784317, -0.058133307844400406, -0.02435263805091381, 0.018893323838710785, -0.019526828080415726, -0.02364460378885269, -0.015651274472475052, 0.052506301552057266, -0.043190065771341324, 0.025731440633535385 ]
43,129
ltxpdflinks._extractor
__init__
null
def __init__(self, link_bbox, link_type, link_target, **kwargs): super().__init__() x, y, w, h = link_bbox self.link_bbox = (float(x), float(y), float(w), float(h)) self.link_type = link_type self.link_target = link_target self.dic = dict(kwargs)
(self, link_bbox, link_type, link_target, **kwargs)
[ 0.009244863875210285, -0.02847547084093094, -0.04531778022646904, -0.009543976746499538, -0.10425666719675064, 0.010620779357850552, -0.05301186442375183, 0.05220196023583412, -0.021646510809659958, 0.011973686516284943, -0.030426600947976112, 0.06803189218044281, 0.004113941453397274, 0.03858085721731186, -0.02597213163971901, -0.0023365255910903215, 0.023708084598183632, 0.013943225145339966, -0.016198068857192993, -0.02264048345386982, -0.0035939468070864677, 0.013234559446573257, -0.007519217673689127, 0.05466848611831665, 0.014881976880133152, 0.04653263837099075, -0.02179376594722271, 0.02280614525079727, 0.02275092527270317, 0.025567181408405304, -0.0033822674304246902, -0.04557547718286514, 0.011117765679955482, 0.08246289938688278, 0.025401517748832703, -0.05153931304812431, 0.010832458734512329, 0.030518636107444763, -0.1341494619846344, 0.012746776454150677, -0.007707888260483742, -0.027352649718523026, -0.00713267270475626, 0.014605873264372349, 0.05131842941045761, 0.016989566385746002, -0.024886125698685646, 0.018268845975399017, -0.06519722938537598, -0.08018044382333755, -0.05367451161146164, -0.031641457229852676, 0.041489146649837494, 0.037421222776174545, -0.06917311996221542, 0.026634780690073967, -0.027205394580960274, 0.09475870430469513, -0.015369758941233158, 0.06471864879131317, -0.05639873445034027, -0.002224933821707964, 0.007887355983257294, -0.06291477382183075, 0.01302288006991148, -0.0502876453101635, -0.09902910888195038, 0.006069674622267485, -0.010832458734512329, 0.047526609152555466, 0.07951779663562775, 0.029690325260162354, -0.012231383472681046, 0.018213624134659767, 0.0010112288873642683, -0.021352000534534454, -0.026395490393042564, 0.03854404389858246, 0.027923263609409332, -0.0019810423254966736, 0.016354529187083244, -0.004136950243264437, -0.0036675743758678436, -0.04458150640130043, 0.006778339855372906, -0.025732843205332756, 0.031457386910915375, 0.020744573324918747, 0.04049517586827278, -0.009461144916713238, -0.061810363084077835, -0.004491283092647791, -0.035028327256441116, -0.04399248585104942, -0.013151728548109531, 0.036556098610162735, 0.04366116225719452, -0.020818201825022697, 0.030555449426174164, 0.00396898714825511, -0.024757277220487595, -0.0752473995089531, -0.04944092780351639, 0.005549679510295391, -0.03298516198992729, -0.06063231825828552, -0.010979713872075081, -0.08084309101104736, -0.06464502215385437, 0.0335005521774292, -0.00141387979965657, -0.00013517565093934536, 0.00034685496939346194, 0.08312554657459259, 0.0073075382970273495, 0.012958455830812454, -0.0047489795833826065, -0.04863102361559868, 0.0023468793369829655, 0.002258296124637127, 0.010712814517319202, 0.024131443351507187, -0.032432954758405685, 0.030500229448080063, 0.019603345543146133, 0.029082898050546646, -0.02179376594722271, 0.011577938683331013, 0.024720463901758194, -0.053306374698877335, 0.05308549106121063, -0.05268054082989693, -0.03037138096988201, 0.02768397331237793, -0.0005688881501555443, -0.03129172697663307, -0.0293037798255682, 0.015581438317894936, -0.014881976880133152, 0.0250886008143425, 0.04682714864611626, 0.0029589086771011353, 0.04263037443161011, -0.061699919402599335, -0.02691088430583477, 0.028052112087607384, -0.02527266927063465, -0.057466331869363785, -0.0010957856429740787, -0.027205394580960274, 0.04480239003896713, -0.0422254242002964, 0.018756628036499023, 0.045096900314092636, -0.04542822390794754, -0.04815244302153587, -0.02264048345386982, -0.044139739125967026, 0.017394518479704857, 0.06869453936815262, 0.0332612618803978, -0.019566532224416733, 0.026653187349438667, -0.04101056605577469, -0.027186987921595573, -0.0064194053411483765, 0.05695094168186188, -0.1002807766199112, 0.030684297904372215, 0.01511206291615963, 0.009304686449468136, -0.06122134253382683, -0.037273965775966644, 0.003451293334364891, -0.0014875073684379458, 0.029193339869379997, 0.01096130721271038, -0.0018798044184222817, 0.01772584207355976, -0.009985742159187794, 0.020781386643648148, -0.001218306482769549, 0.015710286796092987, -0.001286181970499456, 0.04344027861952782, 0.020836608484387398, 0.0073673608712852, 0.029561476781964302, 0.008780090138316154, 0.014366582967340946, 0.013335797004401684, 0.01940087042748928, -0.036629725247621536, -0.0027702380903065205, -0.01093369722366333, -0.004804200027137995, 0.011200597509741783, -0.027996890246868134, -0.060853201895952225, 0.09527409821748734, 0.016658242791891098, -0.03539646416902542, -0.03674016892910004, 0.013160931877791882, 0.038249533623456955, -0.001295385416597128, 0.022364379838109016, 0.019566532224416733, 0.029708731919527054, -0.021223152056336403, -0.025493552908301353, -0.010390693321824074, 0.01766141876578331, -0.003119969042018056, 0.024720463901758194, -0.050582155585289, -0.1005016565322876, 0.05268054082989693, -0.0006925595225766301, 0.008697259239852428, 0.10447754710912704, -0.021591290831565857, 0.03964845836162567, -0.05717182159423828, 0.020339621230959892, -0.00037820421857759356, 0.08010681718587875, -0.03250658139586449, -0.021646510809659958, 0.0007408776436932385, -0.00694860378280282, -0.05481573939323425, -0.03594867140054703, 0.0674428716301918, 0.024628428742289543, -0.04056880250573158, -0.0067645348608493805, -0.015655066817998886, -0.0671483650803566, -0.03287471830844879, 0.06431370228528976, 0.03784457966685295, -0.01513967290520668, 0.008214077912271023, 0.010657593607902527, -0.01046432089060545, 0.023339945822954178, 0.03105243667960167, -0.05212833359837532, -0.06291477382183075, -0.02779441513121128, 0.01422853209078312, -0.012038110755383968, 0.03975889831781387, 0.015415776520967484, -0.03131013363599777, -0.017403721809387207, -0.05223877355456352, -0.0034996112808585167, -0.013602697290480137, -0.01692514307796955, -0.036482471972703934, -0.018747424706816673, 0.05643554776906967, 0.06438732892274857, 0.01584833860397339, -0.014918790198862553, 0.03027934581041336, -0.07458474487066269, -0.009093007072806358, 0.12273719161748886, -0.010896882973611355, 0.010142200626432896, 0.05389539524912834, 0.008545402437448502, -0.018075572326779366, 0.0076526678167283535, -0.017339296638965607, -0.011485903523862362, -0.024849312379956245, 0.06552855670452118, -0.0419309139251709, -0.023781711235642433, 0.017983539029955864, -0.013621103949844837, -0.021609697490930557, 0.01760619692504406, 0.07230228930711746, -0.0052137537859380245, -0.0335373654961586, -0.022990215569734573, 0.02192261442542076, 0.0030946596525609493, 0.05989604443311691, 0.015342148952186108, -0.0073489537462592125, 0.035746194422245026, 0.06972532719373703, 0.01387880090624094, -0.010243438184261322, 0.015783915296196938, -0.040679242461919785, 0.042519934475421906, 0.028162553906440735, -0.020670946687459946, -0.011660769581794739, 0.05812898278236389, 0.011439886875450611, 0.040789686143398285, -0.007358157075941563, 0.050729408860206604, 0.0418204702436924, -0.011743600480258465, 0.04447106271982193, -0.0421149805188179, -0.004038013052195311, 0.007095858920365572, -0.03806546330451965, -0.0168699212372303, 0.06932037323713303, -0.04977225139737129, -0.029763953760266304, -0.04881509020924568, -0.03545168414711952, 0.023211097344756126, -0.03015049733221531, 0.03580141440033913, -0.0009094157721847296, 0.023339945822954178, 0.05441078916192055, 0.0021328991279006004, 0.018683001399040222, 0.04528096690773964, -0.027536718174815178, -0.06284114718437195, 0.015710286796092987, -0.03548849746584892, 0.06567580997943878, -0.006865772884339094, -0.05812898278236389, -0.0027104157488793135, 0.00584879145026207, -0.009152829647064209, 0.040752869099378586, 0.0335005521774292, -0.02433391846716404, -0.03252498805522919, -0.04715847223997116, 0.0011256968136876822, -0.011752803809940815, -0.030610671266913414, 0.031457386910915375, 0.035009920597076416, 0.02337675914168358, 0.05684049800038338, 0.009033184498548508, -0.010022555477917194, -0.07130832225084305, -0.011890855617821217, 0.022345973178744316, 0.06136859580874443, 0.006902586668729782, -0.05455804243683815, -0.0012137048179283738, 0.03935394808650017, 0.040016595274209976, 0.000688533007632941, 0.009994945488870144, 0.08607064932584763, 0.002908289898186922, 0.019934669137001038, -0.06851047277450562, -0.04944092780351639, 0.03258020803332329, 0.04299851134419441, 0.01386959757655859, -0.022401195019483566, 0.032322511076927185, 0.013455442152917385, -0.026726815849542618, -0.023744897916913033, -0.004919243510812521, 0.08099035173654556, 0.027131766080856323, 0.011725193820893764, -0.03950120136141777, 0.044986456632614136, 0.03175189718604088, 0.07767710834741592, 0.032469768077135086, -0.009801672771573067, -0.0020868820138275623, 0.01606001891195774, -0.005641714204102755, -0.0030348373111337423, -0.028272993862628937, 0.06412962824106216, 0.022990215569734573, -0.04314576834440231, -0.024867719039320946, 0.031549423933029175, -0.03602229803800583, -0.055883340537548065, 0.04134189337491989, 0.02591691166162491, -0.01306889671832323, 0.014191717840731144, 0.06394556164741516, 0.056766871362924576, 0.0250701941549778, -0.004065623506903648, -0.006428609136492014, -0.02939581498503685, 0.013133320957422256, -0.023339945822954178, 0.00252634659409523, 0.0007748153293505311, -0.015406573191285133, -0.055036623030900955, -0.052643727511167526, 0.04472875967621803, 0.024113034829497337, -0.0036330614238977432, 0.008283103816211224, 0.05142887309193611, 0.013777562417089939, -0.016464969143271446, -0.039022620767354965, 0.06862091273069382, 0.006815153639763594, -0.029671918600797653, 0.026321863755583763, -0.02343198098242283, -0.018885476514697075, 0.04009022191166878, 0.05389539524912834, -0.009323093108832836, -0.02518063597381115, 0.00959919672459364, -0.019087953492999077, -0.011219004169106483, -0.060080114752054214, 0.014366582967340946, 0.025898505002260208, -0.0292669665068388, -0.04056880250573158, -0.015084451995790005, -0.022106682881712914, 0.021223152056336403, -0.02691088430583477, 0.03283790498971939, 0.01843450777232647, 0.05146568641066551, -0.04005340859293938, 0.0016991867450997233, -0.0670379176735878, -0.07432705163955688, -0.013473848812282085, 0.006782941520214081, -0.028015298768877983, -0.003333949251100421, -0.0678110122680664, -0.0502508282661438, -0.002009803196415305, -0.033592589199543, 0.058386679738759995, 0.02781282179057598, 0.0006833560764789581, -0.05382176861166954, -0.006212328094989061, 0.013667121529579163, -0.0000621951840003021, -0.00924026221036911, -0.0009341500699520111, 0.03027934581041336, 0.0024527190253138542, 0.014854365959763527, -0.028162553906440735, -0.051649753004312515, -0.05709819495677948, 0.009120617993175983, -0.047416169196367264, 0.02606416679918766, 0.022161904722452164, -0.020670946687459946, 0.028199367225170135, -0.030003242194652557, 0.013087304309010506, -0.006157107185572386, 0.06438732892274857, -0.038323160260915756, 0.0589388869702816, -0.02186739444732666, 0.011366259306669235, 0.012700758874416351, 0.0504348985850811, -0.004758182913064957, 0.041710030287504196, 0.013759155757725239, -0.014808349311351776, -0.027131766080856323, -0.0332612618803978, -0.008333723060786724, -0.0422254242002964, 0.029616698622703552, -0.010307862423360348, -0.05371132493019104, 0.03887536749243736, -0.04539141058921814, 0.06545493006706238, 0.019732194021344185, 0.0016658242093399167, 0.043256208300590515, 0.053490445017814636, 0.009746451862156391, 0.022033056244254112, -0.04561229050159454, 0.021572884172201157, -0.014974011108279228, -0.016492580994963646, 0.0753946527838707, 0.09085644781589508, 0.03620636835694313, -0.09107732772827148, -0.012102534994482994, 0.029193339869379997, 0.04384522885084152, -0.008950353600084782, 0.05374814197421074, 0.025714436545968056, 0.01603240706026554, -0.0422990508377552, -0.06405600160360336, 0.05194426327943802, 0.009433534927666187, 0.08503986895084381, 0.025843283161520958, 0.02433391846716404, -0.000160772746312432, -0.02593531832098961, 0.02435232512652874, -0.034789036959409714, -0.03206481412053108, -0.052459657192230225, -0.0008306112722493708, 0.006575864274054766, 0.03204640746116638, 0.04009022191166878, -0.001450693584047258, -0.008043814450502396, 0.0029773155692964792, -0.019548125565052032, -0.024610022082924843, 0.005499060731381178, -0.0503612719476223, 0.001395472907461226, 0.0006856569088995457, -0.10241597890853882, 0.03972208499908447, 0.01672266609966755, -0.020818201825022697, -0.006897985003888607, -0.008361333049833775, 0.024186663329601288, -0.02345038764178753, 0.0002556833205744624, -0.02192261442542076, 0.03596707805991173, -0.03594867140054703, 0.041489146649837494, -0.0027610345277935266, 0.003771112998947501, -0.04557547718286514, 0.010896882973611355, 0.023339945822954178, -0.0066448901779949665, -0.01761540025472641, 0.023671269416809082, 0.010142200626432896, -0.04793155938386917, 0.03552531078457832, 0.051760196685791016, -0.01945609040558338, 0.017127618193626404, -0.014403397217392921, -0.0016842311015352607, -0.02269570529460907, -0.02264048345386982, 0.010731221176683903, -0.05577290058135986, -0.030813146382570267, -0.007629659026861191, -0.04675351828336716, 0.004196772817522287, -0.04472875967621803, -0.023947373032569885, 0.0057567572221159935, -0.0504348985850811, -0.015406573191285133, -0.0019488302059471607, -0.017900707200169563, 0.014467821456491947, -0.03421842306852341, 0.08165299892425537, -0.025475146248936653, -0.007197096943855286, -0.012406248599290848, 0.032248884439468384, -0.07642544060945511, -0.05709819495677948, 0.014145700260996819, 0.012351028621196747, -0.005338000133633614, -0.022088276222348213, -0.054263532161712646, -0.06851047277450562, -0.0338686928153038, 0.05374814197421074, 0.02692929096519947, 0.022456414997577667, -0.017090804874897003, -0.05967516079545021, -0.03670335188508034, 0.0668906643986702, -0.058423493057489395, -0.03581982105970383, 0.0253278911113739, -0.034825850278139114, 0.0077723124995827675, 0.059086140245199203, 0.04855739697813988, -0.009682027623057365, 0.015747100114822388, -0.05396902188658714, 0.01850813627243042, 0.012700758874416351, 0.03751325607299805, 0.018811849877238274, 0.033169228583574295, 0.04804200306534767, -0.015001621097326279, 0.02523585595190525, 0.008582215756177902, -0.008402748964726925, -0.006548253819346428, 0.0418204702436924, 0.002613779390230775, -0.01584833860397339, 0.012433859519660473, 0.0014311362756416202, 0.0027334243059158325, 0.03751325607299805, 0.031641457229852676, 0.007164884824305773, 0.027407869696617126, -0.002466524252668023, -0.04620131105184555, 0.02271411195397377, 0.03891218081116676, -0.027941670268774033, -0.03858085721731186, 0.018287252634763718, 0.0250886008143425, -0.042519934475421906, -0.0169527530670166, 0.013538273051381111, -0.013924817554652691, -0.026597967371344566, -0.02109430357813835, 0.029064491391181946, -0.027058139443397522, -0.00485942093655467, -0.06328291445970535, -0.017155228182673454, -0.0031498803291469812, -0.029911208897829056, -0.008715665899217129, -0.04863102361559868, 0.05407946556806564, 0.010694407857954502, -0.002972713904455304, 0.010298659093677998, -0.04679033160209656, 0.024205069988965988, -0.009336899034678936, 0.03806546330451965, 0.0027886449825018644, 0.024628428742289543, -0.009318491443991661, 0.012967659160494804, 0.0147531284019351, -0.054116278886795044, 0.0025102405343204737, -0.013124117627739906, -0.021959427744150162, -0.055846527218818665, -0.05113436281681061, -0.08997291326522827, 0.029745547100901604, -0.02175695262849331, 0.030610671266913414, 0.004716767463833094, -0.058276236057281494, 0.028990862891077995, -0.031420573592185974, -0.0334637388586998, -0.014900383539497852, 0.01582993194460869, 0.021223152056336403, -0.011016528122127056, 0.03697945550084114, 0.007105062250047922, 0.027444684877991676, -0.012433859519660473, 0.011992094106972218, 0.04568592086434364, 0.01692514307796955, 0.02599053829908371, -0.06313566118478775, -0.027407869696617126, 0.01423773542046547, 0.007790719158947468, 0.009737248532474041, 0.03835997357964516, 0.02354242093861103, -0.02345038764178753, -0.019014324992895126, -0.0336662158370018, 0.02352401427924633, -0.041599586606025696, 0.008393545635044575, 0.04480239003896713, -0.051576126366853714, 0.03252498805522919, -0.05706138163805008, -0.0072707245126366615, 0.02359764277935028, -0.022069869562983513, 0.026634780690073967, 0.05735589191317558, -0.005830384790897369, 0.021167932078242302, -0.0029382009524852037, 0.002558558713644743, 0.024720463901758194, 0.027463091537356377, -0.005811977665871382, 0.017863893881440163, 0.033979132771492004, -0.024610022082924843, 0.009507162496447563, 0.0503244586288929, 0.023928966373205185, -0.0048272088170051575, 0.050803035497665405, -0.06622801721096039, 0.00803000945597887, -0.0044820792973041534, 0.01387880090624094, -0.0670747309923172, -0.014081276953220367, -0.04789474606513977, 0.010482728481292725, -0.023984188213944435, 0.025364704430103302, 0.05466848611831665, 0.01605081371963024, 0.03195437416434288 ]
43,130
ltxpdflinks._extractor
__repr__
null
def __repr__(self): return self.__class__.__name__ + '({!r}, {!r}, {!r}, **{!r})'.format( self.link_bbox, self.link_type, self.link_target, self.dic )
(self)
[ 0.023059118539094925, -0.030020693317055702, 0.02716241404414177, -0.002606206340715289, 0.0034676354844123125, -0.04860826954245567, 0.001993561629205942, -0.02838989533483982, 0.058217696845531464, -0.025812184438109398, -0.03847277909517288, 0.00954805314540863, 0.008070691488683224, 0.05555231124162674, -0.040401678532361984, 0.01795630156993866, -0.016316737979650497, -0.012634292244911194, -0.0030489766504615545, 0.020376194268465042, -0.005576273426413536, 0.03794671595096588, 0.04871348291635513, -0.03857799246907234, 0.021656282246112823, 0.02723255567252636, -0.0038709507789462805, 0.0012351532932370901, -0.010521270334720612, 0.020078090950846672, -0.050081249326467514, -0.09918051213026047, 0.008009317331016064, -0.011766287498176098, 0.003840263932943344, 0.0008521133568137884, -0.021305574104189873, 0.01946435123682022, -0.060076456516981125, -0.05709543079137802, 0.00477841030806303, 0.0032572101335972548, -0.040787458419799805, -0.022848693653941154, -0.0033974936231970787, -0.005896295420825481, 0.020200839266180992, 0.04355806112289429, -0.05720064043998718, -0.11454156786203384, -0.02810932882130146, 0.020954864099621773, -0.014291392639279366, 0.022866228595376015, -0.06277691572904587, -0.0360528863966465, -0.002959107281640172, 0.041979871690273285, -0.01381793525069952, 0.07954080402851105, -0.0349130816757679, 0.005199261475354433, 0.023059118539094925, -0.0537286214530468, 0.023900819942355156, -0.04804713651537895, -0.07589343190193176, 0.01469470839947462, -0.024567166343331337, 0.040682245045900345, 0.05306227505207062, -0.032335370779037476, -0.016088776290416718, 0.01785985752940178, -0.050116319209337234, -0.058848973363637924, 0.012187138199806213, 0.010608947835862637, 0.01876293309032917, -0.0664944276213646, -0.005168574396520853, -0.021200360730290413, -0.012213441543281078, -0.058813903480768204, 0.00015083227481227368, -0.049976035952568054, -0.008934312500059605, -0.015624087303876877, -0.04720543324947357, -0.012327422387897968, -0.026110287755727768, 0.00973217561841011, -0.05257128179073334, 0.01674635522067547, -0.07189535349607468, -0.007549011614173651, 0.016790194436907768, -0.041874658316373825, 0.07143943011760712, -0.00706240301951766, 0.031388457864522934, -0.07659485191106796, -0.07056265324354172, 0.023760536685585976, -0.07063280045986176, -0.03636852651834488, -0.031528741121292114, -0.006242620758712292, -0.061233796179294586, 0.01723734848201275, -0.023865750059485435, 0.06800247728824615, 0.033142004162073135, -0.0046600461937487125, 0.06782712787389755, -0.016316737979650497, -0.012888556346297264, -0.022112203761935234, 0.01974491775035858, -0.0027004594448953867, 0.013651348650455475, 0.03738558292388916, -0.04678458347916603, -0.001545311650261283, -0.05607837438583374, 0.04345284774899483, -0.0537286214530468, -0.003923557233065367, -0.0005378451896831393, -0.11334915459156036, 0.032405514270067215, -0.021288037300109863, -0.054430041462183, 0.050431959331035614, 0.06284705549478531, 0.006198782008141279, -0.03882348909974098, 0.01834208145737648, 0.0193416029214859, 0.12071404606103897, 0.01941174454987049, -0.015264610759913921, 0.01411603856831789, 0.005663950927555561, -0.020884722471237183, -0.031896986067295074, -0.0015288721770048141, 0.03668416291475296, 0.022953905165195465, -0.06186507269740105, 0.04710022360086441, -0.011275295168161392, 0.02874060533940792, 0.01930653117597103, -0.048748552799224854, 0.032791294157505035, -0.02710980735719204, -0.012353725731372833, -0.003013905603438616, -0.007439414970576763, -0.023672858253121376, -0.04432962089776993, 0.016062473878264427, -0.029424486681818962, 0.008066307753324509, 0.0021020621061325073, 0.06551244854927063, -0.06382904201745987, 0.029231596738100052, 0.024111244827508926, -0.01886814460158348, -0.070001520216465, -0.05709543079137802, 0.030687039718031883, 0.0020954865030944347, 0.07203563302755356, 0.010223167948424816, 0.08950094133615494, 0.0018368385499343276, -0.03519365191459656, 0.0343870185315609, -0.040261395275592804, -0.040962815284729004, 0.011047334410250187, 0.04292678460478783, -0.05278170853853226, 0.023655323311686516, 0.0026544288266450167, 0.0364035964012146, 0.01823686994612217, 0.009267485700547695, 0.020569084212183952, -0.01937667280435562, 0.011713681742548943, -0.030055763199925423, -0.05485089123249054, -0.020481407642364502, -0.04496089741587639, -0.0058699920773506165, 0.05204521864652634, -0.005072129424661398, -0.009889994747936726, -0.049905892461538315, 0.04839784651994705, 0.021358178928494453, -0.01444044429808855, 0.04317228123545647, -0.01920131966471672, 0.0561835840344429, -0.01379163283854723, 0.012730737216770649, 0.012643060646951199, -0.0008954039658419788, -0.014212483540177345, 0.024444419890642166, -0.032510727643966675, -0.07343847304582596, 0.013335710391402245, -0.05323762819170952, 0.03571971505880356, 0.0350007601082325, -0.051238588988780975, 0.042751431465148926, -0.04650401696562767, -0.0586385503411293, -0.026180429384112358, 0.06270677596330643, 0.00875457376241684, 0.003982739523053169, -0.0356145016849041, 0.04429455101490021, -0.039770402014255524, -0.040541961789131165, 0.0547807514667511, 0.0009556820732541382, 0.025461474433541298, -0.0372803695499897, 0.010003974661231041, -0.004425509367138147, 0.022620731964707375, 0.004458388313651085, 0.032440584152936935, 0.005593808833509684, 0.01708829775452614, 0.061093512922525406, -0.04681965336203575, 0.03559696674346924, 0.04471540078520775, -0.03510597348213196, -0.03808699920773506, 0.01373025868088007, -0.007917256094515324, -0.02796904556453228, 0.009898762218654156, 0.02696952410042286, -0.05734092369675636, -0.041383665055036545, -0.03678937628865242, 0.011906571686267853, 0.013090214692056179, -0.025742042809724808, 0.008153985254466534, -0.02821454033255577, 0.033212143927812576, 0.051238588988780975, 0.0397353321313858, -0.04808220639824867, 0.0041537098586559296, -0.032247696071863174, 0.0038884864188730717, 0.10444115102291107, -0.0011430921731516719, -0.0556575208902359, 0.0682479739189148, -0.0350884385406971, -0.043277494609355927, 0.02016576938331127, 0.005045826081186533, -0.04699501022696495, -0.07680527865886688, 0.025794649496674538, -0.032019734382629395, -0.01951695792376995, -0.01353736873716116, -0.00968833640217781, -0.016772659495472908, 0.024777593091130257, 0.04674951359629631, 0.014913901686668396, 0.006689774803817272, 0.05439497157931328, 0.02616289258003235, 0.0002849510929081589, 0.03766614943742752, 0.03571971505880356, -0.007864650338888168, 0.03682444617152214, 0.030616898089647293, 0.014045896008610725, 0.016264131292700768, -0.0038775266148149967, -0.031493671238422394, 0.07582329213619232, 0.021673817187547684, -0.058708690106868744, -0.01417741272598505, 0.023900819942355156, 0.021305574104189873, 0.03822728246450424, 0.002279608743265271, -0.0022818006109446287, 0.004752107430249453, 0.022445376962423325, 0.07150956988334656, -0.021235430613160133, 0.02730269730091095, -0.03585999831557274, -0.012976233847439289, 0.0196046344935894, 0.0904829278588295, -0.04853812977671623, 0.020902257412672043, -0.033913563936948776, 0.015755603089928627, 0.04822248965501785, -0.05779684707522392, -0.022024527192115784, 0.00432248879224062, 0.04836277291178703, 0.022410307079553604, 0.001181451021693647, -0.02789890207350254, 0.022690873593091965, 0.03431687876582146, -0.007299131713807583, 0.04650401696562767, 0.0004844168433919549, 0.03598274663090706, -0.032598402351140976, -0.06344326585531235, 0.011932875029742718, 0.022042062133550644, -0.01769326999783516, 0.004664429929107428, -0.011906571686267853, 0.023497505113482475, -0.060286879539489746, 0.02016576938331127, 0.011924106627702713, -0.012564150616526604, -0.05453525483608246, 0.023778071627020836, 0.03854292258620262, 0.026005074381828308, 0.0006438798736780882, 0.01341462042182684, -0.022848693653941154, -0.015834512189030647, -0.030985143035650253, 0.06996645033359528, 0.0773664116859436, -0.0031607651617377996, -0.007961095310747623, -0.0036342223174870014, 0.020726904273033142, 0.0050896648317575455, 0.023234473541378975, 0.0063916719518601894, 0.07764697819948196, -0.01431769598275423, -0.05418454483151436, -0.032458119094371796, -0.03906898573040962, -0.04418933764100075, -0.03489554673433304, 0.03878841921687126, 0.024321671575307846, 0.01349352952092886, -0.021814100444316864, -0.060602519661188126, 0.03424673527479172, 0.015571480616927147, 0.05264142528176308, 0.05327270179986954, 0.029810266569256783, 0.004510995000600815, 0.04699501022696495, 0.032212622463703156, 0.033387500792741776, 0.031861916184425354, -0.029687518253922462, -0.012607989832758904, 0.022796086966991425, 0.0074744862504303455, -0.021270502358675003, -0.04818741977214813, 0.04499596729874611, -0.01451058592647314, -0.07722612470388412, -0.023725464940071106, 0.022936370223760605, -0.011871500872075558, -0.060953229665756226, -0.003943284507840872, 0.003121310379356146, -0.00861429050564766, 0.02632071264088154, 0.07119393348693848, 0.022953905165195465, -0.021042540669441223, 0.0009107475052587688, -0.0024483874440193176, -0.08374931663274765, -0.022831156849861145, 0.05365848168730736, 0.014107270166277885, -0.022006990388035774, 0.0012603605864569545, -0.01451935339719057, 0.0031848764047026634, 0.008772109635174274, 0.01756175421178341, 0.020884722471237183, 0.023865750059485435, 0.01354613620787859, 0.006133024115115404, -0.02784629724919796, 0.02681170403957367, 0.07624414563179016, 0.041383665055036545, -0.01328310463577509, -0.00015192825230769813, 0.030459078028798103, 0.021708888933062553, 0.030353866517543793, -0.025934932753443718, 0.008162752725183964, -0.04310213774442673, 0.005878760013729334, 0.015290913172066212, -0.003697788342833519, -0.03557943180203438, -0.015922190621495247, 0.004482499789446592, -0.01869279146194458, -0.004006850533187389, -0.03493062034249306, -0.029669983312487602, 0.03678937628865242, 0.0015902462182566524, 0.0356145016849041, 0.01948188617825508, 0.01437030266970396, -0.02944202348589897, -0.03917419910430908, -0.032037269324064255, -0.026127822697162628, -0.02609275095164776, -0.007150080054998398, -0.007202686741948128, -0.042190294712781906, -0.0027179948519915342, -0.013274336233735085, 0.05569259449839592, -0.01853497140109539, -0.005357080139219761, 0.03826235607266426, 0.003671484999358654, -0.07680527865886688, -0.024760056287050247, 0.029968086630105972, 0.016711285337805748, -0.03906898573040962, 0.0077594369649887085, 0.00012987192894797772, 0.07694555819034576, -0.011871500872075558, -0.006299610715359449, -0.05506131798028946, -0.050712525844573975, -0.04748600348830223, -0.08424030989408493, -0.0018751972820609808, 0.001398452208377421, -0.012485241517424583, 0.04296185448765755, -0.01948188617825508, 0.07343847304582596, -0.0038008091505616903, 0.03480787202715874, 0.008548532612621784, 0.07975123077630997, -0.0801720842719078, 0.010836908593773842, -0.005313241854310036, 0.05474567785859108, -0.014607030898332596, -0.009697104804217815, -0.05720064043998718, 0.016036169603466988, -0.0006214125314727426, -0.04674951359629631, 0.010635251179337502, -0.030003156512975693, 0.05453525483608246, -0.015404894016683102, 0.02793397381901741, 0.031283244490623474, -0.016193989664316177, 0.01983259618282318, 0.05625372752547264, -0.04766135662794113, 0.06288212537765503, 0.0291439201682806, -0.007636689115315676, -0.02816193550825119, -0.004958149045705795, 0.020235911011695862, -0.011889035813510418, -0.00646181358024478, 0.05509638786315918, 0.050572242587804794, -0.055482167750597, -0.032580867409706116, -0.042611148208379745, 0.03998082876205444, 0.012038087472319603, 0.04019125550985336, -0.03966519236564636, 0.05534188449382782, 0.040366608649492264, 0.004668813664466143, -0.011485720984637737, -0.011652307584881783, -0.01806151494383812, 0.0988999456167221, -0.04292678460478783, 0.049976035952568054, 0.0035290096420794725, 0.016632376238703728, 0.032335370779037476, -0.055482167750597, -0.05271156504750252, -0.051203519105911255, 0.012292351573705673, -0.04257607460021973, 0.060497306287288666, 0.009206111542880535, 0.032475654035806656, -0.024391813203692436, 0.021305574104189873, -0.02623303420841694, -0.025268584489822388, -0.0190785713493824, -0.00882471539080143, 0.0693001002073288, 0.0026544288266450167, 0.0002737174218054861, 0.004936229437589645, 0.022217417135834694, -0.016404414549469948, -0.002167820231989026, 0.031055284664034843, -0.006650319788604975, 0.03970026224851608, 0.042611148208379745, 0.0042260438203811646, 0.03472019359469414, -0.02882828190922737, 0.0041186390444636345, -0.008912392891943455, -0.0027201869525015354, 0.025917397812008858, 0.0002468662860337645, 0.021112684160470963, 0.01725488342344761, 0.016001099720597267, 0.04418933764100075, 0.03542160987854004, -0.01392314862459898, 0.0008290980476886034, 0.04411919414997101, 0.00680813891813159, 0.005545586347579956, -0.02661881409585476, 0.011485720984637737, -0.033510249108076096, -0.00418439693748951, 0.023953426629304886, -0.05744613707065582, -0.059936173260211945, -0.032651010900735855, -0.023743001744151115, -0.007399960421025753, 0.041032955050468445, -0.03682444617152214, 0.01718474179506302, -0.011240224353969097, -0.0041646696627140045, 0.03826235607266426, 0.02856525033712387, 0.00909213162958622, 0.022568125277757645, 0.031020212918519974, 0.000594561395701021, -0.00843016803264618, 0.02765340730547905, 0.015133094042539597, -0.04790685325860977, -0.0005967533215880394, -0.015606551431119442, 0.04394384101033211, -0.03984054550528526, -0.06354847550392151, -0.042050011456012726, -0.07547257840633392, -0.024654844775795937, 0.04759121313691139, -0.026250571012496948, 0.030529221519827843, 0.007987397722899914, -0.01871032640337944, -0.0586385503411293, 0.04857319965958595, -0.02647853083908558, 0.003044592682272196, -0.0034237969666719437, 0.012651828117668629, 0.058954186737537384, 0.004879239480942488, 0.023778071627020836, 0.02656620927155018, 0.010722928680479527, -0.050467029213905334, -0.03980547562241554, -0.00910089910030365, 0.03847277909517288, 0.011196386069059372, -0.024304134771227837, 0.04780163988471031, -0.024374276399612427, -0.014984043315052986, -0.06575794517993927, 0.0029963701963424683, -0.02675909921526909, 0.06544230133295059, 0.012011784128844738, -0.06793233752250671, 0.008903625421226025, -0.03589506819844246, -0.0041646696627140045, 0.03682444617152214, 0.03650880977511406, -0.010179329663515091, 0.015702996402978897, 0.02863539196550846, -0.05674472078680992, 0.020867187529802322, -0.03375574201345444, -0.01795630156993866, -0.030564291402697563, -0.03443962708115578, 0.011941642500460148, -0.10423072427511215, 0.02609275095164776, 0.04650401696562767, -0.031896986067295074, 0.016325505450367928, 0.006667855195701122, -0.023059118539094925, -0.04443483427166939, 0.023129260167479515, -0.04411919414997101, -0.05509638786315918, -0.0517997220158577, -0.00909213162958622, 0.022655803710222244, -0.0031037749722599983, 0.04418933764100075, -0.04766135662794113, -0.00696157431229949, -0.020078090950846672, -0.06502145528793335, 0.0004751011438202113, 0.01923638954758644, 0.04738079011440277, -0.0038117687217891216, 0.03519365191459656, 0.0046162074431777, -0.01949942111968994, -0.03387849032878876, -0.042786501348018646, 0.006045346613973379, -0.022725945338606834, 0.05713050067424774, -0.02751312218606472, 0.03784150257706642, -0.09749710559844971, 0.0332472138106823, -0.030774716287851334, 0.05309734493494034, 0.02796904556453228, 0.032212622463703156, -0.00974094308912754, 0.042330577969551086, 0.0069528063759207726, 0.05509638786315918, 0.01956956274807453, 0.00047866301611065865, 0.0069221192970871925, 0.020306052640080452, 0.07024701684713364, 0.023813143372535706, 0.005111583974212408, 0.010731696151196957, -0.030353866517543793, -0.008162752725183964, 0.032580867409706116, -0.041769444942474365, -0.004340024199336767, -0.0004685253370553255, 0.025286121293902397, 0.040156181901693344, 0.013063911348581314, 0.06386411190032959, 0.07883939146995544, -0.041383665055036545, -0.03450976684689522, -0.02016576938331127, -0.0182017982006073, -0.0004194808716420084, 0.06281198561191559, -0.05509638786315918, 0.023252008482813835, 0.016720052808523178, 0.003903829725459218, 0.011959177441895008, -0.0029284204356372356, 0.016886640340089798, 0.04468033090233803, -0.004201932344585657, 0.04713529348373413, 0.03336996212601662, -0.010126722976565361, 0.011362972669303417, -0.0020384963136166334, -0.015317216515541077, 0.05253621190786362, -0.00686951307579875, -0.011406810954213142, 0.04906419292092323, 0.05439497157931328, -0.024742521345615387, -0.02884581685066223, 0.06519680470228195, -0.05411440134048462, 0.03864813596010208, 0.006277691572904587, 0.041383665055036545, -0.06456553190946579, -0.020481407642364502, -0.021428320556879044, 0.01717597432434559, 0.00233879080042243, -0.023883285000920296, 0.05418454483151436, -0.0400860421359539, -0.012958698906004429 ]
43,131
ltxpdflinks._linkconverter
LatexRefsLinkConverter
null
class LatexRefsLinkConverter: def __init__(self): super().__init__() def convertLinks(self, extracted_links): """ Go over URI hyperlinks, and convert those whose "protocol" in the URL is "latexref". Conversion is performed in-place, directly modifying the input object hierarchy. This function doesn't return anything. Argument `extracted_links` is a :py:class:`ExtractedGraphicLinks` instance. """ for lnk in extracted_links.links: if lnk.link_type == 'URI': uri = lnk.link_target m = _rx_latexrefurl.match(uri) if m is None: continue # found match! change link type. ref_type, ref_target = m.group('ref_type'), m.group('ref_target') ref_target = urllib.parse.unquote(ref_target) if ref_type == 'ref': lnk.link_type = 'latex-ref' lnk.link_target = ref_target continue if ref_type == 'cite': lnk.link_type = 'latex-cite' lnk.link_target = ref_target continue logger.warning("Unsupported ref_type in special URL %r", uri) # done! everything was modified in-place, so we don't return anything return
()
[ -0.01956731081008911, -0.06589716672897339, -0.01881975308060646, -0.003588274586945772, -0.03158429265022278, -0.00940987654030323, -0.032799072563648224, 0.01032563392072916, 0.05154407024383545, 0.025342190638184547, 0.027061572298407555, 0.00045933888759464025, 0.05431003123521805, 0.028276352211833, -0.05580514669418335, -0.018483351916074753, -0.025809412822127342, 0.02386576496064663, 0.038798220455646515, 0.006999004632234573, -0.014773599803447723, 0.02278180606663227, 0.037452615797519684, -0.015511812642216682, -0.0024038637056946754, 0.03173380345106125, 0.019698133692145348, 0.005415117833763361, -0.021978182718157768, -0.017960062250494957, -0.02356674149632454, -0.009475287981331348, 0.00963414367288351, 0.0267812367528677, 0.04679708182811737, -0.03307940810918808, -0.02218376100063324, 0.04776890575885773, -0.03124789148569107, 0.02248278446495533, -0.04141467064619064, 0.024575943127274513, -0.0036630304530262947, -0.009255693294107914, -0.00126267084851861, 0.006891543045639992, -0.11213358491659164, 0.022221138700842857, -0.08933308720588684, -0.06395351886749268, 0.012362727895379066, -0.07494261115789413, 0.042386494576931, 0.0311544481664896, 0.004106892738491297, 0.01743677258491516, -0.002473947126418352, 0.15982773900032043, 0.02872488647699356, 0.005924391094595194, 0.019492555409669876, -0.0015091311652213335, -0.029883600771427155, -0.02317427471280098, 0.022464094683527946, -0.012521583586931229, 0.01010136678814888, -0.03644341602921486, -0.020782090723514557, 0.03803197294473648, -0.04754463955760002, -0.008307229727506638, -0.010120055638253689, -0.03868608549237251, 0.03935888782143593, 0.03554634749889374, 0.003457452170550823, -0.019772889092564583, 0.03094886988401413, -0.02035224623978138, 0.009349137544631958, 0.006723342929035425, 0.01668921485543251, -0.02881833165884018, 0.03799459710717201, -0.0580478198826313, 0.09815426170825958, 0.0033313019666820765, 0.008568874560296535, 0.01886647567152977, -0.01956731081008911, -0.0035462246742099524, -0.00755032803863287, -0.011185324750840664, -0.020856846123933792, 0.037172283977270126, -0.008438052609562874, -0.0763629674911499, 0.035527657717466354, -0.01892254315316677, 0.010465800762176514, 0.046722326427698135, -0.07856826484203339, 0.025865480303764343, 0.00010176706564379856, -0.03235054016113281, 0.004275092855095863, -0.03554634749889374, -0.0113161476328969, -0.03278038278222084, -0.06724277138710022, -0.028052084147930145, 0.02326771803200245, -0.019529933109879494, 0.029883600771427155, -0.08043716102838516, -0.0255103912204504, -0.03418205305933952, -0.0169321708381176, -0.02055782452225685, -0.024501187726855278, 0.016278058290481567, -0.03319153934717178, 0.03876084089279175, -0.03089280240237713, -0.0006874022074043751, 0.03644341602921486, 0.02926686592400074, 0.0592065304517746, -0.05468381196260452, -0.031117068603634834, 0.012624372728168964, -0.05393625423312187, 0.06451418995857239, 0.03481747955083847, -0.03292989730834961, -0.12828081846237183, 0.02797732874751091, -0.026949437335133553, 0.02233327180147171, -0.02281918376684189, -0.01960468851029873, 0.039396267384290695, -0.0012381416745483875, -0.04350782930850983, -0.005522578954696655, 0.05842159688472748, 0.013717674650251865, -0.06578503549098969, -0.0211932472884655, 0.025080544874072075, -0.019623376429080963, 0.00658784806728363, 0.04119040444493294, -0.016876105219125748, 0.023903142660856247, -0.049151886254549026, -0.010475145652890205, -0.013334551826119423, 0.06742966175079346, 0.01728725992143154, 0.0001487084082327783, -0.02857537567615509, 0.002999573480337858, 0.011998293921351433, -0.029341621324419975, 0.047170862555503845, -0.11295589804649353, 0.010391045361757278, 0.019623376429080963, 0.013530786149203777, 0.05049749091267586, -0.056328438222408295, 0.009671521373093128, 0.06724277138710022, 0.08544579148292542, 0.05307656154036522, 0.05916915461421013, 0.018053507432341576, 0.045675747096538544, -0.006555142346769571, -0.010250878520309925, -0.020277488976716995, 0.018941231071949005, 0.039732664823532104, 0.04104088991880417, -0.010391045361757278, 0.017988095059990883, -0.022071627900004387, -0.02638876996934414, 0.04709610342979431, 0.0013339223805814981, 0.015409023500978947, 0.0030019094701856375, -0.0022601925302296877, -0.03268694132566452, -0.06855099648237228, -0.01762366108596325, -0.058159951120615005, 0.0621967613697052, -0.028799641877412796, 0.0010740294819697738, -0.007709183730185032, 0.026818616315722466, -0.00933044869452715, -0.01200763788074255, 0.027005504816770554, 0.015035244636237621, -0.07961484789848328, -0.004106892738491297, -0.000155935762450099, 0.004581124056130648, -0.01109188050031662, -0.020127978175878525, 0.018754342570900917, -0.016399536281824112, 0.01757693849503994, 0.06701850891113281, -0.028594063594937325, -0.011830093339085579, -0.0005922054988332093, -0.010447111912071705, 0.0155211566016078, 0.011353525333106518, 0.04343307390809059, -0.025342190638184547, 0.06989660114049911, 0.010727446526288986, 0.04877810925245285, -0.051319804042577744, 0.007555000018328428, -0.09090296179056168, -0.015885591506958008, 0.025790724903345108, 0.0761387050151825, -0.05715075135231018, 0.019828954711556435, 0.020071910694241524, 0.011475003324449062, 0.03025737777352333, -0.033845651894807816, 0.06799033284187317, 0.04055497795343399, 0.033845651894807816, 0.0066532595083117485, 0.020782090723514557, 0.05958031117916107, -0.029734088107943535, -0.05696386098861694, -0.03891035541892052, 0.029621955007314682, -0.018062852323055267, -0.004761005286127329, 0.01653970405459404, -0.008461412973701954, -0.02584679052233696, -0.09082820266485214, -0.03442500904202461, -0.02410872094333172, -0.04866597428917885, 0.02713632769882679, -0.028631441295146942, -0.009998577646911144, 0.0057001239620149136, 0.008811830542981625, -0.04986206814646721, 0.023734942078590393, 0.020015845075249672, 0.004265748430043459, 0.041377291083335876, 0.10196680575609207, 0.010344322770833969, -0.03722834959626198, 0.05987933278083801, -0.014708188362419605, 0.04133991524577141, -0.022314583882689476, -0.027211083099246025, 0.004658216144889593, 0.008909947238862514, 0.007386799901723862, -0.02515530027449131, -0.01314766239374876, -0.009671521373093128, 0.09785524010658264, -0.040181200951337814, -0.006886871065944433, 0.048852864652872086, -0.02248278446495533, -0.03692932799458504, 0.010213500820100307, 0.037415239959955215, 0.0038148779422044754, -0.01742742769420147, -0.010054645128548145, 0.02128669247031212, -0.0466475710272789, -0.02416478656232357, 0.009199625812470913, -0.007316716481000185, -0.024968411773443222, 0.00933044869452715, 0.04148942604660988, 0.004985272418707609, -0.08514676988124847, -0.046722326427698135, -0.0010115383192896843, -0.026575658470392227, 0.04859121888875961, 0.01886647567152977, 0.03905986621975899, -0.01346537470817566, -0.037415239959955215, -0.001050668302923441, -0.07841875404119492, -0.01247486099600792, 0.025230055674910545, 0.05423527583479881, 0.005298311822116375, 0.035920124500989914, -0.06215938180685043, 0.0375460609793663, -0.035284701734781265, 0.021155869588255882, 0.0317898727953434, -0.01861417479813099, -0.014708188362419605, 0.013054218143224716, 0.03457451984286308, -0.03025737777352333, 0.016259370371699333, 0.03610701486468315, 0.006690637208521366, 0.0024926362093538046, -0.052515894174575806, -0.05046011134982109, -0.0026304670609533787, -0.0521794930100441, 0.012400105595588684, -0.04859121888875961, -0.023996587842702866, 0.026482215151190758, -0.021772604435682297, -0.011110569350421429, 0.01941779814660549, 0.01887582056224346, -0.036069635301828384, -0.008652974851429462, -0.020669957622885704, -0.049936823546886444, -0.03050033561885357, 0.002721575554460287, -0.011596481315791607, 0.024033965542912483, -0.036050945520401, -0.005919718649238348, -0.01017612311989069, -0.09037967026233673, 0.02059520222246647, -0.045937392860651016, 0.05117029324173927, 0.0062888250686228275, -0.05277753993868828, -0.03775164112448692, 0.045825257897377014, -0.02921079844236374, 0.02857537567615509, 0.028220284730196, 0.04776890575885773, -0.01609116978943348, 0.0009706563432700932, 0.013381274417042732, -0.013988664373755455, -0.051917850971221924, 0.013306519016623497, -0.027996018528938293, 0.004859121982008219, -0.006335547659546137, -0.03821886330842972, -0.01032563392072916, 0.04844170808792114, 0.021081114187836647, 0.0010740294819697738, 0.017399394884705544, 0.02386576496064663, -0.0647384524345398, 0.08544579148292542, 0.027715684846043587, 0.05027322471141815, 0.023435918614268303, 0.025659902021288872, -0.004490015562623739, 0.026108436286449432, 0.0015605257358402014, 0.03169642761349678, -0.061523959040641785, 0.0036513498052954674, 0.02902390994131565, -0.00532167311757803, 0.021660471335053444, 0.0033032684586942196, 0.07804497331380844, -0.00602718023583293, -0.010120055638253689, -0.030369512736797333, 0.02921079844236374, 0.08238080888986588, 0.07393340766429901, -0.00008840740338200703, 0.0621967613697052, -0.013231762684881687, 0.010839579626917839, -0.028612753376364708, -0.05348771810531616, -0.033789586275815964, 0.052067361772060394, 0.023062139749526978, -0.02623925916850567, -0.07954008877277374, 0.014539987780153751, -0.010007922537624836, 0.03965790942311287, -0.014941800385713577, 0.05733763799071312, 0.010035955347120762, -0.06215938180685043, 0.016950860619544983, -0.019679443910717964, -0.021025046706199646, 0.0651869922876358, 0.025977613404393196, -0.050983402878046036, 0.0034667965956032276, -0.0817827582359314, 0.018801063299179077, 0.02010929025709629, -0.0026304670609533787, 0.006756048649549484, -0.03289251774549484, -0.0155491903424263, 0.006695309188216925, 0.001757927588187158, 0.0046348548494279385, -0.014353098347783089, 0.010970402508974075, -0.0692237988114357, -0.013680296950042248, -0.006031852215528488, -0.08948259800672531, 0.01639019139111042, -0.020184045657515526, 0.05307656154036522, 0.04590001329779625, -0.025435633957386017, -0.01951124332845211, -0.027902573347091675, 0.0662335678935051, -0.0019179515074938536, 0.0016492981230840087, 0.05733763799071312, 0.0436573401093483, -0.019137464463710785, 0.048105306923389435, 0.03040689043700695, -0.025435633957386017, -0.00854551326483488, 0.006793426349759102, -0.030761979520320892, -0.08963210880756378, -0.02638876996934414, 0.05857110768556595, -0.023548051714897156, 0.03520994633436203, 0.013558818958699703, -0.00126267084851861, 0.028500618413090706, -0.03554634749889374, -0.045825257897377014, 0.013427997007966042, -0.05759928375482559, -0.02500578947365284, -0.061038047075271606, 0.07176549732685089, 0.0055833179503679276, -0.013334551826119423, 0.011774025857448578, 0.06638307869434357, -0.008381985127925873, -0.02158571407198906, 0.014287687838077545, -0.03448107838630676, 0.06047737970948219, -0.028220284730196, 0.025977613404393196, -0.012811262160539627, -0.04021858051419258, -0.011222702451050282, 0.025529079139232635, 0.0003401969443075359, -0.021361447870731354, 0.0467597059905529, -0.05752452835440636, -0.01709102652966976, -0.018109573051333427, 0.10592886060476303, 0.046871837228536606, -0.005214211530983448, 0.02317427471280098, -0.04709610342979431, -0.008110996335744858, -0.06970971077680588, -0.007583033759146929, 0.0467597059905529, 0.00901273638010025, -0.0028991203289479017, 0.005742174107581377, -0.015268856659531593, 0.028295040130615234, 0.03520994633436203, -0.01247486099600792, 0.011942226439714432, 0.016371503472328186, -0.0126991281285882, -0.05135717988014221, 0.00913421530276537, 0.014371787197887897, -0.038947731256484985, 0.035770613700151443, 0.04339569807052612, 0.00358360237441957, 0.03463058918714523, -0.027547484263777733, -0.027491416782140732, -0.04175107181072235, 0.026407459750771523, 0.05849635228514671, 0.018156295642256737, -0.04219960421323776, 0.011521725915372372, 0.027397971600294113, 0.008629613555967808, 0.010951713658869267, -0.11938489228487015, -0.02788388542830944, 0.021529648452997208, 0.003445771522819996, 0.043545208871364594, 0.028052084147930145, 0.015773456543684006, -0.0084660854190588, -0.03722834959626198, 0.012661750428378582, -0.013493407517671585, 0.06664472818374634, 0.005489873234182596, 0.04926402121782303, -0.013138318434357643, -0.009325776249170303, 0.036069635301828384, -0.004793710540980101, -0.014418509788811207, -0.025491701439023018, 0.00893330853432417, 0.006886871065944433, -0.017763828858733177, 0.03534076735377312, 0.019343042746186256, 0.016371503472328186, -0.014689499512314796, 0.015680013224482536, 0.036723747849464417, -0.016567736864089966, -0.02564121223986149, -0.008153045549988747, 0.005452495533972979, -0.0032495378982275724, -0.0042236982844769955, -0.0635797455906868, 0.084548719227314, -0.013998009264469147, 0.0410035140812397, 0.005260934121906757, -0.011727304197847843, -0.04709610342979431, 0.0762508362531662, -0.04302191734313965, -0.0008567706681787968, 0.040779247879981995, 0.0296593327075243, -0.0367424376308918, -0.07494261115789413, -0.001587391016073525, -0.037508685141801834, -0.016063135117292404, -0.029248176142573357, -0.0023653178941458464, 0.013325207866728306, -0.010942368768155575, -0.0005016810027882457, -0.0014916103100404143, -0.012334694154560566, 0.016259370371699333, -0.01786661706864834, 0.016763970255851746, 0.0011055670911446214, -0.024725455790758133, 0.039695288985967636, -0.0578235499560833, -0.01176468189805746, -0.03917199745774269, 0.016857415437698364, 0.03659292683005333, 0.031771183013916016, -0.0016679870896041393, -0.03554634749889374, -0.0408913791179657, -0.04485343396663666, -0.015567879192531109, -0.013100940734148026, 0.005690779536962509, 0.017455460503697395, -0.01344668585807085, -0.02584679052233696, 0.004212017636746168, -0.026463525369763374, -0.011549758724868298, 0.040966134518384933, 0.020726023241877556, -0.015605256892740726, 0.01559591293334961, 0.05109553784132004, -0.048404328525066376, 0.04294716194272041, -0.0024786193389445543, 0.034144677221775055, -0.008054928854107857, 0.006788753904402256, 0.019044021144509315, 0.020483067259192467, 0.024183476343750954, -0.024725455790758133, -0.02629532478749752, -0.005896357819437981, -0.0025744002778083086, -0.03365876525640488, 0.01086761336773634, 0.04212484881281853, -0.08596908301115036, 0.037172283977270126, 0.03799459710717201, -0.0036770470906049013, 0.06339285522699356, 0.02623925916850567, 0.006120624952018261, -0.004665224347263575, 0.06750442087650299, -0.037564750760793686, -0.02227720618247986, 0.002190109109506011, 0.015913624316453934, -0.021978182718157768, 0.02773437276482582, 0.037359170615673065, -0.018941231071949005, -0.0015722062671557069, -0.0026444836985319853, 0.0467597059905529, 0.045937392860651016, -0.005097405984997749, 0.03913462162017822, -0.023136897012591362, 0.007526966743171215, -0.0331728532910347, -0.021567026153206825, -0.004817071836441755, -0.018231051042675972, 0.03448107838630676, -0.034331563860177994, 0.02614581398665905, 0.00915757566690445, -0.04986206814646721, 0.03730310499668121, -0.06787819415330887, 0.09284660965204239, -0.032948583364486694, -0.04481605440378189, 0.04799317568540573, 0.014810977503657341, 0.016081824898719788, -0.021529648452997208, -0.021679159253835678, 0.049936823546886444, 0.019585998728871346, -0.049151886254549026, -0.042012717574834824, 0.008811830542981625, -0.04287240654230118, -0.06742966175079346, 0.0352473221719265, -0.048852864652872086, 0.0807361826300621, -0.0015955674462020397, -0.011858126148581505, 0.022837873548269272, 0.01197960413992405, -0.03264956176280975, -0.037901151925325394, -0.001906270976178348, -0.033602695912122726, 0.00968086626380682, 0.009839721955358982, 0.009699555113911629, 0.04477867856621742, 0.009423892945051193, 0.02698681503534317, -0.039583154022693634, -0.008405346423387527, 0.03461189940571785, 0.02010929025709629, -0.003557905089110136, 0.06451418995857239, -0.03806935250759125, 0.05659008026123047, 0.03371483087539673, -0.019735511392354965, 0.000651776441372931, -0.020539134740829468, -0.0239592082798481, 0.03586405888199806, -0.04892762005329132, -0.010886302217841148, 0.06571028381586075, -0.023903142660856247, 0.010278912261128426, -0.04021858051419258, -0.06118755787611008, -0.009970544837415218, -0.02782781794667244, -0.019885022193193436, -0.02278180606663227, 0.012026326730847359, -0.009293070994317532, -0.026071058586239815, -0.008139029145240784, -0.011166635900735855, -0.024276921525597572, 0.03332236409187317, 0.0481426864862442, -0.005307656247168779, -0.04051760211586952, 0.014885732904076576, 0.0021305379923433065, -0.041713692247867584, -0.0354715920984745, 0.07019562274217606, -0.042386494576931, 0.02323034033179283, -0.007022365462034941, 0.009096836671233177, -0.011876814998686314, 0.013811119832098484, 0.05288967490196228, 0.0013093932066112757, 0.008461412973701954, -0.001886413898319006, 0.01781989447772503, -0.0551697239279747, 0.04006906598806381 ]
43,132
ltxpdflinks._linkconverter
__init__
null
def __init__(self): super().__init__()
(self)
[ -0.014454630203545094, -0.022647887468338013, 0.0020159725099802017, 0.016024285927414894, -0.04650320112705231, -0.0025830320082604885, -0.005912081804126501, 0.08031116425991058, 0.01880136877298355, 0.009995773434638977, -0.0038184889126569033, 0.03149660304188728, -0.006356242578476667, 0.04191497713327408, -0.013902663253247738, 0.0041397507302463055, 0.05305780470371246, 0.005028072278946638, -0.026684144511818886, -0.03011668659746647, -0.022147666662931442, 0.005799963604658842, 0.008960835635662079, 0.027287857607007027, -0.0249247495085001, 0.09162648767232895, -0.06878885626792908, -0.009797410108149052, 0.030668653547763824, -0.024079550057649612, -0.03144485875964165, -0.006287246476858854, 0.015532690100371838, 0.055576153099536896, 0.0029236990958452225, -0.05774952471256256, -0.059025947004556656, 0.03465316444635391, -0.06637400388717651, 0.07034126669168472, 0.04909054562449455, -0.002654183888807893, -0.016800489276647568, -0.03059965744614601, 0.01398028340190649, 0.014989348128437996, 0.02432103641331196, -0.009530051611363888, 0.01286772545427084, 0.004872831515967846, 0.006722782738506794, -0.00017774515436030924, 0.0034368557389825583, 0.0039823539555072784, -0.06561505049467087, 0.11149729043245316, 0.05157439410686493, 0.03322150185704231, -0.03560185804963112, 0.0337907150387764, -0.04840058833360672, 0.016559002920985222, 0.012772856280207634, -0.013790545053780079, -0.03092738799750805, -0.02940947934985161, -0.03843068704009056, -0.01229850947856903, 0.03080664575099945, 0.05623161420226097, 0.01892211101949215, -0.007028951775282621, -0.018249401822686195, 0.034118447452783585, 0.05229885131120682, -0.014221768826246262, -0.060681845992803574, 0.01567930541932583, 0.01637788861989975, -0.03103088214993477, 0.012203640304505825, -0.007115196902304888, -0.05081544071435928, 0.061682287603616714, 0.021112728863954544, -0.04729665443301201, -0.006045761052519083, -0.02409680001437664, -0.013721548952162266, 0.033118005841970444, -0.10659858584403992, 0.04505428671836853, -0.001965303672477603, 0.033825214952230453, 0.01627439633011818, -0.013117835856974125, -0.009849157184362411, -0.03649880364537239, 0.0017475354252383113, 0.025959687307476997, -0.026114927604794502, 0.0569215752184391, -0.041052527725696564, -0.033083509653806686, 0.023820815607905388, 0.0020687973592430353, -0.048055607825517654, -0.025286978110671043, -0.009279941208660603, 0.003682653419673443, -0.026580650359392166, 0.013557683676481247, -0.03092738799750805, 0.07996618747711182, -0.01811140961945057, -0.041638992726802826, -0.026891130954027176, -0.0040276325307786465, 0.0876937210559845, 0.0033958894200623035, -0.010383875109255314, 0.060854338109493256, -0.04005208984017372, 0.01608465611934662, 0.05423073470592499, 0.021819936111569405, -0.017654312774538994, -0.008516674861311913, 0.05816349759697914, -0.0488145612180233, 0.03011668659746647, 0.01830114796757698, -0.055162180215120316, -0.03580884635448456, -0.004135438706725836, 0.004288522992283106, 0.07120371609926224, -0.003464885288849473, -0.020802248269319534, 0.06585653871297836, -0.012841852381825447, 0.00393707538023591, 0.049987491220235825, -0.00793020986020565, -0.03449792414903641, 0.05450671911239624, -0.03611932694911957, 0.03161734715104103, 0.008723662234842777, -0.014765110798180103, 0.05685257911682129, 0.00023313050041906536, 0.03618832305073738, 0.00475208880379796, -0.011832787655293941, -0.022751379758119583, -0.013894038274884224, -0.04819360002875328, 0.0461927205324173, -0.034014951437711716, 0.003451948519796133, 0.010840972885489464, 0.02176818996667862, -0.044295333325862885, -0.0370507687330246, 0.0480211079120636, -0.03446342423558235, -0.053954754024744034, 0.011625800281763077, -0.0012527058133855462, -0.02390706166625023, -0.07610242068767548, -0.03874116763472557, -0.004286366980522871, -0.02887476235628128, 0.024372782558202744, 0.01900835521519184, 0.05498969182372093, -0.03135861083865166, 0.06426963210105896, 0.06285521388053894, -0.056093621999025345, -0.03898265212774277, 0.017447324469685555, 0.04909054562449455, 0.014351136051118374, 0.057818520814180374, 0.04543376341462135, 0.02523523010313511, 0.015299828723073006, 0.017852675169706345, 0.00678746635094285, -0.008257940411567688, -0.009547300636768341, 0.01678323931992054, 0.02126796916127205, 0.002134558977559209, -0.039120644330978394, -0.04270843043923378, 0.030237430706620216, -0.01637788861989975, 0.042466942220926285, -0.006770217325538397, -0.050090983510017395, 0.014963474124670029, 0.023924309760332108, -0.002966821426525712, 0.010806474834680557, -0.023613829165697098, -0.03101363405585289, -0.019353335723280907, -0.04050056263804436, 0.004972013179212809, -0.001528689288534224, 0.019198093563318253, -0.09176447987556458, 0.009840533137321472, -0.049159541726112366, 0.012505496852099895, 0.044502321630716324, 0.13185106217861176, 0.020922990515828133, -0.03387695923447609, -0.02625291980803013, -0.05926743149757385, 0.03404945135116577, 0.020181285217404366, -0.06585653871297836, -0.016231272369623184, -0.035739850252866745, -0.04219096153974533, -0.047227658331394196, -0.01646413467824459, 0.0013173894258216023, -0.010306254960596561, 0.012608991004526615, 0.016541754826903343, 0.022423651069402695, -0.11549904942512512, -0.0589914508163929, 0.024545272812247276, 0.026011433452367783, 0.014118275605142117, -0.019646568223834038, 0.00890046451240778, 0.013781920075416565, -0.011004837229847908, 0.011867285706102848, -0.002928011352196336, -0.00008981588325696066, 0.02357933111488819, -0.06544256210327148, 0.00010847979865502566, 0.001877980655990541, -0.023751819506287575, -0.04864207282662392, -0.019318837672472, -0.009047080762684345, 0.02756384015083313, -0.0036589361261576414, 0.01164304930716753, -0.006602040026336908, 0.007641289848834276, 0.06030236929655075, -0.010633984580636024, 0.020974736660718918, -0.01688673347234726, -0.0029711336828768253, -0.03691277652978897, 0.014221768826246262, 0.12805628776550293, 0.0033894209191203117, 0.005385988391935825, 0.060336869210004807, -0.04084554314613342, -0.05402374640107155, -0.04526127502322197, 0.021112728863954544, -0.07706835865974426, 0.007184192538261414, 0.06437312811613083, 0.014161397702991962, 0.0051315659657120705, 0.03653329983353615, -0.03539486974477768, -0.052126362919807434, 0.0028978255577385426, 0.012126020155847073, -0.04291541501879692, -0.03618832305073738, 0.0161795262247324, 0.038085706532001495, -0.001022540032863617, 0.05837048590183258, 0.06047486141324043, -0.012979843653738499, -0.003958636894822121, 0.06920283287763596, -0.018352895975112915, -0.014480503275990486, 0.048987049609422684, -0.06554605811834335, 0.008551172912120819, 0.054058246314525604, -0.014075152575969696, -0.0022747067268937826, 0.008352809585630894, 0.04319139942526817, 0.02114722691476345, -0.0038896407932043076, 0.03404945135116577, 0.06271722167730331, 0.02675313875079155, 0.06351067870855331, -0.03154835104942322, 0.015273955650627613, 0.042156461626291275, -0.04457131773233414, 0.00026493327459320426, 0.0697203055024147, -0.05260933190584183, 0.013790545053780079, 0.0018467169720679522, 0.0014467566506937146, 0.005381675902754068, 0.025959687307476997, 0.017024725675582886, 0.025649206712841988, -0.014256266877055168, 0.030478915199637413, -0.0345841683447361, -0.020698754116892815, 0.024372782558202744, -0.03722326084971428, -0.07016877830028534, -0.028943758457899094, -0.0033657036256045103, -0.016964353621006012, -0.0031479354947805405, -0.07872426509857178, 0.05857747420668602, 0.01831839792430401, -0.0174904465675354, 0.004437295254319906, -0.010685731656849384, -0.035032641142606735, -0.019163597375154495, -0.04029357433319092, 0.004195809829980135, -0.02756384015083313, 0.02126796916127205, -0.026494406163692474, 0.0014952693600207567, 0.022923870012164116, 0.02206142246723175, -0.03622281923890114, -0.05278182402253151, 0.018473638221621513, 0.005735279992222786, -0.03977610543370247, 0.014808233827352524, 0.011962154880166054, -0.040638554841279984, 0.016050158068537712, 0.03467041254043579, -0.02513173781335354, 0.005364426877349615, 0.0020278310403227806, 0.009987148456275463, -0.022820375859737396, 0.018663376569747925, -0.05481719970703125, -0.02256164140999317, 0.03529137745499611, 0.02614942565560341, -0.016653873026371002, 0.0011168703204020858, 0.03611932694911957, 0.004247556906193495, 0.0055412291549146175, 0.04188048094511032, 0.042466942220926285, -0.0021733692847192287, -0.01567930541932583, -0.02989245019853115, -0.06451112031936646, 0.03853417932987213, 0.022630637511610985, 0.045088786631822586, -0.008460615761578083, -0.0056749084033071995, -0.04636520892381668, -0.03894815593957901, -0.05388575792312622, -0.030064940452575684, -0.0415010005235672, 0.031082628294825554, 0.005825836677104235, -0.03670579195022583, -0.0067529683001339436, 0.050090983510017395, -0.015541314147412777, 0.0587499625980854, 0.003326893551275134, 0.04181148484349251, 0.01297121960669756, 0.04470930993556976, -0.010099266655743122, 0.027598338201642036, -0.02723611146211624, -0.03189333155751228, -0.015170461498200893, -0.03639530763030052, -0.05319579690694809, 0.008206193335354328, -0.05205736681818962, 0.034204691648483276, 0.006412301678210497, 0.020319277420639992, -0.01861163042485714, -0.01861163042485714, 0.07713735848665237, 0.008357121609151363, 0.04495079442858696, 0.006964268162846565, 0.01646413467824459, -0.0498494990170002, 0.023820815607905388, 0.024838505312800407, -0.02237190306186676, -0.08755572885274887, 0.07058275490999222, -0.03237630054354668, -0.0014499909011647105, 0.028409039601683617, -0.01525670662522316, 0.0017151936190202832, -0.027425849810242653, -0.029633715748786926, 0.08727974444627762, 0.018025165423750877, -0.05809450149536133, 0.052229855209589005, 0.017680184915661812, 0.05561065301299095, -0.03059965744614601, -0.043570876121520996, 0.06309670209884644, 0.014627119526267052, -0.048366088420152664, 0.01210877113044262, 0.016222648322582245, 0.05298881232738495, -0.024355534464120865, -0.05550716072320938, -0.04888355731964111, -0.06382115930318832, -0.018335646018385887, 0.03884466364979744, 0.0012548619415611029, -0.03732675313949585, 0.02968546375632286, 0.0006737875519320369, -0.06513208150863647, -0.024752259254455566, 0.03953462094068527, 0.03163459524512291, -0.012686611153185368, -0.05947441980242729, 0.004282054957002401, 0.03301451355218887, 0.016127780079841614, -0.03567085415124893, -0.09749113023281097, -0.026304665952920914, 0.00321693136356771, -0.019974296912550926, -0.05185037851333618, 0.011056584306061268, -0.012643489055335522, -0.02683938480913639, -0.050194479525089264, 0.026304665952920914, 0.060957830399274826, -0.023820815607905388, -0.004868519492447376, 0.007701661437749863, -0.04395035281777382, 0.03774072974920273, -0.002067719353362918, -0.02135421521961689, 0.05850847810506821, -0.03387695923447609, 0.016248522326350212, 0.015903541818261147, 0.0376027375459671, -0.02927148900926113, -0.013894038274884224, -0.0018186874222010374, -0.047055166214704514, 0.007253188639879227, 0.013031590729951859, -0.027632836252450943, 0.0003296168870292604, 0.016421010717749596, -0.020802248269319534, -0.021216223016381264, -0.012195016257464886, -0.034411679953336716, -0.035360369831323624, -0.0009131169063039124, 0.026563400402665138, -0.03770622983574867, -0.0002309743722435087, 0.04281192272901535, -0.025097239762544632, -0.09307539463043213, 0.01017688773572445, 0.008305375464260578, 0.005459296517074108, 0.06385565549135208, 0.034325432032346725, 0.03368722274899483, -0.03467041254043579, -0.03009943850338459, 0.019163597375154495, -0.006744344253093004, 0.017257586121559143, 0.04684818163514137, 0.03173809126019478, -0.0011373533634468913, -0.01921534352004528, -0.04912504181265831, 0.03470491245388985, -0.008460615761578083, 0.07320459187030792, -0.03794771432876587, -0.032807525247335434, 0.009469679556787014, 0.028133057057857513, 0.025700952857732773, 0.0053385538049042225, 0.08107011765241623, -0.00833987258374691, -0.002395449671894312, -0.03649880364537239, -0.058025509119033813, 0.042052969336509705, -0.0018035945249721408, 0.012203640304505825, 0.02642541006207466, -0.051091425120830536, -0.020060542970895767, 0.016800489276647568, -0.0224581491202116, -0.033307746052742004, 0.014747862704098225, -0.0028396102134138346, 0.021837186068296432, 0.03467041254043579, 0.015455069951713085, 0.035360369831323624, -0.02928873710334301, -0.007891399785876274, -0.02104373276233673, 0.00031721917912364006, -0.007766345050185919, 0.060164377093315125, -0.025700952857732773, -0.001454303041100502, -0.019267089664936066, -0.053230296820402145, 0.0008101621642708778, 0.05316130071878433, -0.025700952857732773, 0.07237664610147476, 0.011091082356870174, 0.045399267226457596, -0.01636926457285881, -0.055679649114608765, -0.005381675902754068, 0.010487368330359459, -0.02835729345679283, -0.019077351316809654, -0.059025947004556656, -0.02928873710334301, -0.0032794589642435312, 0.02420029416680336, 0.033704470843076706, -0.07389455288648605, -0.023458588868379593, 0.04746914282441139, -0.0020364555530250072, -0.05026347562670708, 0.0016364952316507697, -0.03794771432876587, -0.03189333155751228, -0.07534346729516983, 0.031669095158576965, -0.012677987106144428, -0.00017666710482444614, 0.047055166214704514, -0.011763791553676128, 0.01737832836806774, 0.025269728153944016, -0.019750060513615608, 0.01408377755433321, 0.04415734112262726, -0.010401124134659767, -0.007861214689910412, 0.002861171495169401, -0.029633715748786926, 0.010409748181700706, -0.029133496806025505, -0.005821524653583765, -0.027322355657815933, -0.057715024799108505, 0.032997265458106995, 0.02816755510866642, 0.019456828013062477, 0.003126374213024974, 0.01952582411468029, 0.010849596932530403, 0.04860757291316986, -0.03618832305073738, 0.028046810999512672, 0.04219096153974533, -0.08148409426212311, 0.005847398191690445, 0.00762835331261158, 0.07824128866195679, -0.027132617309689522, 0.0054506720043718815, -0.0819670632481575, 0.03663679584860802, -0.013566308654844761, -0.014868604950606823, -0.009831908158957958, 0.03974160924553871, 0.04005208984017372, 0.013816418126225471, -0.053851258009672165, 0.03142760694026947, -0.013091961853206158, -0.0618547759950161, -0.05481719970703125, -0.023734571412205696, -0.012419252656400204, 0.01093584205955267, -0.020819496363401413, 0.0009648638078942895, 0.056507598608732224, -0.014816857874393463, 0.016507256776094437, -0.029219741001725197, -0.04533027112483978, 0.0019609914161264896, 0.01561031024903059, 0.011496433056890965, 0.004036257043480873, -0.008766785264015198, 0.04760713502764702, 0.007343745324760675, 0.054058246314525604, 0.07969020307064056, 0.00985778123140335, -0.004258337430655956, -0.025304226204752922, -0.03135861083865166, 0.030047690495848656, 0.004579599481076002, 0.02511448785662651, -0.052436843514442444, 0.004262649454176426, -0.000057103497965727, 0.01530845370143652, -0.019577572122216225, -0.04750363901257515, 0.04771062731742859, -0.009754288010299206, -0.03161734715104103, 0.0394311249256134, -0.012134644202888012, -0.029840704053640366, -0.017145467922091484, 0.05885345861315727, -0.059853896498680115, 0.02054351381957531, 0.01687810942530632, -0.10294180363416672, -0.016817737370729446, -0.027805326506495476, -0.01606740802526474, 0.03794771432876587, -0.009780161082744598, 0.01047874428331852, -0.08341597765684128, -0.07962121069431305, 0.02664964646100998, -0.012143269181251526, 0.054161738604307175, -0.0229756161570549, -0.0249247495085001, -0.0026671206578612328, 0.012772856280207634, 0.02949572540819645, -0.01082372386008501, -0.0022553016897290945, 0.009581798687577248, -0.00828381348401308, 0.065511554479599, 0.05833598971366882, -0.006830588914453983, -0.055265672504901886, 0.04319139942526817, -0.00640798918902874, 0.06499408930540085, 0.00151251838542521, -0.028426289558410645, -0.016964353621006012, -0.01950857602059841, -0.042259957641363144, 0.04108702763915062, 0.01799066737294197, 0.09369636327028275, 0.011315318755805492, -0.05319579690694809, -0.02846078760921955, -0.019801808521151543, 0.007317872252315283, 0.019491326063871384, -0.03216931223869324, -0.04874556511640549, 0.04512328281998634, 0.02411404810845852, -0.013816418126225471, 0.033290497958660126, 0.03213481605052948, 0.020509015768766403, 0.02106098271906376, -0.00260674930177629, -0.06433862447738647, -0.04729665443301201, 0.04129401594400406, 0.026684144511818886, 0.026511654257774353, 0.0331525057554245, 0.02602868340909481, 0.009392059408128262, 0.049987491220235825, -0.008891839534044266, 0.01790442317724228, 0.019663816317915916, 0.04853857681155205, -0.02949572540819645, -0.009642169810831547, -0.004700342193245888, -0.005230747628957033, -0.0012548619415611029, -0.025045491755008698, -0.013350696302950382, -0.06771942228078842, 0.0293749812990427, -0.024459028616547585, 0.038499683141708374, 0.06389015167951584, 0.06699496507644653, 0.01778367906808853 ]
43,133
ltxpdflinks._linkconverter
convertLinks
Go over URI hyperlinks, and convert those whose "protocol" in the URL is "latexref". Conversion is performed in-place, directly modifying the input object hierarchy. This function doesn't return anything. Argument `extracted_links` is a :py:class:`ExtractedGraphicLinks` instance.
def convertLinks(self, extracted_links): """ Go over URI hyperlinks, and convert those whose "protocol" in the URL is "latexref". Conversion is performed in-place, directly modifying the input object hierarchy. This function doesn't return anything. Argument `extracted_links` is a :py:class:`ExtractedGraphicLinks` instance. """ for lnk in extracted_links.links: if lnk.link_type == 'URI': uri = lnk.link_target m = _rx_latexrefurl.match(uri) if m is None: continue # found match! change link type. ref_type, ref_target = m.group('ref_type'), m.group('ref_target') ref_target = urllib.parse.unquote(ref_target) if ref_type == 'ref': lnk.link_type = 'latex-ref' lnk.link_target = ref_target continue if ref_type == 'cite': lnk.link_type = 'latex-cite' lnk.link_target = ref_target continue logger.warning("Unsupported ref_type in special URL %r", uri) # done! everything was modified in-place, so we don't return anything return
(self, extracted_links)
[ -0.028059232980012894, -0.034226302057504654, -0.026009753346443176, -0.0026759677566587925, -0.029233025386929512, -0.00980023667216301, -0.026326492428779602, 0.009716394357383251, 0.04203295707702637, 0.04482769966125488, 0.015594673343002796, 0.003714681137353182, 0.05552225559949875, 0.023773958906531334, -0.04158579558134079, -0.017383309081196785, -0.03528830409049988, 0.03307114169001579, 0.03353693336248398, -0.011886979453265667, -0.03681609779596329, 0.01183108426630497, 0.01699204556643963, -0.01973089575767517, 0.011672715656459332, 0.03191598132252693, 0.01367561612278223, 0.01011697482317686, -0.017252888530492783, 0.0016279385890811682, -0.014346354641020298, 0.00612980592995882, 0.015799621120095253, 0.019134683534502983, 0.0649125948548317, -0.031971875578165054, -0.006222964264452457, 0.039797160774469376, -0.04240558668971062, 0.028245549649000168, -0.041474007070064545, 0.0062043326906859875, -0.01694546639919281, 0.0023079931270331144, 0.0018468602793291211, 0.00457406509667635, -0.08607812970876694, 0.022041216492652893, -0.07706041634082794, -0.07202988117933273, -0.006614228244870901, -0.05078982189297676, 0.04765970632433891, 0.045833807438611984, 0.012604297138750553, 0.019470052793622017, -0.013442720286548138, 0.16649223864078522, 0.01085292361676693, 0.006758623290807009, 0.028431866317987442, -0.0027644680812954903, -0.027015862986445427, -0.035232409834861755, 0.025450805202126503, -0.0017898008227348328, 0.01952594704926014, -0.013479983434081078, -0.03627578169107437, 0.03191598132252693, -0.0737067237496376, 0.0165448859333992, -0.018789997324347496, -0.03193461149930954, 0.027164915576577187, 0.03575409576296806, 0.02902807854115963, -0.031319767236709595, 0.021295951679348946, -0.027127651497721672, 0.008398206904530525, -0.006893702782690525, 0.01566920056939125, -0.013051455840468407, 0.03161787614226341, -0.049448344856500626, 0.0897299274802208, 0.020364370197057724, -0.006176385097205639, 0.016330622136592865, -0.008733576163649559, 0.004956013523042202, 0.006986861117184162, -0.014746934175491333, -0.03957358002662659, 0.04303906485438347, -0.02729533612728119, -0.08689791709184647, 0.07154545933008194, -0.02233932353556156, 0.02053205482661724, 0.00564538361504674, -0.08496022969484329, 0.019786790013313293, -0.0042154062539339066, -0.04482769966125488, 0.005752515513449907, -0.05582036077976227, -0.023699432611465454, -0.03489704057574272, -0.06375743448734283, -0.03607083484530449, 0.04113863781094551, -0.016554202884435654, 0.026102911680936813, -0.091742143034935, -0.008291075006127357, -0.03912642225623131, -0.004904776345938444, -0.009949290193617344, -0.044306013733148575, 0.021649952977895737, -0.029419342055916786, 0.0378594696521759, -0.019470052793622017, -0.0010352198733016849, 0.03193461149930954, 0.01915331557393074, 0.043225377798080444, -0.043076325207948685, -0.027835654094815254, -0.005426461808383465, -0.04605738818645477, 0.062453221529722214, 0.0298292376101017, -0.038865577429533005, -0.1328807771205902, 0.022525640204548836, -0.005491672549396753, -0.007815968245267868, -0.03724462538957596, -0.013228456489741802, 0.040244318544864655, -0.0011260490864515305, -0.0466163344681263, -0.004783670883625746, 0.05958395078778267, 0.0022276442032307386, -0.06189427152276039, -0.021854901686310768, 0.031394295394420624, -0.02865544520318508, 0.012976929545402527, 0.03318293020129204, -0.04534938558936119, 0.03294071927666664, -0.0468771792948246, -0.02263742871582508, -0.02017805352807045, 0.046765390783548355, 0.018361469730734825, 0.0006369688198901713, -0.0234385896474123, -0.010443028062582016, 0.023028694093227386, -0.033853668719530106, 0.06562060117721558, -0.10485880821943283, 0.011011293157935143, 0.020662477239966393, 0.015184777788817883, 0.0631612241268158, -0.061633430421352386, -0.009190050885081291, 0.04616917669773102, 0.05246666818857193, 0.05201950669288635, 0.03737504780292511, 0.029195763170719147, 0.05842879042029381, -0.00856123398989439, -0.00612980592995882, -0.004091971553862095, 0.022115744650363922, 0.03476661816239357, 0.029139867052435875, -0.014113458804786205, 0.018408048897981644, -0.03128250688314438, -0.032773036509752274, 0.055634044110774994, -0.002715559909120202, -0.0005711758858524263, -0.0021950388327240944, -0.0019691302441060543, -0.03502746298909187, -0.06714839488267899, -0.016237465664744377, -0.06461448967456818, 0.06614228338003159, -0.04602012410759926, -0.009003735147416592, -0.03353693336248398, 0.0030369556043297052, 0.01393645815551281, -0.013088718988001347, 0.017383309081196785, 0.0166659913957119, -0.043225377798080444, -0.0018049391219392419, 0.01030329056084156, 0.011001977138221264, 0.00031382651650346816, -0.02995966002345085, 0.005827041808515787, 0.0009537065052427351, 0.015203408896923065, 0.05813068151473999, -0.027966074645519257, -0.012958298437297344, -0.028916288167238235, -0.0036960493307560682, 0.022730587050318718, -0.01694546639919281, 0.025506699457764626, -0.026084281504154205, 0.0634220689535141, 0.023829853162169456, 0.05011908337473869, -0.0659187063574791, 0.0005985411116853356, -0.08339516818523407, -0.03310840576887131, 0.02649417705833912, 0.08279895782470703, -0.060627322643995285, 0.027388494461774826, 0.014933250844478607, 0.0012203716905787587, 0.03199050575494766, -0.03707694262266159, 0.07247703522443771, 0.025879332795739174, 0.04166032373905182, 0.004411038011312485, 0.024724172428250313, 0.04885213077068329, -0.041250426322221756, -0.06249048560857773, -0.041921164840459824, 0.017057256773114204, -0.023773958906531334, -0.002529243705794215, 0.017904995009303093, -0.008896603249013424, -0.020886056125164032, -0.06752102077007294, -0.038940105587244034, -0.023270905017852783, -0.06837807595729828, 0.044529594480991364, -0.03154334798455238, -0.013694247230887413, 0.007862547412514687, 0.025860700756311417, -0.035381462424993515, 0.04382159188389778, 0.01973089575767517, 0.003162719076499343, 0.0375986285507679, 0.10798892378807068, 0.001857340568676591, -0.03163650631904602, 0.06301216781139374, -0.019265104085206985, 0.05623025819659233, -0.00618570065125823, -0.04900118336081505, -0.0033513642847537994, 0.009301841259002686, 0.01129076723009348, -0.02301006205379963, -0.027015862986445427, 0.0014381288783624768, 0.10254848748445511, -0.03389093279838562, -0.01124418806284666, 0.05283930152654648, -0.04087779298424721, -0.032586719840765, 0.027481652796268463, 0.03431946039199829, -0.0039009973406791687, -0.027015862986445427, -0.017811836674809456, 0.03623851761221886, -0.02830144390463829, -0.023252272978425026, -0.0005793272284790874, 0.01952594704926014, -0.030350923538208008, -0.005994726438075304, 0.0493738166987896, 0.016982730478048325, -0.08093579858541489, -0.052280351519584656, 0.023680800572037697, -0.021389110013842583, 0.04527485743165016, 0.014523355290293694, 0.05477698892354965, -0.007424704264849424, -0.023569010198116302, 0.009362393990159035, -0.0839913859963417, -0.01764415204524994, 0.027481652796268463, 0.053659092634916306, -0.00863576028496027, 0.03340651094913483, -0.054888781160116196, 0.02750028483569622, -0.029773343354463577, 0.012939666397869587, 0.033499669283628464, -0.02707175724208355, -0.025152700021862984, 0.018789997324347496, 0.023606274276971817, -0.022823745384812355, 0.019991738721728325, 0.037542734295129776, 0.013116667047142982, 0.007909126579761505, -0.05734815448522568, -0.028320075944066048, -0.01487735565751791, -0.05343551188707352, 0.011439819820225239, -0.049448344856500626, -0.03620125353336334, 0.022842377424240112, -0.012548401951789856, -0.010526870377361774, 0.01762552186846733, 0.030350923538208008, -0.01847326010465622, -0.014588565565645695, -0.03171103447675705, -0.0649125948548317, -0.036108098924160004, 0.0013740826398134232, -0.017290152609348297, 0.05500056967139244, -0.031226610764861107, 0.006944939959794283, -0.01839873380959034, -0.07929621636867523, 0.030723556876182556, -0.041548531502485275, 0.06770733743906021, 0.03113345243036747, -0.035101987421512604, -0.0333319827914238, 0.06260227411985397, -0.028692709282040596, 0.01952594704926014, 0.04602012410759926, 0.03357419744133949, -0.03512062132358551, 0.0015522475587204099, 0.0063021485693752766, -0.003863734193146229, -0.041250426322221756, 0.013302982784807682, -0.006814518477767706, -0.008570549078285694, -0.005235487595200539, -0.038642000406980515, 0.0038055102340877056, 0.0358472540974617, 0.028860393911600113, -0.00007721936708549038, 0.0036145360209047794, 0.05041718855500221, -0.05906226485967636, 0.07396756857633591, 0.011654083617031574, 0.04203295707702637, 0.019358262419700623, 0.012324823066592216, -0.0028715997468680143, 0.02248837612569332, 0.01965636946260929, 0.04847949743270874, -0.03931273892521858, 0.025935227051377296, 0.017858415842056274, -0.014541986398398876, 0.004979303106665611, 0.006045963615179062, 0.07661326229572296, -0.012026716955006123, -0.014132090844213963, -0.038940105587244034, 0.0123434541746974, 0.07247703522443771, 0.07005492597818375, -0.00002365343607380055, 0.06088816374540329, 0.0003432295343372971, 0.02047616057097912, -0.034580305218696594, -0.056342046707868576, -0.04240558668971062, 0.0699431374669075, 0.016330622136592865, -0.0184266809374094, -0.06584417819976807, 0.01872478798031807, 0.005091092549264431, 0.032549455761909485, -0.014756250195205212, 0.04855402559041977, 0.013479983434081078, -0.06278859078884125, 0.016507623717188835, -0.019265104085206985, -0.01611635833978653, 0.0496346615254879, 0.041921164840459824, -0.037412311881780624, 0.028860393911600113, -0.08428949117660522, 0.038418419659137726, 0.022003954276442528, -0.00718715088441968, -0.006940281949937344, -0.02271195501089096, -0.035586412996053696, -0.0015289580915123224, -0.01744852028787136, 0.0017630178481340408, -0.03672293946146965, 0.001462582848034799, -0.08965539932250977, -0.0020180384162813425, -0.0256930161267519, -0.0751972571015358, 0.021445004269480705, -0.03329472243785858, 0.04188390076160431, 0.04639275744557381, -0.02336406335234642, -0.01762552186846733, -0.007876520976424217, 0.05839152634143829, 0.031748294830322266, -0.008742892183363438, 0.056863732635974884, 0.03512062132358551, -0.04281548410654068, 0.026568703353405, 0.04076600447297096, -0.012455243617296219, 0.029139867052435875, -0.0017839785432443023, -0.035586412996053696, -0.07422841340303421, -0.013610404916107655, 0.057720787823200226, -0.03797126188874245, 0.052876561880111694, 0.02785428613424301, -0.005067802965641022, 0.014663091860711575, -0.03737504780292511, -0.04113863781094551, 0.0211841631680727, -0.05116245523095131, -0.014793513342738152, -0.05298835411667824, 0.06949597597122192, 0.008277101442217827, -0.013694247230887413, 0.012893087230622768, 0.04616917669773102, -0.0017758271424099803, -0.013414773158729076, 0.004273629747331142, -0.012390033341944218, 0.047138020396232605, -0.024127960205078125, 0.022376585751771927, -0.012417980469763279, -0.03506472706794739, 0.000832600926514715, 0.01644241251051426, -0.012278243899345398, -0.007741441950201988, 0.04508854076266289, -0.060776375234127045, -0.026792282238602638, -0.03938726335763931, 0.0847366526722908, 0.04397064447402954, 0.01860368251800537, -0.0023336114827543497, -0.0476224422454834, 0.0022194928023964167, -0.07128461450338364, -0.007932416163384914, 0.036890625953674316, 0.00818394310772419, 0.002139143878594041, -0.0027458362746983767, -0.01331229880452156, 0.021240057423710823, 0.0313384011387825, 0.0034026012290269136, 0.014504723250865936, 0.005882936995476484, -0.024556487798690796, -0.03802715614438057, -0.007396756671369076, 0.013815352693200111, -0.040095265954732895, 0.044306013733148575, 0.038642000406980515, -0.016656676307320595, 0.04128769040107727, -0.02401616983115673, -0.03931273892521858, -0.05555951967835426, 0.024835960939526558, 0.05529867485165596, 0.0041245766915380955, -0.05500056967139244, 0.0165448859333992, 0.04665359854698181, 0.011486398987472057, 0.005785120651125908, -0.11797547340393066, -0.012790613807737827, 0.024761434644460678, -0.002276552142575383, 0.03271714225411415, 0.011523663066327572, 0.019507315009832382, -0.008458759635686874, -0.044604118913412094, 0.018054049462080002, -0.010946081951260567, 0.07422841340303421, 0.013759458437561989, 0.04840497300028801, -0.007075360976159573, -0.022190270945429802, 0.04602012410759926, 0.013843300752341747, -0.012045348063111305, -0.03953631594777107, 0.004783670883625746, 0.01672188751399517, -0.0035004173405468464, 0.03418903797864914, 0.0062043326906859875, 0.007597046904265881, -0.025078171864151955, 0.027388494461774826, 0.017290152609348297, -0.009180734865367413, -0.031748294830322266, 0.002172913635149598, 0.027463020756840706, -0.010517554357647896, -0.003698378335684538, -0.07456377893686295, 0.07311051338911057, -0.01601388491690159, 0.03597767651081085, -0.00014730631664860994, -0.0007778705330565572, -0.02727670595049858, 0.08257538080215454, -0.05436709523200989, 0.0066980705596506596, 0.0348411463201046, 0.030145976692438126, -0.03243766725063324, -0.08294801414012909, 0.005319329909980297, -0.04747338965535164, -0.01744852028787136, -0.04799507558345795, -0.01059208158403635, 0.0234385896474123, -0.01168203167617321, -0.025935227051377296, 0.020848792046308517, -0.0005769982817582786, 0.021668585017323494, -0.01016355399042368, 0.014346354641020298, 0.001113239792175591, -0.03105892613530159, 0.04784602299332619, -0.051125191152095795, -0.0020529725588858128, -0.02867407724261284, 0.03253082558512688, 0.0358472540974617, 0.03938726335763931, 0.01223166473209858, -0.019786790013313293, -0.02960565872490406, -0.03402135521173477, -0.019637737423181534, -0.005757173523306847, 0.012706771492958069, 0.024761434644460678, -0.031394295394420624, -0.014253196306526661, 0.0021868874318897724, -0.01965636946260929, -0.01811925880610943, 0.03402135521173477, 0.016563517972826958, -0.006399964448064566, 0.01922784186899662, 0.03819483891129494, -0.05153508484363556, 0.03890284150838852, 0.008994419127702713, 0.028115129098296165, -0.018771367147564888, 0.026363754644989967, 0.02120279334485531, 0.01915331557393074, 0.014309091493487358, 0.006381332874298096, -0.021314583718776703, 0.0011580721475183964, -0.0017734982538968325, -0.01945142075419426, 0.02168721705675125, 0.04367253929376602, -0.08056316524744034, 0.03931273892521858, 0.061633430421352386, -0.009744342416524887, 0.05593214929103851, 0.014271828345954418, 0.004769696854054928, -0.021668585017323494, 0.061782483011484146, -0.04329990595579147, -0.02649417705833912, -0.010554817505180836, 0.007289624772965908, -0.01937689445912838, 0.0238112211227417, 0.03396546095609665, -0.0333319827914238, -0.0025012961123138666, 0.01894836686551571, 0.04754791781306267, 0.0649125948548317, -0.00283899437636137, 0.03223271667957306, -0.03113345243036747, 0.024929119274020195, -0.014625828713178635, -0.02110963501036167, -0.007573757320642471, -0.0036750887520611286, 0.023643536493182182, -0.02880449779331684, 0.04255463927984238, 0.011849716305732727, -0.06621681153774261, 0.0307049248367548, -0.06439091265201569, 0.08406591415405273, -0.022469744086265564, -0.038865577429533005, 0.03316430002450943, 0.012762665748596191, 0.015501515008509159, -0.002461703959852457, -0.027444390580058098, 0.0365925207734108, 0.014979830011725426, -0.0503799244761467, -0.056342046707868576, 0.03290345519781113, -0.027835654094815254, -0.06006837263703346, 0.04221927002072334, -0.0423683263361454, 0.08153200894594193, 0.017178362235426903, -0.021426374092698097, 0.029344815760850906, 0.016852308064699173, -0.039014630019664764, -0.032847560942173004, 0.007867204956710339, -0.04005800187587738, 0.01857573352754116, -0.002941468497738242, 0.011523663066327572, 0.0234385896474123, 0.01907878741621971, 0.026382386684417725, -0.053510040044784546, 0.0032721797470003366, 0.025432173162698746, 0.028767235577106476, -0.0077833631075918674, 0.05887594819068909, -0.04359801113605499, 0.05451614782214165, 0.03441261872649193, -0.032847560942173004, -0.01604183204472065, -0.002936810487881303, -0.011011293157935143, 0.032176822423934937, -0.051423296332359314, -0.021091004833579063, 0.06435364484786987, -0.010396448895335197, 0.037840839475393295, -0.050752557814121246, -0.07292419672012329, -0.00931115634739399, -0.018920419737696648, -0.012408665381371975, -0.026382386684417725, 0.030276397243142128, -0.018054049462080002, -0.016274727880954742, -0.011877663433551788, -0.020662477239966393, -0.04818139225244522, 0.02373669482767582, 0.039871685206890106, -0.004839565604925156, -0.038716524839401245, 0.005882936995476484, -0.002769125858321786, -0.03853020817041397, -0.04602012410759926, 0.0569009967148304, -0.022097112610936165, 0.012362086214125156, -0.01759757287800312, 0.01987994834780693, -0.01323777250945568, 0.015566726215183735, 0.060850899666547775, -0.0038497603964060545, -0.0011138221016153693, -0.0027644680812954903, 0.021389110013842583, -0.05231761559844017, 0.02314048260450363 ]
43,134
ltxpdflinks._lplxexporter
LplxPictureEnvExporter
null
class LplxPictureEnvExporter: def __init__(self, *, include_comments_catcode=False): super().__init__() self.include_comments_catcode = include_comments_catcode def export(self, extractedgraphiclinks): e = extractedgraphiclinks # shorthand graphic_basefname, graphic_ext = os.path.splitext(e.graphic_fname) s = "" if self.include_comments_catcode: s += r"""\catcode`\%=14\relax""" + "\n" s += ( r"""% Automatically generated by ltxpdflinks """ + version_str + r""" on """ + datetime.datetime.now().isoformat() + r""" % % LPLX - """ + _makeltxsafe(e.graphic_fname) + r""" % \LPLX{version=0,ltxpdflinksversion={""" + version_str + r"""},features={bbox}}{% \lplxGraphic{""" + _makeltxsafe(graphic_basefname) + r"""}{""" + _makeltxsafe(graphic_ext) + r"""}% \lplxUserSpaceUnitLength{""" + e.unitlength + r"""}% \lplxSetBbox{0}{0}""" + "{{{:.6g}}}{{{:.6g}}}".format(e.size[0], e.size[1]) + r"""% %%BoundingBox: 0 0 """ + "{:d} {:d}".format(int(e.size[0]+0.5), int(e.size[1]+0.5)) + r""" %%HiResBoundingBox: 0 0 """ + "{:.6g} {:.6g}".format(e.size[0], e.size[1]) + r""" \lplxPicture{% """ ) for el in e.links: x, y, w, h = el.link_bbox lplxcmd = r'\lplxPutLink' lplxtailargs = '' if el.link_type == 'URI': hrstart = r"""\href{{{tgt}}}""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-ref': hrstart = r"""\hyperref[{{{tgt}}}]""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-cite': hrstart = r"""\hyperlink{{cite.{tgt}}}""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-box': lplxcmd, lplxtailargs = _make_latexbox_from_url(el.link_target, el) else: logger.warning("Ignoring link with unsupported link_type: %r", el) continue # s += ( # r"\put({x},{y})".format(x=el.link_bbox[0], y=el.link_bbox[1]) + # "{" + s2 + "}\n" # ) s += ( r"{lplxcmd}{{{x:.8g}}}{{{y:.8g}}}{{{w:.8g}}}{{{h:.8g}}}{lplxtailargs}" .format(lplxcmd=lplxcmd, x=x, y=y, w=w, h=h, lplxtailargs=lplxtailargs) + r"%" + "\n" ) s += r"""}}%""" + "\n" return s
(*, include_comments_catcode=False)
[ 0.016513248905539513, -0.09491416066884995, -0.0501023605465889, 0.03504006564617157, 0.0013793942052870989, -0.013315225020051003, -0.04457491263747215, 0.019425028935074806, -0.028012312948703766, 0.01824057474732399, 0.019484251737594604, -0.012229477055370808, 0.018842672929167747, 0.07793700695037842, -0.050141841173172, 0.0036372574977576733, 0.04477231949567795, -0.006228248588740826, 0.03190126642584801, -0.028821688145399094, -0.011735954321920872, 0.013364577665925026, 0.032019712030887604, -0.02432076632976532, 0.008009863086044788, 0.03705363720655441, 0.018161611631512642, 0.009169640019536018, -0.009964209981262684, 0.004824178293347359, -0.06103880703449249, -0.07726581394672394, 0.005892653483897448, -0.010423186235129833, 0.019602695479989052, 0.012782221660017967, 0.02578159235417843, 0.007807518821209669, -0.028801947832107544, -0.020964816212654114, 0.05073406919836998, 0.025505220517516136, 0.03855394199490547, -0.02967054583132267, -0.030993185937404633, -0.005320167634636164, -0.09428245574235916, -0.02068844437599182, -0.03320416435599327, -0.0465095192193985, 0.01765821874141693, -0.02781490422785282, 0.01642441377043724, 0.03902772441506386, -0.008350392803549767, 0.02179393358528614, 0.0036051785573363304, 0.11623431742191315, 0.008261559531092644, -0.010808133520185947, 0.015299184247851372, 0.020984558388590813, -0.015397888608276844, -0.000304287183098495, 0.06956686824560165, 0.006435527466237545, -0.0027069684583693743, -0.039540987461805344, -0.02899935655295849, 0.024774806573987007, -0.017371976748108864, -0.0003315851208753884, 0.002039480023086071, -0.014371362514793873, 0.026946304365992546, -0.030499663203954697, -0.01828005723655224, -0.02145833894610405, 0.03969891369342804, -0.018832800909876823, 0.017608867958188057, 0.01738184690475464, 0.03211841732263565, -0.01861565187573433, 0.09128183871507645, -0.0047032651491463184, 0.09151872992515564, 0.015417628921568394, 0.022800719365477562, 0.041297927498817444, 0.0035582941491156816, 0.0027785291895270348, 0.0024787145666778088, -0.01642441377043724, 0.012417014688253403, -0.05499809980392456, 0.016552729532122612, -0.017589125782251358, 0.030124586075544357, -0.02645278163254261, -0.038080163300037384, -0.05582721531391144, -0.043035123497247696, -0.010413315147161484, 0.015358406119048595, -0.016661304980516434, -0.0016532988520339131, 0.02678837813436985, -0.021616267040371895, -0.03652063384652138, -0.015545944683253765, -0.02580133266746998, 0.006405916530638933, -0.042403414845466614, 0.024814289063215256, 0.005186916794627905, -0.04816775396466255, -0.041653260588645935, -0.009406530298292637, -0.03223685920238495, -0.02578159235417843, -0.04169274494051933, -0.06865879148244858, 0.007017883472144604, -0.008157920092344284, 0.000499691057484597, 0.03995554521679878, 0.030203549191355705, -0.04398268461227417, -0.07616032660007477, -0.013976545073091984, 0.04722018912434578, -0.04504869505763054, -0.011735954321920872, 0.02179393358528614, -0.0715804398059845, -0.062341704964637756, 0.005586669780313969, -0.030479922890663147, 0.0536162368953228, -0.022307196632027626, -0.019928419962525368, -0.024241803213953972, 0.013552116230130196, -0.033026497811079025, 0.029473137110471725, 0.05444535240530968, -0.021359635517001152, -0.04366683214902878, -0.027439827099442482, 0.022741496562957764, -0.02177419327199459, -0.056616850197315216, -0.015585426241159439, 0.04500921070575714, -0.003269583685323596, -0.007619980722665787, 0.030657591298222542, 0.00005262950071482919, 0.050260286778211594, 0.03742871433496475, -0.04311408847570419, -0.009332502260804176, 0.009658226743340492, -0.017026511952280998, -0.02012583054602146, 0.006243054289370775, -0.04370631277561188, 0.042679786682128906, 0.024379989132285118, 0.055195506662130356, -0.04457491263747215, -0.023471908643841743, 0.005186916794627905, 0.027617493644356728, 0.10194191336631775, 0.016681045293807983, 0.05965694785118103, 0.011933363042771816, 0.0038840186316519976, 0.0006187532562762499, -0.007481794338673353, -0.019217748194932938, 0.034842658787965775, -0.0015694001922383904, 0.023077091202139854, 0.024458954110741615, -0.002252928214147687, 0.009066000580787659, 0.0068796975538134575, -0.004446633625775576, 0.03640218824148178, 0.03778404742479324, -0.014519418589770794, -0.033401571214199066, -0.04682537168264389, 0.0027316445484757423, -0.05330038070678711, -0.030855000019073486, 0.04512765631079674, -0.021181967109441757, -0.005458354018628597, -0.01659221202135086, -0.02710423246026039, 0.010818003676831722, -0.003106721444055438, -0.003733494319021702, 0.001048117526806891, -0.05187903717160225, 0.046430554240942, 0.011499064043164253, -0.01811225898563862, 0.0044194902293384075, 0.02104378119111061, 0.002445401856675744, -0.008982101455330849, -0.10517942160367966, 0.08796536922454834, -0.07454156875610352, -0.00248364987783134, -0.003486733417958021, -0.03504006564617157, 0.005006781313568354, -0.012989500537514687, 0.015368277207016945, 0.0026107316371053457, 0.100283682346344, 0.023096831515431404, 0.03707337751984596, -0.008760016411542892, 0.0161283016204834, -0.023452168330550194, 0.002466376405209303, 0.06115725263953209, 0.019425028935074806, -0.07098821550607681, -0.03361872211098671, 0.051286812871694565, -0.0357704795897007, 0.010610723868012428, -0.030302254483103752, 0.03640218824148178, 0.03071681223809719, 0.004587287548929453, 0.024419471621513367, -0.010117202065885067, 0.0075607579201459885, 0.009584198705852032, -0.06980375945568085, -0.06368408352136612, -0.0019025275250896811, -0.018714357167482376, -0.015911150723695755, 0.01056137215346098, -0.014963588677346706, -0.047654490917921066, -0.054090019315481186, -0.07252800464630127, 0.04177170619368553, -0.038376275449991226, 0.028486093506217003, -0.04208756238222122, -0.014035766944289207, -0.023827245458960533, 0.0784502699971199, -0.00847377348691225, -0.013986415229737759, 0.015437370166182518, -0.013621209189295769, 0.03154592961072922, 0.067790187895298, 0.05444535240530968, -0.0855175033211708, 0.03355950117111206, 0.011686602607369423, 0.03186178579926491, -0.014539159834384918, -0.03006536327302456, 0.038711871951818466, -0.004969767294824123, 0.08330652117729187, -0.020451555028557777, -0.009209121577441692, 0.03286856785416603, 0.013621209189295769, -0.034072764217853546, -0.025149883702397346, 0.006208507344126701, -0.002257863525301218, -0.039146170020103455, -0.02282045967876911, 0.09001842141151428, 0.04244289547204971, -0.0036347899585962296, 0.009011712856590748, 0.027597753331065178, 0.019731011241674423, -0.01573348417878151, -0.036303482949733734, -0.029848214238882065, 0.006213442888110876, -0.010102396830916405, 0.11757669597864151, 0.017983943223953247, -0.08701781183481216, -0.004723005928099155, 0.005033925175666809, -0.057761821895837784, 0.03885005787014961, -0.003457122016698122, 0.04864153265953064, 0.037369489669799805, 0.04248237982392311, 0.016078948974609375, 0.01926710084080696, -0.0011394190369173884, 0.00015607634850312024, 0.022267716005444527, 0.02463662065565586, 0.016552729532122612, -0.022050565108656883, -0.0012597150634974241, 0.009406530298292637, 0.0072350334376096725, 0.08993946015834808, -0.04350890591740608, 0.04690433666110039, 0.003237504744902253, 0.04781241714954376, 0.006766187492758036, -0.042008597403764725, 0.06846138089895248, -0.006499685347080231, 0.019168397411704063, 0.001565698767080903, -0.02643304131925106, -0.0715804398059845, -0.048759978264570236, -0.017105475068092346, -0.07300177961587906, 0.012278828769922256, -0.012594683095812798, -0.051958002150058746, 0.030243031680583954, 0.036954931914806366, -0.009046259336173534, 0.0024009847547858953, -0.04027140140533447, -0.016996899619698524, -0.005626151338219643, 0.0036644013598561287, 0.03965943306684494, -0.010403444990515709, 0.035217735916376114, -0.014588512480258942, -0.0016249213367700577, -0.032315824180841446, -0.036994412541389465, 0.012930277734994888, 0.03798145800828934, 0.07410727441310883, 0.047338634729385376, -0.0679875984787941, 0.04579884558916092, 0.009149898774921894, -0.03537566214799881, 0.047062262892723083, -0.0008396044140681624, 0.061591554433107376, 0.03958046808838844, 0.0050586010329425335, 0.009564457461237907, -0.025209106504917145, -0.04469335824251175, 0.026610709726810455, -0.024419471621513367, 0.002035778481513262, -0.018122129142284393, -0.01711534522473812, -0.05227385833859444, 0.008858720771968365, 0.01747068017721176, 0.025485478341579437, 0.01859591156244278, -0.00760023994371295, -0.04078466445207596, 0.045917291194200516, 0.03403327986598015, 0.03332260996103287, -0.04504869505763054, 0.03434913605451584, 0.014716828241944313, 0.056340478360652924, 0.01889202371239662, 0.024202322587370872, -0.07975316792726517, -0.012239347212016582, 0.045877810567617416, -0.012999370694160461, 0.0006946322973817587, 0.024103617295622826, 0.01592102088034153, -0.023846985772252083, -0.00500431377440691, -0.025860555469989777, -0.050536658614873886, 0.032335564494132996, 0.024202322587370872, -0.020096218213438988, 0.041574299335479736, 0.007550887297838926, -0.022386159747838974, -0.05689322203397751, -0.04429854080080986, -0.0014706957153975964, 0.009781607426702976, -0.018418243154883385, -0.023689059540629387, -0.03853420168161392, -0.013186909258365631, -0.011390489526093006, 0.018487336114048958, 0.021004298701882362, 0.055550843477249146, -0.035494107753038406, 0.01519060879945755, -0.05870938301086426, 0.019987642765045166, -0.027400344610214233, 0.01895124651491642, 0.001285624923184514, -0.024912994354963303, -0.006766187492758036, 0.0011221457971259952, 0.021004298701882362, 0.022800719365477562, 0.010867355391383171, 0.009890181943774223, -0.005492900498211384, -0.0116372499614954, 0.05187903717160225, -0.02925598807632923, -0.020451555028557777, 0.008695858530700207, 0.00873534008860588, 0.024379989132285118, -0.05227385833859444, -0.025603923946619034, -0.044811803847551346, 0.04335097596049309, 0.006099932827055454, 0.07106717675924301, 0.059814874082803726, -0.026235632598400116, -0.00993459951132536, -0.07833182066679001, 0.038415756076574326, -0.06838241964578629, -0.03036147728562355, 0.032315824180841446, 0.022780979052186012, 0.015259701758623123, 0.007353478576987982, 0.02747930772602558, 0.01698702946305275, -0.05314245447516441, 0.023689059540629387, 0.015210350044071674, -0.07015909254550934, -0.0008778523770160973, 0.008552737534046173, 0.005172111093997955, 0.023215277120471, 0.030479922890663147, 0.027597753331065178, 0.027755681425333023, -0.024893252179026604, 0.038396015763282776, -0.01897098869085312, -0.05574825033545494, -0.05101044103503227, -0.08101657778024673, 0.034487321972846985, 0.012644034810364246, -0.025544701144099236, 0.06522387266159058, 0.03391483426094055, 0.02106352150440216, 0.01161750964820385, 0.005645892582833767, -0.03679700568318367, 0.06830345094203949, -0.03494136035442352, 0.012713128700852394, -0.006618130952119827, 0.006312147248536348, 0.0033411444164812565, 0.01623687520623207, 0.007570628542453051, -0.08074020594358444, 0.005867977160960436, -0.06293393671512604, -0.004888336174190044, -0.054879654198884964, 0.09215044230222702, 0.010403444990515709, 0.04133740812540054, 0.024715585634112358, -0.05061562359333038, 0.00902651809155941, -0.031328778713941574, -0.03652063384652138, 0.020471295341849327, -0.0020727927330881357, -0.03778404742479324, 0.02894013375043869, 0.008389875292778015, 0.019760623574256897, 0.01717456802725792, -0.014687216840684414, 0.03535592183470726, 0.003977787680923939, -0.002721774158999324, -0.1037580743432045, -0.007008013315498829, 0.04042932763695717, -0.0008648973889648914, 0.022445382550358772, -0.012969759292900562, 0.05673529580235481, 0.009569392539560795, -0.006761252414435148, -0.023728540167212486, -0.04868101701140404, 0.04832568019628525, 0.0749363899230957, -0.04437750205397606, 0.004747682251036167, 0.0607229545712471, -0.04366683214902878, -0.0026477458886802197, -0.03742871433496475, -0.047338634729385376, -0.0196421779692173, 0.00014011400344315916, -0.001484267646446824, 0.07300177961587906, 0.023511391133069992, 0.03652063384652138, -0.04121896252036095, 0.03883031755685806, 0.005226398818194866, -0.011360878124833107, 0.010077720507979393, -0.009959274902939796, 0.08512268215417862, 0.036619335412979126, -0.017391717061400414, 0.001085131661966443, -0.03967917338013649, -0.010778522118926048, 0.03827757015824318, -0.020530518144369125, -0.04037010297179222, -0.014134472236037254, -0.007975316606462002, -0.014262787997722626, -0.019582955166697502, -0.04903635010123253, -0.012091290205717087, 0.03367794677615166, 0.00976680126041174, -0.0026921627577394247, -0.045601438730955124, 0.01161750964820385, -0.07833182066679001, 0.040547773241996765, 0.03908694535493851, 0.04852309077978134, -0.013650820590555668, 0.007817389443516731, 0.018003685399889946, -0.0001984884002013132, -0.046588484197854996, 0.02643304131925106, -0.010669946670532227, 0.02967054583132267, 0.03547436743974686, 0.039146170020103455, -0.03276986628770828, -0.07000117003917694, 0.020550258457660675, 0.012081420049071312, -0.05926213040947914, -0.0022874746937304735, 0.02285994216799736, 0.0304009597748518, -0.0008136944961734116, -0.021714970469474792, 0.02282045967876911, 0.018171481788158417, 0.026926564052700996, -0.03006536327302456, 0.03620477765798569, -0.01754964515566826, -0.03505980595946312, 0.040626734495162964, -0.027735939249396324, -0.04745708033442497, -0.019760623574256897, 0.006445398088544607, 0.050931476056575775, -0.019128914922475815, -0.030341736972332, -0.04571988433599472, -0.04473283886909485, -0.049115315079689026, 0.05566928908228874, 0.05827508494257927, 0.05499809980392456, -0.03255271539092064, -0.0020518179517239332, -0.047022782266139984, 0.0429166778922081, 0.004392346367239952, -0.003575567388907075, 0.027597753331065178, -0.01752990297973156, 0.03182230144739151, 0.025564443320035934, 0.01248610857874155, 0.004249224904924631, 0.0750943198800087, -0.025998741388320923, 0.029433656483888626, -0.0014743971405550838, 0.007856871001422405, 0.0067365760914981365, -0.0021196771413087845, 0.022287456318736076, 0.014243046753108501, -0.04046880826354027, -0.036342963576316833, -0.014282528311014175, 0.01463786419481039, 0.030637849122285843, 0.02106352150440216, -0.05756441131234169, 0.07296229898929596, -0.02106352150440216, 0.0027119037695229053, 0.045206621289253235, 0.028308425098657608, -0.01893150620162487, -0.03648114949464798, 0.06664521992206573, -0.04050828889012337, -0.012535460293293, -0.006336823105812073, -0.02899935655295849, 0.0048143076710402966, -0.054090019315481186, 0.024735325947403908, 0.020846372470259666, -0.012574941851198673, -0.03796171769499779, 0.07347556203603745, 0.01142997108399868, -0.01648363657295704, 0.027735939249396324, -0.027953090146183968, -0.047062262892723083, -0.040942590683698654, -0.04923376068472862, -0.014203565195202827, -0.03705363720655441, 0.0029858085326850414, -0.025643406435847282, 0.02359035424888134, 0.007343608420342207, -0.045877810567617416, 0.004577416926622391, -0.040547773241996765, 0.03440835699439049, -0.031012926250696182, 0.036954931914806366, 0.0680270791053772, 0.02676863595843315, -0.03172359988093376, 0.005036392714828253, -0.053418826311826706, 0.05835404992103577, 0.06032813712954521, -0.045877810567617416, -0.004685991909354925, -0.047733452171087265, -0.0005598390707746148, -0.06249963492155075, 0.029867954552173615, -0.08338548988103867, 0.009949404746294022, -0.01838863268494606, -0.03500058501958847, 0.037290528416633606, -0.0214978214353323, -0.016118429601192474, 0.015763094648718834, -0.006465138867497444, -0.024814289063215256, 0.01158789824694395, 0.005251074675470591, 0.042363934218883514, 0.06621091812849045, -0.050852514803409576, -0.00012854707892984152, -0.04366683214902878, -0.05152370408177376, 0.024893252179026604, -0.02074766717851162, -0.04192963242530823, 0.03355950117111206, 0.0608414001762867, 0.08709677308797836, -0.001428746385499835, 0.017421329393982887, 0.007570628542453051, -0.03963969275355339, -0.022741496562957764, 0.050141841173172, -0.02185315638780594, 0.0036051785573363304, 0.07592343538999557, -0.05535343289375305, 0.052313338965177536, -0.031999971717596054, -0.012653905898332596, -0.01577296480536461, -0.006479944568127394, -0.02793334797024727, -0.022050565108656883, 0.020964816212654114, -0.0034472516272217035, -0.0374089740216732, -0.03513877093791962, 0.05385312810540199, 0.041613779962062836, 0.018339280039072037, 0.023866726085543633, -0.010985800996422768, 0.010630465112626553, 0.06506595015525818, 0.008740276098251343, -0.06692159175872803, 0.008646506816148758, 0.052352819591760635, -0.05547187849879265, 0.0677112266421318, 0.005877847783267498, -0.003817393211647868, -0.04046880826354027, -0.018813060596585274, -0.020451555028557777, 0.0033411444164812565, 0.013364577665925026, 0.04011347144842148, 0.025919778272509575, -0.09199251234531403, 0.03436887636780739 ]
43,135
ltxpdflinks._lplxexporter
__init__
null
def __init__(self, *, include_comments_catcode=False): super().__init__() self.include_comments_catcode = include_comments_catcode
(self, *, include_comments_catcode=False)
[ -0.05512635409832001, -0.037611883133649826, 0.0450068823993206, -0.00739057594910264, -0.024484876543283463, -0.03143759071826935, 0.019902808591723442, 0.03906257823109627, 0.01340122427791357, -0.04352080821990967, -0.02278650365769863, 0.019602054730057716, -0.02843005582690239, 0.052012670785188675, -0.022892652079463005, -0.025970952585339546, 0.0289961788803339, -0.014736923389136791, -0.012454735115170479, -0.01264934055507183, -0.028164684772491455, 0.014949220232665539, -0.029173092916607857, 0.040902480483055115, -0.0009569933754391968, 0.0880323275923729, -0.02015048824250698, -0.021866552531719208, -0.0057629686780273914, -0.03545353561639786, -0.044228460639715195, -0.009358742274343967, -0.022167304530739784, 0.02936769835650921, -0.00812919158488512, -0.01930130086839199, -0.01820443570613861, 0.03184449300169945, -0.07642678171396255, 0.005820465739816427, 0.06305209547281265, 0.017912527546286583, -0.011136726476252079, -0.032375235110521317, 0.00045721171773038805, -0.008425521664321423, 0.041999347507953644, -0.022008081898093224, -0.01942514069378376, -0.00363557948730886, 0.024219505488872528, -0.0005213429685682058, -0.009562193416059017, 0.006850988604128361, -0.0636889860033989, 0.008421098813414574, 0.01675374060869217, 0.06467970460653305, -0.010535219684243202, 0.08690008521080017, -0.06850104033946991, 0.027227040380239487, 0.025033310055732727, -0.034409742802381516, 0.00626717321574688, -0.019248226657509804, -0.029509229585528374, -0.013454298488795757, 0.04132707417011261, 0.02936769835650921, 0.0014197336276993155, -0.012445889413356781, 0.01303855050355196, 0.05993841215968132, 0.06740417331457138, -0.08265414834022522, -0.06213214248418808, 0.032870594412088394, 0.009358742274343967, -0.008819155395030975, 0.03379054367542267, 0.024608716368675232, -0.0002058005629805848, 0.025900186970829964, 0.06910254806280136, -0.034498199820518494, 0.021884243935346603, -0.011419788934290409, 0.017709076404571533, 0.05792159214615822, -0.04716523364186287, 0.04359157383441925, 0.00029909497243352234, -0.004210549406707287, 0.0123662780970335, 0.03793032839894295, 0.03655040264129639, -0.024714864790439606, 0.0012306569842621684, 0.028217758983373642, 0.02736857160925865, 0.017841761931777, -0.010950967669487, -0.06920869648456573, 0.013923119753599167, 0.0022224802523851395, -0.022202687337994576, 0.011481708846986294, 0.0028461015317589045, 0.000382023339625448, -0.02039816603064537, -0.0555509477853775, -0.003018592484295368, 0.03034072555601597, 0.010004478506743908, -0.04069018363952637, -0.017567545175552368, -0.020008957013487816, 0.03630272299051285, -0.0022335373796522617, -0.0196728203445673, 0.0036333680618554354, -0.05915999040007591, 0.009234902448952198, 0.01986742578446865, 0.030836082994937897, -0.010154854506254196, 0.030517639592289925, 0.015418041497468948, -0.057001642882823944, 0.049783557653427124, -0.019372066482901573, 0.0067359949462115765, -0.0855555385351181, 0.014763460494577885, -0.0004961880622431636, 0.028536204248666763, -0.0028461015317589045, -0.03637348860502243, 0.03596658632159233, -0.0032043519895523787, 0.011508245952427387, 0.034568965435028076, 0.006576772313565016, -0.08201725780963898, 0.00010794508852995932, -0.021441958844661713, -0.00568778021261096, -0.03736420348286629, -0.004263623617589474, 0.016320303082466125, -0.02096429094672203, -0.0014827591367065907, 0.032463692128658295, 0.0352943129837513, 0.008934149518609047, -0.03361362963914871, -0.02927924133837223, 0.018452113494277, 0.0026139020919799805, 0.05997379496693611, -0.04985432326793671, 0.012463580816984177, 0.0014374250313267112, -0.022238070145249367, -0.023458776995539665, -0.015196899883449078, -0.09956711530685425, -0.037293437868356705, 0.03187987580895424, 0.01716064289212227, -0.03796571120619774, 0.015471115708351135, 0.05969073250889778, 0.013233155943453312, 0.08166342973709106, -0.015665721148252487, 0.060610685497522354, 0.0036245223600417376, 0.014675003476440907, 0.03856721892952919, 0.018841324374079704, -0.019283609464764595, 0.0677580013871193, 0.07713443785905838, -0.03536507859826088, 0.05523250252008438, -0.029013870283961296, 0.0916413739323616, 0.051694225519895554, 0.043697722256183624, 0.011180954985320568, -0.015709949657320976, -0.022680355235934258, -0.009464890696108341, -0.04585606977343559, 0.01869979314506054, -0.04330851137638092, -0.006992519833147526, 0.032782137393951416, 0.0037704764399677515, 0.04875745624303818, 0.030075354501605034, -0.014533472247421741, 0.05523250252008438, 0.10006247460842133, -0.0036289452109485865, -0.008505132980644703, -0.03256984055042267, 0.0006297027575783432, -0.006010647863149643, -0.03662116825580597, 0.05183575674891472, 0.0063158245757222176, 0.010659059509634972, -0.056223221123218536, 0.006713880691677332, 0.023671073839068413, -0.0490759015083313, 0.01747908815741539, 0.12115060538053513, -0.015170362778007984, -0.015966475009918213, -0.02604171819984913, 0.005488751921802759, 0.012994321994483471, 0.0689256340265274, -0.06276903301477432, -0.005227804183959961, 0.0014130993513390422, -0.04829747974872589, -0.05944305285811424, -0.023653382435441017, 0.024201814085245132, -0.00904472079128027, -0.014374250546097755, -0.022662663832306862, -0.008686469867825508, -0.09072142094373703, -0.07741750031709671, -0.0077444035559892654, 0.018965164199471474, 0.03831953927874565, 0.03987638279795647, -0.01402926817536354, -0.031614504754543304, -0.005325106903910637, 0.05944305285811424, 0.014949220232665539, 0.0324283093214035, 0.014170799404382706, -0.08244185149669647, -0.037293437868356705, 0.02805853635072708, -0.024997927248477936, -0.037576500326395035, -0.01319777313619852, -0.015718795359134674, -0.024555642157793045, -0.0033879003021866083, -0.009969095699489117, -0.024307962507009506, 0.007452495861798525, 0.05848771706223488, 0.04468843713402748, -0.0017978870309889317, -0.00047048027045093477, -0.015577264130115509, -0.08237108588218689, 0.0016320302383974195, 0.10345921665430069, -0.009747953154146671, 0.021901935338974, 0.04069018363952637, -0.045077648013830185, -0.05077427625656128, -0.036904226988554, -0.0089208809658885, -0.05155269429087639, -0.012215901166200638, 0.048403628170490265, -0.01983204297721386, 0.014215027913451195, 0.037328820675611496, 0.02039816603064537, -0.07614371925592422, 0.004812056664377451, 0.03336594998836517, -0.05735547095537186, -0.006360053084790707, -0.02498023584485054, 0.03559506684541702, 0.07200393825769424, 0.04429922625422478, 0.07621448487043381, -0.01352506410330534, 0.023741837590932846, 0.07076554000377655, -0.03157912194728851, -0.036904226988554, 0.002399394055828452, -0.016276074573397636, 0.04525456205010414, 0.03536507859826088, -0.02883695811033249, 0.008460904471576214, -0.04472381994128227, 0.011437480337917805, -0.0048783994279801846, 0.010004478506743908, 0.029509229585528374, 0.064856618642807, -0.01634684018790722, 0.05137578025460243, -0.08230032026767731, -0.023246480152010918, 0.00668292073532939, -0.03239292651414871, 0.012153981253504753, 0.0652812123298645, -0.053109537810087204, -0.08010659366846085, 0.018434422090649605, -0.02591787837445736, 0.021548107266426086, -0.014630774967372417, 0.02896079607307911, -0.03292366862297058, -0.004988970700651407, 0.012498963624238968, -0.0036289452109485865, 0.01303855050355196, -0.026979362592101097, -0.02956230379641056, -0.04366233944892883, -0.03251676633954048, -0.026908596977591515, -0.047342147678136826, -0.02567019872367382, -0.0644674077630043, 0.02660784311592579, -0.017815224826335907, -0.04076094925403595, 0.037293437868356705, -0.024626407772302628, -0.022839577868580818, -0.020185869187116623, -0.04302544891834259, 0.023087257519364357, -0.011331331916153431, 0.03141989931464195, -0.052578795701265335, 0.01808944158256054, 0.029208475723862648, 0.030163811519742012, -0.061424486339092255, -0.009252593852579594, 0.0015546304639428854, 0.0029500385280698538, -0.026572460308670998, 0.04638681188225746, 0.010473299771547318, 0.018805941566824913, 0.033029817044734955, -0.0017138528637588024, 0.047059085220098495, -0.01332161296159029, 0.0010841501643881202, 0.0192659180611372, -0.028447747230529785, -0.025210224092006683, -0.02956230379641056, -0.00038229976780712605, -0.04111477732658386, -0.01269356906414032, -0.07083630561828613, -0.017302174121141434, 0.020822759717702866, -0.05296800658106804, 0.055869393050670624, -0.004427269101142883, 0.033277496695518494, 0.020663537085056305, -0.015214591287076473, -0.0864047259092331, -0.02466179057955742, -0.016196463257074356, 0.016806814819574356, 0.03074762597680092, 0.005829311441630125, -0.017939064651727676, 0.00006368207687046379, -0.046634491533041, -0.002631593495607376, -0.09829333424568176, -0.06666114181280136, 0.01634684018790722, -0.014144262298941612, 0.0012837310787290335, 0.005793928634375334, 0.06259211897850037, -0.07939893752336502, 0.050385065376758575, 0.011826691217720509, 0.04695293679833412, 0.027881622314453125, 0.042883917689323425, 0.0006059299339540303, 0.006050453521311283, 0.013808125630021095, -0.0032729061786085367, -0.031154528260231018, 0.0010813858825713396, 0.004513514693826437, 0.015515344217419624, -0.03941640630364418, 0.04302544891834259, -0.005356066860258579, 0.0034741456620395184, -0.033436715602874756, 0.03387900069355965, 0.0053914496675133705, 0.029792292043566704, 0.039557937532663345, 0.010526373982429504, 0.029190784320235252, 0.016647594049572945, -0.004971279297024012, 0.029190784320235252, -0.026342472061514854, -0.05724932253360748, 0.03382592648267746, -0.034568965435028076, -0.000270761112915352, 0.017983293160796165, -0.010614831000566483, -0.002268920186907053, -0.03490510210394859, -0.01772676780819893, 0.04210549592971802, 0.017983293160796165, -0.010128317400813103, 0.01609916053712368, -0.007607295643538237, 0.011552474461495876, 0.0064927381463348866, -0.035099707543849945, 0.058912310749292374, -0.01026100292801857, -0.05268494412302971, 0.02052200585603714, 0.05417102202773094, -0.027103202417492867, -0.018018675968050957, -0.06492738425731659, -0.0717562586069107, -0.041716285049915314, -0.012038987129926682, 0.002994266804307699, 0.007173856720328331, -0.006771377753466368, 0.03697499260306358, 0.0001512060553068295, -0.03338364139199257, 0.03821339085698128, 0.035099707543849945, 0.012790870852768421, 0.003120318055152893, -0.07911587506532669, 0.002724473364651203, 0.041787050664424896, 0.0009995632572099566, -0.004794365260750055, -0.018752867355942726, -0.02814699336886406, 0.027970079332590103, -0.05208343639969826, -0.034250520169734955, -0.02121197059750557, 0.0036156768910586834, -0.01813367009162903, -0.03350748121738434, -0.024184122681617737, 0.00727115897461772, 0.008885498158633709, -0.02388336881995201, 0.016718357801437378, -0.049252815544605255, 0.02165425568819046, -0.005064158700406551, -0.027917005121707916, 0.034498199820518494, -0.03587812930345535, -0.004210549406707287, 0.05077427625656128, 0.045679155737161636, -0.0014009365113452077, 0.020132796838879585, 0.010314077138900757, -0.02259189821779728, -0.04996047168970108, -0.026979362592101097, -0.025404829531908035, -0.05102195218205452, 0.053711045533418655, 0.004029212985187769, -0.014816534705460072, 0.052861858159303665, -0.027722399681806564, -0.0037350936327129602, 0.02890772372484207, 0.006152179092168808, 0.03416206315159798, -0.002516599604859948, 0.05360489711165428, -0.013127007521688938, -0.06429049372673035, 0.0450068823993206, -0.0028704272117465734, 0.025033310055732727, 0.03301212564110756, 0.004285737872123718, 0.021070439368486404, -0.03410898894071579, 0.03025226853787899, 0.03028765134513378, 0.021707329899072647, 0.015223436988890171, 0.011587857268750668, 0.04514841362833977, -0.013135853223502636, -0.045396093279123306, -0.026554768905043602, 0.07048247754573822, -0.021955007687211037, 0.053144920617341995, -0.03913334384560585, 0.05218958482146263, 0.03708114102482796, 0.0021262832451611757, 0.03106607124209404, 0.009172983467578888, 0.07090707123279572, 0.015329585410654545, -0.02867773547768593, 0.022768812254071236, -0.07699290663003922, 0.05052659660577774, -0.029208475723862648, 0.021831169724464417, 0.02153041586279869, -0.02271573804318905, -0.041503988206386566, 0.001194168464280665, 0.054524846374988556, -0.0018354811472818255, 0.024201814085245132, -0.009066835045814514, 0.06252135336399078, 0.014763460494577885, 0.019690511748194695, 0.026501694694161415, -0.030393799766898155, -0.06379513442516327, -0.005913345608860254, 0.023388011381030083, 0.004586491733789444, -0.008823578245937824, -0.08074347674846649, 0.028447747230529785, 0.006939445622265339, -0.056718580424785614, -0.01165862288326025, 0.1143571138381958, -0.03909796103835106, 0.03255214914679527, -0.015444578602910042, 0.07699290663003922, -0.011826691217720509, -0.035683523863554, -0.04440537467598915, 0.014515780843794346, 0.005785082932561636, -0.01324200164526701, -0.0289961788803339, -0.03555968403816223, -0.022945726290345192, -0.023423394188284874, 0.07324233651161194, -0.0726054459810257, 0.020575080066919327, 0.0002635739801917225, 0.030075354501605034, -0.07303003966808319, 0.00672272639349103, 0.01914207823574543, -0.016559137031435966, -0.06340592354536057, 0.04408692941069603, 0.018434422090649605, -0.027970079332590103, 0.014268102124333382, -0.02457333356142044, 0.054489463567733765, 0.026147866621613503, 0.012667031958699226, 0.007492301519960165, 0.012897019274532795, -0.05325106903910637, 0.02466179057955742, -0.03214524686336517, 0.02736857160925865, 0.0038898931816220284, 0.0008032994228415191, -0.05296800658106804, -0.025280989706516266, -0.010375997051596642, 0.016284920275211334, 0.05296800658106804, -0.028890032321214676, -0.007983237504959106, 0.014117725193500519, 0.02676706574857235, 0.05056197941303253, -0.07451611012220383, 0.04514841362833977, -0.011384406127035618, -0.05155269429087639, -0.03711652383208275, 0.053994107991456985, 0.09539194405078888, -0.024679481983184814, 0.04666987434029579, -0.04518379643559456, -0.024714864790439606, -0.0038898931816220284, -0.011313640512526035, -0.0092260567471385, 0.031897567212581635, 0.020822759717702866, -0.004891667980700731, -0.05059736222028732, -0.015674566850066185, -0.006532543804496527, -0.09348127990961075, -0.010880202054977417, -0.054772526025772095, -0.0636536031961441, 0.023830294609069824, -0.036479637026786804, -0.01457770075649023, 0.05410025641322136, 0.015515344217419624, 0.03129605948925018, -0.00568778021261096, 0.04164551943540573, -0.052614178508520126, 0.08003582805395126, 0.033029817044734955, -0.055657096207141876, 0.007182702422142029, -0.016116851940751076, 0.017691385000944138, -0.0037107679527252913, 0.01457770075649023, 0.013374687172472477, 0.017045648768544197, -0.07030556350946426, 0.0015977531438693404, 0.00354933412745595, 0.006837720051407814, 0.07246391475200653, -0.042282409965991974, -0.004701485391706228, -0.010570602491497993, -0.04189319908618927, -0.03256984055042267, -0.012313203886151314, 0.012658186256885529, -0.06577657163143158, -0.02818237617611885, 0.020663537085056305, -0.0045599546283483505, -0.020132796838879585, -0.006121219135820866, 0.06701496243476868, -0.07002250105142593, 0.02595326118171215, -0.006289287470281124, -0.050668127834796906, -0.005064158700406551, -0.006842142902314663, -0.01087135635316372, 0.02064584568142891, 0.04670525714755058, 0.01854057051241398, -0.037541117519140244, -0.07331310212612152, 0.030924540013074875, -0.03472818806767464, 0.057320088148117065, 0.012339740991592407, -0.012481272220611572, 0.02315802313387394, -0.03948717191815376, 0.030482256785035133, 0.030977614223957062, -0.018469804897904396, 0.005280878394842148, -0.01062367670238018, 0.023175714537501335, 0.049818940460681915, -0.003821339225396514, -0.05625860393047333, 0.005692203063517809, -0.02529868111014366, 0.05491405725479126, -0.007142896763980389, 0.02591787837445736, -0.025121767073869705, 0.04302544891834259, 0.03637348860502243, 0.01319777313619852, 0.0653165951371193, 0.05724932253360748, 0.015966475009918213, -0.03074762597680092, -0.048934370279312134, 0.03225139528512955, -0.05378181114792824, 0.038956429809331894, -0.0028261987026780844, -0.05020815134048462, -0.012808562256395817, 0.0009680504444986582, -0.019655128940939903, 0.008571475744247437, 0.003777110716328025, 0.027227040380239487, 0.008651087060570717, -0.01303855050355196, -0.015966475009918213, -0.027262423187494278, 0.07600218802690506, 0.004586491733789444, 0.001717170001938939, 0.05749700218439102, 0.01387004554271698, 0.02485639601945877, 0.02409566566348076, -0.03387900069355965, 0.005594900343567133, -0.03248138353228569, 0.00010020510671893135, -0.01914207823574543, -0.0074215359054505825, -0.002651496324688196, 0.031242985278367996, 0.006116796284914017, -0.029898440465331078, -0.015665721148252487, -0.042883917689323425, 0.03256984055042267, 0.008934149518609047, 0.05827542021870613, 0.058664631098508835, 0.02846543863415718, 0.03414437174797058 ]
43,136
ltxpdflinks._lplxexporter
export
null
def export(self, extractedgraphiclinks): e = extractedgraphiclinks # shorthand graphic_basefname, graphic_ext = os.path.splitext(e.graphic_fname) s = "" if self.include_comments_catcode: s += r"""\catcode`\%=14\relax""" + "\n" s += ( r"""% Automatically generated by ltxpdflinks """ + version_str + r""" on """ + datetime.datetime.now().isoformat() + r""" % % LPLX - """ + _makeltxsafe(e.graphic_fname) + r""" % \LPLX{version=0,ltxpdflinksversion={""" + version_str + r"""},features={bbox}}{% \lplxGraphic{""" + _makeltxsafe(graphic_basefname) + r"""}{""" + _makeltxsafe(graphic_ext) + r"""}% \lplxUserSpaceUnitLength{""" + e.unitlength + r"""}% \lplxSetBbox{0}{0}""" + "{{{:.6g}}}{{{:.6g}}}".format(e.size[0], e.size[1]) + r"""% %%BoundingBox: 0 0 """ + "{:d} {:d}".format(int(e.size[0]+0.5), int(e.size[1]+0.5)) + r""" %%HiResBoundingBox: 0 0 """ + "{:.6g} {:.6g}".format(e.size[0], e.size[1]) + r""" \lplxPicture{% """ ) for el in e.links: x, y, w, h = el.link_bbox lplxcmd = r'\lplxPutLink' lplxtailargs = '' if el.link_type == 'URI': hrstart = r"""\href{{{tgt}}}""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-ref': hrstart = r"""\hyperref[{{{tgt}}}]""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-cite': hrstart = r"""\hyperlink{{cite.{tgt}}}""".format(tgt=_makeltxsafe(el.link_target)) lplxtailargs = '{{{hrstart}}}{{}}'.format(hrstart=hrstart) elif el.link_type == 'latex-box': lplxcmd, lplxtailargs = _make_latexbox_from_url(el.link_target, el) else: logger.warning("Ignoring link with unsupported link_type: %r", el) continue # s += ( # r"\put({x},{y})".format(x=el.link_bbox[0], y=el.link_bbox[1]) + # "{" + s2 + "}\n" # ) s += ( r"{lplxcmd}{{{x:.8g}}}{{{y:.8g}}}{{{w:.8g}}}{{{h:.8g}}}{lplxtailargs}" .format(lplxcmd=lplxcmd, x=x, y=y, w=w, h=h, lplxtailargs=lplxtailargs) + r"%" + "\n" ) s += r"""}}%""" + "\n" return s
(self, extractedgraphiclinks)
[ 0.016972776502370834, -0.04120422527194023, -0.023145584389567375, 0.033319465816020966, 0.011924965307116508, -0.006119003519415855, -0.036528151482343674, 0.022460803389549255, -0.007072805427014828, 0.047112904489040375, -0.018312988802790642, -0.001777983852662146, 0.024299928918480873, 0.05270854011178017, -0.04445204138755798, 0.001427033799700439, 0.01701190695166588, -0.010056491941213608, 0.003186675487086177, -0.03509989753365517, -0.02729339711368084, -0.008134215138852596, 0.019212987273931503, -0.01492821704596281, 0.022930366918444633, 0.048091161996126175, 0.018723858520388603, 0.034493375569581985, -0.003330968553200364, 0.013147787190973759, -0.03598032891750336, -0.07919976860284805, 0.010731490328907967, -0.02015211433172226, 0.0098266014829278, 0.025610793381929398, 0.04543030261993408, -0.011220619082450867, -0.02944556623697281, -0.0013023059582337737, 0.04370856657624245, 0.03705641254782677, 0.03384772688150406, -0.021560806781053543, -0.034689027816057205, -0.007395630236715078, -0.08006063103675842, 0.0028883067425340414, -0.046917252242565155, -0.05431288480758667, 0.01223800703883171, -0.01781407743692398, -0.004876615945249796, 0.03729119524359703, -0.008403236046433449, 0.02073906920850277, -0.014654304832220078, 0.13773871958255768, 0.005952700041234493, -0.023028193041682243, 0.01550538931041956, 0.013470612466335297, -0.008843451738357544, -0.006158133968710899, 0.07391717284917831, 0.02369340881705284, 0.006515198387205601, -0.049578115344047546, -0.033319465816020966, 0.018733641132712364, -0.03271294757723808, 0.03122599422931671, -0.004402161110192537, -0.018811900168657303, 0.008941277861595154, -0.048091161996126175, 0.024789057672023773, -0.046525951474905014, 0.025571662932634354, -0.03985423222184181, 0.024534709751605988, -0.028623828664422035, 0.043121613562107086, -0.0025483621284365654, 0.10072144120931625, -0.013196700252592564, 0.08193889260292053, 0.03073686547577381, -0.010653229430317879, 0.01150431390851736, 0.019134726375341415, 0.00616302527487278, -0.004849713761359453, -0.027449918910861015, -0.03277164325118065, -0.04582160338759422, 0.00270243757404387, -0.038112930953502655, 0.06523024290800095, 0.0024444221053272486, -0.022382542490959167, -0.05071289464831352, -0.033808596432209015, 0.0028907523956149817, 0.000006109335572546115, -0.02887817658483982, 0.002450536238029599, 0.01066301204264164, -0.028741220012307167, -0.028526002541184425, -0.016268430277705193, -0.057795483618974686, 0.045078128576278687, -0.044765084981918335, 0.028721654787659645, -0.019389072433114052, -0.03367163985967636, -0.03112816996872425, -0.007454325910657644, -0.02651079185307026, -0.01625864766538143, -0.06292155385017395, -0.06789110600948334, 0.01741299219429493, -0.01927168294787407, -0.025102099403738976, 0.01994667947292328, 0.027645571157336235, -0.024906449019908905, -0.08577366173267365, -0.00367091316729784, 0.033710770308971405, -0.0034385768231004477, 0.005757048260420561, -0.007938563823699951, -0.06104329973459244, -0.0726650059223175, -0.0030521650332957506, -0.017784729599952698, 0.01958472467958927, -0.013216265477240086, -0.008393453434109688, -0.008647800423204899, 0.007019001059234142, -0.04903028905391693, 0.03347598761320114, 0.03963901475071907, -0.03339772671461105, -0.032634686678647995, -0.03842597454786301, 0.048404205590486526, -0.04226074367761612, -0.05090854689478874, -0.01340213418006897, 0.005033137276768684, -0.02171732671558857, -0.009811927564442158, 0.024886883795261383, -0.011269532144069672, 0.042417265474796295, 0.06401719897985458, -0.03198903799057007, 0.007620629854500294, 0.007405412849038839, -0.016102125868201256, -0.0308151263743639, 0.03490424528717995, -0.03394555300474167, 0.04257378727197647, 0.019027117639780045, 0.052121587097644806, -0.0010094399331137538, -0.05372592806816101, -0.008060845546424389, 0.018244512379169464, 0.05466505512595177, 0.014859738759696484, 0.05450853332877159, 0.024319494143128395, 0.012277137488126755, -0.004448628053069115, 0.005355962552130222, -0.00508694164454937, 0.03989335894584656, 0.01217931229621172, -0.0002320305648026988, 0.00808041077107191, 0.003245370928198099, 0.005693461280316114, -0.010702142491936684, 0.016601037234067917, 0.03858249634504318, 0.015476041473448277, -0.025415142998099327, -0.03533468022942543, -0.03934553638100624, 0.0026633073575794697, -0.041947703808546066, -0.0697302296757698, 0.04214335232973099, -0.028447741642594337, -0.015896692872047424, -0.049069419503211975, -0.04460856318473816, 0.04938246309757233, -0.017784729599952698, -0.006608132738620043, 0.01433147955685854, -0.02836948074400425, 0.034004248678684235, 0.02748904936015606, 0.007791824638843536, 0.008921712636947632, 0.01174887828528881, 0.0003365818993188441, 0.004111129324883223, -0.1017388328909874, 0.08819974213838577, -0.07047370821237564, 0.006955414079129696, -0.04679986089468002, -0.0373498909175396, 0.017344513908028603, -0.016473865136504173, -0.003064393065869808, -0.006617915350943804, 0.11950399726629257, 0.04433465376496315, 0.04421726241707802, -0.04382595792412758, 0.02789991721510887, -0.023810800164937973, -0.017657557502388954, 0.06800849735736847, 0.014390175230801105, -0.08569540083408356, -0.0397564060986042, 0.04276943951845169, -0.036273807287216187, 0.0277042668312788, -0.027919482439756393, 0.05231723561882973, 0.03220425173640251, 0.019105378538370132, 0.03134338557720184, 0.010066274553537369, -0.012394528836011887, -0.006309763994067907, -0.06350851058959961, -0.038210757076740265, 0.005111398175358772, -0.01315756980329752, -0.0037516194861382246, 0.0026706443168222904, -0.018655380234122276, -0.019731463864445686, -0.058343306183815, -0.08906060457229614, 0.027919482439756393, -0.054273754358291626, 0.0475824698805809, -0.04453030228614807, -0.03727163001894951, -0.03093251772224903, 0.08632148802280426, -0.012013007886707783, -0.00425542239099741, 0.017970599234104156, -0.020289070904254913, 0.024241233244538307, 0.06855631619691849, 0.04100857302546501, -0.044295523315668106, 0.028408611193299294, -0.006353785749524832, 0.03543250262737274, 0.005536940414458513, -0.019614072516560555, 0.019320596009492874, -0.004959768150001764, 0.07160848379135132, -0.0030301541555672884, -0.017187992110848427, 0.021678196266293526, 0.026256443932652473, -0.019408637657761574, -0.012169529683887959, -0.00006224930984899402, -0.028506437316536903, -0.04257378727197647, 0.013138004578649998, 0.058656349778175354, 0.037232499569654465, -0.0011445618001744151, 0.015476041473448277, 0.030952082946896553, 0.049578115344047546, -0.014038002118468285, -0.042808569967746735, -0.014879303984344006, 0.013001048937439919, -0.03392598778009415, 0.1322604864835739, 0.022460803389549255, -0.11293010413646698, -0.02613905258476734, 0.016757559031248093, -0.04679986089468002, 0.05055637285113335, -0.0165423434227705, 0.02760644070804119, 0.03392598778009415, 0.0514954999089241, 0.024515144526958466, 0.007953237742185593, 0.027156442403793335, 0.006329329218715429, 0.02856513299047947, 0.014869521372020245, 0.011611922644078732, -0.013372786343097687, -0.007840737700462341, 0.028447741642594337, 0.004803246818482876, 0.09430406987667084, -0.042612917721271515, -0.00015644484665244818, -0.00716573977842927, 0.04128248617053032, 0.0031255341600626707, -0.002363715786486864, 0.06186503544449806, -0.006495633162558079, -0.010408665053546429, -0.023928189650177956, -0.0038812386337667704, -0.05959547683596611, -0.06585633009672165, -0.01829342357814312, -0.07278239727020264, 0.00474210549145937, -0.004791018553078175, -0.029426001012325287, 0.02878035046160221, 0.043121613562107086, 0.014184740372002125, 0.008222258649766445, -0.043982479721307755, -0.06726501882076263, -0.02124776318669319, 0.0022756727412343025, 0.05497809872031212, -0.021991239860653877, 0.029484694823622704, -0.011289097368717194, 0.005111398175358772, -0.025493403896689415, -0.020484723150730133, 0.004614931996911764, 0.05795200169086456, 0.06914327293634415, 0.06202155724167824, -0.05196506530046463, 0.02631513960659504, 0.02220645546913147, -0.019819507375359535, 0.03267381712794304, 0.02357601746916771, 0.06699110567569733, 0.014468435198068619, -0.002155835973098874, -0.001447821850888431, -0.01956515945494175, -0.02339993044734001, 0.02641296572983265, -0.0028124917298555374, -0.01223800703883171, -0.014722783118486404, -0.031949907541275024, -0.03318250924348831, -0.02349775657057762, 0.016082560643553734, 0.01664016768336296, 0.0004444959631655365, 0.01633690856397152, -0.03013034537434578, 0.03091295249760151, 0.003678250126540661, 0.0034825983457267284, -0.0272151380777359, 0.02856513299047947, 0.008354322984814644, 0.05560418218374252, 0.007493456359952688, 0.02690209448337555, -0.07583455741405487, 0.029699912294745445, 0.03623467683792114, -0.013832568190991879, 0.0035241744481027126, 0.05458679422736168, 0.019320596009492874, -0.04949985444545746, -0.01781407743692398, -0.03153903782367706, -0.06026069074869156, 0.01820538192987442, 0.023830365389585495, -0.01501626055687666, 0.04903028905391693, -0.010447795502841473, 0.001098094624467194, -0.07352586835622787, -0.03457163646817207, -0.00692117540165782, 0.03249773010611534, -0.020386897027492523, -0.0006159968324936926, -0.059634607285261154, -0.009200516156852245, 0.007111935410648584, -0.012149964459240437, -0.0021619501058012247, 0.04093031585216522, -0.023047758266329765, -0.012619527988135815, -0.04996941611170769, 0.005590744316577911, -0.02291080169379711, 0.012541267089545727, 0.03083469159901142, -0.025121664628386497, 0.01732494868338108, -0.008290736004710197, 0.025102099403738976, 0.010711925104260445, -0.011435835622251034, -0.018909726291894913, -0.0009666411788202822, -0.04703464359045029, 0.06436937302350998, -0.046917252242565155, -0.0298368688672781, -0.00328939245082438, 0.015133650973439217, -0.019437985494732857, -0.0148303909227252, -0.05392158031463623, -0.024299928918480873, 0.0459781251847744, 0.0025287969037890434, 0.0635867714881897, 0.0786128118634224, 0.0010338964639231563, -0.002448090584948659, -0.06346938014030457, 0.05321723595261574, -0.050047677010297775, -0.0426911786198616, 0.03946292772889137, -0.009132037870585918, -0.0018171141855418682, -0.0010895348386839032, 0.05716939643025398, 0.02095428667962551, -0.025708619505167007, -0.009528232738375664, 0.017540166154503822, -0.07368239015340805, 0.01616082154214382, 0.014321696944534779, -0.03963901475071907, 0.012717354111373425, 0.028506437316536903, 0.04363030567765236, 0.022362977266311646, -0.025962967425584793, 0.01517278142273426, 0.001030839397571981, -0.03073686547577381, -0.04785637930035591, -0.09148668497800827, 0.008051062934100628, -0.001598228933289647, -0.00876030046492815, 0.08366062492132187, 0.0026241771411150694, 0.02995426021516323, -0.0023099116515368223, -0.006109220907092094, -0.0018110000528395176, 0.07082587480545044, -0.02494557946920395, -0.011367358267307281, -0.011338010430335999, 0.01443908829241991, 0.00026091973995789886, 0.020778199657797813, 0.0116510521620512, -0.05560418218374252, 0.0049940068274736404, -0.0655432865023613, -0.020778199657797813, -0.059634607285261154, 0.08225192874670029, 0.004108683671802282, 0.06311720609664917, 0.008051062934100628, -0.05000854656100273, 0.007253782823681831, -0.028897741809487343, -0.025512969121336937, 0.02124776318669319, 0.022636890411376953, -0.04586073383688927, 0.011885834857821465, 0.016082560643553734, 0.03232164308428764, 0.025708619505167007, -0.0039888471364974976, 0.0228129755705595, 0.012961918488144875, -0.05681722238659859, -0.08514757454395294, -0.03568685054779053, 0.04190857335925102, -0.01576951891183853, 0.027449918910861015, -0.018537988886237144, 0.04151726886630058, 0.022284716367721558, 0.0042945523746311665, -0.0348651148378849, -0.07246935367584229, 0.03916944935917854, 0.07591281831264496, -0.03854336589574814, -0.004896181169897318, 0.06566067785024643, -0.01349996030330658, 0.01880211941897869, -0.03515859320759773, -0.07031718641519547, -0.025865141302347183, 0.0180097296833992, 0.017598861828446388, 0.06824328005313873, 0.011866269633173943, 0.05126071721315384, -0.030697735026478767, 0.03731076046824455, -0.0014221424935385585, -0.021580372005701065, 0.029015131294727325, -0.0017999947303906083, 0.06824328005313873, 0.031167298555374146, -0.015035824850201607, 0.01306952629238367, -0.006652154494076967, -0.009851058013737202, 0.01779451221227646, -0.025708619505167007, -0.024026015773415565, -0.003714934689924121, 0.012785831466317177, -0.0013071972643956542, -0.011328227818012238, -0.04668246954679489, 0.010858663357794285, 0.009308124892413616, 0.02846730686724186, -0.03251729533076286, -0.03369120508432388, 0.02926947921514511, -0.07215631008148193, 0.013323874212801456, 0.012864092364907265, 0.05752157047390938, 0.0022561075165867805, 0.010927141644060612, 0.009268994443118572, 0.03740858659148216, 0.0025190142914652824, 0.05384331941604614, -0.010486925952136517, 0.02809556946158409, 0.018939074128866196, 0.04120422527194023, -0.020289070904254913, -0.07708673179149628, -0.001862358651123941, -0.00122893659863621, -0.049773767590522766, -0.029523825272917747, 0.034278158098459244, 0.05403897166252136, 0.011973877437412739, -0.046447690576314926, 0.043395522981882095, 0.002856513252481818, 0.048599857836961746, -0.05286506190896034, 0.06378242373466492, -0.02144341543316841, -0.00024731585290282965, 0.05971286818385124, -0.023067323490977287, -0.06241285800933838, -0.03701728209853172, 0.007371173705905676, 0.06069112569093704, -0.023439060896635056, -0.04836507514119148, -0.053373754024505615, -0.042417265474796295, -0.030482519418001175, 0.05055637285113335, 0.0577172227203846, 0.04910854995250702, 0.0027097745332866907, -0.023028193041682243, -0.04042162001132965, 0.049460723996162415, 0.021658631041646004, 0.017726033926010132, 0.018851030617952347, -0.0030008063185960054, 0.045352041721343994, 0.04648682102560997, -0.010066274553537369, 0.001674043945968151, 0.051221586763858795, -0.0009048886131495237, 0.022656455636024475, 0.010946706868708134, 0.03181295096874237, 0.001958961598575115, 0.004455965012311935, 0.03588250279426575, 0.0210325475782156, -0.03392598778009415, -0.03676293417811394, -0.032928165048360825, 0.03464989736676216, 0.05368679761886597, 0.020582547411322594, -0.0710606575012207, 0.0720389187335968, 0.012003225274384022, 0.002259775996208191, 0.05020419880747795, 0.022754279896616936, -0.03999118506908417, -0.017784729599952698, 0.04120422527194023, -0.031871646642684937, -0.021189067512750626, 0.004238302819430828, -0.03347598761320114, 0.003908140584826469, -0.04370856657624245, 0.03795640915632248, -0.03856293112039566, -0.0368216298520565, -0.022754279896616936, 0.06468241661787033, 0.027156442403793335, -0.003025262849405408, 0.03206729516386986, -0.04519551992416382, -0.008095084689557552, -0.05133897811174393, -0.04910854995250702, 0.00792388990521431, -0.019535811617970467, 0.00641248095780611, -0.022049935534596443, 0.04668246954679489, -0.0025874923449009657, -0.05028245970606804, 0.006539654452353716, -0.03492381051182747, 0.005884221754968166, -0.05110419541597366, 0.019721681252121925, 0.049460723996162415, 0.0223238468170166, -0.039873793721199036, 0.036371633410453796, -0.054938968271017075, 0.03200859948992729, 0.025102099403738976, -0.05016506835818291, -0.003516837488859892, -0.00914671178907156, 0.016102125868201256, -0.05619113892316818, 0.018723858520388603, -0.07880846410989761, 0.011338010430335999, 0.016796689480543137, -0.019711898639798164, 0.03061947412788868, -0.03502163663506508, -0.040460750460624695, 0.01880211941897869, 0.017569513991475105, -0.035471633076667786, 0.017266253009438515, 0.006128786131739616, 0.04069553315639496, 0.036645542830228806, -0.013539090752601624, -0.0007074028253555298, -0.07892585545778275, -0.04550855979323387, 0.02778252772986889, 0.005155419465154409, -0.05364766716957092, 0.03502163663506508, 0.0338868573307991, 0.0766562968492508, -0.0003870233194902539, 0.013636915944516659, 0.010144535452127457, -0.022949932143092155, -0.018939074128866196, 0.05384331941604614, -0.028408611193299294, -0.009264103136956692, 0.08561713993549347, -0.04335639253258705, 0.07074761390686035, -0.03666510805487633, -0.017002124339342117, -0.022069500759243965, -0.011944529600441456, -0.0036171087995171547, -0.02778252772986889, 0.026080358773469925, 0.0049817790277302265, -0.015681475400924683, -0.04543030261993408, 0.037525977939367294, 0.020034722983837128, 0.0016104571986943483, 0.04218248277902603, -0.028623828664422035, -0.003685586852952838, 0.04413900151848793, 0.019819507375359535, -0.06573893874883652, -0.0018648043042048812, 0.020504286512732506, -0.019222769886255264, 0.06331285834312439, -0.01291300542652607, 0.02435862459242344, -0.03551076352596283, -0.007894542068243027, -0.02242167294025421, 0.01076083816587925, 0.014527130872011185, 0.0180097296833992, 0.02007385343313217, -0.1056518629193306, 0.032028164714574814 ]
43,137
ltxpdflinks._extractor
PdfGraphicLinksExtractor
null
class PdfGraphicLinksExtractor: def __init__(self, fname): super().__init__() self.fname = fname def extractGraphicLinks(self, pageno=None): if pageno is None: pageno = 0 with open(self.fname, 'rb') as f: pdf = PyPDF2.PdfFileReader(f) page = pdf.getPage(pageno).getObject() page_size = (page.mediaBox.getWidth(), page.mediaBox.getHeight()) page_bottomleft = page.mediaBox.lowerLeft extracted_list = [] if '/Annots' in page: for annot in page['/Annots']: annot = annot.getObject() extracted = self._extract_annot_link(annot, shift_rect_origin=page_bottomleft) if extracted is not None: logger.debug("Extracted link: %r", extracted) extracted_list.append(extracted) return ExtractedGraphicLinks(self.fname, page_size, extracted_list) def _extract_annot_link(self, annot, *, shift_rect_origin=(0,0)): if '/Subtype' not in annot or annot['/Subtype'].getObject() != '/Link': logger.debug("Found annotation, not a link: %r", annot) return None if '/A' not in annot: return None annot_A = annot['/A'].getObject() if '/S' not in annot_A or annot_A['/S'].getObject() != '/URI': logger.warning("Link action %r has supported type (/S!=/URI)", annot_A) return None if '/URI' not in annot_A: logger.warning("Link action %r does not have URI", annot_A) return None URI = annot_A['/URI'].getObject() if '/Rect' not in annot: logger.warning("Can't get annotation's bounding box (/Rect): %r", annot) return None else: (x0,y0,x1,y1) = annot['/Rect'].getObject() x = x0 - shift_rect_origin[0] y = y0 - shift_rect_origin[1] w = x1 - x0 h = y1 - y0 return ExtractedLink(link_bbox=(x,y,w,h), link_type='URI', link_target=URI)
(fname)
[ 0.023755406960844994, -0.023286674171686172, -0.056060511618852615, 0.06652263551950455, -0.008118461817502975, -0.0051982528530061245, 0.020399276167154312, -0.006670075934380293, -0.017633749172091484, 0.06288526952266693, 0.04709832742810249, 0.014521359466016293, 0.03074890933930874, 0.012505806051194668, -0.03344881162047386, 0.0004564291157294065, 0.04278597980737686, 0.01574006676673889, 0.04072355479001999, 0.021786727011203766, -0.013799509964883327, -0.01626504771411419, 0.0028522424399852753, -0.011230851523578167, -0.025067860260605812, -0.004790455102920532, -0.0177181214094162, -0.017802493646740913, 0.0007054437301121652, -0.0019218068337067962, -0.01884308084845543, -0.12344561517238617, 0.007002876605838537, 0.024655375629663467, 0.05103568732738495, 0.0006989986286498606, 0.030373921617865562, 0.02881772629916668, -0.0740598738193512, 0.014830723404884338, -0.013227655552327633, 0.00233429204672575, 0.029023969545960426, -0.04616086184978485, 0.0047693620435893536, -0.016799403354525566, -0.08429700881242752, -0.02143048867583275, -0.10154639184474945, -0.014062000438570976, 0.006571641657501459, -0.06266027688980103, 0.01656503789126873, 0.028217747807502747, -0.00860125757753849, 0.05988537520170212, -0.0009069990483112633, 0.08962181955575943, 0.02589283138513565, 0.0025616278871893883, 0.019911793991923332, -0.012590178288519382, 0.011474592611193657, -0.019874295219779015, 0.05493554845452309, 0.009580910205841064, 0.0273740291595459, -0.029192714020609856, -0.04421092942357063, 0.05467306077480316, -0.024561628699302673, 0.0155994463711977, 0.009013742208480835, -0.010518376715481281, 0.026586556807160378, 0.003550655208528042, 0.03254884481430054, -0.04844827950000763, 0.10507126897573471, -0.01141834445297718, 0.010808991268277168, 0.029717694967985153, 0.0505107082426548, -0.005971663165837526, 0.10199637711048126, 0.002606157446280122, 0.1046212837100029, -0.0011864813277497888, 0.02480536885559559, 0.029492702335119247, -0.01783999241888523, 0.010687120258808136, 0.013893256895244122, -0.03714243322610855, -0.01207457110285759, 0.024092894047498703, 0.005343560129404068, -0.027242783457040787, 0.005160754080861807, -0.008891872130334377, -0.00989027414470911, -0.0041107917204499245, -0.04814828932285309, 0.0370299369096756, 0.015815064311027527, 0.016696281731128693, -0.013499520719051361, 0.0068716309033334255, -0.0324738472700119, 0.03914861008524895, -0.0308801531791687, -0.02394290082156658, 0.008085650391876698, -0.010724619030952454, 0.02947395294904709, -0.035811230540275574, -0.01931181363761425, -0.04889826476573944, -0.029830191284418106, -0.042710982263088226, 0.01577756553888321, -0.036148715764284134, -0.04076105356216431, 0.008657504804432392, -0.04893576353788376, -0.032098859548568726, 0.01659316010773182, 0.023417918011546135, 0.03301757946610451, -0.04503590241074562, -0.0405360609292984, 0.0021749227307736874, -0.04556088149547577, 0.03142388537526131, 0.007987216114997864, -0.04484840855002403, -0.05782294645905495, 0.0018222009530290961, -0.09067177772521973, -0.0037264302372932434, -0.007537232246249914, -0.03605496883392334, 0.03519250079989433, -0.01168083492666483, -0.07672227919101715, 0.043685950338840485, 0.03446127846837044, 0.03266134113073349, 0.009580910205841064, -0.046273358166217804, 0.004333439748734236, -0.04229849949479103, 0.033880047500133514, 0.01654628850519657, 0.04462341591715813, -0.035454992204904556, -0.024186640977859497, 0.019274316728115082, -0.0005589645588770509, 0.053323108702898026, 0.03667369857430458, -0.055610526353120804, -0.04751081392168999, -0.034030042588710785, 0.018749333918094635, 0.0031826994381844997, 0.05471055954694748, -0.04792330041527748, 0.015468200668692589, 0.000026201461878372356, 0.010012144222855568, 0.02561159059405327, -0.035492490977048874, -0.03699243813753128, 0.009412165731191635, 0.07912219315767288, 0.003445190144702792, 0.08564695715904236, 0.02716778591275215, 0.022011717781424522, -0.014980718493461609, -0.006731010973453522, -0.004352189134806395, -0.011952701024711132, -0.013499520719051361, 0.05032321438193321, 0.015533823519945145, -0.007382550276815891, 0.012955790385603905, -0.0011161713628098369, -0.003110045799985528, 0.015046341344714165, 0.027711516246199608, 0.018589965999126434, -0.012252690270543098, -0.04259848967194557, -0.025667838752269745, 0.019180569797754288, -0.053473100066185, 0.06502269208431244, -0.005634175147861242, -0.00950122531503439, -0.05261063203215599, 0.017483754083514214, -0.011802705936133862, 0.0109308622777462, 0.007738787680864334, 0.0872219055891037, -0.0787472054362297, 0.023211676627397537, -0.01519633550196886, -0.005427932366728783, 0.020680515095591545, -0.04068605601787567, 0.04552338272333145, 0.004476403817534447, -0.03687994182109833, 0.06971002370119095, -0.03230510279536247, -0.0024116330314427614, 0.018121231347322464, 0.0023612442892044783, -0.018571216613054276, -0.0004089698486495763, 0.04886076599359512, -0.0031147331465035677, 0.10792116820812225, -0.006941941101104021, 0.043535955250263214, -0.02589283138513565, 0.02703654021024704, -0.09172174334526062, 0.019218068569898605, 0.026811547577381134, 0.07188494503498077, -0.05808543786406517, 0.021599233150482178, -0.007884095422923565, -0.02735527977347374, 0.007349739316850901, -0.01052775140851736, 0.042898476123809814, -0.00042010226752609015, 0.04004857689142227, 0.01626504771411419, 0.009027804248034954, 0.005362309515476227, -0.008545009419322014, -0.00884499866515398, -0.05699797719717026, 0.01416512206196785, 0.010330882854759693, -0.02124299667775631, -0.00021620326151605695, -0.01052775140851736, -0.01993054337799549, -0.09239672124385834, -0.04004857689142227, 0.01641504280269146, 0.0025991264265030622, 0.04983573034405708, -0.05137317627668381, -0.004361563827842474, -0.015018217265605927, 0.022799190133810043, -0.018871204927563667, 0.0060747843235731125, 0.025949079543352127, -0.04462341591715813, 0.023080430924892426, 0.0795721784234047, -0.0030491105280816555, -0.013480771332979202, 0.026642804965376854, 0.012205816805362701, 0.03873612359166145, -0.004340470768511295, 0.014436987228691578, 0.004638116806745529, -0.0031733247451484203, 0.03528624773025513, -0.013180782087147236, -0.0027233408764004707, 0.02315542846918106, 0.03710493445396423, -0.022611698135733604, 0.035492490977048874, 0.03412378951907158, 0.011952701024711132, -0.02994268760085106, -0.01336827501654625, 0.04019857197999954, 0.01833684928715229, -0.020343028008937836, 0.007963779382407665, 0.02752402238547802, 0.01914307102560997, -0.010602748952805996, -0.05782294645905495, -0.023624161258339882, 0.012337062507867813, 0.005404495634138584, 0.03944860026240349, 0.006210716906934977, -0.07585980743169785, 0.006548204924911261, 0.007251305039972067, -0.008170022629201412, 0.05193565785884857, -0.022442953661084175, 0.03106764703989029, 0.0032670714426785707, -0.01674315519630909, 0.03457377105951309, -0.05598551407456398, 0.0026577182579785585, 0.025799084454774857, 0.05373559147119522, 0.009182486683130264, 0.03721742704510689, -0.01929306425154209, 0.053810589015483856, -0.02330542355775833, -0.033692553639411926, 0.09764653444290161, -0.039823587983846664, -0.001504634041339159, 0.02799275703728199, 0.03264259174466133, 0.05759795382618904, -0.013958879746496677, 0.03551124036312103, -0.03153638169169426, 0.005601363722234964, -0.024355385452508926, 0.013780760578811169, -0.0579354427754879, -0.06232278794050217, -0.012308938428759575, -0.07308490574359894, -0.03911111131310463, -0.04649835079908371, -0.028667733073234558, 0.01768999733030796, 0.02540534734725952, 0.03223010525107384, -0.015008842572569847, -0.019424309954047203, -0.017240013927221298, -0.07398487627506256, 0.017989985644817352, 0.06547267735004425, -0.009435602463781834, 0.01288079284131527, -0.030505167320370674, 0.03026142530143261, -0.019724300131201744, -0.033073827624320984, 0.01079024188220501, 0.027261532843112946, 0.07090998440980911, 0.022161712870001793, -0.07304740697145462, -0.05872291699051857, 0.018571216613054276, 0.009205923415720463, -0.01245893258601427, 0.041736017912626266, 0.04027356952428818, -0.014052625745534897, 0.0006392351351678371, -0.0332050696015358, -0.017961861565709114, -0.03268009051680565, 0.03937360271811485, -0.0035225311294198036, -0.008343453519046307, -0.0065341428853571415, -0.03491126000881195, 0.007832534611225128, -0.03149888291954994, 0.050135720521211624, -0.001537445466965437, 0.0428609773516655, -0.004160008393228054, -0.07094748318195343, 0.024336636066436768, 0.030130179598927498, 0.014746351167559624, -0.0038740811869502068, 0.024092894047498703, -0.020661765709519386, 0.01816810481250286, -0.022630447521805763, 0.03684244304895401, -0.059322893619537354, -0.01560882106423378, 0.050960689783096313, -0.014511984772980213, 0.0027913071680814028, 0.044960904866456985, 0.03603621944785118, -0.03410504013299942, 0.0029647385235875845, 0.014877596870064735, -0.013237030245363712, 0.029361458495259285, 0.017465004697442055, -0.01979929767549038, 0.05988537520170212, -0.029567699879407883, -0.02926771156489849, 0.01167146023362875, -0.0036701823119074106, -0.0037943965289741755, 0.007734100334346294, -0.0035576862283051014, 0.004935762379318476, -0.07188494503498077, -0.013312027789652348, -0.00696069048717618, 0.032267604023218155, -0.026661554351449013, 0.04278597980737686, -0.0032998828683048487, -0.06063534691929817, -0.0530606172978878, 0.010096516460180283, -0.01783999241888523, 0.03695493936538696, 0.04653584957122803, -0.03166762739419937, -0.0013229999458417296, -0.06423521786928177, -0.01961180381476879, 0.057710450142621994, -0.041586022824048996, -0.00016581443196628243, 0.014502610079944134, -0.055123042315244675, 0.020793011412024498, 0.014577607624232769, 0.008146585896611214, 0.04091104865074158, 0.021842975169420242, -0.04664834588766098, -0.03695493936538696, -0.00011930728942388669, -0.0640852227807045, -0.02926771156489849, -0.013546394184231758, 0.02383040450513363, 0.03414253890514374, -0.011052732355892658, -0.026605306193232536, -0.04709832742810249, 0.03626121208071709, -0.023549163714051247, 0.0012210503919050097, 0.06101033464074135, 0.014605731703341007, -0.0015104932244867086, -0.02686779573559761, -0.02105550281703472, 0.002685842104256153, 0.01737125776708126, 0.00402173213660717, 0.029848940670490265, -0.12637051939964294, -0.020868008956313133, 0.0749223381280899, -0.036111216992139816, -0.021786727011203766, -0.022311707958579063, 0.03174262493848801, 0.03493000939488411, 0.01012464053928852, -0.02846148982644081, 0.022067965939641, 0.008240332826972008, 0.0026108447927981615, -0.05279812589287758, 0.0020366464741528034, -0.022105464711785316, -0.0521981455385685, 0.031780123710632324, -0.014286993071436882, -0.008137211203575134, -0.05598551407456398, -0.00527325039729476, -0.03204261139035225, 0.05632299929857254, -0.049010761082172394, 0.024242889136075974, 0.012149568647146225, -0.0019030574476346374, 0.04968573525547981, 0.045260895043611526, 0.013790135271847248, -0.055123042315244675, 0.02126174606382847, -0.07634729146957397, 0.007091935724020004, -0.010396505706012249, 0.06633514165878296, -0.0020471930038183928, -0.028780227527022362, 0.028367742896080017, -0.04777330532670021, 0.03043016977608204, -0.0004822094342671335, 0.002196015790104866, 0.03487376123666763, 0.05024821683764458, -0.03431128337979317, -0.0003817247343249619, 0.005338872782886028, -0.038848619908094406, 0.0262115690857172, 0.007485671900212765, 0.015533823519945145, -0.007476297207176685, -0.023999148979783058, -0.09509662538766861, -0.009646532125771046, 0.029961436986923218, -0.03232385218143463, 0.04259848967194557, 0.0011067966697737575, -0.03800490126013756, 0.020080536603927612, 0.0058732288889586926, -0.019555555656552315, -0.032117608934640884, 0.026980292052030563, 0.07615979760885239, 0.015102588571608067, -0.03446127846837044, 0.06539767980575562, 0.002685842104256153, 0.0327925868332386, -0.046760838478803635, -0.09022179991006851, 0.015271333046257496, 0.04034856706857681, 0.018730584532022476, 0.027467774227261543, -0.018149355426430702, 0.08174709975719452, 0.020005539059638977, 0.01912432163953781, 0.018458720296621323, 0.0028498987667262554, 0.04976073279976845, 0.0034147226251661777, 0.11024608463048935, 0.016799403354525566, -0.05084819346666336, 0.049160756170749664, 0.0034147226251661777, -0.0031311388593167067, 0.008512197993695736, -0.021767977625131607, 0.016208799555897713, -0.017277510836720467, 0.016133802011609077, 0.0003087781078647822, 0.03496750816702843, -0.042073506861925125, -0.0042467243038117886, 0.01054650079458952, -0.014577607624232769, -0.0923217236995697, -0.038548633456230164, 0.018636837601661682, -0.008170022629201412, -0.010312134400010109, -0.038886118680238724, 0.03896111622452736, -0.03526749834418297, 0.0662226527929306, -0.012505806051194668, 0.06581016629934311, -0.032417599111795425, 0.01753062754869461, -0.01978054828941822, -0.02508660964667797, -0.005770107731223106, -0.0028241185937076807, -0.06476020067930222, -0.06037285551428795, -0.026661554351449013, -0.005891978275030851, -0.02767401747405529, -0.03792990371584892, 0.0604853518307209, 0.047848302870988846, -0.01246830727905035, -0.059922873973846436, -0.05152317136526108, 0.030223926529288292, 0.045298393815755844, -0.03429253399372101, 0.005943539086729288, 0.004750612657517195, 0.014699478633701801, 0.03230510279536247, -0.006145094521343708, -0.050435710698366165, -0.018289975821971893, -0.02606157399713993, 0.041286032646894455, 0.03284883499145508, -0.026605306193232536, -0.030186427757143974, -0.023567913100123405, -0.08032214641571045, 0.04196101054549217, 0.013218280859291553, 0.07255992293357849, 0.018402472138404846, -0.021617982536554337, -0.0163962934166193, 0.04518589749932289, -0.008245020173490047, -0.009402791038155556, 0.023605411872267723, -0.02720528468489647, 0.041773516684770584, 0.06952252984046936, 0.051898159086704254, -0.015027591958642006, 0.052685629576444626, -0.047998297959566116, 0.02624906785786152, 0.015018217265605927, -0.00253350380808115, 0.009712154977023602, -0.013471396639943123, 0.07207243889570236, -0.048223286867141724, -0.03665494918823242, -0.04357345402240753, -0.001096836058422923, -0.005610738415271044, 0.016621284186840057, 0.0010663684224709868, -0.021917972713708878, 0.063672736287117, 0.03380504995584488, 0.01674315519630909, 0.06337275356054306, 0.04139852896332741, -0.027749015018343925, -0.044660914689302444, -0.0001855891168816015, -0.03811739757657051, -0.001400340930558741, -0.026624055579304695, 0.04293597489595413, 0.0012937040301039815, -0.03866112604737282, 0.0018128262599930167, 0.006974752526730299, -0.027449024841189384, -0.03654245287179947, 0.04008607566356659, 0.011746457777917385, 0.028367742896080017, 0.03648620471358299, -0.013377649709582329, 0.029155215248465538, 0.015346330590546131, -0.013171407394111156, 0.0048279534094035625, -0.03509875386953354, 0.061535317450761795, -0.05388558655977249, 0.03768616169691086, 0.023624161258339882, -0.04391094297170639, 0.03770491108298302, -0.0572979673743248, 0.03592372313141823, -0.03204261139035225, 0.013733887113630772, 0.09217172861099243, -0.016799403354525566, -0.013499520719051361, 0.009824651293456554, -0.007448173128068447, 0.01102460827678442, 0.06802258640527725, -0.04751081392168999, -0.014193246141076088, 0.019058698788285255, -0.030373921617865562, -0.03847363591194153, 0.024186640977859497, -0.06067284569144249, 0.02171172946691513, -0.013893256895244122, -0.0000373155708075501, 0.009285608306527138, -0.044173430651426315, 0.0011607010383158922, -0.07585980743169785, 0.018093107268214226, -0.04912325739860535, -0.024655375629663467, -0.01350889541208744, 0.025030361488461494, 0.0327925868332386, -0.02911771647632122, 0.005788857117295265, -0.04297347366809845, -0.04076105356216431, 0.052048154175281525, 0.011333972215652466, -0.03635495901107788, 0.023774156346917152, 0.01847746968269348, 0.04098604619503021, 0.0337488017976284, -0.0498732291162014, 0.04098604619503021, -0.035792481154203415, -0.06869756430387497, -0.007016938179731369, -0.04972323402762413, -0.016321295872330666, 0.05054820701479912, -0.013255779631435871, 0.04199850931763649, -0.07064749300479889, -0.03359880670905113, -0.02092425711452961, -0.04938574507832527, -0.034180037677288055, -0.05339810624718666, 0.015186960808932781, -0.005254501011222601, -0.04409843310713768, 0.03873612359166145, -0.020024288445711136, 0.020061787217855453, -0.009210610762238503, 0.017277510836720467, -0.0218617245554924, -0.019236817955970764, 0.03125514090061188, -0.012421433813869953, -0.02688654512166977, 0.00010736923286458477, -0.014371365308761597, -0.01882433146238327, 0.03699243813753128, -0.013021412305533886, 0.029005220159888268, -0.04042356461286545, -0.04394844174385071, 0.014502610079944134, -0.06483519822359085, -0.002617875812575221, 0.02754277177155018, 0.07934718579053879, -0.0640852227807045, 0.048973262310028076 ]
43,138
ltxpdflinks._extractor
__init__
null
def __init__(self, fname): super().__init__() self.fname = fname
(self, fname)
[ -0.0007854870636947453, -0.0091713173314929, -0.0012037876294925809, 0.0379871129989624, -0.040056709200143814, -0.025586223229765892, 0.014128335751593113, 0.10608351975679398, 0.002914543030783534, -0.0024534736294299364, -0.008637228049337864, 0.026804614812135696, -0.014787602238357067, 0.04192602261900902, 0.0019819727167487144, 0.02336641401052475, 0.04516394063830376, 0.011374436318874359, -0.08238330483436584, 0.04426266625523567, -0.02386712282896042, 0.014537247829139233, 0.0011631050147116184, 0.019744619727134705, 0.00431026890873909, 0.11109060794115067, -0.039522621780633926, -0.01804221048951149, 0.03865472599864006, -0.05240752920508385, -0.02062920667231083, -0.018726512789726257, 0.026954827830195427, 0.06338974088430405, 0.005478589795529842, -0.04756734520196915, -0.05941745266318321, 0.00466493796557188, -0.12297409772872925, 0.01850953884422779, 0.07103390246629715, 0.016356490552425385, -0.0071142385713756084, 0.0073938011191785336, -0.010756895877420902, 0.053108520805835724, 0.011716587468981743, -0.009313184767961502, 0.004389547742903233, 0.007752642501145601, -0.006258861161768436, 0.03832092136144638, -0.02351662702858448, -0.014712495729327202, -0.03458229452371597, 0.07911200076341629, 0.04546436667442322, 0.011816729791462421, -0.03765330836176872, 0.021363578736782074, -0.016673605889081955, -0.01739128865301609, 0.093465656042099, -0.05264119431376457, -0.0366852693259716, -0.0006696981145069003, -0.015588736161589622, -0.006150374189019203, 0.008228315971791744, 0.05884998291730881, 0.0612533874809742, -0.024434592574834824, -0.018426086753606796, 0.018592989072203636, 0.071501225233078, 0.00836183875799179, -0.09827246516942978, 0.016414906829595566, -0.003212881973013282, -0.013393962755799294, 0.01328547578305006, -0.012751386500895023, -0.05284147709608078, 0.029608584940433502, 0.0011036457726731896, -0.051639776676893234, 0.01999497413635254, -0.058582939207553864, -0.02994239144027233, 0.06495863199234009, -0.07103390246629715, 0.04930313304066658, -0.012534412555396557, 0.007231070660054684, 0.03413165360689163, -0.07210207730531693, -0.0025306660681962967, -0.04055741801857948, -0.010122664272785187, 0.018242493271827698, -0.03785359114408493, 0.011040630750358105, -0.0017420497024431825, -0.047767627984285355, 0.008829166181385517, -0.005107230506837368, -0.0070558227598667145, -0.04790114983916283, 0.011466233059763908, -0.0033192825503647327, -0.040657561272382736, 0.013569210655987263, -0.016490012407302856, 0.10007501393556595, -0.007644155528396368, -0.06359002739191055, -0.009863965213298798, 0.006688636261969805, 0.04235997051000595, 0.00033354514744132757, 0.033413972705602646, 0.033614255487918854, -0.057781804352998734, 0.03478257730603218, 0.04606521874666214, 0.004677455406636, -0.002349159214645624, -0.036651890724897385, 0.09880655258893967, -0.05594587326049805, 0.03708583861589432, 0.005858293734490871, -0.02109653502702713, -0.060986340045928955, 0.012692970223724842, -0.004318614024668932, 0.057114191353321075, 0.030443100258708, -0.028256671503186226, 0.0705665722489357, 0.03925557807087898, -0.013068501837551594, 0.033747777342796326, -0.02772258222103119, -0.020695967599749565, 0.06936486810445786, -0.017491430044174194, -0.005148956552147865, -0.033413972705602646, 0.0024826815351843834, 0.01789199747145176, -0.00809896644204855, -0.021530481055378914, 0.017174314707517624, 0.04639902338385582, -0.03625132143497467, -0.03691893443465233, 0.005253270734101534, 0.001260117394849658, -0.020729348063468933, -0.0008454677881672978, -0.006142029073089361, 0.006429936736822128, -0.01914376951754093, 0.011583065614104271, 0.046799588948488235, -0.02607024274766445, -0.02336641401052475, -0.01604771986603737, 0.009388291276991367, 0.012859873473644257, -0.04459647089242935, -0.017508121207356453, 0.043595053255558014, 0.011391127482056618, 0.027004899457097054, 0.03545019030570984, 0.029525132849812508, 0.00334223173558712, 0.06659428030252457, 0.028256671503186226, -0.015288311056792736, -0.0019778001587837934, 0.03541680797934532, 0.07417167723178864, 0.01869313232600689, 0.01627303846180439, 0.05571220815181732, 0.0767085999250412, 0.020095115527510643, 0.04883580654859543, 0.015346727333962917, -0.020378852263092995, -0.00431026890873909, 0.018492847681045532, -0.023883813992142677, 0.007322867400944233, -0.036017660051584244, -0.014971195720136166, 0.023132750764489174, 0.002426351886242628, 0.033697709441185, -0.0019339880673214793, -0.054543886333703995, -0.0066302199847996235, 0.06469158828258514, 0.03581737354397774, 0.005186509341001511, -0.056146156042814255, 0.05507797747850418, -0.02091294154524803, -0.07263616472482681, 0.007414664141833782, 0.013160298578441143, 0.06352327018976212, -0.06883078068494797, -0.024701638147234917, 0.014612354338169098, -0.009104556404054165, 0.03978966549038887, 0.13378942012786865, 0.05334218591451645, -0.008929308503866196, -0.0030960498843342066, -0.0036614337004721165, -0.007485597860068083, 0.07343730330467224, -0.05971787869930267, -0.05187344178557396, 0.0450638011097908, -0.024735018610954285, -0.06135352700948715, -0.01739128865301609, 0.01660684496164322, -0.01064006332308054, 0.04062417894601822, 0.0022949157282710075, 0.0189935564994812, -0.09213043749332428, -0.06909782439470291, 0.013569210655987263, 0.021396959200501442, 0.008812475949525833, -0.03491609916090965, 0.03775344789028168, -0.033113546669483185, 0.03298002481460571, 0.030877048149704933, -0.047133397310972214, 0.002288656774908304, 0.07917876541614532, 0.025552842766046524, -0.07390463352203369, 0.05701405182480812, -0.03137775510549545, -0.029575204476714134, -0.02483516000211239, -0.04386209696531296, 0.024067407473921776, 0.005507797468453646, -0.009655335918068886, -0.0280230063945055, 0.05701405182480812, 0.031811702996492386, -0.014562283642590046, -0.0008407736895605922, -0.03765330836176872, -0.05804884806275368, -0.00862053781747818, -0.017124243080615997, 0.07510633021593094, 0.035750612616539, -0.005570386070758104, 0.023149440065026283, -0.05848279595375061, -0.061286766082048416, -0.0502711720764637, -0.010373018682003021, -0.02575312741100788, 0.027472227811813354, 0.0525076724588871, -0.023449866101145744, 0.03316361829638481, 0.028306741267442703, -0.016314763575792313, -0.053108520805835724, -0.01884334348142147, -0.02627052552998066, -0.044062379747629166, -0.026954827830195427, -0.006626047659665346, 0.04232659190893173, -0.025569533929228783, 0.0291412565857172, 0.029858939349651337, -0.048068054020404816, -0.023282963782548904, 0.002253189915791154, 0.0006733491318300366, -0.0291412565857172, -0.004961190279573202, -0.05848279595375061, -0.007218553218990564, 0.022465137764811516, -0.03010929375886917, -0.02982555888593197, -0.035049621015787125, 0.00015881859872024506, -0.00684719393029809, 0.007281141821295023, 0.050371311604976654, 0.06328960508108139, -0.013494104146957397, 0.06011844798922539, 0.020011665299534798, 0.06632723659276962, 0.007577394600957632, -0.014687460847198963, 0.006308931857347488, 0.036952316761016846, -0.05264119431376457, 0.007456389721482992, -0.01947757601737976, -0.008228315971791744, 0.018926795572042465, 0.009955761954188347, 0.03266290947794914, 0.04509717971086502, -0.02064589597284794, 0.04129179194569588, -0.051973581314086914, 0.007322867400944233, 0.021664004772901535, -0.0493365153670311, -0.053876277059316635, 0.007222725544124842, -0.01865975186228752, -0.006542596034705639, 0.033263761550188065, -0.042793918401002884, 0.04853538051247597, -0.044696614146232605, -0.02435114234685898, 0.004844358656555414, -0.025068825110793114, -0.02673785388469696, -0.010147700086236, -0.04516394063830376, 0.07363758981227875, -0.02593672089278698, -0.01160810049623251, -0.015530320815742016, -0.020545754581689835, -0.010973869822919369, -0.008845857344567776, -0.022748872637748718, -0.05487769469618797, 0.037453025579452515, 0.004347822163254023, -0.03541680797934532, 0.02368352934718132, -0.007160136941820383, -0.05224062502384186, -0.009697061963379383, 0.023967264220118523, -0.006763742305338383, 0.01981138065457344, 0.005211545154452324, -0.011449542827904224, 0.028440264984965324, 0.01739128865301609, -0.0038471133448183537, -0.019928213208913803, -0.02415085770189762, 0.009146282449364662, -0.023950574919581413, 0.016556773334741592, 0.022331615909934044, -0.014220132492482662, -0.014587318524718285, 0.014887743629515171, 0.02787279523909092, 0.008879237808287144, 0.011416162364184856, -0.0705665722489357, -0.03107733093202114, -0.011699897237122059, 0.03498286008834839, 0.06863049417734146, 0.014854363165795803, -0.0033151099923998117, 0.003882580203935504, -0.022298235446214676, -0.036651890724897385, 0.0005043598939664662, -0.03336390107870102, -0.003920133225619793, -0.002048733877018094, -0.040524039417505264, 0.026504190638661385, -0.0029875629115849733, -0.026621021330356598, -0.03464905545115471, 0.04780100658535957, 0.01770840398967266, 0.03661850839853287, 0.03651836887001991, 0.009054485708475113, 0.019277291372418404, 0.003212881973013282, 0.029074495658278465, 0.004397892858833075, 0.0053993109613657, -0.029041115194559097, 0.010598338209092617, 0.010823656804859638, -0.03334721177816391, -0.054543886333703995, 0.01633145473897457, -0.011816729791462421, -0.06565962731838226, 0.09092873334884644, 0.01887672394514084, 0.050638359040021896, -0.012259022332727909, 0.017608262598514557, -0.024034027010202408, -0.004573141224682331, 0.0631226971745491, 0.005407656077295542, -0.09853950887918472, 0.0804472267627716, -0.03785359114408493, 0.017441360279917717, 0.05818237364292145, -0.00785695668309927, -0.03364763781428337, -0.014562283642590046, -0.032813120633363724, 0.0480346716940403, -0.015338381752371788, -0.05204034224152565, 0.04296082258224487, 0.035850755870342255, -0.018275873735547066, -0.011224224232137203, -0.0431944876909256, 0.05057159811258316, -0.001405114307999611, -0.024034027010202408, -0.0038408543914556503, 0.012834837660193443, -0.0004164750571362674, -0.04432942718267441, -0.03286319226026535, -0.03249600529670715, -0.03828753903508186, -0.017474740743637085, 0.05207372456789017, 0.00011089919280493632, -0.05060497671365738, 0.07724268734455109, 0.05441036447882652, -0.07924552261829376, 0.009705407544970512, -0.015388453379273415, 0.04686634987592697, 0.0314612090587616, -0.04235997051000595, -0.017458049580454826, 0.016915615648031235, 0.03201198950409889, -0.07570718228816986, -0.04977046325802803, -0.03691893443465233, 0.028406884521245956, -0.005199027247726917, -0.02772258222103119, 0.008349320851266384, -0.007381283212453127, 0.0007797497673891485, -0.05407655984163284, -0.006183754652738571, 0.06542596220970154, 0.030526552349328995, -0.015238240361213684, -0.025168966501951218, -0.036952316761016846, 0.03191184625029564, -0.00652173301205039, 0.006021024193614721, 0.031327687203884125, -0.047133397310972214, -0.01216722559183836, 0.013736113905906677, 0.046298880130052567, -0.0037010731175541878, 0.05881660431623459, -0.026621021330356598, -0.0091713173314929, -0.012133845128118992, -0.02884083241224289, -0.02642073854804039, 0.005370102822780609, -0.04322786629199982, 0.023433174937963486, -0.037786830216646194, -0.005883329547941685, -0.013986468315124512, -0.029274778440594673, 0.010314603336155415, 0.032813120633363724, -0.03591751679778099, 0.020061735063791275, 0.02107984386384487, -0.0016033115098252892, -0.08224977552890778, 0.03638484701514244, -0.018459467217326164, 0.029224708676338196, 0.02945837192237377, -0.048902567476034164, -0.006843021605163813, -0.042259830981492996, -0.02204788103699684, -0.00479846028611064, 0.026203764602541924, 0.02768920175731182, 0.05284147709608078, 0.05407655984163284, -0.004143366124480963, -0.05377613380551338, 0.009922380559146404, 0.016306418925523758, 0.005900019779801369, 0.08018018305301666, 0.002309519797563553, -0.021163295954465866, -0.020061735063791275, -0.005916710011661053, 0.020529063418507576, 0.01967785879969597, 0.06338974088430405, -0.03418172523379326, -0.010832002386450768, -0.07250264286994934, -0.06322284042835236, 0.00740631902590394, 0.05874984338879585, -0.0037949560210108757, 0.03721936047077179, -0.06949838995933533, -0.04900271072983742, -0.010481505654752254, -0.012158880941569805, -0.014996230602264404, 0.03364763781428337, -0.03379784896969795, 0.016064409166574478, -0.022815635427832603, -0.009188007563352585, 0.030443100258708, 0.01378618460148573, 0.014086609706282616, 0.004174660425633192, -0.01664857007563114, -0.02224816381931305, 0.035516951233148575, -0.06252185255289078, -0.0074021462351083755, 0.011574720032513142, 0.02398395538330078, 0.005649665370583534, 0.048268336802721024, -0.05561206489801407, 0.04266039654612541, 0.05010426789522171, 0.09279804676771164, 0.008662263862788677, -0.025385940447449684, -0.007464734837412834, 0.0204789936542511, -0.04676621034741402, 0.013418997637927532, -0.06602681428194046, -0.02221478335559368, -0.02174745500087738, 0.0002317082544323057, -0.010756895877420902, -0.03418172523379326, -0.0007036002934910357, -0.02385043352842331, -0.021847598254680634, -0.05594587326049805, 0.003029288724064827, -0.01962778903543949, 0.02064589597284794, -0.07463900744915009, 0.024935301393270493, -0.008729024790227413, -0.05240752920508385, -0.011099047027528286, -0.04850200191140175, 0.03010929375886917, -0.020295400172472, -0.029525132849812508, 0.009112901985645294, 0.04382871836423874, -0.028306741267442703, 0.05874984338879585, -0.005416001193225384, -0.0057748425751924515, 0.015263276174664497, -0.02044561319053173, -0.014128335751593113, 0.020161878317594528, 0.011666516773402691, -0.004727526567876339, 0.03217888996005058, 0.010156044736504555, -0.01662353426218033, 0.001371733727864921, 0.003976462874561548, 0.07250264286994934, -0.05043807625770569, 0.0094967782497406, 0.018726512789726257, -0.0314612090587616, -0.028123149648308754, -0.04643240198493004, 0.023082679137587547, -0.041992783546447754, 0.016189586371183395, -0.055044595152139664, 0.030526552349328995, -0.013986468315124512, -0.021864287555217743, -0.029074495658278465, 0.01994490437209606, -0.001174579607322812, 0.0016606844728812575, -0.057281095534563065, 0.012459306046366692, -0.033397283405065536, -0.07564042508602142, -0.06071929633617401, -0.024618186056613922, -0.051439493894577026, 0.05140611156821251, -0.03591751679778099, 0.011090701445937157, 0.03775344789028168, -0.010539921931922436, 0.03868810459971428, 0.030977189540863037, -0.044529709964990616, 0.019277291372418404, -0.008457807824015617, 0.035049621015787125, 0.028306741267442703, -0.020896250382065773, -0.008048894815146923, 0.027322014793753624, 0.0270883496850729, 0.049369893968105316, -0.0016471236012876034, 0.012142190709710121, -0.043728575110435486, -0.05467740818858147, 0.016139516606926918, -0.0325794592499733, 0.06532581895589828, -0.008987724781036377, -0.014178406447172165, 0.0021008909679949284, -0.0009221388609148562, 0.022932466119527817, -0.031210852786898613, 0.07891172170639038, 0.00001846690065576695, 0.007364592980593443, 0.029041115194559097, 0.038888391107320786, -0.05554530397057533, 0.032612837851047516, 0.07276969403028488, -0.033747777342796326, 0.03581737354397774, 0.025168966501951218, -0.042927440255880356, -0.03131099417805672, 0.006575976498425007, -0.031160783022642136, -0.00917966291308403, -0.0204789936542511, 0.007840266451239586, -0.0018567953957244754, -0.04546436667442322, 0.018275873735547066, -0.015446868725121021, 0.029291469603776932, 0.016706986352801323, 0.010314603336155415, -0.021013082936406136, -0.018910106271505356, -0.027138421311974525, -0.03608442097902298, 0.007673363666981459, -0.01636483520269394, -0.011341055855154991, 0.048902567476034164, 0.060185208916664124, -0.007260278798639774, -0.0291412565857172, 0.027105040848255157, 0.00660101231187582, 0.0014708323869854212, -0.005991816055029631, -0.003488271962851286, -0.030009152367711067, -0.006701153703033924, -0.005078022368252277, 0.005136438645422459, 0.04349491000175476, 0.043895479291677475, -0.035516951233148575, -0.0757739469408989, -0.02386712282896042, 0.007719262037426233, 0.0033693534787744284, 0.02465156652033329, -0.008637228049337864, -0.08972702920436859, 0.02271549217402935, -0.01231743860989809, -0.05294162034988403, 0.03356418386101723, 0.027271943166851997, 0.04569803178310394, 0.07049980759620667, -0.00818241760134697, -0.013427343219518661, -0.036351464688777924, 0.05270795524120331, 0.021680694073438644, 0.024868540465831757, 0.04790114983916283, 0.012667934410274029, -0.022682111710309982, 0.05945083498954773, -0.0015292484313249588, 0.024735018610954285, -0.011875146068632603, 0.07357082515954971, -0.019611097872257233, -0.04075770452618599, 0.004852703772485256, -0.013235405087471008, 0.016139516606926918, -0.024050716310739517, -0.027589058503508568, -0.05497783422470093, 0.052274007350206375, 0.010072593577206135, 0.04169236123561859, 0.05070511996746063, 0.030726835131645203, 0.020829489454627037 ]
43,139
ltxpdflinks._extractor
_extract_annot_link
null
def _extract_annot_link(self, annot, *, shift_rect_origin=(0,0)): if '/Subtype' not in annot or annot['/Subtype'].getObject() != '/Link': logger.debug("Found annotation, not a link: %r", annot) return None if '/A' not in annot: return None annot_A = annot['/A'].getObject() if '/S' not in annot_A or annot_A['/S'].getObject() != '/URI': logger.warning("Link action %r has supported type (/S!=/URI)", annot_A) return None if '/URI' not in annot_A: logger.warning("Link action %r does not have URI", annot_A) return None URI = annot_A['/URI'].getObject() if '/Rect' not in annot: logger.warning("Can't get annotation's bounding box (/Rect): %r", annot) return None else: (x0,y0,x1,y1) = annot['/Rect'].getObject() x = x0 - shift_rect_origin[0] y = y0 - shift_rect_origin[1] w = x1 - x0 h = y1 - y0 return ExtractedLink(link_bbox=(x,y,w,h), link_type='URI', link_target=URI)
(self, annot, *, shift_rect_origin=(0, 0))
[ 0.009277967736124992, 0.04466185346245766, -0.054374031722545624, 0.08081668615341187, -0.0006147651001811028, -0.042676880955696106, 0.03603077307343483, -0.004331047646701336, -0.01832553744316101, 0.07266412675380707, 0.027470583096146584, 0.032255783677101135, 0.036066219210624695, 0.005746668670326471, -0.002946441527456045, 0.023996884003281593, -0.015906354412436485, 0.002740412252023816, 0.021338440477848053, 0.061675891280174255, 0.0026916740462183952, -0.06309372931718826, 0.002034817123785615, -0.00025961361825466156, 0.001700296183116734, 0.01919396221637726, -0.021338440477848053, -0.03594215586781502, -0.007098044268786907, 0.010855311527848244, 0.018360983580350876, -0.11952362209558487, 0.039344966411590576, 0.0006452263914979994, 0.01565823331475258, -0.013460585847496986, -0.012583299539983273, -0.0027116124983876944, -0.08152560144662857, -0.049482498317956924, -0.05079399421811104, 0.017722956836223602, 0.02881752885878086, -0.03241528943181038, 0.049198929220438004, -0.006925245746970177, -0.02936694025993347, -0.055401965975761414, -0.12384802848100662, -0.040621016174554825, -0.011741459369659424, -0.027364246547222137, -0.007718347944319248, 0.03331916034221649, -0.01487842295318842, 0.0068144770339131355, 0.0073727504350245, 0.06770169734954834, 0.00793102290481329, 0.02587551809847355, 0.023784209042787552, 0.009313413873314857, -0.02282716892659664, 0.038317032158374786, 0.039734870195388794, -0.012858005240559578, 0.015144267119467258, -0.027009787037968636, -0.04374025762081146, 0.03813980519771576, 0.022649940103292465, 0.030341703444719315, 0.0025875517167150974, -0.017953354865312576, 0.0242450051009655, -0.031103789806365967, 0.013770737685263157, -0.05589820817112923, 0.1051325798034668, -0.02247270941734314, 0.033886294811964035, 0.030731607228517532, 0.031139235943555832, 0.021675176918506622, 0.0500141866505146, -0.03291153162717819, 0.06965122371912003, 0.005471962969750166, -0.02342974953353405, 0.0037661283276975155, -0.01710265316069126, -0.020540907979011536, -0.015206296928226948, -0.06156955286860466, -0.027966827154159546, 0.05522473528981209, -0.009853964671492577, -0.0318836010992527, 0.052814412862062454, 0.0037018826697021723, 0.011652844026684761, -0.03450659662485123, -0.10811004042625427, 0.0669218897819519, -0.0015031283255666494, 0.03774989768862724, 0.005733376834541559, -0.026371760293841362, -0.09946123510599136, 0.03452432155609131, 0.039415858685970306, 0.020399123430252075, -0.032929252833127975, 0.012069334276020527, 0.01586204580962658, -0.022437263280153275, -0.010695804841816425, -0.05355877801775932, -0.021746069192886353, -0.024475403130054474, 0.014382179826498032, -0.02002694085240364, -0.03487877920269966, -0.007226535584777594, -0.0035113608464598656, -0.008427266031503677, -0.02192329801619053, -0.005498547572642565, 0.0198142658919096, -0.05954913794994354, -0.003212285926565528, -0.027878211811184883, -0.0736566111445427, -0.00861778762191534, -0.04292500391602516, 0.007075890898704529, -0.025255214422941208, -0.0023527226876467466, -0.06656742841005325, -0.033531833440065384, -0.010722389444708824, -0.013106127269566059, 0.04980150982737541, -0.03023536503314972, -0.08967816084623337, 0.0034936380106955767, -0.01899901032447815, 0.0177761260420084, 0.07961152493953705, -0.011909827589988708, 0.037289101630449295, -0.09315185993909836, 0.019247131422162056, 0.03349638730287552, 0.02656671218574047, 0.0005643654149025679, -0.030465763062238693, -0.017864741384983063, 0.01655324175953865, 0.029863182455301285, 0.010429960675537586, -0.09343542903661728, -0.010616051033139229, -0.07564157992601395, 0.043492138385772705, 0.0036686521489173174, 0.05182192847132683, -0.0024701370857656, -0.001790018635801971, -0.016296260058879852, -0.0032078551594167948, 0.024705803021788597, -0.014213811606168747, -0.0566425696015358, -0.026212254539132118, 0.09194669872522354, -0.0173684973269701, 0.06156955286860466, -0.004293386358767748, 0.010837588459253311, -0.03459521383047104, -0.002815734827890992, 0.028144055977463722, 0.0001619989052414894, -0.01371756847947836, -0.014825253747403622, -0.0034360382705926895, -0.005640331190079451, 0.005299163982272148, 0.0013170372694730759, 0.01245923899114132, 0.005573870148509741, -0.026726219803094864, 0.03193676844239235, -0.06082518771290779, -0.056288111954927444, -0.04554799944162369, 0.04214519262313843, -0.028977034613490105, 0.027399692684412003, 0.020487738773226738, 0.008573480881750584, -0.06110875681042671, 0.05146746709942818, 0.01919396221637726, -0.011032541282474995, 0.062278471887111664, 0.04965972527861595, -0.032255783677101135, 0.004076280165463686, 0.012007303535938263, -0.014550548046827316, -0.015924077481031418, -0.04916348308324814, 0.05047498270869255, 0.03682830557227135, -0.08343968540430069, 0.07188431173563004, 0.0006950722308829427, -0.001453282544389367, 0.012973204255104065, -0.014718916267156601, -0.000029007496777921915, 0.023199351504445076, 0.04366936534643173, -0.0102881770581007, 0.10463634133338928, -0.05954913794994354, 0.037430886179208755, -0.01110343262553215, -0.007793670520186424, -0.08237630873918533, 0.03179498389363289, 0.014364456757903099, 0.06522048264741898, 0.014497378841042519, 0.02541472017765045, 0.010438822209835052, 0.015259466134011745, -0.005436517298221588, -0.023855101317167282, 0.05107756331562996, 0.000803071481641382, 0.046824052929878235, 0.01933574676513672, 0.00868424866348505, 0.03308876231312752, 0.008170283399522305, -0.03487877920269966, -0.06018716096878052, 0.02008011005818844, 0.06557494401931763, -0.0025543211959302425, 0.005228272173553705, 0.0007975330809131265, 0.016455765813589096, -0.057847730815410614, -0.07500355690717697, -0.001516420510597527, -0.001790018635801971, 0.011449030600488186, -0.005627038888633251, 0.021887851879000664, 0.006743585225194693, 0.009676734916865826, -0.03273430094122887, -0.005152949597686529, 0.022720830515027046, -0.012282009236514568, 0.010429960675537586, 0.06110875681042671, 0.0041272337548434734, -0.01219339482486248, 0.024812139570713043, 0.0069208149798214436, -0.001554081798531115, 0.023961437866091728, -0.016260813921689987, 0.039344966411590576, -0.062207579612731934, -0.02103715017437935, -0.010607189498841763, 0.006353680044412613, 0.0541968047618866, 0.002902134321630001, -0.0113072469830513, 0.05565008521080017, -0.004085141699761152, -0.005086488556116819, -0.0017290960531681776, -0.0051972572691738605, 0.058131299912929535, -0.004051911178976297, 0.005206118803471327, 0.06100241839885712, 0.06245570257306099, 0.01141358446329832, 0.047036729753017426, 0.007660748437047005, 0.01717354543507099, 0.01532149687409401, 0.0006136574083939195, 0.01154650654643774, 0.01073125097900629, -0.04760386422276497, 0.028711190447211266, 0.0053833480924367905, 0.008737417869269848, 0.01586204580962658, 0.013097265735268593, 0.027949104085564613, -0.02520204521715641, -0.0266376044601202, 0.012751667760312557, -0.057847730815410614, 0.021639730781316757, 0.026052746921777725, 0.04576067626476288, -0.013930244371294975, 0.03214944526553154, 0.027062956243753433, -0.002709397114813328, -0.009836241602897644, -0.00868424866348505, 0.05345243960618973, -0.08570822328329086, -0.06075429916381836, 0.011484476737678051, -0.0033983769826591015, 0.048383671790361404, -0.007363888900727034, 0.006287219002842903, -0.032787472009658813, -0.02491847798228264, -0.004661137703806162, 0.044378284364938736, -0.06273926794528961, -0.054374031722545624, -0.04232242330908775, -0.018414152786135674, -0.05713881552219391, -0.03500283882021904, 0.02989862859249115, 0.08060400933027267, 0.06252659112215042, 0.021692899987101555, -0.024209558963775635, -0.023731039837002754, -0.03984120860695839, -0.08797676116228104, -0.014240396209061146, 0.0493052676320076, -0.009579258039593697, -0.007532256655395031, 0.0039810193702578545, 0.07135262340307236, -0.009065292775630951, -0.07635050266981125, -0.0009537166333757341, 0.02677938900887966, 0.05891111120581627, -0.00742591917514801, 0.008351943455636501, -0.06047073006629944, 0.011059124954044819, 0.04728484898805618, -0.06344818323850632, 0.0049757203087210655, 0.04455551505088806, 0.007443642243742943, -0.005861868150532246, -0.04544166103005409, -0.017519142478704453, -0.011564229615032673, 0.005139657761901617, 0.025148876011371613, 0.024829862639307976, -0.024439958855509758, -0.022454986348748207, -0.03746633231639862, -0.0028179502114653587, 0.05781228467822075, -0.012725083157420158, 0.06805615872144699, 0.011130017228424549, -0.01812172308564186, -0.011670567095279694, 0.018555935472249985, -0.018236922100186348, 0.013850491493940353, 0.031086066737771034, 0.006247342564165592, 0.026442652568221092, -0.059159230440855026, 0.000529473356436938, -0.033265989273786545, -0.023376580327749252, 0.01467460859566927, -0.025627397000789642, 0.02848079241812229, 0.033265989273786545, 0.0566425696015358, -0.0015418973052874207, -0.005728946067392826, 0.032592520117759705, -0.02015100233256817, -0.004599107429385185, 0.04019566625356674, -0.03665107488632202, 0.0363675095140934, -0.00413609528914094, -0.030341703444719315, 0.023855101317167282, 0.019247131422162056, 0.02670849673449993, -0.013292217627167702, 0.018945841118693352, 0.019920604303479195, -0.09024529904127121, -0.04388204216957092, -0.031174682080745697, 0.011493337340652943, -0.004745321813970804, 0.06245570257306099, -0.012468100525438786, -0.04636325687170029, -0.03358500450849533, 0.0031857015565037727, 0.002301769098266959, -0.002184354467317462, 0.0343293696641922, -0.02015100233256817, 0.02486530877649784, -0.03948674723505974, 0.0077272094786167145, 0.03581809625029564, -0.024705803021788597, 0.03255707398056984, 0.0202218946069479, -0.051928263157606125, 0.013221326284110546, 0.023943714797496796, 0.031139235943555832, 0.00483393669128418, -0.03064299374818802, -0.031103789806365967, -0.015924077481031418, 0.018644550815224648, -0.032787472009658813, 0.00527701061218977, 0.014196088537573814, 0.05533107370138168, 0.003801574232056737, 0.04810010641813278, -0.03590670973062515, -0.05692613869905472, 0.017350774258375168, -0.004993443377315998, -0.05171559005975723, -0.008484865538775921, -0.03145824745297432, -0.046965837478637695, -0.058982003480196, -0.035321854054927826, 0.051325682550668716, 0.02956189215183258, 0.005919467657804489, 0.00589288305491209, -0.1123635470867157, -0.036332063376903534, 0.05331065505743027, -0.005099780857563019, 0.01219339482486248, 0.04951794072985649, 0.06663832068443298, 0.0035645298194140196, 0.058343976736068726, -0.008604495786130428, -0.0026074901688843966, 0.016810225322842598, 0.007572133559733629, -0.05178648233413696, -0.056429896503686905, 0.005999221000820398, -0.03181270882487297, 0.03411669284105301, -0.06156955286860466, -0.011581952683627605, -0.020470015704631805, 0.02350064180791378, -0.008861478418111801, 0.11973629891872406, -0.028622575104236603, -0.021196655929088593, 0.0283212848007679, 0.021302994340658188, 0.040762800723314285, 0.02661988139152527, -0.004040834028273821, 0.0035911141894757748, 0.02800227329134941, -0.04296045005321503, -0.038317032158374786, -0.017687510699033737, 0.007297427859157324, -0.04391748830676079, -0.049198929220438004, 0.014178365468978882, -0.01443534903228283, 0.03464838117361069, 0.019158516079187393, 0.05040409043431282, 0.042535096406936646, 0.034293923527002335, -0.03697009012103081, 0.0033429928589612246, 0.025627397000789642, 0.019034456461668015, 0.03835247829556465, 0.025308383628726006, 0.031139235943555832, -0.009747626259922981, -0.008081668056547642, -0.060931526124477386, -0.002346076536923647, 0.014727777801454067, 0.004220279399305582, 0.04086913913488388, -0.025361550971865654, -0.04047923535108566, -0.018431875854730606, 0.008670956827700138, -0.04232242330908775, -0.019725650548934937, 0.030465763062238693, 0.10662131011486053, -0.0051219346933066845, 0.026212254539132118, 0.028977034613490105, -0.007080321200191975, -0.005082057788968086, -0.08046222478151321, -0.06883596628904343, 0.04101092368364334, -0.0004912582226097584, 0.037572670727968216, 0.011927550658583641, 0.023606978356838226, 0.04292500391602516, 0.029845459386706352, -0.02280944585800171, 0.04005388170480728, -0.008865909650921822, 0.05713881552219391, -0.0404437892138958, 0.10151709616184235, -0.0011259616585448384, -0.03037714958190918, 0.05121934786438942, 0.011200908571481705, -0.03753722459077835, -0.007027152460068464, -0.00177894183434546, 0.05086488649249077, 0.013566923327744007, 0.029579615220427513, 0.013460585847496986, -0.009109600447118282, -0.010500852018594742, 0.026407206431031227, -0.03399263322353363, -0.004811782855540514, -0.035445913672447205, -0.019991496577858925, 0.009322275407612324, 0.0035689605865627527, -0.008905786089599133, -0.004051911178976297, 0.05742238089442253, -0.021302994340658188, 0.06993479281663895, 0.007465795613825321, 0.07627961039543152, -0.002552105812355876, -0.02328796498477459, -0.03725365549325943, -0.0420743003487587, -0.06422799825668335, -0.02778959646821022, -0.0727350190281868, -0.00622961949557066, 0.019938327372074127, -0.03686375170946121, 0.02934921719133854, 0.02158656157553196, -0.017811572179198265, 0.06989934295415878, -0.0012782682897523046, -0.040904585272073746, -0.050297752022743225, 0.00997802522033453, -0.014896145090460777, -0.014196088537573814, -0.02412094548344612, 0.014550548046827316, 0.012663053348660469, -0.016508935019373894, -0.004980151075869799, -0.0832270085811615, -0.018033109605312347, 0.007248689420521259, 0.00456366129219532, -0.00342939211986959, -0.03526868671178818, 0.02194102108478546, -0.046894945204257965, -0.042464204132556915, 0.042818665504455566, -0.03416986018419266, 0.052956197410821915, 0.10690487921237946, -0.044980864971876144, -0.033141929656267166, 0.009632427245378494, -0.022915784269571304, -0.0038037896156311035, 0.04147171974182129, -0.0018786335131153464, 0.048879917711019516, 0.028108609840273857, 0.035321854054927826, 0.00033009008620865643, 0.05100667104125023, -0.07213243842124939, 0.049553386867046356, -0.0099071329459548, 0.01567595638334751, -0.0029132110066711903, -0.0061188507825136185, 0.05121934786438942, -0.018609104678034782, 0.015968384221196175, -0.01729760691523552, -0.002151123946532607, -0.0035689605865627527, 0.032291229814291, 0.005498547572642565, -0.01269849855452776, -0.032291229814291, 0.026814835146069527, 0.017120376229286194, 0.04515809565782547, 0.04466185346245766, 0.013292217627167702, 0.01906990259885788, 0.010695804841816425, -0.03549908474087715, 0.018272368237376213, -0.018290091305971146, 0.06628385931253433, -0.006748015992343426, -0.016987454146146774, 0.020416846498847008, -0.004246863536536694, -0.06592939794063568, 0.0069208149798214436, -0.008196868002414703, -0.0351446233689785, 0.04717851057648659, 0.00820572953671217, -0.03241528943181038, 0.014009997248649597, 0.013504893518984318, -0.006544202100485563, -0.005073196720331907, -0.04618602618575096, 0.07861904054880142, -0.04005388170480728, 0.04214519262313843, -0.038919612765312195, -0.06288105249404907, -0.007603148464113474, -0.02839217707514763, 0.017076069489121437, -0.0040962183848023415, -0.009446335956454277, 0.0825180858373642, -0.02050546184182167, 0.02282716892659664, -0.008094960823655128, 0.040621016174554825, 0.01048312894999981, 0.016854532063007355, -0.03821069747209549, -0.01134269218891859, -0.012627607211470604, -0.03877783194184303, -0.0010052239522337914, 0.0444137305021286, -0.03202538192272186, 0.04175528883934021, 0.018786335363984108, 0.0012970989337190986, -0.013363109901547432, -0.03689919784665108, 0.010181838646531105, -0.05217638611793518, -0.010855311527848244, -0.06156955286860466, -0.021161211654543877, -0.04264143481850624, 0.040621016174554825, -0.027966827154159546, -0.013487170450389385, 0.042676880955696106, -0.0444137305021286, -0.020399123430252075, 0.04714306443929672, -0.005157380364835262, -0.06270382553339005, 0.013230187818408012, -0.025786902755498886, 0.0016050352714955807, 0.049340713769197464, 0.022047359496355057, -0.0009260245133191347, -0.03835247829556465, -0.02888842113316059, 0.0064777410589158535, -0.022118249908089638, -0.0005643654149025679, 0.04916348308324814, 0.01919396221637726, 0.0750744491815567, -0.02771870419383049, -0.006442294921725988, -0.03349638730287552, -0.004410800989717245, 0.008440558798611164, -0.035445913672447205, 0.026176808401942253, 0.009614704176783562, -0.01222884003072977, 0.03207855299115181, 0.004125018138438463, -0.0056048850528895855, -0.029047926887869835, 0.0014566055033355951, -0.031174682080745697, -0.034914225339889526, 0.03037714958190918, -0.054515816271305084, 0.014763223007321358, -0.014789807610213757, -0.017253298312425613, -0.057918623089790344, -0.011537645012140274, 0.00953495129942894, 0.05121934786438942, -0.0030727176927030087, -0.02888842113316059, 0.013815045356750488, -0.05873388051986694, -0.03223805874586105, -0.03689919784665108, 0.028516238555312157, -0.050510428845882416, 0.00483393669128418 ]
43,140
ltxpdflinks._extractor
extractGraphicLinks
null
def extractGraphicLinks(self, pageno=None): if pageno is None: pageno = 0 with open(self.fname, 'rb') as f: pdf = PyPDF2.PdfFileReader(f) page = pdf.getPage(pageno).getObject() page_size = (page.mediaBox.getWidth(), page.mediaBox.getHeight()) page_bottomleft = page.mediaBox.lowerLeft extracted_list = [] if '/Annots' in page: for annot in page['/Annots']: annot = annot.getObject() extracted = self._extract_annot_link(annot, shift_rect_origin=page_bottomleft) if extracted is not None: logger.debug("Extracted link: %r", extracted) extracted_list.append(extracted) return ExtractedGraphicLinks(self.fname, page_size, extracted_list)
(self, pageno=None)
[ -0.02889731526374817, -0.008034840226173401, -0.03946676105260849, 0.047937311232089996, -0.03811746835708618, 0.01059755589812994, 0.02168235555291176, -0.03491290286183357, 0.003818306140601635, 0.06720218807458878, 0.01941479742527008, 0.014532987959682941, 0.02141999453306198, 0.0006887005874887109, -0.014148814603686333, -0.009641808457672596, 0.02376251295208931, -0.012499681673943996, 0.0013469484401866794, 0.02112015150487423, -0.02754802443087101, 0.024886922910809517, -0.013755272142589092, -0.03242046386003494, -0.007158738095313311, 0.02333148941397667, -0.03553132712841034, -0.014973381534218788, -0.0010816581780090928, -0.0037995658349245787, -0.02683589793741703, -0.09287619590759277, 0.014889051206409931, 0.004050215240567923, 0.07334895431995392, 0.019246136769652367, 0.029290858656167984, 0.0332450307905674, -0.058131951838731766, 0.02505558356642723, 0.05280974879860878, -0.001134364865720272, 0.011712594889104366, -0.007069722283631563, 0.027379361912608147, 0.003000766970217228, -0.012190468609333038, -0.03170833736658096, -0.09280123561620712, -0.03367605432868004, -0.02333148941397667, 0.011778186075389385, 0.02912219613790512, 0.01670684665441513, 0.05760722979903221, 0.013342988677322865, -0.004197794012725353, 0.10906768590211868, 0.07705950736999512, 0.01388645265251398, -0.035718731582164764, -0.0409659743309021, 0.01330550853163004, -0.06281699240207672, 0.08695430308580399, 0.01413007453083992, 0.026742197573184967, -0.02141999453306198, -0.04947400093078613, 0.04490140452980995, -0.0028812983073294163, 0.03431322053074837, -0.016819287091493607, -0.02861621230840683, 0.0025275780353695154, 0.010560075752437115, 0.05453384295105934, 0.002030964009463787, 0.06030581146478653, 0.017887474969029427, -0.019733380526304245, 0.031239833682775497, -0.024231016635894775, 0.021307552233338356, 0.04801227152347565, -0.016397632658481598, 0.07136250287294388, -0.018590230494737625, -0.004685038235038519, 0.009623068384826183, -0.01670684665441513, 0.030658889561891556, 0.019377317279577255, -0.05637037754058838, -0.0356999896466732, -0.024512119591236115, -0.04640061780810356, 0.002452617511153221, 0.05295966938138008, -0.029796842485666275, -0.008746965788304806, -0.042652588337659836, -0.042652588337659836, 0.044076837599277496, 0.003389625111594796, -0.0046499003656208515, 0.00519102206453681, -0.0007941139629110694, -0.027885345742106438, 0.06311683356761932, -0.06139273941516876, -0.022675585001707077, 0.06667745858430862, -0.016575664281845093, 0.019508497789502144, -0.02683589793741703, -0.010850547812879086, -0.02333148941397667, -0.01663188450038433, -0.05273478850722313, -0.022581882774829865, -0.03442566096782684, -0.021157631650567055, 0.027585504576563835, -0.07237447053194046, 0.004289152566343546, 0.014064484275877476, -0.012715193443000317, 0.0276792049407959, -0.04759998619556427, -0.004577282350510359, 0.013211807236075401, -0.01081306766718626, 0.00798799004405737, -0.01359598059207201, -0.04089101403951645, -0.0405162088572979, -0.024099836125969887, -0.053484395146369934, -0.04137825593352318, -0.00863452535122633, -0.01556369662284851, -0.02619873359799385, 0.02917841635644436, -0.06356659531593323, 0.02676093764603138, 0.033582352101802826, -0.0037878532893955708, -0.0056267306208610535, -0.05854423716664314, 0.005326888058334589, -0.029065975919365883, 0.03534392639994621, -0.026667237281799316, 0.01563865691423416, 0.008939052931964397, -0.047150224447250366, 0.045351170003414154, -0.03127731382846832, 0.046850379556417465, 0.01649133488535881, 0.012443461455404758, -0.020089443773031235, -0.023931173607707024, 0.013324248604476452, 0.008761021308600903, 0.04336471110582352, -0.06356659531593323, 0.03453810140490532, 0.00949188694357872, 0.0258988905698061, 0.029815582558512688, -0.0315396748483181, -0.029140936210751534, 0.044788964092731476, 0.02091401070356369, 0.003174113342538476, 0.08972784876823425, 0.05659525841474533, 0.03674943745136261, -0.03961668163537979, -0.013624090701341629, 0.0045679123140871525, -0.009402871131896973, -0.0005598620628006756, 0.04565101116895676, 0.03148345649242401, -0.026948338374495506, 0.025224244222044945, -0.0737612396478653, 0.05183526128530502, 0.03704928234219551, 0.00841432809829712, 0.002801652764901519, 0.013998894020915031, -0.05487116426229477, -0.02569274790585041, 0.04325227066874504, -0.03611227497458458, 0.06180502101778984, -0.004106435924768448, -0.01990204118192196, -0.08020785450935364, -0.009505942463874817, -0.029740622267127037, 0.03984156250953674, -0.005518974736332893, 0.07233698666095734, -0.04441416263580322, 0.038792114704847336, 0.012321650050580502, -0.014354956336319447, 0.030377786606550217, -0.04572597146034241, 0.05374675616621971, 0.021532434970140457, -0.026367394253611565, 0.06165510043501854, -0.020857788622379303, -0.022788025438785553, -0.028503771871328354, -0.01323991734534502, -0.007130627986043692, -0.021663615480065346, 0.04403935745358467, 0.013258657418191433, 0.08500532805919647, 0.015263853594660759, 0.06915116310119629, -0.024811960756778717, 0.0048349592834711075, -0.061992425471544266, 0.006399761885404587, 0.021607395261526108, 0.05809447169303894, -0.028672432526946068, 0.007514800876379013, -0.01885259337723255, 0.006460667587816715, 0.008929682895541191, -0.026498574763536453, 0.02876613289117813, -0.013296138495206833, 0.03575621172785759, 0.036786917597055435, 0.02484944276511669, 0.013052515685558319, -0.014514247886836529, 0.0006149112596176565, -0.014523617923259735, 0.021532434970140457, 0.031876999884843826, -0.01456109806895256, -0.01656629517674446, -0.03403211757540703, -0.04396439716219902, -0.11184123158454895, -0.03234550356864929, 0.013586610555648804, 0.021026451140642166, 0.08815367519855499, -0.016228972002863884, -0.017597002908587456, -0.02947825938463211, 0.05794455111026764, 0.012790153734385967, 0.007884918712079525, 0.0024315346963703632, -0.009154564701020718, 0.03075258992612362, -0.036711957305669785, -0.010972359217703342, 0.0004034989106003195, 0.025392906740307808, -0.011974956840276718, 0.060830533504486084, -0.0073929899372160435, -0.005556455347687006, 0.037798888981342316, 0.009346650913357735, 0.0004617690574377775, 0.00297968415543437, -0.009754248894751072, 0.010044721886515617, 0.042202822864055634, -0.020145663991570473, 0.031502194702625275, 0.028709912672638893, -0.031146133318543434, -0.040928494185209274, 0.04565101116895676, 0.03920440003275871, -0.0020625879988074303, -0.04355211555957794, 0.012555901892483234, -0.006821415387094021, 0.027098260819911957, 0.012799523770809174, -0.08215682953596115, -0.009894800372421741, 0.005340943578630686, -0.013436689041554928, 0.04932408034801483, 0.00011793119483627379, -0.07818391174077988, 0.018965033814311028, 0.02533668652176857, -0.013427319005131721, 0.0278291255235672, -0.04059116914868355, 0.017325270920991898, -0.005397163797169924, 0.026573535054922104, 0.06173006072640419, -0.0627795085310936, -0.011881256476044655, 0.01920865662395954, 0.07544784992933273, -0.002724349731579423, 0.000617253768723458, -0.019808340817689896, 0.06855147331953049, -0.025561567395925522, -0.047000300139188766, 0.11783807724714279, 0.026086291298270226, -0.031146133318543434, 0.005097321234643459, 0.013980153948068619, 0.05082329362630844, 0.02762298472225666, 0.02361259236931801, -0.0372554212808609, 0.04362707585096359, -0.04508880525827408, 0.044564083218574524, -0.024718260392546654, -0.03204565867781639, -0.056707702577114105, -0.08260659128427505, -0.0483870729804039, -0.044564083218574524, -0.0034903534688055515, -0.008044210262596607, 0.023387709632515907, 0.04632565751671791, -0.014392436482012272, -0.04625069722533226, -0.010232123546302319, -0.061842501163482666, -0.008821927011013031, 0.10516973584890366, -0.04152817651629448, 0.04059116914868355, -0.034500621259212494, 0.05959368497133255, 0.002171515254303813, -0.010438265278935432, -0.016069680452346802, 0.051985181868076324, 0.06922612339258194, 0.05693258345127106, -0.06379147619009018, -0.059706125408411026, 0.06038077175617218, 0.012293539941310883, 0.04231526330113411, 0.008878147229552269, -0.0009346650913357735, 0.01537629496306181, -0.01669747568666935, -0.0028742707800120115, -0.03363857418298721, -0.03217684105038643, 0.03909195587038994, -0.048499513417482376, 0.008611099794507027, -0.005308147985488176, -0.02327526919543743, 0.03273904696106911, -0.05288470908999443, 0.01676306687295437, 0.05502108857035637, 0.01676306687295437, 0.0020719580352306366, -0.03849227353930473, 0.0149921216070652, 0.01576983742415905, 0.0299842432141304, -0.021307552233338356, 0.002839133143424988, -0.038867074996232986, -0.008662635460495949, 0.03961668163537979, 0.06274203211069107, -0.09107714146375656, 0.0339946374297142, 0.015357554890215397, -0.01505771279335022, -0.00752885639667511, 0.006446612533181906, 0.037367865443229675, -0.03562502935528755, -0.0024315346963703632, -0.016884876415133476, -0.012527791783213615, 0.0054674395360052586, 0.0035559439565986395, -0.013774012215435505, 0.018861962482333183, -0.008620469830930233, 0.01704416796565056, -0.00960432831197977, -0.005012990906834602, 0.044639043509960175, 0.022394482046365738, 0.004722518380731344, 0.017325270920991898, -0.02670471742749214, 0.005242557730525732, -0.01181566622108221, 0.015732357278466225, -0.0112440912052989, 0.031164873391389847, 0.009468462318181992, -0.022225821390748024, -0.010606925934553146, 0.0076787774451076984, -0.02904723584651947, 0.041640616953372955, 0.04145321622490883, 0.0006670323200523853, 0.009074918925762177, -0.06180502101778984, 0.014889051206409931, 0.022862985730171204, -0.02185101807117462, -0.026929598301649094, -0.003993995022028685, -0.03532518818974495, 0.039579201489686966, 0.0025767709594219923, 0.0016503046499565244, 0.046138253062963486, 0.02432471700012684, -0.06349163502454758, -0.0038065933622419834, -0.017081648111343384, -0.012087398208677769, -0.028634952381253242, -0.05018612742424011, -0.00060671241953969, 0.03894203528761864, -0.030359046533703804, -0.012911965139210224, -0.016669364646077156, 0.01684739626944065, -0.0412658154964447, -0.029234638437628746, 0.06131777912378311, 0.030077943578362465, 0.032645344734191895, -0.002068444387987256, -0.05003620684146881, -0.008896887302398682, -0.015329444780945778, -0.0073929899372160435, 0.056782662868499756, -0.10277099162340164, -0.02320030890405178, 0.08245667070150375, -0.03995400294661522, -0.03969164192676544, -0.054196521639823914, 0.012780783697962761, 0.04145321622490883, 0.03734912350773811, -0.0299842432141304, 0.06266707181930542, -0.020595427602529526, 0.033076368272304535, -0.024811960756778717, 0.0276792049407959, -0.011525193229317665, -0.032158102840185165, 0.05389667674899101, -0.032589126378297806, 0.001857617637142539, -0.05910643935203552, -0.047000300139188766, -0.006516887806355953, 0.04546361044049263, -0.0405162088572979, 0.017896845936775208, 0.052847228944301605, 0.04872439429163933, 0.05014864727854729, 0.03688061982393265, -0.0112440912052989, -0.041790541261434555, 0.02147621475160122, -0.07735934853553772, 0.009365390986204147, -0.00035079222288914025, -0.0035418886691331863, 0.0205579474568367, 0.0012637890176847577, 0.026873378083109856, -0.051497939974069595, 0.00752885639667511, 0.03195196017622948, 0.018880702555179596, 0.01038204412907362, 0.046363137662410736, -0.016163380816578865, -0.01352102030068636, 0.017662594094872475, -0.03703054040670395, -0.01885259337723255, 0.04902423918247223, 0.034013375639915466, -0.03483794257044792, -0.022282041609287262, -0.03751778602600098, -0.02068912796676159, 0.008484603837132454, -0.06544061005115509, 0.04505132511258125, -0.01926487684249878, -0.03504408523440361, 0.056782662868499756, 0.012743303552269936, -0.014973381534218788, -0.04388943687081337, 0.009304485283792019, -0.013436689041554928, 0.014504877850413322, -0.015582436695694923, 0.1187376081943512, 0.024643300101161003, 0.0276792049407959, -0.04010392725467682, -0.09025257080793381, 0.024231016635894775, 0.01606031134724617, -0.025861410424113274, 0.025524087250232697, -0.015938499942421913, 0.07983304560184479, -0.003921377006918192, 0.04759998619556427, 0.005003620870411396, -0.02676093764603138, 0.0038487587589770555, 0.009772988967597485, 0.11468973010778427, -0.011206611059606075, -0.029628179967403412, 0.004877124447375536, 0.014898421242833138, 0.007552281487733126, 0.005158226937055588, -0.024137316271662712, -0.0036168494261801243, 0.002194940345361829, -0.01563865691423416, 0.004113463219255209, 0.04104093462228775, -0.052847228944301605, 0.006329486612230539, 0.016678735613822937, -0.024455899372696877, -0.09310107678174973, -0.008990587666630745, 0.03174581751227379, -0.007449210621416569, -0.006085864268243313, -0.04816219210624695, -0.007889604195952415, -0.04673793911933899, 0.036505818367004395, -0.018880702555179596, 0.019105585291981697, -0.0011888283770531416, 0.023162828758358955, -0.00048021640395745635, -0.04355211555957794, -0.014973381534218788, 0.013586610555648804, -0.06442864239215851, -0.024231016635894775, 0.00025226001162081957, -0.02312534861266613, -0.05337195470929146, -0.035943612456321716, 0.0740610808134079, 0.024024875834584236, -0.014607948251068592, -0.08597981929779053, -0.011581414379179478, 0.04726266488432884, 0.06750202924013138, -0.015404405072331429, -0.0027009244076907635, -0.01720345951616764, 0.021494954824447632, 0.057344865053892136, -0.05367179587483406, -0.0412658154964447, 0.017999915406107903, -0.021007711067795753, 0.05003620684146881, 0.0033568297512829304, -0.04711274430155754, -0.06746454536914825, 0.027922827750444412, -0.044788964092731476, 0.025074323639273643, 0.01505771279335022, 0.06581541150808334, 0.03112739324569702, -0.03954172134399414, 0.0038065933622419834, 0.040928494185209274, 0.015357554890215397, -0.041640616953372955, 0.03588739037513733, -0.0008122684666886926, 0.024605819955468178, 0.10397036373615265, 0.020520467311143875, 0.011881256476044655, 0.020220624282956123, -0.002258188324049115, 0.009529367089271545, -0.04201542213559151, -0.014429917559027672, -0.03255164623260498, -0.020183144137263298, 0.029290858656167984, -0.06326675415039062, -0.02726692147552967, -0.03212062269449234, -0.03127731382846832, 0.0030804125126451254, 0.012443461455404758, 0.006737084593623877, -0.013877082616090775, 0.07840880006551743, 0.012724563479423523, 0.02876613289117813, 0.029290858656167984, -0.0012848717160522938, -0.023294009268283844, -0.06716470420360565, 0.011206611059606075, -0.03195196017622948, -0.021232591941952705, 0.002518207998946309, 0.041003454476594925, 0.021363774314522743, -0.0679892748594284, 0.04276502877473831, -0.007889604195952415, -0.04373951628804207, -0.018290389329195023, 0.0004313163226470351, -0.00303356209769845, -0.01145960297435522, 0.031652119010686874, -0.005790707189589739, 0.08605477958917618, 0.029628179967403412, 0.012509051710367203, 0.00903275329619646, -0.006474722642451525, 0.04872439429163933, -0.012715193443000317, 0.006821415387094021, 0.0299842432141304, -0.0715498998761177, 0.05524596944451332, -0.03204565867781639, 0.017465822398662567, -0.02325652912259102, 0.012837003916501999, 0.055920615792274475, -0.01904936507344246, 0.024924403056502342, 0.08575493842363358, -0.037292901426553726, 0.026030071079730988, 0.03875463455915451, -0.005345628596842289, -0.03946676105260849, 0.03356361389160156, 0.007285234052687883, -0.047637466341257095, 0.025018103420734406, -0.02483070082962513, 0.017597002908587456, 0.014364326372742653, -0.009576218202710152, 0.019883301109075546, -0.012218579649925232, -0.05183526128530502, -0.02263810485601425, 0.009088973514735699, -0.06862644106149673, 0.006104604806751013, -0.04475148394703865, 0.023350229486823082, 0.011328422464430332, -0.018252909183502197, 0.02447463944554329, -0.05453384295105934, -0.00742110051214695, 0.04797479137778282, 0.0019032966811209917, -0.0448264442384243, 0.029778102412819862, -0.007177478168159723, 0.03972912207245827, 0.02175731770694256, -0.033432431519031525, 0.05131053552031517, -0.010803697630763054, -0.08080753684043884, -0.024811960756778717, -0.04336471110582352, 0.00742110051214695, 0.005664211232215166, -0.01692235842347145, 0.012405980378389359, -0.07158738374710083, -0.0076787774451076984, -0.012930705212056637, -0.016500703990459442, -0.026667237281799316, -0.0371055006980896, 0.02162613533437252, 0.013080626726150513, -0.03247668221592903, 0.012883855029940605, -0.006797990296036005, -0.014064484275877476, 0.004757656250149012, 0.024249756708741188, -0.039579201489686966, -0.008123856037855148, 0.0015788577729836106, 0.013389838859438896, 0.0030921250581741333, -0.014926531352102757, -0.04310235008597374, 0.03273904696106911, 0.0332450307905674, -0.02989054284989834, 0.02584267035126686, -0.03197069838643074, -0.04786234721541405, 0.05457132309675217, -0.06165510043501854, -0.0022289068438112736, 0.00960432831197977, 0.06416627764701843, -0.06394139677286148, 0.014682909473776817 ]
43,145
salesforce_api.client
Client
null
class Client: def __init__(self, connection: Connection = None, domain: str = None, username: str = None, password: str = None, security_token: str = None, password_and_security_token: str = None, client_id: str = None, client_secret: str = None, access_token: str = None, session: requests.Session = None, is_sandbox=False, api_version: str = None): self.connection = connection if connection else login.magic( domain=domain, username=username, password=password, security_token=security_token, password_and_security_token=password_and_security_token, client_id=client_id, client_secret=client_secret, access_token=access_token, session=misc_utils.get_session(session), is_sandbox=is_sandbox, api_version=api_version ) self._setup_services() def _setup_services(self): self.basic = basic.Basic(self.connection) self.sobjects = sobjects.SObjects(self.connection) self.tooling = tooling.Tooling(self.connection) self.deploy = deploy.Deploy(self.connection) self.retrieve = retrieve.Retrieve(self.connection) self.bulk = bulk.Client(self.connection) self.bulk_v1 = bulk.v1.Client(self.connection) self.bulk_v2 = bulk.v2.Client(self.connection)
(connection: salesforce_api.core.Connection = None, domain: str = None, username: str = None, password: str = None, security_token: str = None, password_and_security_token: str = None, client_id: str = None, client_secret: str = None, access_token: str = None, session: requests.sessions.Session = None, is_sandbox=False, api_version: str = None)
[ -0.009345309808850288, -0.06359369307756424, -0.09770787507295609, 0.02459791861474514, 0.0006084186024963856, -0.042281828820705414, -0.052804797887802124, 0.023059362545609474, 0.016639210283756256, -0.01890905573964119, -0.02110292576253414, -0.004967070184648037, -0.04182595759630203, 0.0041479310020804405, -0.038387950509786606, 0.0160598773509264, 0.019640345126390457, -0.007607310079038143, 0.014549811370670795, -0.07404068857431412, 0.013552598655223846, 0.07487644255161285, 0.005228244699537754, 0.030562201514840126, 0.0256236232817173, 0.08091670274734497, -0.003604212310165167, 0.01003861054778099, 0.08737484365701675, -0.038084037601947784, 0.013894500210881233, 0.026041503995656967, 0.015319090336561203, 0.04881594702601433, 0.031910814344882965, -0.025642618536949158, 0.033259425312280655, 0.01977330818772316, -0.09710004925727844, 0.037134308367967606, -0.03434211388230324, -0.014692270196974277, 0.07818149030208588, -0.012564882636070251, 0.018320225179195404, 0.06883618235588074, 0.006291938479989767, 0.051285237073898315, -0.00041105353739112616, 0.00511902617290616, -0.026459382846951485, 0.02554764598608017, -0.010779396630823612, -0.018073296174407005, -0.018386706709861755, 0.0007633427740074694, 0.011045319959521294, 0.07312894612550735, -0.062378041446208954, -0.00583607004955411, -0.045510899275541306, 0.0074078673496842384, 0.05607185885310173, -0.0009853413794189692, -0.009915146045386791, 0.02870073728263378, -0.10340622812509537, 0.0074980915524065495, 0.05629979074001312, 0.04471312835812569, 0.05591990053653717, 0.0487399697303772, 0.013125221244990826, 0.005019305273890495, 0.03447507694363594, -0.003088985802605748, -0.05014556273818016, -0.038615882396698, -0.005157015286386013, -0.05497017502784729, 0.0017178179696202278, -0.02619345858693123, -0.021178903058171272, 0.009801178239285946, 0.050259530544281006, 0.00004429584078025073, 0.0076168072409927845, -0.020457111299037933, -0.005840818397700787, 0.05489419773221016, -0.05033550783991814, 0.04201590269804001, -0.013885002583265305, 0.014331374317407608, 0.012431921437382698, -0.015404565259814262, -0.03876784071326256, -0.028852693736553192, -0.04919583722949028, 0.02104594185948372, -0.047106437385082245, 0.008989161811769009, -0.03988851606845856, 0.022793438285589218, 0.005527408793568611, -0.04896790161728859, -0.011586664244532585, -0.025129765272140503, 0.01722804084420204, 0.022185612469911575, -0.038160014897584915, 0.0028729229234158993, 0.03580469265580177, 0.0020525965373963118, -0.0008209199295379221, -0.045055028051137924, 0.019735319539904594, 0.0002531615027692169, -0.03817901015281677, -0.02784598432481289, -0.00011552533396752551, -0.027504082769155502, 0.014255396090447903, 0.06161826103925705, 0.06545515358448029, 0.00767379067838192, 0.013381647877395153, -0.0024835350923240185, 0.02499680407345295, -0.04182595759630203, 0.014331374317407608, -0.01939341612160206, 0.04023041948676109, 0.025509655475616455, 0.03954661637544632, -0.020704040303826332, -0.03836895525455475, 0.021007951349020004, -0.048056166619062424, 0.012507899664342403, 0.00044607470044866204, 0.005446682218462229, -0.04490307345986366, -0.002606999594718218, -0.02191969007253647, -0.028092913329601288, -0.04197791591286659, -0.09368102997541428, -0.02744709886610508, -0.010190566070377827, 0.012555385939776897, -0.050411488860845566, 0.007127698045223951, 0.000907582463696599, -0.07119150459766388, -0.019250957295298576, -0.04482709616422653, -0.07658595591783524, 0.02879570983350277, -0.024635907262563705, -0.053184688091278076, -0.0008137969998642802, 0.001719005173072219, -0.015556521713733673, -0.028111906722187996, 0.01717105694115162, -0.06116239354014397, -0.08243627101182938, -0.007308145985007286, 0.006230206228792667, -0.030790135264396667, 0.005475173704326153, -0.05728750675916672, 0.0057648406364023685, -0.029707448557019234, 0.016088368371129036, 0.03893879055976868, -0.03244265913963318, -0.020362138748168945, 0.006116239354014397, -0.05109529197216034, -0.027713021263480186, -0.023952104151248932, 0.006467638071626425, 0.009687211364507675, 0.013989472761750221, 0.06306184828281403, 0.030942091718316078, 0.065493144094944, 0.006947250105440617, -0.056831639260053635, 0.0460047572851181, 0.04672654718160629, 0.015632499009370804, 0.00729390000924468, -0.023154335096478462, 0.014777746051549911, 0.014521319419145584, -0.016905132681131363, 0.047182418406009674, -0.05489419773221016, 0.07001384347677231, 0.036032628268003464, -0.05622381344437599, 0.05101931095123291, 0.014777746051549911, -0.027789000421762466, -0.045510899275541306, -0.06978590786457062, -0.0027138437144458294, -0.00524249067530036, -0.010162074118852615, -0.018719110637903214, 0.003948488272726536, 0.061998151242733, -0.01269784476608038, 0.07962507754564285, -0.0363745279610157, 0.03485496714711189, 0.007308145985007286, 0.061998151242733, -0.016667701303958893, -0.028111906722187996, -0.07054568827152252, -0.006852277554571629, 0.006610096897929907, -0.01716155931353569, -0.009981626644730568, -0.007232168223708868, -0.07567421346902847, 0.010703418403863907, 0.022204607725143433, 0.013353155925869942, 0.04566285386681557, -0.021957678720355034, -0.07609209418296814, 0.006686075124889612, -0.015167133882641792, 0.029308563098311424, -0.021007951349020004, 0.046156711876392365, -0.016401778906583786, 0.020609067752957344, -0.031834837049245834, -0.09770787507295609, 0.010067101567983627, -0.04437122493982315, -0.0021167031954973936, 0.0022520392667502165, 0.0034451333340257406, -0.00901765376329422, -0.041180144995450974, 0.003582843579351902, 0.008571282960474491, -0.012821309268474579, -0.05189306288957596, -0.03529183939099312, -0.007797255180776119, -0.02569960243999958, -0.022033657878637314, -0.029365547001361847, -0.002078714082017541, -0.07259710133075714, 0.08137257397174835, -0.011140292510390282, 0.0065768565982580185, 0.020438116043806076, 0.000589720846619457, 0.04539693146944046, 0.005299474578350782, 0.13258183002471924, 0.06496129930019379, 0.0074980915524065495, -0.009606484323740005, -0.03331640735268593, -0.008067927323281765, -0.02079901285469532, -0.024711886420845985, -0.0525008849799633, -0.05402044951915741, -0.0028183136601001024, -0.007483845576643944, 0.058883048593997955, -0.012194489128887653, 0.036336541175842285, -0.07529432326555252, -0.027181174606084824, 0.009991123341023922, -0.018149275332689285, -0.0037727889139205217, -0.012669352814555168, 0.015490041114389896, 0.038634877651929855, -0.04737236350774765, -0.035880669951438904, 0.024939820170402527, -0.08258822560310364, -0.0028847944922745228, 0.02254650928080082, -0.07685187458992004, -0.018937548622488976, -0.003271808149293065, 0.012090019881725311, 0.008884692564606667, 0.0400024838745594, -0.052158985286951065, 0.04478910565376282, -0.004278518259525299, -0.012925778515636921, 0.020267166197299957, -0.011453703045845032, -0.0032504391856491566, 0.01284980121999979, 0.028453808277845383, -0.005403944291174412, -0.018443690612912178, -0.02959348075091839, -0.016743680462241173, 0.01945040002465248, 0.044637151062488556, -0.041484057903289795, 0.04782823100686073, 0.03546278923749924, -0.006994736380875111, 0.04015444219112396, 0.023458246141672134, -0.011339735239744186, 0.039280690252780914, -0.03532982990145683, 0.05470425263047218, -0.0782574713230133, 0.035880669951438904, -0.005218747537583113, 0.03599463775753975, 0.029441524296998978, -0.0055796438828110695, -0.008875194936990738, -0.04672654718160629, 0.010722413659095764, -0.03962259367108345, 0.03589966520667076, -0.024711886420845985, -0.025642618536949158, -0.004646537359803915, -0.023363273590803146, -0.04334552213549614, -0.0003172680444549769, -0.01653474010527134, 0.004542067646980286, -0.01818726398050785, 0.013467122800648212, 0.030790135264396667, 0.05447631701827049, 0.0817524641752243, 0.049309805035591125, -0.02545267343521118, -0.026136476546525955, -0.008689998649060726, 0.006895015016198158, -0.04763828590512276, 0.004822236951440573, -0.0136855598539114, 0.003136472078040242, 0.034285131841897964, -0.05781935527920723, -0.006196965929120779, 0.020742028951644897, -0.08676702529191971, 0.013714051805436611, 0.0022176115307956934, -0.02087499015033245, -0.04547290876507759, -0.020134203135967255, -0.0006475948030129075, 0.015793953090906143, 0.020039230585098267, -0.034608036279678345, -0.006500878371298313, -0.053678546100854874, 0.022888410836458206, 0.0346270315349102, 0.01411293726414442, 0.03909074515104294, 0.01907050982117653, 0.035861674696207047, -0.06234005466103554, -0.004796119406819344, 0.016506249085068703, 0.020362138748168945, 0.01984928548336029, -0.010902861133217812, -0.042585741728544235, -0.034608036279678345, -0.00012480000441428274, -0.008580779656767845, -0.0482461117208004, 0.009587489999830723, 0.0028657999355345964, -0.018947046250104904, -0.04402932524681091, 0.02144482731819153, -0.017617428675293922, 0.07567421346902847, 0.03905275836586952, -0.020609067752957344, -0.0160598773509264, 0.051361214369535446, 0.008803965523838997, 0.04102819040417671, 0.05831321328878403, -0.009288325905799866, -0.014654281549155712, -0.027580060064792633, -0.01163415051996708, -0.029688453301787376, -0.0200012419372797, -0.03829297795891762, 0.08927430212497711, 0.06811439245939255, 0.03730526193976402, 0.03327842056751251, 0.025338705629110336, -0.02247053198516369, 0.009502014145255089, -0.03542480245232582, 0.021406836807727814, -0.017275527119636536, 0.00833859946578741, -0.004067203961312771, -0.03677341341972351, 0.03481697663664818, 0.025680607184767723, -0.05227295309305191, -0.05462827533483505, 0.044409215450286865, 0.028586771339178085, -0.03660246357321739, -0.008077424950897694, 0.03320244327187538, 0.02191969007253647, -0.010741407983005047, 0.005826572421938181, -0.005731599871069193, -0.018548160791397095, 0.03458904102444649, -0.051855072379112244, -0.05569196864962578, 0.011244762688875198, 0.07217922061681747, 0.0037395483814179897, -0.022052651271224022, 0.0009580366895534098, 0.005636627320200205, -0.01810178905725479, -0.04604274407029152, -0.029289567843079567, 0.055084142833948135, 0.02917560003697872, 0.024028083309531212, 0.008832457475364208, 0.05345061421394348, -0.0482461117208004, 0.0356147475540638, 0.010266544297337532, -0.007265408523380756, -0.006097244564443827, 0.025433678179979324, 0.05109529197216034, 0.02617446519434452, -0.006975742056965828, 0.008048932999372482, -0.008262621238827705, -0.039280690252780914, 0.015793953090906143, 0.033487360924482346, 0.01127325464040041, 0.052956756204366684, -0.013571592979133129, -0.06036462262272835, -0.051133278757333755, -0.022793438285589218, 0.007222670596092939, 0.017902346327900887, -0.0065056271851062775, -0.018918553367257118, -0.042433783411979675, 0.06382162868976593, -0.038634877651929855, 0.01566099189221859, -0.03322143480181694, 0.043383512645959854, 0.042433783411979675, -0.026953240856528282, 0.021501809358596802, -0.015233614481985569, 0.008096419274806976, -0.0447511188685894, 0.019412411376833916, 0.013248685747385025, -0.04307959973812103, 0.010152577422559261, -0.0037704145070165396, -0.029042638838291168, -0.025585634633898735, 0.04296563193202019, -0.030581196770071983, -0.04444720596075058, -0.0032124503049999475, 0.0057885837741196156, -0.008514299057424068, -0.026288433000445366, 0.023838138207793236, -0.02429400570690632, -0.01063693780452013, 0.014207909815013409, 0.010893364436924458, -0.06347972899675369, 0.03445608168840408, -0.017361002042889595, -0.014825232326984406, 0.05242490768432617, 0.024388978257775307, 0.0010209560859948397, 0.014549811370670795, -0.02784598432481289, -0.00988665409386158, 0.012033035978674889, 0.017579440027475357, 0.03494993969798088, 0.0482461117208004, -0.019640345126390457, -0.007877982221543789, -0.05155115947127342, -0.009573244489729404, 0.03479798138141632, -0.004637040197849274, -0.06051657721400261, -0.05956685170531273, 0.031606901437044144, -0.03582368791103363, 0.04231981560587883, 0.07696584612131119, -0.0223755594342947, -0.03259461745619774, -0.04927181452512741, -0.035937655717134476, 0.00972045212984085, 0.0241230558604002, -0.0722552016377449, -0.03213874623179436, 0.046080734580755234, -0.006144730839878321, 0.05314670130610466, -0.017579440027475357, -0.005703108385205269, -0.0173135157674551, 0.0009805926820263267, -0.05014556273818016, 0.014825232326984406, 0.00803468655794859, 0.003822649596258998, -0.025205744430422783, -0.0887424498796463, 0.029308563098311424, 0.011567669920623302, -0.021938683465123177, 0.06667080521583557, 0.022755449637770653, -0.02262248657643795, 0.004746258724480867, 0.00482698529958725, 0.01257438026368618, 0.01898503489792347, 0.07179933041334152, -0.01265985518693924, 0.043611444532871246, -0.03656447306275368, 0.01833922043442726, 0.04064829647541046, 0.0012666978873312473, 0.07214123010635376, 0.008077424950897694, -0.01660122163593769, -0.08030888438224792, -0.015604007989168167, 0.023629197850823402, -0.018918553367257118, -0.010371014475822449, 0.04167400300502777, -0.026041503995656967, 0.0003614896850194782, -0.01549953781068325, -0.05656571686267853, -0.0026117481756955385, -0.009554249234497547, 0.06264396756887436, 0.00984866451472044, -0.01773139461874962, 0.008414577692747116, 0.01553752738982439, -0.03280355781316757, 0.07696584612131119, 0.019013525918126106, -0.04307959973812103, 0.032613612711429596, -0.004026840906590223, -0.08555137366056442, -0.026839273050427437, 0.012014041654765606, 0.01787385530769825, 0.0008149841451086104, -0.015632499009370804, -0.025129765272140503, -0.058085277676582336, -0.000023687516659265384, 0.034133173525333405, -0.06845629215240479, 0.033734288066625595, 0.043003618717193604, -0.049385782331228256, 0.06302385777235031, -0.0037158052437007427, -0.009630227461457253, 0.022280585020780563, -0.07601611316204071, 0.01526210643351078, 0.014787242747843266, -0.05242490768432617, -0.03367730602622032, 0.015157636255025864, 0.023629197850823402, -0.015214620158076286, 0.04714442789554596, 0.036830395460128784, 0.04277568683028221, 0.01182409655302763, 0.07932116836309433, 0.015319090336561203, 0.02429400570690632, 0.03474099934101105, 0.04190193861722946, -0.00545617938041687, -0.007574069779366255, 0.022318575531244278, -0.0464986152946949, -0.015784455463290215, -0.03757118433713913, -0.04779024049639702, 0.06746857613325119, -0.011729123070836067, -0.030239295214414597, 0.09975928068161011, 0.009084135293960571, -0.007441107649356127, -0.0657590702176094, -0.017028598114848137, 0.00519975321367383, 0.008965418674051762, 0.0722552016377449, 0.0013806649949401617, -0.006500878371298313, 0.03257562220096588, 0.07472448796033859, 0.008210386149585247, -0.008799216710031033, -0.014996183104813099, 0.029365547001361847, -0.034759994596242905, 0.04437122493982315, 0.05432436242699623, 0.05094333365559578, 0.0200012419372797, 0.0055559007450938225, 0.044105302542448044, -0.0025238983798772097, -0.00575534300878644, 0.02657335065305233, -0.022508520632982254, 0.0017474968917667866, 0.010352020151913166, 0.004876845981925726, 0.019004028290510178, -0.021634772419929504, 0.0019706827588379383, -0.019184477627277374, -0.000699829775840044, 0.020742028951644897, 0.012118510901927948, -0.03401920571923256, -0.045358940958976746, -0.01645876094698906, -0.018206259235739708, 0.021957678720355034, 0.018947046250104904, -0.03821699693799019, -0.014929702505469322, 0.03012532740831375, -0.09520059078931808, 0.0008595025865361094, 0.05569196864962578, 0.046384647488594055, -0.021292870864272118, 0.0056271301582455635, 0.05512213334441185, -0.006614845711737871, 0.02159678190946579, 0.009991123341023922, -0.021083930507302284, 0.06146630644798279, -0.023059362545609474, 0.07578818500041962, 0.040382374078035355, 0.10355819016695023, -0.00972520001232624, 0.05459028482437134, 0.06868422776460648, -0.01078889425843954, 0.008120162412524223, -0.051285237073898315, 0.024787863716483116, -0.04311758652329445, -0.025566639378666878, 0.01154867559671402, -0.03741922602057457, 0.06667080521583557, -0.015034171752631664, 0.010655932128429413, 0.004193042870610952, 0.05804729089140892, 0.035956647247076035, -0.010959845036268234, -0.027181174606084824, -0.08866647630929947, 0.019260454922914505, -0.005612884182482958, -0.08327202498912811, 0.05291876569390297, 0.012365439906716347, 0.03939465805888176, 0.03827398270368576, -0.03992650657892227, -0.022014662623405457, -0.022052651271224022, -0.00025405187625437975, -0.04839806631207466, -0.017446476966142654, 0.060858480632305145, -0.01827273890376091, -0.007531331852078438, 0.008633014746010303, 0.017294520512223244, 0.010209561325609684, -0.0076168072409927845, 0.02919459529221058, 0.00482698529958725, -0.025357700884342194, -0.01882358081638813, 0.025110771879553795, 0.013543101027607918, -0.046232689172029495, 0.006154228467494249, -0.0040149693377316, -0.00022630204330198467, -0.02134985290467739, 0.03466502204537392, 0.03320244327187538, 0.026706311851739883, 0.04281367361545563 ]
43,146
salesforce_api.client
__init__
null
def __init__(self, connection: Connection = None, domain: str = None, username: str = None, password: str = None, security_token: str = None, password_and_security_token: str = None, client_id: str = None, client_secret: str = None, access_token: str = None, session: requests.Session = None, is_sandbox=False, api_version: str = None): self.connection = connection if connection else login.magic( domain=domain, username=username, password=password, security_token=security_token, password_and_security_token=password_and_security_token, client_id=client_id, client_secret=client_secret, access_token=access_token, session=misc_utils.get_session(session), is_sandbox=is_sandbox, api_version=api_version ) self._setup_services()
(self, connection: Optional[salesforce_api.core.Connection] = None, domain: Optional[str] = None, username: Optional[str] = None, password: Optional[str] = None, security_token: Optional[str] = None, password_and_security_token: Optional[str] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, access_token: Optional[str] = None, session: Optional[requests.sessions.Session] = None, is_sandbox=False, api_version: Optional[str] = None)
[ -0.012586673721671104, -0.0793229416012764, -0.017975661903619766, 0.05639423429965973, 0.013913051225244999, -0.02697276882827282, -0.03704581782221794, 0.053203508257865906, -0.011223195120692253, 0.0015142037300392985, 0.023782042786478996, 0.04274089261889458, -0.0023466679267585278, 0.02988523431122303, -0.024876536801457405, -0.02009044587612152, 0.008779135532677174, 0.012039427645504475, 0.007680004462599754, -0.04348292201757431, 0.018170446157455444, 0.05513278394937515, -0.013152471743524075, 0.07112351804971695, 0.0017901459941640496, 0.07535308599472046, -0.047155968844890594, 0.03862263262271881, 0.03730553016066551, -0.0022168129216879606, 0.0441136471927166, 0.07416584342718124, 0.021481752395629883, 0.07320120185613632, 0.029291611164808273, -0.04589451849460602, 0.056987859308719635, 0.04756408557295799, -0.11308528482913971, 0.02634204365313053, -0.056728146970272064, -0.0020371025893837214, 0.04778669402003288, 0.0033507265616208315, -0.013996529392898083, 0.026230739429593086, 0.011065513826906681, 0.045634809881448746, -0.01851363480091095, -0.004250437021255493, -0.025043493136763573, 0.028048712760210037, -0.024134507402777672, 0.0029449292924255133, -0.013143195770680904, 0.034263208508491516, 0.037824951112270355, 0.055689308792352676, -0.060326989740133286, 0.025507261976599693, -0.074870765209198, 0.015564067289233208, 0.01247536949813366, 0.02166725881397724, 0.006539134308695793, 0.03546900674700737, -0.052090466022491455, 0.008473047986626625, 0.017075952142477036, -0.005871307570487261, 0.058323513716459274, 0.06611482053995132, -0.0009269570582546294, -0.048565823584795, 0.023244071751832962, 0.017326386645436287, -0.011937398463487625, -0.006543771829456091, -0.031183786690235138, 0.013987254351377487, 0.019255664199590683, 0.0025947841349989176, -0.04934495687484741, 0.020127547904849052, 0.04081161692738533, -0.00825971458107233, 0.017437690868973732, -0.010073048993945122, -0.022613346576690674, 0.04125683382153511, -0.05238727852702141, -0.024171607568860054, 0.0006063771434128284, 0.0031095671001821756, -0.046710751950740814, 0.007142032962292433, -0.011761166155338287, 0.02029450424015522, -0.03726842626929283, 0.023522332310676575, -0.03285335376858711, -0.00992464367300272, -0.10811368376016617, 0.032222628593444824, -0.011631310917437077, -0.03485683351755142, -0.01563826948404312, -0.044039446860551834, -0.029959438368678093, -0.023986101150512695, -0.011835369281470776, 0.029736828058958054, 0.02585972473025322, 0.061217427253723145, -0.02611943520605564, -0.015990734100341797, -0.010954209603369236, -0.028234219178557396, -0.02227943390607834, -0.04756408557295799, -0.030905524268746376, -0.028902046382427216, 0.027844654396176338, 0.06874902546405792, 0.07783888280391693, 0.018847547471523285, -0.004359422717243433, -0.011872470378875732, -0.009896817617118359, 0.0025762333534657955, 0.04864002764225006, -0.01449739933013916, 0.055615104734897614, 0.0002928987087216228, -0.02278030291199684, -0.036006975919008255, 0.0014226095518097281, 0.00748058408498764, -0.058509018272161484, 0.03654494881629944, -0.007666091434657574, -0.005815655458718538, -0.05509568378329277, -0.02073972299695015, -0.03832582011818886, -0.02721392922103405, -0.013347254134714603, -0.08867251873016357, 0.003714784746989608, -0.03146204724907875, -0.003304349724203348, -0.04697046056389809, 0.042481184005737305, -0.01404290646314621, -0.06169974431395531, -0.005602322053164244, -0.007860873825848103, -0.05639423429965973, 0.05257278308272362, 0.052275970578193665, -0.005143191199749708, -0.0329832062125206, 0.00048029012396000326, -0.018912475556135178, -0.006103191990405321, -0.0034782628063112497, 0.0005139133427292109, -0.11130440980195999, 0.031053930521011353, -0.0329832062125206, -0.005899133626371622, 0.03992118313908577, -0.01349566038697958, 0.006131018046289682, -0.034689873456954956, 0.020461460575461388, 0.03541335463523865, -0.04923365265130997, -0.004728118889033794, -0.009140875190496445, -0.04303770512342453, -0.011501455679535866, 0.012540297582745552, 0.045189592987298965, -0.00948870088905096, 0.027065522968769073, 0.033131614327430725, 0.056282930076122284, 0.05865742638707161, 0.02808581292629242, 0.006580873392522335, 0.04322321340441704, -0.0030423204880207777, -0.017048126086592674, -0.004934495780616999, 0.004308408126235008, -0.010212180204689503, -0.0013066674582660198, -0.026638856157660484, 0.016018560156226158, 0.006752467714250088, 0.05758148431777954, -0.005426090210676193, -0.02098088152706623, 0.02075827307999134, 0.03730553016066551, -0.009961744770407677, 0.013087543658912182, -0.04088582098484039, -0.046747852116823196, 0.00011036237992811948, -0.04930785298347473, -0.026193639263510704, 0.004062611144036055, -0.012122905813157558, 0.028642335906624794, 0.05884293094277382, -0.01292986236512661, 0.023021463304758072, 0.027770450338721275, 0.08125221729278564, 0.025470159947872162, -0.039327558130025864, -0.06956525892019272, 0.0058852205984294415, 0.036470744758844376, -0.01782725751399994, -0.05056930333375931, -0.00813913531601429, -0.07483366876840591, -0.0010608701268211007, 0.005708988755941391, -0.009085223078727722, 0.027918856590986252, -0.025062043219804764, -0.06763598322868347, 0.01427479088306427, -0.023967549204826355, -0.0003579712356440723, -0.041776254773139954, 0.05580061301589012, -0.022835955023765564, 0.023040013387799263, -0.01830030046403408, -0.06707946211099625, -0.006358264479786158, -0.09965454787015915, 0.0015837689861655235, 0.0058110179379582405, -0.0265089999884367, -0.07260757684707642, -0.027714798226952553, 0.00937275867909193, -0.008422033861279488, -0.029588423669338226, -0.01807769201695919, -0.026249291375279427, 0.012892761267721653, 0.002393044764176011, -0.027251029387116432, 0.04121973365545273, -0.01060174498707056, -0.07642903178930283, -0.0016707256436347961, 0.03129509091377258, -0.009766962379217148, 0.010750151239335537, -0.01483131293207407, 0.08043599128723145, -0.014896240085363388, 0.09883832186460495, 0.034912485629320145, 0.005314785521477461, 0.03708292171359062, -0.030200596898794174, -0.011427252553403378, -0.0018446387257426977, -0.008213338442146778, 0.008208700455725193, -0.0231698676943779, 0.031350743025541306, -0.031369294971227646, 0.02521044947206974, 0.034003496170043945, 0.03507944196462631, -0.048269014805555344, -0.018467256799340248, -0.012317688204348087, -0.016417400911450386, -0.013699717819690704, -0.020591316744685173, 0.04752698540687561, 0.021704360842704773, -0.001972174970433116, -0.05108872428536415, 0.018801169469952583, -0.04619133099913597, 0.025062043219804764, 0.01986783742904663, -0.04377973452210426, 0.008083483204245567, -0.0026156536769121885, -0.011631310917437077, 0.04496698081493378, 0.05134843662381172, -0.02945856750011444, 0.04236987978219986, 0.05509568378329277, 0.005987249780446291, 0.019923489540815353, 0.03409625217318535, 0.011631310917437077, 0.01627827063202858, 0.012039427645504475, -0.02990378625690937, 0.005950148217380047, 0.017753053456544876, -0.009242904372513294, 0.03409625217318535, 0.04901104420423508, 0.038919441401958466, 0.008649280294775963, 0.0003959422465413809, 0.04756408557295799, 0.04748988151550293, 0.030682915821671486, 0.0032718859147280455, 0.02452407218515873, -0.0548359751701355, 0.06544699519872665, -0.06982497125864029, 0.07160583883523941, -0.03123943880200386, -0.013885225169360638, -0.007823772728443146, -0.052275970578193665, -0.07119772583246231, -0.024895086884498596, -0.01115826703608036, -0.06526149064302444, 0.0011286962544545531, -0.045189592987298965, -0.056320033967494965, -0.013041166588664055, 0.0815490335226059, -0.06140293553471565, -0.0028846394270658493, -0.05149684101343155, -0.021518852561712265, -0.025080595165491104, -0.0010573918698355556, 0.02142610028386116, 0.02634204365313053, 0.016825517639517784, 0.03773219510912895, -0.019033053889870644, -0.03474552556872368, 0.011510731652379036, -0.003543190425261855, -0.03658204898238182, 0.007401743438094854, 0.024264361709356308, 0.022613346576690674, 0.03340987488627434, 0.01715943031013012, -0.034689873456954956, -0.0035315961576998234, -0.031573351472616196, -0.024709580466151237, 0.007554787211120129, 0.0005382611998356879, -0.03903074562549591, -0.004702611360698938, -0.0047304374165833, 0.028493929654359818, 0.025377405807375908, -0.02790030650794506, -0.023132767528295517, -0.03033045306801796, 0.0006527539808303118, 0.01080580335110426, 0.027603494003415108, 0.026675958186388016, 0.036693353205919266, -0.016677111387252808, 0.0016637691296637058, -0.06707946211099625, 0.013866675086319447, 0.059659164398908615, 0.027102624997496605, -0.050086986273527145, -0.008120584301650524, 0.014348994009196758, 0.015471313148736954, -0.027974508702754974, 0.007689279969781637, -0.008537976071238518, 0.014339718036353588, -0.010852180421352386, -0.004837104119360447, 0.004227248951792717, -0.03363248333334923, 0.06262728571891785, -0.003782031126320362, 0.020628416910767555, 0.02636059559881687, 0.018439430743455887, 0.04151654615998268, 0.006112467497587204, 0.06808120012283325, -0.02454262226819992, -0.021259142085909843, -0.04500408470630646, -0.014664356596767902, -0.020016243681311607, -0.04752698540687561, 0.01671421341598034, 0.07754207402467728, 0.0437055341899395, 0.02276175282895565, -0.030293351039290428, 0.008389569818973541, -0.009804063476622105, -0.030831322073936462, -0.03760233893990517, 0.05487307533621788, 0.032909005880355835, -0.01625044457614422, 0.010295658372342587, -0.05947365611791611, 0.013606964610517025, 0.05891713500022888, -0.03103538043797016, -0.03231538087129593, 0.08088120818138123, 0.009507251903414726, -0.02010899782180786, -0.003267248161137104, -0.0034411614760756493, -0.01898667775094509, -0.022631896659731865, -0.0010057976469397545, 0.05550380051136017, -0.012800007127225399, 0.02747363969683647, -0.008032468147575855, -0.020461460575461388, 0.03776929900050163, 0.028642335906624794, 0.02561856620013714, -0.034448716789484024, 0.015100298449397087, 0.008143773302435875, -0.020869577303528786, -0.05750728026032448, -0.033391322940588, -0.004231886472553015, 0.03682320937514305, 0.06949105113744736, 0.028011610731482506, 0.02229798398911953, -0.031814511865377426, -0.011631310917437077, -0.017734503373503685, -0.007424931973218918, 0.04570901021361351, 0.02828987129032612, 0.008667831309139729, 0.012057977728545666, -0.012679427862167358, -0.013532761484384537, 0.016797691583633423, -0.018467256799340248, 0.05249858275055885, 0.028234219178557396, -0.027158277109265327, 0.03272349759936333, -0.03322436660528183, -0.034207556396722794, -0.0021623200736939907, -0.056097425520420074, 0.037787847220897675, 0.0035663789603859186, -0.010165803134441376, -0.0253959558904171, -0.04355712607502937, 0.044224951416254044, -0.05197916179895401, 0.016102038323879242, 0.021036533638834953, 0.011195369064807892, 0.0665600374341011, -0.0343930646777153, -0.021036533638834953, -0.035784367471933365, -0.011102614924311638, -0.03496813774108887, 0.0384371243417263, 0.006386090535670519, -0.027733350172638893, -0.04236987978219986, 0.01303189154714346, -0.02589682675898075, -0.03103538043797016, 0.0276220440864563, 0.010740876197814941, -0.08852411061525345, -0.00926609244197607, 0.03877103701233864, -0.004359422717243433, -0.00857971515506506, 0.006056814920157194, -0.047823794186115265, -0.06652293354272842, -0.01646377705037594, 0.017066676169633865, -0.03504233807325363, 0.029347263276576996, -0.00972058530896902, -0.018671315163373947, 0.016871893778443336, 0.02227943390607834, 0.05954786017537117, -0.006302612368017435, -0.0021136244758963585, 0.0012753630289807916, 0.0503837987780571, 0.03340987488627434, 0.007267250679433346, -0.008871888741850853, -0.02673161029815674, -0.025692768394947052, -0.09646382182836533, -0.0033321757800877094, 0.019942039623856544, 0.002919421996921301, -0.12243485450744629, 0.012336239218711853, -0.003118842374533415, 0.04596872255206108, 0.00597333675250411, 0.03524639829993248, -0.05516988784074783, -0.013421457260847092, -0.06871192157268524, -0.01699247397482395, -0.030274800956249237, 0.10165803134441376, -0.09334730356931686, 0.007276526186615229, 0.03814031183719635, -0.008282903581857681, 0.016454502940177917, 0.0016765226610004902, 0.007772758137434721, -0.022131027653813362, -0.0019976822659373283, -0.0388452410697937, -0.008352468721568584, -0.00040492776315659285, 0.026842914521694183, -0.0030144944321364164, -0.08169744163751602, 0.00735072884708643, 0.011677687987685204, -0.06733916699886322, 0.0507919117808342, -0.05042089894413948, -0.07424004375934601, 0.08043599128723145, -0.004948408808559179, 0.029328713193535805, -0.0017228994984179735, 0.0910470113158226, -0.008403482846915722, -0.006682902574539185, -0.019719431176781654, 0.06125452741980553, 0.020702620968222618, 0.0316661037504673, 0.051830753684043884, 0.0007188409799709916, -0.06203366070985794, -0.04793509840965271, -0.021964071318507195, 0.022427838295698166, -0.023040013387799263, 0.00044985534623265266, 0.037157122045755386, -0.026008130982518196, -0.01169623900204897, -0.023967549204826355, -0.04567191004753113, 0.004206379409879446, -0.04752698540687561, 0.008000005036592484, -0.021685808897018433, -0.045820318162441254, 0.034708425402641296, -0.031350743025541306, -0.042481184005737305, 0.07297859340906143, -0.006576235871762037, -0.07594671100378036, -0.010202904231846333, -0.012670151889324188, -0.06470496207475662, 0.0029124654829502106, 0.006158844102174044, -0.04418785125017166, 0.01238261628895998, 0.032463785260915756, -0.01870841719210148, -0.02880929224193096, 0.02409740537405014, 0.027065522968769073, -0.04233277961611748, 0.00992464367300272, 0.04192466288805008, -0.03227828070521355, 0.04615423083305359, 0.007244062144309282, -0.016157690435647964, 0.06559540331363678, -0.04355712607502937, 0.006752467714250088, 0.0477495938539505, -0.020387258380651474, -0.013542036525905132, 0.035598862916231155, 0.03791770339012146, 0.005648699123412371, -0.0073600043542683125, 0.007378554902970791, -0.0009930439991876483, 0.009711310267448425, 0.03723132610321045, -0.017354212701320648, 0.042963504791259766, 0.03413335233926773, 0.02296581119298935, -0.007151308469474316, 0.049604665488004684, -0.0034318859688937664, -0.007860873825848103, -0.04240697994828224, -0.00935884565114975, -0.05286959558725357, 0.03543190285563469, -0.003791306633502245, -0.026230739429593086, 0.06989917159080505, 0.025136247277259827, -0.024672478437423706, -0.06822960823774338, -0.02875364013016224, -0.018819721415638924, 0.04014379158616066, 0.08095540851354599, -0.002360581187531352, -0.009433048777282238, 0.016454502940177917, 0.05635713413357735, 0.07205105572938919, 0.03057161159813404, -0.0038585530128329992, 0.03148059919476509, -0.04789799824357033, 0.011121165938675404, 0.07190264761447906, 0.0507919117808342, 0.023299723863601685, 0.01325449999421835, 0.0758725106716156, 0.04600582271814346, -0.044076547026634216, 0.034467265009880066, -0.0428893007338047, 0.010175078175961971, 0.010175078175961971, 0.005398264154791832, -0.021741461008787155, 0.017038850113749504, -0.02611943520605564, -0.04901104420423508, -0.019237112253904343, 0.03342842683196068, 0.010351310484111309, -0.0027431899216026068, 0.0031142046209424734, -0.011084064841270447, 0.021296244114637375, -0.006710728630423546, -0.033576831221580505, -0.03593277558684349, -0.011241745203733444, 0.007443482521921396, -0.0659664124250412, 0.04723017290234566, 0.025043493136763573, 0.03821451589465141, 0.0035478281788527966, -0.03209277242422104, 0.06748757511377335, -0.031369294971227646, -0.04396524280309677, 0.017901459708809853, -0.041850458830595016, 0.09037918597459793, -0.014246964827179909, 0.01874551735818386, 0.007809859700500965, 0.06021568551659584, -0.04192466288805008, 0.036452196538448334, 0.057210467755794525, -0.03522784635424614, -0.007415656466037035, -0.04993857815861702, 0.013708993792533875, -0.03014494478702545, -0.07056699693202972, 0.017688125371932983, 0.005004060920327902, 0.05772988870739937, -0.02363363653421402, 0.0164916031062603, 0.022205229848623276, 0.07954555004835129, 0.014265515841543674, -0.07015888392925262, 0.03123943880200386, -0.07357221841812134, 0.05917684733867645, -0.0343003086745739, -0.0606980063021183, 0.004357104189693928, 0.0015942038735374808, 0.062367573380470276, 0.05257278308272362, -0.017994213849306107, -0.06355481594800949, 0.01807769201695919, 0.025952478870749474, 0.04262958839535713, 0.005143191199749708, 0.0007008699467405677, -0.01962667889893055, 0.004013915546238422, 0.04352002590894699, -0.03496813774108887, -0.020702620968222618, -0.008524063043296337, -0.032649293541908264, -0.03140639513731003, 0.0035710164811462164, -0.011445803567767143, 0.022798852995038033, -0.009525802917778492, -0.02163015678524971, -0.017753053456544876, 0.024653926491737366, 0.010202904231846333, -0.052313074469566345, 0.0026921755634248257, 0.04170205444097519, 0.036915961652994156, 0.013977979309856892 ]
43,147
salesforce_api.client
_setup_services
null
def _setup_services(self): self.basic = basic.Basic(self.connection) self.sobjects = sobjects.SObjects(self.connection) self.tooling = tooling.Tooling(self.connection) self.deploy = deploy.Deploy(self.connection) self.retrieve = retrieve.Retrieve(self.connection) self.bulk = bulk.Client(self.connection) self.bulk_v1 = bulk.v1.Client(self.connection) self.bulk_v2 = bulk.v2.Client(self.connection)
(self)
[ -0.024344023317098618, -0.02872176095843315, -0.03431764990091324, -0.017339644953608513, 0.005020122043788433, 0.0028360120486468077, -0.03882862254977226, 0.026818396523594856, -0.005196183454245329, 0.03593550994992256, -0.03235718607902527, 0.006623706314712763, -0.016616366803646088, -0.007480219937860966, -0.0012847705511376262, -0.004848819226026535, -0.020004354417324066, 0.027865245938301086, -0.004441975150257349, -0.10217256844043732, 0.00651902100071311, 0.0594610869884491, 0.01758708246052265, -0.034774456173181534, 0.023259107023477554, 0.06673193722963333, -0.002564782742410898, -0.01846262998878956, 0.08466162532567978, -0.029844744130969048, -0.015179326757788658, 0.03332789987325668, -0.03970417007803917, 0.021146371960639954, 0.05264704301953316, 0.00025487231323495507, 0.08496616035699844, 0.02148897759616375, -0.014950922690331936, 0.05146695673465729, 0.020080488175153732, -0.032052647322416306, 0.05325612053275108, 0.02384914830327034, -0.0010872966377064586, 0.0427495501935482, 0.0028455290012061596, 0.04811703786253929, 0.04796477034687996, 0.014103925786912441, -0.07331757247447968, 0.00812736339867115, -0.013761320151388645, 0.013209344819188118, 0.02346847578883171, -0.025904782116413116, 0.016426030546426773, 0.10057374835014343, -0.06848303228616714, 0.00393282575532794, -0.010439950972795486, -0.004858336411416531, 0.00787040963768959, -0.018186641857028008, -0.012295730412006378, 0.01159148570150137, -0.04328249394893646, -0.014189577661454678, 0.044767118990421295, 0.04956359416246414, 0.030092181637883186, 0.011448733508586884, -0.008298666216433048, -0.0155885498970747, 0.050248805433511734, 0.03391794487833977, 0.00014684154302813113, -0.05120048671960831, 0.014113442972302437, -0.048802249133586884, 0.00383527809754014, -0.00885540060698986, -0.0645621046423912, 0.031100966036319733, 0.07107160240411758, 0.049601662904024124, -0.03818148002028465, -0.008598445914685726, 0.02687549777328968, 0.02438209019601345, -0.04929712414741516, 0.03686815872788429, 0.01678766869008541, 0.026551924645900726, 0.004746513441205025, -0.006785491947084665, -0.06616092473268509, -0.012638336047530174, -0.06539957970380783, 0.034793492406606674, -0.05120048671960831, -0.02870272658765316, 0.014655901119112968, 0.017120758071541786, -0.01296190731227398, -0.05413166806101799, -0.02777007780969143, -0.004085094667971134, 0.0035521527752280235, -0.009916525334119797, -0.022630995139479637, 0.021926751360297203, 0.06151672080159187, -0.018691033124923706, -0.040808118879795074, -0.07183295488357544, 0.07541127502918243, 0.0015833608340471983, -0.02108927071094513, -0.020023386925458908, -0.04811703786253929, -0.023259107023477554, 0.05626343563199043, 0.033346936106681824, 0.026932599022984505, -0.021393809467554092, 0.004677516408264637, 0.028607558459043503, 0.02068956568837166, -0.05226637050509453, 0.033365968614816666, -0.026513857766985893, 0.028226885944604874, -0.026799362152814865, 0.03146260604262352, -0.026761295273900032, -0.01650216430425644, 0.0272752046585083, -0.027084866538643837, 0.001977119129151106, -0.03639231622219086, 0.02146994322538376, -0.08534683287143707, -0.009002910926938057, -0.00969288032501936, 0.0017962995916604996, -0.00163808255456388, -0.0472034215927124, -0.05858553946018219, 0.010782556608319283, -0.0020294617861509323, -0.052228305488824844, 0.009840390644967556, -0.028645625337958336, -0.08032195270061493, 0.018062923103570938, -0.01027816440910101, -0.05112435296177864, 0.011068060994148254, -0.011515351012349129, -0.05409359931945801, 0.023297173902392387, -0.03770563751459122, 0.006452403496950865, -0.02752264030277729, 0.010858690366148949, -0.06608479470014572, -0.03542160242795944, 0.028074616566300392, -0.00787040963768959, 0.022174188867211342, 0.008588929660618305, -0.03157680481672287, 0.006994862109422684, 0.033499203622341156, -0.0429779551923275, 0.0228213332593441, -0.043853502720594406, 0.025467008352279663, 0.03330886736512184, -0.010030727833509445, 0.023544611409306526, -0.019871117547154427, 0.009383583441376686, -0.013666152022778988, 0.004406287334859371, 0.05515948310494423, 0.03275689110159874, -0.0007839479949325323, 0.012562201358377934, 0.001956895925104618, 0.06433369964361191, 0.014103925786912441, 0.003939962945878506, 0.016759118065238, 0.04427224397659302, 0.03330886736512184, -0.004827406723052263, -0.02438209019601345, 0.04233081266283989, -0.028645625337958336, 0.06638932973146439, 0.011943608522415161, -0.011524868197739124, 0.06045083701610565, 0.0012550305109471083, -0.026399657130241394, -0.027827179059386253, -0.07445959001779556, -0.050667546689510345, 0.01744432933628559, -0.010649320669472218, -0.007370776496827602, 0.011229846626520157, 0.05519755184650421, 0.014046825468540192, 0.08565137535333633, -0.026171252131462097, 0.030073149129748344, -0.0140277910977602, 0.010516085661947727, -0.020346960052847862, 0.01599777303636074, -0.038581185042858124, -0.03397504612803459, 0.027027767151594162, -0.04465291649103165, -0.005043914075940847, -0.009707155637443066, -0.05409359931945801, 0.023525577038526535, 0.03620197996497154, -0.04392963647842407, 0.031100966036319733, 0.03277592360973358, -0.09113305807113647, 0.027465540915727615, 0.02885499596595764, 0.0396280363202095, -0.043587032705545425, 0.031024830415844917, 0.012619302608072758, -0.037153661251068115, -0.04575686529278755, -0.07956060767173767, -0.0029073883779346943, -0.0594610869884491, -0.03197651356458664, 0.01134404819458723, 0.029844744130969048, 0.009221797809004784, -0.029026297852396965, -0.006419094745069742, -0.007056721486151218, -0.08641272038221359, -0.10628383606672287, -0.012152978219091892, 0.02936890348792076, -0.00017457414651289582, -0.03186231106519699, -0.025467008352279663, 0.03431764990091324, -0.021679313853383064, 0.06083150953054428, -0.007351743057370186, 0.0251624695956707, 0.08275826275348663, -0.029311802238225937, 0.03450798615813255, 0.00976425688713789, 0.17495720088481903, 0.03799114376306534, -0.011353565379977226, -0.003026348538696766, -0.03616391122341156, 0.0036211498081684113, -0.04491938650608063, -0.05161922797560692, -0.04073198512196541, 0.0006917538121342659, 0.031538739800453186, -0.023373307660222054, 0.031538739800453186, 0.01874813437461853, 0.024458225816488266, -0.047241490334272385, -0.0015464831376448274, -0.0035188437905162573, -0.05725318565964699, -0.01422764454036951, -0.030206384137272835, 0.04640401154756546, -0.005705333314836025, -0.033994078636169434, -0.017786934971809387, 0.03486962616443634, -0.07716237008571625, 0.016702016815543175, 0.05949915200471878, -0.066579669713974, -0.02200288511812687, 0.003364195581525564, 0.003202409716323018, 0.033746641129255295, 0.009983143769204617, -0.02698969841003418, 0.06216386333107948, -0.007247057743370533, 0.0005936116212978959, -0.012838189490139484, -0.016597332432866096, -0.022745197638869286, 0.008260599337518215, 0.08001741766929626, 0.017929688096046448, -0.00779427494853735, -0.05896621197462082, 0.0085746543481946, -0.036639753729104996, 0.024610495194792747, -0.022840365767478943, 0.057748060673475266, 0.016673468053340912, -0.02946407161653042, 0.08869675546884537, 0.06098377704620361, -0.013418715447187424, 0.02135574258863926, -0.025733478367328644, 0.037267863750457764, -0.06170705705881119, 0.04221661016345024, 0.048307374119758606, 0.06216386333107948, 0.029445039108395576, -0.014722519554197788, -0.006590397097170353, -0.042787618935108185, -0.03799114376306534, -0.017111241817474365, 0.03169100731611252, 0.04663241282105446, -0.07232782244682312, -0.008598445914685726, 0.01134404819458723, -0.047507960349321365, -0.00622875802218914, -0.03365147113800049, -0.015550483018159866, -0.02607608400285244, -0.019833050668239594, 0.03905702754855156, 0.02122250758111477, 0.07910379767417908, 0.05108628422021866, -0.00602414645254612, -0.03561193868517876, 0.011458250693976879, 0.05002040043473244, -0.0590042807161808, 0.0034546053502708673, 0.00025353400269523263, 0.018139056861400604, 0.018443595618009567, -0.033879876136779785, -0.024572426453232765, 0.016473613679409027, -0.0456426665186882, 0.0068473513238132, -0.02858852408826351, 0.02936890348792076, -0.035478703677654266, -0.013152244500815868, -0.001755853183567524, -0.015046090818941593, 0.00976425688713789, 0.006623706314712763, 0.0016119112260639668, -0.012095876969397068, 0.009830874390900135, 0.006780733820050955, 0.029026297852396965, 0.016026323661208153, -0.026038017123937607, 0.04099845886230469, -0.06083150953054428, 0.007803791668266058, 0.021184438839554787, 0.03275689110159874, -0.0010414968710392714, 0.00543886236846447, -0.007075754925608635, -0.07156647741794586, -0.03197651356458664, 0.039361562579870224, -0.0487641803920269, 0.0045942445285618305, 0.0007488547125831246, -0.003882862161844969, -0.0008327217074111104, 0.014313296414911747, -0.05580662935972214, 0.10323845595121384, 0.04472905024886131, 0.0043372903019189835, -0.03865731880068779, 0.020480195060372353, 0.017510946840047836, 0.021051203832030296, 0.06471437215805054, -0.015607583336532116, 0.013304512947797775, -0.059156548231840134, -0.028664659708738327, -0.047241490334272385, -0.04731762409210205, 0.010782556608319283, 0.056415703147649765, 0.05097208544611931, 0.057976461946964264, -0.010858690366148949, -0.018376978114247322, -0.019347693771123886, -0.005986079107969999, -0.010249614715576172, 0.05755772069096565, -0.03446991741657257, 0.024191753938794136, 0.024477258324623108, -0.03254752233624458, -0.0060289050452411175, 0.07510673999786377, -0.069701187312603, -0.09623407572507858, 0.05424587056040764, 0.010040244087576866, -0.00655708834528923, -0.036221012473106384, 0.022307423874735832, -0.009802323766052723, -0.008208256214857101, -0.03593550994992256, 0.0027574982959777117, -0.019052671268582344, 0.013780354522168636, -0.030054114758968353, -0.019366726279258728, 0.004691791720688343, 0.05081981420516968, -0.003580703167244792, -0.06170705705881119, -0.022897467017173767, 0.02478179708123207, -0.020594397559762, 0.02658999338746071, -0.03264268860220909, 0.05809066444635391, 0.020004354417324066, -0.02280229888856411, -0.0033047155011445284, -0.021565113216638565, -0.08245372027158737, -0.020385026931762695, 0.04217854142189026, -0.010944342240691185, -0.0505533441901207, 0.009454960003495216, 0.024553393945097923, 0.01807243935763836, 0.0016904249787330627, -0.00923607312142849, -0.025752512738108635, 0.010906274430453777, 0.008631754666566849, 0.013732770457863808, 0.01663539931178093, 0.03325176611542702, -0.01901460438966751, 0.012352831661701202, -0.026399657130241394, 0.03380374237895012, 0.007423119153827429, 0.013095143251121044, 0.016863804310560226, -0.004408666398376226, -0.025238605216145515, 0.023259107023477554, -0.037267863750457764, 0.009355032816529274, -0.052076034247875214, 0.04419610649347305, -0.011639069765806198, 0.004613277968019247, 0.031005796045064926, 0.01637844555079937, -0.007808550260961056, 0.00734222587198019, 0.03974223509430885, 0.028226885944604874, 0.007080513518303633, 0.022611962631344795, -0.006276342086493969, -0.05123855546116829, -0.01755853183567524, -0.00014728764654137194, -0.015502898022532463, -0.017349161207675934, -0.04366316646337509, 0.004953504540026188, -0.016330862417817116, 0.0048369234427809715, -0.020080488175153732, -0.022516794502735138, -0.026171252131462097, 0.004013718571513891, 0.015921639278531075, -0.04035131260752678, 0.03330886736512184, -0.043967705219984055, 0.0037805563770234585, 0.01055415254086256, -0.02280229888856411, 0.005476929247379303, 0.044348377734422684, -0.018691033124923706, -0.01093482505530119, -0.04990620166063309, 0.012162494473159313, 0.010116378776729107, 0.05710091441869736, 0.001199119258671999, -0.012229112908244133, -0.0440819077193737, -0.023144904524087906, 0.04613753780722618, -0.004867853131145239, -0.02017565630376339, -0.07335564494132996, 0.0229355338960886, -0.02856949158012867, 0.04373930022120476, 0.026799362152814865, -0.018652966246008873, -0.009745222516357899, -0.024724695831537247, -0.03821954503655434, -0.0005751727730967104, -0.013266446068882942, -0.04442451149225235, -0.018776684999465942, 0.0427495501935482, -0.023830115795135498, -0.03041575476527214, 0.02660902589559555, 0.02594284899532795, -0.037534333765506744, -0.024324988946318626, -0.036906223744153976, -0.008883950300514698, 0.04716535657644272, -0.019290592521429062, -0.021317675709724426, -0.07834245264530182, 0.0830627977848053, 0.0033808499574661255, -0.01678766869008541, 0.003326128236949444, -0.008864916861057281, -0.026266420260071754, -0.007737174164503813, 0.03932349756360054, 0.007232782430946827, -0.00019167468417435884, 0.03722979500889778, -0.029958946630358696, 0.02097507007420063, -0.029026297852396965, 0.005519755184650421, 0.009079045616090298, 0.0008690045797266066, 0.02044212818145752, -0.008988635614514351, -0.04339669644832611, -0.03707752749323845, 0.010525601916015148, -0.024667594581842422, -0.014265712350606918, 0.020289858803153038, 0.06269680708646774, -0.020251791924238205, -0.01546483114361763, -0.004746513441205025, -0.011829406023025513, -0.01755853183567524, -0.0518856979906559, 0.025257637724280357, -0.013095143251121044, -0.026951631531119347, 0.027370372787117958, -0.00011479663226054981, -0.018262775614857674, 0.07377438247203827, 0.04263535141944885, -0.052875448018312454, 0.023011669516563416, -0.007247057743370533, -0.04465291649103165, 0.015893088653683662, 0.009293174371123314, 0.020632464438676834, 0.008146396838128567, -0.021393809467554092, 0.03591647744178772, -0.03106289729475975, -0.009202764369547367, 0.006181173957884312, -0.011163229122757912, 0.00393282575532794, 0.038295678794384, -0.05439813807606697, 0.02790331467986107, -0.01701607182621956, -0.0012597889872267842, 0.017273027449846268, -0.02333524078130722, 0.0048226481303572655, 0.01467493548989296, -0.08222531527280807, 0.014865271747112274, 0.008136880584061146, 0.016092941164970398, -0.013028525747358799, 0.028740793466567993, 0.004891645163297653, 0.02032792568206787, 0.024667594581842422, 0.060755372047424316, 0.03511706367135048, 0.02278326451778412, 0.01744432933628559, 0.08580364286899567, 0.013228378258645535, 0.06650353223085403, -0.00016193462943192571, 0.026570959016680717, -0.0073993271216750145, -0.03759143501520157, -0.041874002665281296, 0.0650189071893692, 0.05135275796055794, -0.011819889768958092, 0.01964271441102028, -0.054854944348335266, 0.031767141073942184, -0.0723658949136734, -0.018310360610485077, -0.00878402404487133, -0.05070561170578003, 0.00432539451867342, -0.026513857766985893, -0.04857384413480759, 0.02723713591694832, 0.06802622228860855, 0.019147839397192, 0.006014629732817411, -0.013390164822340012, 0.03818148002028465, -0.01357098389416933, 0.0027574982959777117, 0.07308917492628098, 0.08466162532567978, 0.005167632829397917, 0.01688283681869507, 0.02542894147336483, 0.008474727161228657, -0.005343693774193525, -0.0015702751697972417, 0.0007345794583670795, 0.012866739183664322, 0.03315659984946251, -0.015103192068636417, -0.006381027400493622, 0.0042516388930380344, 0.01073497161269188, 0.005719608161598444, -0.028379155322909355, 0.009002910926938057, -0.019290592521429062, -0.0022614342160522938, 0.00812736339867115, -0.03698236122727394, 0.04914485290646553, 0.0037734187208116055, 0.020879901945590973, -0.06578025221824646, -0.014417980797588825, 0.019985320046544075, -0.1505180150270462, 0.03842891752719879, 0.013266446068882942, 0.06372462213039398, -0.04857384413480759, -0.03289012610912323, 0.018262775614857674, 0.001633324078284204, 0.014874788001179695, -0.010259130969643593, -0.010325748473405838, 0.021336708217859268, -0.015379180200397968, 0.07350791245698929, 0.01303804200142622, 0.03966610133647919, -0.050248805433511734, 0.03418441489338875, 0.011515351012349129, 0.00845093559473753, 0.04373930022120476, -0.02700873278081417, 0.018043888732790947, 0.011696171015501022, -0.0529896505177021, 0.03738206624984741, -0.05755772069096565, 0.0652473121881485, -0.0228213332593441, -0.019871117547154427, 0.014189577661454678, 0.0487641803920269, 0.06098377704620361, -0.024686628952622414, -0.07442152500152588, -0.05443620681762695, 0.05043914169073105, -0.008769748732447624, -0.07685783505439758, 0.06597059220075607, 0.025524109601974487, 0.014570250175893307, 0.005710091441869736, -0.0161405261605978, -0.0396280363202095, 0.022973600775003433, 0.019604647532105446, -0.035307399928569794, 0.002645675791427493, 0.06562798470258713, -0.029330836609005928, -0.036373283714056015, 0.0034546053502708673, -0.03504092991352081, 0.026437724009156227, -0.00746594462543726, -0.010858690366148949, -0.04663241282105446, -0.008408109657466412, 0.01990918628871441, 0.0023732567206025124, -0.02700873278081417, -0.08412868529558182, 0.028664659708738327, -0.0710335373878479, -0.005829051602631807, -0.015626616775989532, 0.11755175143480301, 0.023677846416831017, 0.055349819362163544, 0.024972133338451385 ]
43,157
fast_poisson_solver.data
Data
null
class Data: def __init__(self, cases, domain_x=None, domain_y=None, grid_num=32, noise_std=0, shuffle=False, initial_shuffle=False, batchsize=-1, batchsize_bc=-1, use_torch=False, device='cpu', precision=torch.float32, random_coords=False, seed=0): if domain_y is None: domain_y = [0, 1] if domain_x is None: domain_x = [0, 1] self.y = None self.x = None self.y_grid = None self.x_grid = None self.domain_x = domain_x self.domain_y = domain_y self.grid_num = grid_num self.cases = cases self.noise_std = noise_std self.num_cases = len(cases) self.shuffle = shuffle self.initial_shuffle = initial_shuffle self.batchsize = batchsize if batchsize > 0 else self.grid_num ** 2 self.batchsize_bc = batchsize_bc if batchsize_bc > 0 else 4 * self.grid_num + 4 self.batch_number = 0 self.number_of_batches = np.ceil(self.grid_num ** 2 / self.batchsize).astype(int) self.use_torch = use_torch self.device = device self.random_coords = random_coords self.seed = seed self.precision = precision assert 0 <= self.domain_y[0] <= 1 and 0 <= self.domain_y[1] <= 1, \ "Both elements of domain_y should lie within the interval [0, 1] inclusive" assert self.domain_y[1] > self.domain_y[0], \ "The second element of domain_y should be larger than the first element" assert 0 <= self.domain_x[0] <= 1 and 0 <= self.domain_x[1] <= 1, \ "Both elements of domain_x should lie within the interval [0, 1] inclusive" assert self.domain_x[1] > self.domain_x[0], \ "The second element of domain_y should be larger than the first element" x_domain_length = self.domain_x[1] - self.domain_x[0] y_domain_length = self.domain_y[1] - self.domain_y[0] if x_domain_length > y_domain_length: self.x_grid_num = self.grid_num self.y_grid_num = int(self.grid_num * y_domain_length / x_domain_length) elif x_domain_length < y_domain_length: self.x_grid_num = int(self.grid_num * x_domain_length / y_domain_length) self.y_grid_num = self.grid_num else: self.x_grid_num = self.grid_num self.y_grid_num = self.grid_num np.random.seed(self.seed) torch.manual_seed(self.seed) # self.indices = [np.random.choice(self.grid_num**2, self.batchsize, replace=False) for _ in range(self.num_cases)] # self.indices = np.arange(self.grid_num ** 2) self.indices = np.arange(self.x_grid_num * self.y_grid_num) # self.indices_bc = np.arange(4 * self.grid_num + 4) self.indices_bc = np.arange(2 * self.x_grid_num + 2 * self.y_grid_num + 4) if self.initial_shuffle: self.indices = np.random.permutation(self.indices) self.indices_bc = np.random.permutation(self.indices_bc) self.generate_boundary_coords() if not random_coords: self.generate_grid() else: self.generate_random_coords() self.calculate_cases() if self.use_torch: self.to_torch_tensors() else: self.x_grid = self.x_grid.reshape(-1, 1) self.y_grid = self.x_grid.reshape(-1, 1) self.x_bc = self.x_grid.reshape(-1, 1) self.y_bc = self.x_grid.reshape(-1, 1) def get_infos(self): data = { 'domain_x': self.domain_x, 'domain_y': self.domain_y, 'grid_num': self.grid_num, 'num_cases': self.num_cases, 'shuffle': self.shuffle, 'initial_shuffle': self.initial_shuffle, 'batchsize': self.batchsize, 'batchsize_bc': self.batchsize_bc, 'use_torch': self.use_torch, 'device': self.device, 'seed': self.seed, 'precision': str(self.precision), 'cases': self.cases, } return data def to_torch_tensors(self): self.out = torch.from_numpy(self.out).to(self.device).to(self.precision) self.x_grid = torch.from_numpy(self.x_grid).unsqueeze(1).to(self.device).to(self.precision) self.y_grid = torch.from_numpy(self.y_grid).unsqueeze(1).to(self.device).to(self.precision) self.bc = torch.from_numpy(self.bc).to(self.device).to(self.precision) self.x_bc = torch.from_numpy(self.x_bc).unsqueeze(1).to(self.device).to(self.precision) self.y_bc = torch.from_numpy(self.y_bc).unsqueeze(1).to(self.device).to(self.precision) self.indices = torch.from_numpy(self.indices).long().to(self.device) self.indices_bc = torch.from_numpy(self.indices_bc).long().to(self.device) def __iter__(self): return self def __next__(self): if self.batch_number < self.number_of_batches: out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call = self.__call__(self.batch_number) self.batch_number += 1 return out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call else: self.batch_number = 0 raise StopIteration def __call__(self, batch_number): if batch_number == 0 and self.shuffle: self.shuffle_epoch() min_batch = batch_number * self.batchsize max_batch = min((min_batch + self.batchsize, self.grid_num ** 2)) max_batch = min((min_batch + self.batchsize, self.x_grid_num * self.y_grid_num)) batchsize_i = max_batch - min_batch min_batch_bc = batch_number * self.batchsize_bc # max_batch_bc = min((min_batch_bc + self.batchsize_bc, 4 * self.grid_num + 4)) max_batch_bc = min((min_batch_bc + self.batchsize_bc, 2 * self.x_grid_num + 2 * self.y_grid_num + 4)) batchsize_i_bc = max_batch_bc - min_batch_bc indices_call = self.indices[min_batch: max_batch] if self.use_torch: out_call = torch.zeros(size=(batchsize_i, self.num_cases), device=self.device, dtype=self.precision) else: out_call = np.zeros((batchsize_i, self.num_cases)) x_call = self.x_grid[indices_call] y_call = self.y_grid[indices_call] for i, out_i in enumerate(self.out.T): out_call[:, i] = out_i[indices_call] indices_call_bc = self.indices_bc[min_batch_bc: max_batch_bc] if self.use_torch: bc_call = torch.zeros(size=(batchsize_i_bc, self.num_cases), device=self.device, dtype=self.precision) else: bc_call = np.zeros((batchsize_i_bc, self.num_cases)) x_bc_call = self.x_bc[indices_call_bc] y_bc_call = self.y_bc[indices_call_bc] for i, bc_i in enumerate(self.bc.T): bc_call[:, i] = bc_i[indices_call_bc] return out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call def shuffle_epoch(self): if self.use_torch: self.indices = torch.randperm(self.indices.shape[0]) self.indices_bc = torch.randperm(self.indices_bc.shape[0]) else: self.indices = np.random.permutation(self.indices) self.indices_bc = np.random.permutation(self.indices_bc) def generate_grid(self): # x = np.linspace(self.domain_x[0], self.domain_x[1], self.grid_num + 2)[1:-1] x = np.linspace(self.domain_x[0], self.domain_x[1], self.x_grid_num + 2)[1:-1] y = np.linspace(self.domain_y[0], self.domain_y[1], self.y_grid_num + 2)[1:-1] x, y = np.meshgrid(x, y) self.x_grid = x.flatten() self.y_grid = y.flatten() def generate_random_coords(self): engine = qmc.Sobol(d=2, scramble=True, seed=self.seed) # d=2 for 2D points sample = engine.random(int(self.grid_num ** 2)) self.x_grid, self.y_grid = np.hsplit(sample, 2) self.y_grid = self.y_grid.flatten() self.x_grid = self.x_grid.flatten() def generate_boundary_coords(self): # x_grid = np.linspace(self.domain_x[0], self.domain_x[1], self.grid_num + 2) x_grid = np.linspace(self
(cases, domain_x=None, domain_y=None, grid_num=32, noise_std=0, shuffle=False, initial_shuffle=False, batchsize=-1, batchsize_bc=-1, use_torch=False, device='cpu', precision=torch.float32, random_coords=False, seed=0)
[ -0.02494163066148758, -0.025965280830860138, -0.04649734124541283, 0.041575945913791656, -0.01851428858935833, -0.011939304880797863, -0.09417582303285599, -0.024803832173347473, -0.03389856964349747, -0.053662896156311035, -0.03322926163673401, 0.0037993171717971563, -0.007411621510982513, 0.06941135972738266, -0.025492828339338303, 0.012146003544330597, -0.0045645940117537975, -0.012953112833201885, 0.010521942749619484, -0.024410121142864227, -0.06323008984327316, -0.04689105600118637, -0.01351415179669857, 0.0600803941488266, -0.027992896735668182, 0.015079155564308167, 0.01277594268321991, -0.020512375980615616, -0.013622422702610493, -0.008174438029527664, -0.06063159182667732, -0.019596995785832405, 0.04598551616072655, 0.0069194817915558815, 0.022047851234674454, -0.07472646981477737, 0.04401696100831032, 0.020394261926412582, -0.08582913130521774, 0.002856869949027896, 0.004832810256630182, -0.07437212765216827, 0.02486288920044899, 0.0452374666929245, -0.018671773374080658, -0.0019131924491375685, -0.016083119437098503, 0.014665758237242699, -0.06523801386356354, -0.0052904998883605, -0.004060151055455208, -0.08811265975236893, 0.030866991728544235, 0.04653671383857727, 0.004020779859274626, 0.04299331083893776, 0.0448831245303154, 0.0448831245303154, 0.015187425538897514, -0.04567055031657219, -0.019518254324793816, 0.0012488040374591947, 0.012667671777307987, -0.046064261347055435, 0.005452906247228384, -0.0004736843111459166, -0.07968723028898239, -0.023150242865085602, 0.05586767941713333, 0.05204867571592331, 0.02521722950041294, 0.0333080030977726, 0.090474933385849, 0.0051231724210083485, 0.008710869587957859, -0.023425841704010963, -0.044686269015073776, 0.05000137537717819, 0.031221332028508186, -0.07153740525245667, -0.008051402866840363, 0.0593717135488987, 0.009163637645542622, -0.029390573501586914, -0.00777088338509202, -0.024981003254652023, 0.0412609800696373, 0.047363508492708206, -0.01713629812002182, -0.05039508640766144, -0.009892004542052746, -0.004008476622402668, 0.018494604155421257, 0.0383475124835968, 0.040788523852825165, 0.02271716110408306, -0.015108684077858925, -0.042087770998477936, -0.02322898618876934, -0.03549310192465782, 0.010895969346165657, -0.00574326841160655, -0.010413672775030136, 0.03677266463637352, -0.03574901446700096, -0.028937803581357002, -0.005822010803967714, 0.012008204124867916, -0.031024476513266563, -0.028937803581357002, -0.0785454660654068, 0.07027752697467804, -0.03352454677224159, -0.02651647850871086, -0.02055174671113491, -0.06275763362646103, -0.05618264898657799, 0.005206836387515068, -0.08173453062772751, 0.048820242285728455, 0.03263869509100914, -0.0014801096403971314, -0.05740315467119217, 0.027855098247528076, -0.021201370283961296, 0.027500757947564125, 0.03850499540567398, 0.020689545199275017, -0.00947368610650301, -0.07110431790351868, -0.011732606217265129, -0.01891784369945526, 0.017461109906435013, 0.06122215837240219, 0.010768013074994087, 0.008558306843042374, 0.012313331477344036, -0.028701577335596085, -0.01315981149673462, 0.022028164938092232, 0.026004653424024582, 0.022343134507536888, 0.05519837141036987, 0.007662612479180098, 0.05626139044761658, 0.007145865820348263, 0.04763910546898842, -0.013523994013667107, 0.0026403286028653383, -0.0350797064602375, 0.021358855068683624, 0.013189339078962803, 0.01657526008784771, 0.007736433297395706, -0.01273657102137804, -0.012323173694312572, -0.010541629046201706, -0.015000413171947002, 0.024744775146245956, 0.017717022448778152, -0.09708928316831589, -0.02433137781918049, -0.029646486043930054, 0.02565031312406063, -0.003991251811385155, 0.024547919631004333, -0.028071638196706772, -0.0343710258603096, 0.002605878747999668, -0.00347450515255332, 0.0013054001610726118, -0.03374108672142029, -0.020158035680651665, 0.04712728038430214, -0.062127694487571716, 0.05854491889476776, -0.010010117664933205, 0.00045830494491383433, -0.014311417937278748, 0.021457282826304436, -0.0023635001853108406, -0.019626524299383163, 0.00281503819860518, 0.01583705097436905, -0.027047988027334213, 0.068033367395401, 0.07291539013385773, -0.03338674455881119, 0.03765851631760597, 0.014616544358432293, -0.045276835560798645, 0.017805607989430428, -0.00293561234138906, 0.004193028900772333, 0.020030079409480095, 0.024981003254652023, 0.00985755492001772, 0.02771729789674282, 0.03490253537893295, -0.015620509162545204, -0.03196938335895538, -0.027776354923844337, 0.06023787707090378, -0.04929269477725029, -0.03761914744973183, -0.01070895604789257, -0.008632127195596695, 0.052284903824329376, 0.011752291582524776, 0.046300485730171204, -0.006678333505988121, -0.028800005093216896, -0.007972660474479198, 0.03433165326714516, 0.05846617743372917, -0.01986275240778923, -0.018199319019913673, 0.010561314411461353, -0.004909091629087925, -0.008765005506575108, 0.03486316278576851, -0.04177280515432358, -0.05173370614647865, -0.02547314204275608, 0.020354891195893288, 0.017913879826664925, 0.03943021968007088, 0.02962679974734783, 0.014222832396626472, -0.03805222734808922, 0.030866991728544235, -0.015472866594791412, -0.030591392889618874, 0.01639808900654316, 0.015699250623583794, -0.015138211660087109, -0.027225159108638763, -0.0018381411209702492, -0.008213808760046959, 0.0007997267530299723, -0.05094628408551216, -0.023504583165049553, -0.0023105950094759464, -0.03614272549748421, 0.003575393697246909, 0.010206974111497402, 0.020650174468755722, 0.05523774027824402, 0.005300342570990324, 0.022992758080363274, -0.026772391051054, -0.040867265313863754, -0.047796592116355896, -0.013425566256046295, -0.04826904460787773, -0.06799399852752686, 0.0025271365884691477, -0.014577172696590424, 0.08173453062772751, -0.0383475124835968, -0.0069588529877364635, 0.0023105950094759464, -0.03480410948395729, 0.03899713605642319, 0.019577311351895332, 0.013838963583111763, -0.016033906489610672, 0.026634590700268745, 0.02271716110408306, 0.031142588704824448, 0.03921367973089218, 0.08622284233570099, -0.06886016577482224, -0.011397951282560825, -0.008573071099817753, 0.030689820647239685, 0.036910463124513626, -0.00554641243070364, 0.0019747097976505756, 0.021457282826304436, 0.036930151283741, -0.0036762822419404984, -0.04858401417732239, -0.031811900436878204, 0.016762273386120796, -0.059607941657304764, -0.01894737221300602, -0.02348489873111248, 0.04948955029249191, -0.025866853073239326, -0.037678200751543045, 0.0070228311233222485, 0.02320929989218712, -0.012293645180761814, 0.03659549728035927, -0.051418736577034, -0.013583051040768623, -0.019232813268899918, -0.045788660645484924, -0.00617142952978611, 0.033268630504608154, -0.01649651676416397, 0.05059194564819336, -0.003262885147705674, 0.018780045211315155, 0.026044024154543877, -0.010945183224976063, -0.018455231562256813, 0.05889925733208656, -0.03175284340977669, 0.04637923091650009, -0.013927549123764038, 0.061497755348682404, 0.01973479613661766, 0.027244845405220985, -0.04763910546898842, 0.018278062343597412, 0.04224525764584541, 0.02909528836607933, 0.09827042371034622, -0.043465763330459595, 0.03257963806390762, 0.049332067370414734, 0.06551361083984375, 0.0014788792468607426, 0.008597677573561668, 0.05370226502418518, 0.009508135728538036, -0.036300212144851685, -0.01933124102652073, -0.015177583321928978, -0.002544361399486661, -0.006486399099230766, 0.05948982760310173, 0.02702830359339714, -0.00441695237532258, -0.013927549123764038, -0.00580232497304678, 0.06291511654853821, -0.07933289557695389, 0.041654691100120544, 0.047875333577394485, -0.04378073289990425, 0.018356803804636, 0.04011921584606171, -0.057875607162714005, -0.0003238893405068666, 0.00030635687289759517, -0.04515872523188591, 0.09527821093797684, 0.0033244024962186813, -0.007352564483880997, 0.03789474442601204, 0.05437157675623894, 0.05941108614206314, 0.05086754262447357, 0.006018866319209337, -0.04059166833758354, 0.007559263147413731, -0.0028224203269928694, 0.021181685850024223, -0.020591117441654205, -0.011644021607935429, 0.053662896156311035, 0.008927411399781704, -0.02063049003481865, -0.008105537854135036, -0.0015157897723838687, 0.030433908104896545, 0.01199836190789938, -0.02626056596636772, -0.03283555060625076, -0.03149693086743355, 0.03279617801308632, -0.011673550121486187, -0.012539715506136417, -0.06275763362646103, 0.017195355147123337, 0.003868216648697853, 0.014409845694899559, 0.017726866528391838, -0.004576897714287043, 0.0009289133595302701, 0.06472618877887726, -0.008105537854135036, -0.02539440058171749, 0.03990267217159271, 0.015305539593100548, 0.001717566978186369, -0.05893862992525101, 0.045119352638721466, 0.016476832330226898, 0.03200875595211983, -0.03029610961675644, -0.03464662283658981, 0.013976763002574444, 0.0637025386095047, 0.08228573203086853, -0.03411511331796646, -0.033701714128255844, -0.06811211258172989, -0.0350797064602375, 0.006225564982742071, 0.05067068710923195, -0.007367328740656376, -0.04393821582198143, 0.05669447407126427, -0.016850857064127922, 0.022028164938092232, 0.059450455009937286, -0.022658104076981544, 0.026398364454507828, 0.029922083020210266, -0.015620509162545204, -0.05673384666442871, -0.0003014354733750224, -0.03496159240603447, 0.0028101166244596243, 0.0327371209859848, 0.019518254324793816, 0.03740260377526283, 0.05232427641749382, 0.055395226925611496, 0.004084757994860411, -0.011329052038490772, -0.024803832173347473, -0.02261873334646225, -0.019596995785832405, -0.02183130942285061, 0.006698018871247768, -0.07504143565893173, -0.07074997574090958, -0.051576223224401474, -0.03470567986369133, 0.023032130673527718, -0.00820888765156269, 0.004057690501213074, 0.017589066177606583, 0.021949423477053642, 0.02407546527683735, -0.010246344842016697, 0.03315052017569542, 0.03261900693178177, -0.030670136213302612, -0.048820242285728455, -0.024744775146245956, -0.048977725207805634, -0.05259987339377403, -0.07323036342859268, 0.026437735185027122, 0.03639863803982735, 0.03618209809064865, 0.048465900123119354, -0.047954075038433075, 0.011191252619028091, -0.011437322944402695, -0.06275763362646103, -0.012766099534928799, -0.004613807890564203, 0.004859877750277519, 0.0030266582034528255, 0.029725227504968643, -0.05252113193273544, 0.021043885499238968, 0.02598496712744236, -0.02563062682747841, 0.03100479021668434, 0.031142588704824448, -0.0062550934962928295, -0.00314969290047884, -0.014163775369524956, -0.02029583416879177, -0.00446862680837512, 0.0017557077808305621, -0.031378816813230515, -0.017480796203017235, -0.009719755500555038, 0.07122243195772171, -0.003718114225193858, -0.04929269477725029, -0.012185375206172466, -0.0448831245303154, 0.008691184222698212, 0.03315052017569542, -0.022835275158286095, 0.007962817326188087, 0.05921422690153122, 0.023780182003974915, -0.013888177461922169, 0.0095868781208992, -0.03736323490738869, -0.038445938378572464, -0.0025136026088148355, -0.00682105403393507, -0.06275763362646103, 0.00686534633859992, 0.013002326712012291, -0.017195355147123337, 0.04256022721529007, -0.06740342825651169, 0.020079292356967926, 0.02789446897804737, -0.02899686060845852, -0.055552709847688675, 0.02452823519706726, 0.043820105493068695, -0.021122628822922707, 0.005541491322219372, -0.05326918140053749, -0.001096240826882422, -0.02053206041455269, -0.05704881623387337, 0.017352839931845665, -0.058584291487932205, 0.0363592691719532, 0.02348489873111248, 0.007003145758062601, -0.011269995011389256, -0.06610418111085892, -0.0027387565933167934, 0.012362545356154442, 0.04775721952319145, 0.019488725811243057, 0.04374136030673981, 0.02968585677444935, 0.09716802835464478, 0.0037254963535815477, -0.009030760265886784, 0.021555710583925247, 0.027087360620498657, -0.0372844897210598, -0.019341083243489265, 0.07118306308984756, 0.09748300164937973, 0.041221607476472855, -0.023977037519216537, 0.004882024135440588, -0.05508025735616684, -0.03358360007405281, -0.016742587089538574, -0.023622697219252586, -0.03299303352832794, 0.03257963806390762, -0.07055312395095825, -0.0061123729683458805, 0.01782529428601265, 0.0409066379070282, 0.06823022663593292, -0.019183598458766937, 0.005192072130739689, 0.011210938915610313, -0.01135858055204153, 0.05433220416307449, -0.03460725024342537, 0.07673439383506775, 0.023288043215870857, -0.024036094546318054, -0.0035114155616611242, -0.01273657102137804, 0.02253999002277851, -0.048229675740003586, -0.033544231206178665, 0.012972798198461533, -0.022323450073599815, -0.06842707842588425, 0.02631962299346924, -0.014124404639005661, 0.030000826343894005, -0.005949967075139284, -0.0023142860736697912, -0.016732744872570038, 0.01713629812002182, -0.025020373985171318, 0.006333835888653994, -0.03614272549748421, -0.005521805491298437, -0.008400822058320045, -0.024725090712308884, 0.004286535549908876, -0.03108353354036808, 0.038190025836229324, 0.010393986478447914, 0.013937391340732574, -0.042442113161087036, 0.02874094806611538, 0.03364265710115433, -0.09086864441633224, 0.017116613686084747, 0.07393904030323029, -0.009759127162396908, 0.03740260377526283, 0.07012004405260086, -0.05378100648522377, -0.020177720114588737, -0.014016133733093739, 0.0036369110457599163, -0.03624115511775017, 0.0030906363390386105, 0.018228847533464432, -0.012834998778998852, -0.018908001482486725, 0.03824908286333084, 0.027559813112020493, 0.00567436870187521, 0.013012168928980827, -0.06386002898216248, -0.027520442381501198, -0.022343134507536888, 0.006353521253913641, 0.003961723297834396, 0.012549557723104954, -0.005423377733677626, 0.004995216149836779, -0.041142866015434265, -0.013878335244953632, -0.07311224937438965, -0.07074997574090958, 0.02866220660507679, 0.07118306308984756, 0.011181410402059555, 0.01920328475534916, 0.023780182003974915, -0.020030079409480095, -0.0033244024962186813, -0.008213808760046959, -0.03376077115535736, 0.05893862992525101, -0.06866330653429031, 0.012205060571432114, 0.024232950061559677, 0.014961041510105133, -0.028170065954327583, -0.002010389929637313, -0.002335202181711793, 0.02744170092046261, -0.023524269461631775, 0.013012168928980827, 0.033012717962265015, 0.0049533843994140625, 0.0027830491308122873, 0.029941769316792488, 0.008366372436285019, 0.02055174671113491, 0.009468764998018742, -0.04366261884570122, -0.04145783558487892, 0.03141818940639496, 0.005285578779876232, 0.03937116265296936, 0.016998499631881714, -0.005088722798973322, 0.06748217344284058, -0.02830786630511284, -0.0184650756418705, 0.004104443825781345, 0.04535558074712753, -0.04720602557063103, 0.05948982760310173, 0.01286452729254961, -0.0412609800696373, 0.0017028028378263116, 0.04988326132297516, -0.010433358140289783, -0.054686546325683594, -0.047796592116355896, 0.004072454757988453, 0.032855235040187836, 0.03714669123291969, -0.028268495574593544, 0.0705924928188324, -0.041142866015434265, -0.05862366035580635, -0.06393876671791077, -0.0128546841442585, 0.021890366449952126, -0.039666447788476944, -0.005147779360413551, -0.046576086431741714, -0.07693125307559967, 0.010167602449655533, 0.04696979746222496, 0.025099115446209908, -0.034745052456855774, 0.028091324493288994, 0.06704909354448318, 0.031457558274269104, -0.004033083561807871, -0.03047328069806099, 0.015079155564308167, -0.0011177719570696354, 0.009837869554758072, 0.035532474517822266, 0.046654827892780304, -0.015354753471910954, 0.03317020460963249, -0.049607664346694946, -0.037934113293886185, -0.019921807572245598, -0.005566098261624575, -0.010905812494456768, -0.027303900569677353, -0.07074997574090958, -0.05118251219391823, 0.02700861729681492, 0.006766918580979109, 0.030670136213302612, -0.03047328069806099, 0.02287464588880539, 0.028366923332214355, -0.003371155820786953, 0.05137936770915985, 0.0455918051302433, 0.017402054741978645, -0.02779604122042656, -0.06760028749704361, 0.02208722196519375, 0.0016191391041502357, 0.06551361083984375, -0.0282291229814291, 0.01170307770371437, 0.00030620305915363133, 0.044765010476112366, 0.021201370283961296, -0.019626524299383163, -0.038879022002220154, 0.020768288522958755, 0.024488862603902817, -0.0690963938832283, 0.025669997557997704, -0.017352839931845665, 0.02246124856173992, 0.02511880174279213, -0.0005487355520017445, 0.029213402420282364, -0.0316741019487381, -0.025945596396923065, 0.02917403168976307, -0.0452374666929245, -0.04905647039413452, 0.022343134507536888, -0.0452374666929245, -0.03315052017569542, 0.004138893447816372, -0.028859062120318413, -0.04448941349983215, 0.06429310888051987, 0.03878059610724449, -0.018248533830046654, 0.01928202621638775, -0.07185237109661102, 0.07090746611356735, 0.07267916947603226, -0.017323311418294907, 0.007200001273304224, 0.06283637881278992, -0.03039453737437725, 0.04637923091650009, -0.03338674455881119, -0.048229675740003586, -0.08449051529169083, -0.01795325055718422, 0.02021709270775318, -0.004409570246934891, 0.06319071352481842, -0.04271771013736725, 0.014577172696590424, 0.05795435234904289, 0.060395363718271255 ]
43,158
fast_poisson_solver.data
__call__
null
def __call__(self, batch_number): if batch_number == 0 and self.shuffle: self.shuffle_epoch() min_batch = batch_number * self.batchsize max_batch = min((min_batch + self.batchsize, self.grid_num ** 2)) max_batch = min((min_batch + self.batchsize, self.x_grid_num * self.y_grid_num)) batchsize_i = max_batch - min_batch min_batch_bc = batch_number * self.batchsize_bc # max_batch_bc = min((min_batch_bc + self.batchsize_bc, 4 * self.grid_num + 4)) max_batch_bc = min((min_batch_bc + self.batchsize_bc, 2 * self.x_grid_num + 2 * self.y_grid_num + 4)) batchsize_i_bc = max_batch_bc - min_batch_bc indices_call = self.indices[min_batch: max_batch] if self.use_torch: out_call = torch.zeros(size=(batchsize_i, self.num_cases), device=self.device, dtype=self.precision) else: out_call = np.zeros((batchsize_i, self.num_cases)) x_call = self.x_grid[indices_call] y_call = self.y_grid[indices_call] for i, out_i in enumerate(self.out.T): out_call[:, i] = out_i[indices_call] indices_call_bc = self.indices_bc[min_batch_bc: max_batch_bc] if self.use_torch: bc_call = torch.zeros(size=(batchsize_i_bc, self.num_cases), device=self.device, dtype=self.precision) else: bc_call = np.zeros((batchsize_i_bc, self.num_cases)) x_bc_call = self.x_bc[indices_call_bc] y_bc_call = self.y_bc[indices_call_bc] for i, bc_i in enumerate(self.bc.T): bc_call[:, i] = bc_i[indices_call_bc] return out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call
(self, batch_number)
[ -0.04825213924050331, -0.05316602438688278, -0.03646620362997055, 0.04607229307293892, -0.04692206531763077, -0.007957354187965393, -0.08527253568172455, -0.006668844260275364, -0.02323935367166996, -0.037740856409072876, -0.03101659193634987, 0.009975557215511799, 0.0039763678796589375, 0.04913885518908501, -0.00821136124432087, 0.017595773562788963, 0.029575679451227188, -0.02625049278140068, 0.009550672024488449, -0.009250481612980366, -0.013753336854279041, -0.018851954489946365, -0.028818275779485703, 0.05837548151612282, -0.013060590252280235, 0.07016141712665558, 0.01848248951137066, -0.02833797037601471, 0.006017662119120359, -0.02126271463930607, -0.06125731021165848, -0.003096579108387232, 0.028356444090604782, 0.03519154712557793, -0.0016106368275359273, -0.03801795467734337, 0.006959798280149698, 0.012090744450688362, -0.10581479221582413, 0.004045642446726561, 0.04780878126621246, -0.08933665603399277, 0.04156481847167015, 0.04714374244213104, -0.049582213163375854, -0.019156763330101967, -0.019747907295823097, -0.012478683143854141, -0.06827714294195175, -0.028652016073465347, -0.02501278556883335, -0.05013640969991684, 0.02689705789089203, 0.01351318508386612, -0.040678102523088455, 0.03347353637218475, 0.056121744215488434, 0.014399901032447815, -0.0127280717715621, -0.04064115881919861, -0.03260529413819313, 0.001252717454917729, 0.025751715525984764, 0.0044774548150599, -0.002232954604551196, -0.015720738098025322, -0.07385607063770294, -0.015323563478887081, 0.030610181391239166, 0.0831296369433403, 0.04699595645070076, 0.041084516793489456, 0.058486320078372955, -0.015554479323327541, 0.00863624643534422, -0.013300742022693157, -0.05479167029261589, 0.05844937264919281, 0.023738130927085876, -0.036558568477630615, -0.014011962339282036, 0.036226049065589905, -0.0010714486707001925, -0.03238361328840256, 7.171013862716791e-7, -0.0420081801712513, 0.02892911434173584, 0.019600121304392815, -0.038054902106523514, -0.002637056866660714, -0.02113340236246586, -0.0054496098309755325, 0.005869876127690077, 0.013134483247995377, 0.025437669828534126, 0.028264077380299568, -0.010067922994494438, -0.020080426707863808, -0.039311084896326065, -0.04293183982372284, 0.0015586807858198881, -0.012321660295128822, 0.027839193120598793, -0.022038592025637627, -0.022943781688809395, -0.05656510218977928, 0.0005210035014897585, 0.009772351011633873, -0.03297475725412369, 0.00939364917576313, -0.05453304573893547, 0.025881027802824974, -0.04773488640785217, -0.028116291388869286, -0.02349797822535038, -0.048732440918684006, -0.06890523433685303, 0.013790283352136612, -0.08542032539844513, 0.04743931442499161, 0.02854117564857006, 0.004844610579311848, -0.01809455081820488, 0.014095092192292213, -0.06624508649110794, 0.05545670539140701, 0.042636267840862274, 0.02795003168284893, 0.044409699738025665, -0.08002613484859467, 0.005149419419467449, -0.009365939535200596, 0.006691935937851667, 0.04333825409412384, 0.018935084342956543, 0.0008745930972509086, 0.025363776832818985, -0.04895412176847458, -0.0227036289870739, 0.0403086394071579, 0.024366220459342003, 0.017623484134674072, 0.07023531198501587, 0.017133941873908043, 0.0662081390619278, 0.029298579320311546, 0.08017391711473465, 0.005306442268192768, 0.004657568875700235, -0.019138291478157043, 0.03522849455475807, 0.02599186822772026, 0.03153384476900101, -0.023405611515045166, -0.015415930189192295, 0.019415389746427536, 0.010317311622202396, -0.0275620948523283, 0.03254987299442291, -0.02357187122106552, -0.05748876556754112, 0.016413485631346703, -0.05316602438688278, 0.03356590121984482, 0.004405871033668518, 0.0303146094083786, -0.04681122303009033, -0.011684332974255085, -0.001600245595909655, -0.00962456502020359, 0.011915248818695545, -0.013189902529120445, 0.03042544797062874, 0.042414590716362, -0.03853520750999451, 0.05767349898815155, -0.02238958328962326, -0.00028460356406867504, -0.005093999672681093, 0.0517251081764698, -0.011822882108390331, 0.004004077520221472, -0.002706331666558981, 0.014095092192292213, -0.02702637016773224, 0.0645086020231247, 0.08253849297761917, -0.041934285312891006, 0.01809455081820488, 0.017050812020897865, -0.018316231667995453, 0.04673733189702034, 0.03083186037838459, 0.021318133920431137, 0.009324374608695507, -0.013309978879988194, -0.00577750988304615, 0.046367865055799484, 0.04289489611983299, -0.011684332974255085, -0.026065761223435402, -0.003812417620792985, 0.06107257679104805, -0.0339168943464756, -0.017207834869623184, -0.0083268191665411, 0.0030642508063465357, 0.051946789026260376, -0.04463138058781624, 0.03842436894774437, 0.004151863511651754, -0.023941336199641228, 0.016579745337367058, 0.06284600496292114, 0.03037002868950367, -0.012238530442118645, 0.02041294425725937, 0.023590344935655594, -0.020634623244404793, 0.009398267604410648, 0.042192909866571426, -0.05397884547710419, -0.028910642489790916, -0.024532480165362358, 0.021225769072771072, 0.023091567680239677, 0.07278461754322052, 0.007320026867091656, 0.006488730199635029, -0.004244229756295681, -0.011213264428079128, -0.04001306742429733, -0.011490363627672195, 0.036429256200790405, -0.009643038734793663, -0.006719646044075489, -0.03934802860021591, -0.02041294425725937, -0.02179843932390213, -0.01585005223751068, 0.005204839166253805, -0.027211101725697517, 0.013494711369276047, -0.03823963552713394, 0.007283080369234085, -0.0018900447757914662, 0.00011437541979830712, 0.056528154760599136, -0.01881500892341137, 0.02370118349790573, -0.019286077469587326, -0.024901945143938065, -0.026232019066810608, -0.012626469135284424, -0.05549365282058716, -0.06133120134472847, -0.01508341170847416, -0.026268966495990753, 0.08202124387025833, -0.015942417085170746, -0.002535453997552395, 0.026065761223435402, -0.0341200977563858, -0.011120898649096489, -0.017494171857833862, 0.013688680715858936, -0.031644683331251144, 0.01911981776356697, 0.0035422462970018387, 0.06768599897623062, -0.00046847015619277954, 0.0865287184715271, -0.0669470727443695, -0.007421629503369331, -0.021650653332471848, 0.02650911919772625, 0.03685414046049118, 0.0010933857411146164, -0.014178222045302391, -0.008077429607510567, 0.06971805542707443, -0.02056073024868965, -0.06406524032354355, -0.02547461725771427, 0.0227036289870739, -0.07005057483911514, -0.0010714486707001925, 0.011832118965685368, 0.0437077172100544, -0.026472171768546104, 0.021706072613596916, 0.00994784664362669, 0.04307962581515312, -0.026102706789970398, -0.005902204662561417, -0.05349854379892349, -0.017983712255954742, -0.027395835146307945, -0.0403086394071579, 0.010622120462357998, 0.002960338955745101, -0.04684817045927048, 0.028097817674279213, -0.018113024532794952, 0.02715568244457245, 0.04936053231358528, -0.007948117330670357, 0.007047546096146107, 0.031607735902071, -0.021096454933285713, 0.03127521649003029, -0.010261892341077328, 0.05072755366563797, -0.02560392953455448, 0.0301114022731781, -0.024107595905661583, 0.03960665687918663, 0.061959292739629745, 0.04936053231358528, 0.06358493864536285, -0.015277381055057049, 0.02985277771949768, 0.06133120134472847, 0.08083895593881607, 0.016247225925326347, -0.009038039483129978, 0.03716818615794182, -0.008807123638689518, -0.05785822868347168, -0.014519977383315563, -0.019008977338671684, -0.01667211204767227, -0.003980986308306456, 0.06942248344421387, 0.016025546938180923, 0.01776203326880932, -0.021041035652160645, 0.02257431484758854, 0.05660204961895943, -0.03798100724816322, 0.0530182383954525, 0.04902801290154457, -0.06550616025924683, 0.014399901032447815, 0.03705734759569168, -0.011499600484967232, -0.0027548240032047033, 0.03798100724816322, -0.04337519779801369, 0.06199624016880989, -0.00919967982918024, -0.02015431970357895, 0.028264077380299568, 0.056121744215488434, 0.06395440548658371, 0.06938554346561432, -0.002401523059234023, -0.07038309425115585, 0.010308075696229935, -0.04123230278491974, 0.016376540064811707, -0.00679353903979063, -0.009495251812040806, 0.045850615948438644, 0.05438525974750519, -0.014797075651586056, -0.01119479164481163, -0.02198317088186741, 0.0015182704664766788, 0.012090744450688362, -0.028892168775200844, -0.013577841222286224, -0.0203575249761343, 0.046959009021520615, -0.0005550635396502912, -0.011952195316553116, -0.06591256707906723, 0.008890253491699696, 0.005509648006409407, -0.0021971624810248613, -0.010067922994494438, -0.012718834914267063, 0.022241797298192978, 0.0709003433585167, 0.005431136582046747, -0.01465852651745081, 0.00373159721493721, -0.0018554073758423328, 0.00888101663440466, -0.04034558683633804, 0.0709003433585167, 0.011915248818695545, -0.003618448507040739, -0.05782128497958183, -0.02218637801706791, 0.013577841222286224, 0.08032170683145523, 0.07086340337991714, -0.01244173664599657, -0.05649120733141899, -0.05963166058063507, -0.03938497602939606, -0.006668844260275364, 0.050505876541137695, -0.00750937731936574, -0.02553003653883934, 0.04215596616268158, -0.007430866360664368, -0.005620487499982119, 0.029095374047756195, -0.03378758206963539, -0.010040213353931904, 0.012718834914267063, -0.02141050063073635, -0.019526228308677673, 0.03709429129958153, -0.05778433755040169, 0.024587899446487427, 0.02238958328962326, 0.004807664081454277, 0.04337519779801369, 0.06266127526760101, 0.08002613484859467, 0.015757685527205467, 0.015766922384500504, -0.027709880843758583, -0.01008639670908451, -0.043559931218624115, -0.007929643616080284, -0.005089381244033575, -0.077218197286129, -0.08150399476289749, -0.05150343105196953, 0.007971208542585373, 0.019415389746427536, -0.015268144197762012, 0.010040213353931904, 0.02022821269929409, 0.0025885645300149918, 0.026195073500275612, -0.004221138544380665, 0.034655824303627014, 0.038904670625925064, -0.019415389746427536, -0.059003572911024094, -0.044816114008426666, -0.047291528433561325, -0.0390155129134655, -0.08024781197309494, -0.00765716377645731, 0.04426191374659538, 0.03823963552713394, 0.03709429129958153, -0.04045642539858818, 0.052279308438301086, -0.018113024532794952, -0.09450916200876236, -0.00423961179330945, 0.022869886830449104, 0.01574844866991043, -0.0009392494685016572, 0.03716818615794182, -0.046700384467840195, -0.0033575138077139854, 0.00021532886603381485, -0.04943442717194557, 0.027395835146307945, 0.032956283539533615, -0.008174414746463299, -0.02599186822772026, -0.016274936497211456, -0.027063315734267235, -0.010612884536385536, 0.01623798906803131, -0.029169267043471336, -0.022149430587887764, -0.010298838838934898, 0.03133063763380051, -0.0017341766506433487, -0.038202688097953796, -0.03565337881445885, -0.052537932991981506, 0.0009034575778059661, 0.04806740581989288, -0.03746375814080238, 0.021170347929000854, 0.029704991728067398, 0.0333072766661644, 0.00023986365704331547, -0.008677810430526733, -0.03424941003322601, 0.020782409235835075, 0.022943781688809395, -0.022685155272483826, -0.048917174339294434, 0.008820978924632072, 0.017928292974829674, -0.007726438343524933, -0.002676312578842044, -0.03179246932268143, 0.022537369281053543, 0.03339964151382446, -0.019082870334386826, -0.05752571299672127, 0.002680931007489562, 0.06469333171844482, -0.0109269293025136, -0.012922041118144989, -0.07049393653869629, 0.0005285082152113318, -0.043227411806583405, -0.03916329890489578, -0.0301114022731781, -0.017263256013393402, -0.0019200637470930815, 0.008008155040442944, -0.0011320640332996845, -0.022962253540754318, -0.05312907695770264, 0.01989569328725338, 0.056121744215488434, 0.06122036278247833, 0.006705791223794222, 0.04086283594369888, 0.015545242466032505, 0.06365883350372314, 0.02056073024868965, 0.0035168456379324198, 0.010714487172663212, 0.03742681071162224, -0.061700668185949326, -0.020468365401029587, 0.05468083173036575, 0.10204625129699707, 0.029354000464081764, -0.03631841763854027, -0.04156481847167015, -0.02722957544028759, -0.033030178397893906, 0.0010252655483782291, -0.029021481052041054, -0.05139259248971939, 0.02213095687329769, -0.0733388140797615, -0.013430055230855942, -0.0026555301155894995, -0.0023807405959814787, 0.06255043298006058, 0.022020118311047554, 0.001197297708131373, 0.017429513856768608, -0.018131498247385025, 0.05464388430118561, -0.007052164524793625, 0.055013347417116165, 0.05242709442973137, -0.0077633848413825035, 0.00010001534974435344, -0.0197109617292881, 0.0182515736669302, -0.03646620362997055, -0.008543879725039005, 0.022629735991358757, -0.030813386663794518, -0.06214402616024017, 0.010557464323937893, -0.008548498153686523, 0.045850615948438644, -0.004218829330056906, -0.016607454046607018, -0.040160853415727615, -0.008058956824243069, -0.04692206531763077, -0.0036692500580102205, -0.054163578897714615, 0.017595773562788963, 0.007671018596738577, -0.041010621935129166, 0.01950775645673275, -0.005361862014979124, 0.030536288395524025, -0.006913614924997091, 0.00730155361816287, -0.04470527172088623, 0.00903342105448246, 0.0500255711376667, -0.1094355508685112, -0.021687598899006844, 0.05759960412979126, -0.029871251434087753, 0.03049934096634388, 0.045000843703746796, -0.05320296809077263, -0.001578308641910553, -0.01040967833250761, 0.009074985980987549, -0.05368327349424362, -0.01606249436736107, 0.010723724029958248, -0.02743278071284294, -0.0331040695309639, 0.04943442717194557, 0.04658954590559006, 0.03908940404653549, 0.01701386645436287, -0.03323338180780411, -0.05224236100912094, -0.006761210970580578, -0.016635164618492126, 0.034064680337905884, 0.012257003225386143, -0.0016094822203740478, 0.0015771540347486734, -0.025566982105374336, -0.005837548058480024, -0.05098617821931839, -0.04869549721479416, 0.04721763730049133, 0.03545017167925835, 0.005204839166253805, 0.004405871033668518, 0.0437077172100544, -0.057636551558971405, 0.004209592472761869, -0.020985616371035576, -0.01217387430369854, 0.04943442717194557, -0.07655316591262817, 0.05667594075202942, 0.03783322125673294, 0.039311084896326065, 0.010742196813225746, 0.03703887388110161, -0.01619180664420128, 0.03569032624363899, -0.07071561366319656, 0.021022561937570572, 0.060518376529216766, 0.0022595098707824945, -0.04706985130906105, 0.038646046072244644, 0.014048908837139606, 0.028559649363160133, -0.04167566075921059, -0.025936447083950043, -0.07219347357749939, -0.0033044032752513885, 0.01387341320514679, 0.06436081230640411, 0.02892911434173584, -0.0016960755456238985, 0.05312907695770264, -0.0014882514951750636, 0.011924484744668007, -0.008807123638689518, 0.05154037848114967, -0.033547427505254745, 0.0733388140797615, 0.022408057004213333, -0.055345866829156876, -0.03770390897989273, 0.03288239240646362, -0.040160853415727615, -0.02100409008562565, -0.03145994991064072, 0.0203575249761343, -0.005565067753195763, -0.006230104714632034, -0.04001306742429733, 0.0428210012614727, -0.05360938236117363, -0.00792502611875534, -0.06642981618642807, 0.004241921007633209, -0.0032628383487462997, -0.040936730802059174, -0.0006431001238524914, -0.02560392953455448, -0.056638993322849274, 0.00123886251822114, -0.006017662119120359, 0.017715850844979286, -0.013836466707289219, 0.04455748572945595, 0.02061615139245987, -0.014362954534590244, -0.003699268912896514, 0.009679985232651234, 0.0203575249761343, -0.024569427594542503, 0.021521341055631638, 0.036299943923950195, 0.026952477172017097, 0.002281446708366275, -0.011028531938791275, -0.013762573711574078, -0.04274711012840271, -0.030536288395524025, -0.02087477594614029, -0.0041472455486655235, -0.01724478229880333, -0.052537932991981506, -0.07526003569364548, 0.010659066960215569, -0.012155400589108467, 0.03275308012962341, -0.015342037193477154, 0.002484652679413557, 0.00037437202990986407, 0.015526769682765007, 0.046700384467840195, 0.031386058777570724, 0.022611262276768684, 0.010030976496636868, -0.061035629361867905, 0.007093729451298714, 0.024199962615966797, 0.06676233559846878, -0.02218637801706791, 0.01351318508386612, -0.011573493480682373, 0.03166315704584122, 0.04311657324433327, -0.015923945233225822, -0.04333825409412384, 0.02113340236246586, 0.04278405383229256, -0.03742681071162224, 0.03842436894774437, -0.013670207932591438, 0.02964957244694233, -0.015101884491741657, 0.007338500116020441, -0.008239070884883404, 0.026158126071095467, -0.015997838228940964, 0.04972999915480614, -0.07500141113996506, -0.01776203326880932, -0.027137208729982376, -0.05113396421074867, -0.03572727367281914, -0.0022514278534799814, -0.02041294425725937, -0.04252542927861214, 0.07152843475341797, 0.04570282995700836, -0.023922862485051155, 0.0331040695309639, -0.061368148773908615, 0.04197123274207115, 0.06779684126377106, 0.007934262044727802, 0.0034568074624985456, 0.10537143796682358, -0.049582213163375854, 0.06849882006645203, -0.044668328016996384, -0.042192909866571426, -0.06439775973558426, -0.024717213585972786, 0.017715850844979286, -0.012275476939976215, 0.049249693751335144, -0.02710026316344738, 0.0014397591585293412, 0.07899162918329239, 0.03399078547954559 ]
43,159
fast_poisson_solver.data
__init__
null
def __init__(self, cases, domain_x=None, domain_y=None, grid_num=32, noise_std=0, shuffle=False, initial_shuffle=False, batchsize=-1, batchsize_bc=-1, use_torch=False, device='cpu', precision=torch.float32, random_coords=False, seed=0): if domain_y is None: domain_y = [0, 1] if domain_x is None: domain_x = [0, 1] self.y = None self.x = None self.y_grid = None self.x_grid = None self.domain_x = domain_x self.domain_y = domain_y self.grid_num = grid_num self.cases = cases self.noise_std = noise_std self.num_cases = len(cases) self.shuffle = shuffle self.initial_shuffle = initial_shuffle self.batchsize = batchsize if batchsize > 0 else self.grid_num ** 2 self.batchsize_bc = batchsize_bc if batchsize_bc > 0 else 4 * self.grid_num + 4 self.batch_number = 0 self.number_of_batches = np.ceil(self.grid_num ** 2 / self.batchsize).astype(int) self.use_torch = use_torch self.device = device self.random_coords = random_coords self.seed = seed self.precision = precision assert 0 <= self.domain_y[0] <= 1 and 0 <= self.domain_y[1] <= 1, \ "Both elements of domain_y should lie within the interval [0, 1] inclusive" assert self.domain_y[1] > self.domain_y[0], \ "The second element of domain_y should be larger than the first element" assert 0 <= self.domain_x[0] <= 1 and 0 <= self.domain_x[1] <= 1, \ "Both elements of domain_x should lie within the interval [0, 1] inclusive" assert self.domain_x[1] > self.domain_x[0], \ "The second element of domain_y should be larger than the first element" x_domain_length = self.domain_x[1] - self.domain_x[0] y_domain_length = self.domain_y[1] - self.domain_y[0] if x_domain_length > y_domain_length: self.x_grid_num = self.grid_num self.y_grid_num = int(self.grid_num * y_domain_length / x_domain_length) elif x_domain_length < y_domain_length: self.x_grid_num = int(self.grid_num * x_domain_length / y_domain_length) self.y_grid_num = self.grid_num else: self.x_grid_num = self.grid_num self.y_grid_num = self.grid_num np.random.seed(self.seed) torch.manual_seed(self.seed) # self.indices = [np.random.choice(self.grid_num**2, self.batchsize, replace=False) for _ in range(self.num_cases)] # self.indices = np.arange(self.grid_num ** 2) self.indices = np.arange(self.x_grid_num * self.y_grid_num) # self.indices_bc = np.arange(4 * self.grid_num + 4) self.indices_bc = np.arange(2 * self.x_grid_num + 2 * self.y_grid_num + 4) if self.initial_shuffle: self.indices = np.random.permutation(self.indices) self.indices_bc = np.random.permutation(self.indices_bc) self.generate_boundary_coords() if not random_coords: self.generate_grid() else: self.generate_random_coords() self.calculate_cases() if self.use_torch: self.to_torch_tensors() else: self.x_grid = self.x_grid.reshape(-1, 1) self.y_grid = self.x_grid.reshape(-1, 1) self.x_bc = self.x_grid.reshape(-1, 1) self.y_bc = self.x_grid.reshape(-1, 1)
(self, cases, domain_x=None, domain_y=None, grid_num=32, noise_std=0, shuffle=False, initial_shuffle=False, batchsize=-1, batchsize_bc=-1, use_torch=False, device='cpu', precision=torch.float32, random_coords=False, seed=0)
[ -0.01951042376458645, 0.018248094245791435, -0.02830960601568222, 0.03241217881441116, -0.002854165155440569, -0.004789428319782019, -0.09111052006483078, -0.01827593892812729, -0.04284496605396271, -0.024392670020461082, -0.02736285887658596, 0.0413227416574955, -0.014479666948318481, 0.07510863244533539, -0.01579768769443035, -0.003441241569817066, 0.0051374975591897964, 0.0062791635282337666, 0.011258869431912899, -0.03263494372367859, -0.04871108755469322, -0.03538236767053604, -0.004181467927992344, 0.05821568891406059, -0.026156220585107803, 0.009351451881229877, -0.0007135412888601422, -0.015185086987912655, -0.014024857431650162, -0.019473295658826828, -0.0562850646674633, -0.006446236744523048, 0.0253951083868742, 0.0470774844288826, 0.024095650762319565, -0.08116038888692856, 0.03395296260714531, 0.027659878134727478, -0.0904422327876091, 0.01913915015757084, -0.02279619500041008, -0.05821568891406059, 0.036310549825429916, 0.03657044097781181, -0.0129852918908, -0.004353181924670935, 0.012641863897442818, -0.001879572169855237, -0.08717502653598785, 0.007536852732300758, -0.01991882361471653, -0.06508424878120422, 0.04637206345796585, 0.02197939343750477, -0.010367813520133495, 0.04759726673364639, 0.03939212113618851, 0.05346338823437691, 0.022406356409192085, -0.046928972005844116, -0.029683317989110947, -0.007300165481865406, -0.0025664281565696, -0.05706474184989929, -0.0029168175533413887, 0.004281247965991497, -0.07722489535808563, -0.01600188948214054, 0.04975065216422081, 0.04317910969257355, 0.0189349502325058, 0.028903644531965256, 0.0840563252568245, -0.0084743183106184, 0.030667193233966827, -0.0020118383690714836, -0.05346338823437691, 0.050307560712099075, 0.05286934971809387, -0.07017069309949875, 0.0030258791521191597, 0.05918100103735924, 0.032449305057525635, -0.005346338730305433, -0.012808936648070812, -0.04169401526451111, 0.025989146903157234, 0.041619762778282166, 0.019677497446537018, -0.06890836358070374, 0.00363151915371418, -0.014377566985785961, 0.01921340450644493, -0.00039766874397173524, 0.040060412138700485, 0.04900810495018959, 0.012252026237547398, -0.04522111639380455, -0.015129395760595798, -0.046112172305583954, 0.007815307937562466, 0.0019619485829025507, -0.0155099518597126, 0.02415134198963642, -0.048451196402311325, -0.018591521307826042, -0.012381971813738346, 0.011945725418627262, -0.06274522840976715, -0.01875859498977661, -0.0996498167514801, 0.0835365429520607, -0.03371163457632065, -0.003817155957221985, -0.014303312636911869, -0.07715063542127609, -0.048005666583776474, 0.0008231830433942378, -0.06849996745586395, 0.022944703698158264, 0.027344295755028725, 0.006070321891456842, -0.07020782679319382, 0.02752993255853653, -0.018591521307826042, 0.015027295798063278, 0.02871800772845745, 0.002347144763916731, -0.022517738863825798, -0.0585869625210762, 0.0037568239495158195, -0.03406434506177902, 0.007123810704797506, 0.06152002140879631, 0.026564620435237885, -0.010692677460610867, 0.0008806143887341022, -0.010191458277404308, 0.02214646525681019, 0.028736570850014687, 0.038129791617393494, 0.021570991724729538, 0.06070322170853615, 0.004970424342900515, 0.04202816262841225, 0.02188657410442829, 0.03200377896428108, -0.019046330824494362, 0.004260363522917032, -0.019399041309952736, 0.022369230166077614, -0.0036848897580057383, 0.03794415295124054, 0.011936443857848644, -0.024225598201155663, -0.006325572729110718, -0.015667742118239403, -0.030518684536218643, 0.038983721286058426, 0.03697884455323219, -0.08316526561975479, -0.003712735138833523, -0.019269095733761787, 0.03842680901288986, -0.01819240301847458, 0.009615983814001083, -0.03402721881866455, -0.05428018793463707, 0.004459923133254051, -0.002821678761392832, -0.012094235047698021, -0.03707166016101837, -0.01526862382888794, 0.03827830031514168, -0.06597530841827393, 0.05472571775317192, -0.009773775935173035, 0.020104460418224335, -0.024745380505919456, 0.04718886315822601, -0.003949421923607588, -0.01674443669617176, 0.02489388920366764, 0.02543223649263382, -0.009031228721141815, 0.07819020748138428, 0.06463871896266937, -0.013811375014483929, 0.014433258213102818, 0.01425690297037363, -0.028829388320446014, 0.015092268586158752, -0.02262912131845951, 0.011268150992691517, 0.02455974370241165, 0.03465838357806206, 0.01043278630822897, -0.004559703171253204, 0.01691150851547718, -0.003701132955029607, -0.01127743348479271, 0.002547864569351077, 0.05576528236269951, -0.041211362928152084, -0.027102967724204063, 0.009476756677031517, -0.024745380505919456, 0.04410729557275772, 0.028829388320446014, 0.043513257056474686, 0.0011080193798989058, -0.034379929304122925, -0.012112799100577831, 0.03313616290688515, 0.05595092102885246, -0.034918274730443954, -0.03794415295124054, 0.019324786961078644, 0.0044111935421824455, -0.017217809334397316, 0.029534809291362762, -0.016642335802316666, -0.059106744825839996, -0.025784946978092194, 0.038983721286058426, 0.014860223047435284, 0.04607504606246948, 0.012214899063110352, -0.005689766723662615, -0.0246896892786026, 0.028179660439491272, -0.02292614057660103, -0.011203178204596043, 0.005601589102298021, 0.054131679236888885, -0.00007269564230227843, -0.010321403853595257, 0.0037893103435635567, -0.010794777423143387, 0.019566114991903305, -0.05702761188149452, -0.0179417934268713, -0.0009409463382326066, -0.03983764722943306, 0.016447417438030243, 0.011333124712109566, -0.013319437392055988, 0.06660646945238113, 0.011119642294943333, 0.01510155014693737, -0.044330060482025146, -0.03924361243844032, -0.05383466184139252, -0.010934005491435528, -0.03571651130914688, -0.04596366360783577, -0.002226480981335044, -0.033637382090091705, 0.07325226813554764, -0.04470133036375046, -0.020271534100174904, -0.01885141246020794, -0.04332761839032173, 0.05888397991657257, 0.022090774029493332, -0.0001914379099616781, -0.01872146688401699, 0.044552821666002274, 0.03980052098631859, 0.019473295658826828, -0.020252970978617668, 0.09252136200666428, -0.04414442181587219, -0.02559931017458439, 0.026119092479348183, 0.0282724779099226, 0.02455974370241165, -0.009820184670388699, -0.017022890970110893, 0.031038466840982437, 0.016317471861839294, -0.0033205775544047356, -0.0338972732424736, -0.01281821820884943, 0.012827499769628048, -0.04859970510005951, -0.03176245093345642, -0.02320459485054016, 0.024374106898903847, -0.0064833639189600945, -0.05190403759479523, 0.027882641181349754, 0.02662031166255474, -0.0141362389549613, 0.021589554846286774, -0.06408181041479111, -0.017087863758206367, -0.007462597917765379, -0.057138994336128235, -0.005712971556931734, 0.04288209229707718, 0.006576182320713997, 0.03612491488456726, 0.0025037757586687803, 0.020030206069350243, 0.030017463490366936, -0.037758518010377884, -0.01761692948639393, 0.09712515026330948, -0.03157681226730347, 0.06385904550552368, 0.006344136316329241, 0.05609942972660065, 0.05097585543990135, 0.04410729557275772, -0.031205540522933006, 0.018526548519730568, 0.023390231654047966, 0.02082844451069832, 0.10269425809383392, -0.038241174072027206, 0.049899160861968994, 0.040802959352731705, 0.05056745558977127, 0.008664595894515514, 0.0019619485829025507, 0.05175552889704704, 0.020420044660568237, -0.04321623966097832, 0.009560293518006802, -0.023984270170331, 0.017496265470981598, -0.0012669708812609315, 0.046483445912599564, 0.01613183505833149, -0.01150019746273756, 0.009263274259865284, 0.01760764606297016, 0.06274522840976715, -0.09163030236959457, 0.02986895479261875, 0.021496737375855446, -0.04262220114469528, 0.0026986943557858467, 0.04481271281838417, -0.06519562751054764, -0.00028106567333452404, -0.018043892458081245, -0.0436246395111084, 0.06731189042329788, 0.005202470347285271, -0.035085346549749374, 0.04893384873867035, 0.04897097870707512, 0.0422138012945652, 0.049602143466472626, -0.0008289841352961957, -0.024782506749033928, 0.014609613455832005, -0.008191222324967384, 0.008998742327094078, -0.04893384873867035, -0.014637459069490433, 0.05535688251256943, -0.004079367965459824, -0.007680721115320921, -0.008669236674904823, -0.005624793935567141, 0.04143412411212921, 0.021923702210187912, -0.028198223561048508, -0.03744293376803398, -0.04785715788602829, 0.03131692111492157, 0.00756005709990859, -0.03261638060212135, -0.06987367570400238, 0.014479666948318481, 0.007889562286436558, 0.015073705464601517, 0.01744985580444336, 0.004135058727115393, 0.024392670020461082, 0.06367340683937073, -0.04941650480031967, -0.04317910969257355, 0.0576959066092968, 0.027381421998143196, 0.00371969654224813, -0.057881541550159454, 0.03920648247003555, 0.010451349429786205, 0.051458511501550674, -0.027418550103902817, -0.026119092479348183, 0.014191930182278156, 0.04392165690660477, 0.08346229046583176, -0.03250499814748764, -0.02702871337532997, -0.05895823612809181, -0.014089830219745636, 0.01900920458137989, 0.04889672249555588, 0.0021835523657500744, -0.03423142060637474, 0.04685471951961517, 0.005536616314202547, 0.03842680901288986, 0.061037369072437286, -0.0015929954824969172, 0.02814253233373165, 0.03748006373643875, -0.02526516281068325, -0.051087237894535065, -0.022239284589886665, -0.031001338735222816, 0.014804531820118427, 0.03655187785625458, 0.012725399807095528, 0.026973022148013115, 0.040023285895586014, 0.031335484236478806, 0.012196335010230541, -0.009523165412247181, -0.014349721372127533, -0.00835365429520607, -0.009848030284047127, -0.024336978793144226, -0.01332871988415718, -0.09304114431142807, -0.0358835868537426, -0.031836703419685364, -0.026508929207921028, 0.04321623966097832, -0.01567702367901802, -0.005304570309817791, 0.02435554377734661, 0.012743963859975338, 0.012957446277141571, -0.01259545423090458, 0.013709275051951408, 0.020252970978617668, -0.021793756633996964, -0.04737450182437897, -0.020995518192648888, -0.03163250535726547, -0.06144576892256737, -0.06333926320075989, 0.01649382710456848, 0.02719578519463539, 0.029497681185603142, 0.03783277049660683, -0.04833981394767761, 0.02658318355679512, -0.0169486366212368, -0.0798238068819046, 0.007286242675036192, -0.0023192993830889463, 0.007379061076790094, 0.010015103034675121, 0.02509809099137783, -0.05595092102885246, 0.011890034191310406, 0.008130890317261219, -0.028161097317934036, 0.017227090895175934, 0.03766569867730141, -0.0038937311619520187, -0.016698027029633522, -0.007044915109872818, -0.011407379060983658, -0.0038125149440020323, 0.013152364641427994, -0.05814143270254135, -0.025079526007175446, 0.007471879478543997, 0.0654926523566246, 0.006873201113194227, -0.0338415801525116, 0.018507985398173332, -0.028291042894124985, 0.019770314916968346, 0.018331630155444145, -0.025135217234492302, -0.00932360626757145, 0.0378699004650116, 0.021923702210187912, -0.005601589102298021, 0.022944703698158264, -0.019324786961078644, -0.0652327612042427, -0.02201651968061924, 0.007931330241262913, -0.044181548058986664, -0.021051209419965744, 0.014312594197690487, -0.026341857388615608, 0.032207977026700974, -0.07057909667491913, 0.02164524607360363, 0.010488476604223251, -0.011880752630531788, -0.03521529212594032, 0.038612447679042816, 0.06749752908945084, -0.007889562286436558, 0.011249587871134281, -0.06155715137720108, -0.001526862382888794, 0.007202706299722195, -0.04020892083644867, 0.007397625129669905, -0.06311649829149246, 0.06111162155866623, 0.024949580430984497, -0.01675371825695038, -0.0060656811110675335, -0.0516812726855278, 0.02715865895152092, 0.0021023363806307316, 0.038092661648988724, 0.024968143552541733, 0.061742786318063736, 0.012084953486919403, 0.09200157970190048, 0.007249115500599146, 0.0009595099836587906, 0.039354994893074036, 0.03452843800187111, -0.013226618990302086, -0.035363804548978806, 0.05457720905542374, 0.10603571683168411, 0.025952018797397614, 0.0019979155622422695, -0.02502383477985859, -0.05650782957673073, -0.021051209419965744, -0.023483050987124443, -0.01802532933652401, -0.04058019444346428, 0.025357982143759727, -0.048005666583776474, -0.0023645481560379267, 0.0005392167950049043, 0.04492409527301788, 0.049899160861968994, -0.01872146688401699, 0.011472351849079132, 0.0067386142909526825, -0.013059546239674091, 0.034918274730443954, -0.05476284399628639, 0.08331377804279327, 0.009379297494888306, -0.03957775607705116, -0.01207567099481821, -0.010219303891062737, 0.037183042615652084, -0.04603791609406471, -0.04830268397927284, 0.013941320590674877, -0.01102682389318943, -0.07781893014907837, 0.018340911716222763, -0.010098639875650406, 0.004747660364955664, 0.0012530481908470392, -0.00034081749618053436, -0.01741272769868374, 0.02719578519463539, -0.0189349502325058, 0.03957775607705116, -0.05854983627796173, -0.0035131757613271475, -0.012001416645944118, -0.007202706299722195, 0.0045388187281787395, -0.024336978793144226, 0.014990168623626232, -0.0005719932960346341, 0.015779124572873116, -0.03436136618256569, -0.00429981155321002, 0.025654999539256096, -0.06998506188392639, 0.023018958047032356, 0.06044333055615425, -0.019566114991903305, 0.04076583310961723, 0.06155715137720108, -0.04859970510005951, 0.0008968575857579708, -0.02407708764076233, -0.013969166204333305, -0.029033590108156204, -0.006353418342769146, 0.00678966473788023, -0.024299852550029755, -0.02938629873096943, 0.04440431296825409, 0.02164524607360363, 0.0035317393485456705, 0.03913222998380661, -0.08093763142824173, -0.014915913343429565, -0.029739009216427803, -0.014284748584032059, -0.004188429564237595, 0.0001940484216902405, -0.02320459485054016, 0.012678991071879864, -0.06560403108596802, -0.0014618894783779979, -0.06048045679926872, -0.07109887897968292, 0.027808386832475662, 0.06597530841827393, -0.012808936648070812, 0.01819240301847458, 0.003761464962735772, -0.019324786961078644, -0.023148903623223305, -0.0011845945846289396, -0.0433647483587265, 0.06827720254659653, -0.07596256583929062, -0.01197357103228569, 0.04202816262841225, 0.01645669899880886, -0.015333596616983414, -0.016521671786904335, -0.011249587871134281, 0.023687250912189484, -0.011778652667999268, -0.0040886495262384415, 0.022239284589886665, 0.026267601177096367, 0.006325572729110718, 0.018665775656700134, 0.005341697949916124, 0.017505547031760216, 0.008817746303975582, -0.04674333706498146, -0.048005666583776474, 0.028959333896636963, 0.014683867804706097, 0.03497396409511566, -0.002740462776273489, 0.00045597029384225607, 0.06842570751905441, -0.026453237980604172, -0.014925195835530758, -0.008112326264381409, 0.054837100207805634, -0.04414442181587219, 0.04440431296825409, 0.024132778868079185, -0.037257298827171326, 0.029497681185603142, 0.06270809471607208, -0.001937583670951426, -0.03599496930837631, -0.03584645688533783, 0.008274758234620094, 0.055691029876470566, 0.017189964652061462, -0.036143478006124496, 0.0628194808959961, -0.031001338735222816, -0.08517014980316162, -0.05227531120181084, -0.006237395107746124, 0.024875326082110405, -0.043067727237939835, 0.010386376641690731, -0.031372614204883575, -0.08420483767986298, 0.017969638109207153, 0.03272775933146477, 0.020048771053552628, -0.037053097039461136, -0.012929600663483143, 0.0749601274728775, 0.038538191467523575, -0.017626211047172546, -0.02550649084150791, 0.015175805427134037, 0.016781562939286232, -0.00917973741889, 0.03751718997955322, 0.03235648572444916, -0.013894911855459213, 0.03493683785200119, -0.06159427762031555, -0.05632219463586807, -0.0318552665412426, 0.0008388461428694427, -0.013356564566493034, -0.021793756633996964, -0.07410619407892227, -0.047300245612859726, 0.04184252768754959, -0.00540202995762229, 0.010080075822770596, -0.025729255750775337, 0.03916935622692108, 0.02773413248360157, -0.017765438184142113, 0.04666908085346222, 0.04596366360783577, 0.039354994893074036, -0.0385010652244091, -0.0602576918900013, 0.027214350178837776, 0.03235648572444916, 0.06155715137720108, -0.02272193878889084, -0.01835019327700138, 0.017672618851065636, 0.01670730859041214, 0.0038867697585374117, -0.03662613406777382, -0.0088270278647542, 0.010191458277404308, 0.021051209419965744, -0.06708912551403046, 0.03161394223570824, -0.04251081869006157, 0.014962323009967804, 0.03107559308409691, -0.004383347928524017, 0.019454732537269592, -0.047634392976760864, -0.009820184670388699, 0.0282724779099226, -0.03352599963545799, -0.0576959066092968, 0.02435554377734661, -0.043476130813360214, -0.03577220439910889, 0.016317471861839294, -0.04095146805047989, -0.029237790033221245, 0.055134117603302, 0.03230079635977745, -0.013551483862102032, 0.01847085729241371, -0.060146309435367584, 0.05312924087047577, 0.06578966975212097, -0.0039795879274606705, -0.008664595894515514, 0.03751718997955322, -0.044181548058986664, 0.03942924737930298, -0.03315472602844238, -0.03733155131340027, -0.08004657179117203, -0.03579076752066612, 0.0023900733795017004, -0.009314324706792831, 0.054094552993774414, -0.027418550103902817, 0.028012586757540703, 0.09311539679765701, 0.06738614290952682 ]
43,161
fast_poisson_solver.data
__next__
null
def __next__(self): if self.batch_number < self.number_of_batches: out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call = self.__call__(self.batch_number) self.batch_number += 1 return out_call, x_call, y_call, bc_call, x_bc_call, y_bc_call else: self.batch_number = 0 raise StopIteration
(self)
[ 0.006583600305020809, -0.07575803250074387, -0.08422532677650452, 0.05613778159022331, -0.06303843855857849, 0.01932184211909771, -0.04886411502957344, 0.002097007352858782, 0.04282137751579285, -0.0341302789747715, 0.011069027706980705, -0.009670245461165905, 0.035585012286901474, 0.06527648866176605, -0.016580229625105858, 0.023387635126709938, 0.022380510345101357, -0.015507829375565052, -0.02778913453221321, 0.021858299151062965, -0.016123292967677116, 0.07046131044626236, -0.001652893959544599, 0.007054523564875126, 0.01194559782743454, 0.0908648744225502, 0.06434396654367447, 0.0001967037096619606, 0.02040356583893299, -0.0017927722074091434, -0.03344021365046501, -0.011712467297911644, -0.008537232875823975, -0.021709095686674118, 0.031108910217881203, 0.000695894006639719, -0.04957283288240433, 0.048043496906757355, -0.04640226066112518, -0.02266026847064495, 0.07113272696733475, -0.07915240526199341, 0.0254951324313879, 0.03250769153237343, -0.0624416247010231, -0.004065793007612228, -0.0399119108915329, -0.025289976969361305, 0.00820152461528778, -0.053675927221775055, 0.026017343625426292, -0.040657930076122284, 0.03692784532904625, 0.0014908683951944113, 0.028609752655029297, 0.029896633699536324, 0.020795224234461784, -0.005198806058615446, -0.05900994688272476, 0.00423830933868885, -0.0199746061116457, -0.037151649594306946, 0.02105633169412613, 0.00655096210539341, 0.05292990803718567, -0.05983056500554085, -0.046887170523405075, -0.0283859483897686, -0.0034176905173808336, 0.07549692690372467, 0.013754689134657383, 0.030269641429185867, 0.008537232875823975, -0.011190255172550678, -0.04584274813532829, -0.019489694386720657, -0.0341489315032959, 0.04946092888712883, 0.07601913809776306, -0.05401163548231125, -0.009036131203174591, 0.05725680664181709, -0.04304518178105354, -0.06087499111890793, 0.00044994152267463505, -0.031575169414281845, 0.03235848993062973, -0.007362255826592445, -0.10115990787744522, 0.055354464799165726, -0.027695883065462112, 0.04103093594312668, 0.01581556163728237, 0.02437610737979412, 0.030903756618499756, -0.009810124523937702, -0.020179761573672295, 0.009884726256132126, -0.002107498236000538, -0.01828674226999283, -0.0025457830633968115, 0.014202299527823925, 0.030903756618499756, -0.018342694267630577, 0.031556520611047745, -0.04367929697036743, -0.015451878309249878, -0.01823079213500023, -0.005040277726948261, -0.020813874900341034, -0.015796910971403122, 0.000572626362554729, -0.049125220626592636, 0.0312394630163908, -0.0199746061116457, -0.029672827571630478, -0.025718936696648598, 0.007763240020722151, -0.019545646384358406, 0.049087923020124435, -0.005194143857806921, -0.01274756621569395, -0.01755937561392784, 0.03657348453998566, -0.031593821942806244, 0.03808417171239853, 0.07501201331615448, 0.017997661605477333, 0.028814908117055893, -0.050206948071718216, 0.018370669335126877, 0.004217327572405338, 0.022324560210108757, 0.03537985682487488, -0.028609752655029297, 0.030269641429185867, 0.014985617250204086, -0.0012309281155467033, -0.10347256064414978, -0.014696535654366016, 0.016841335222125053, 0.029747430235147476, 0.024637212976813316, 0.05718220770359039, 0.030847804620862007, 0.023630090057849884, 0.02719232067465782, 0.02736017480492592, 0.035547710955142975, -0.008481280878186226, 0.009441778063774109, -0.00006720710371155292, 0.07083431631326675, 0.03703974559903145, -0.04035952314734459, 0.03560366481542587, -0.034969549626111984, 0.028665704652667046, -0.01054681558161974, -0.04699907451868057, -0.007432194892317057, 0.014976291917264462, -0.021932901814579964, 0.004753527231514454, 0.009670245461165905, 0.033813223242759705, -0.05356402322649956, 0.0045413789339363575, 0.00013616267824545503, -0.02663280814886093, 0.07049860805273056, 0.0027695882599800825, 0.07348267734050751, 0.019620249047875404, -0.08176346868276596, 0.06505268812179565, 0.0022392168175429106, 0.04606655240058899, 0.016925262287259102, 0.00597279891371727, 0.0018020974239334464, 0.00597279891371727, -0.032022781670093536, -0.0341116301715374, -0.013894567266106606, 0.04356739670038223, 0.0742286965250969, -0.03198548033833504, 0.04953553155064583, 0.034391384571790695, -0.02952362410724163, 0.03541715815663338, 0.04699907451868057, 0.03306720405817032, -0.02053411863744259, -0.029803380370140076, -0.025159424170851707, 0.05072915926575661, 0.03677864000201225, 0.025327278301119804, -0.03860638290643692, -0.002639035228639841, 0.058189328759908676, -0.012999346479773521, -0.01656157895922661, 0.024581260979175568, -0.00023575304658152163, 0.03010178729891777, -0.0624416247010231, 0.023462235927581787, 0.004016835708171129, -0.024618562310934067, 0.036554835736751556, 0.11406600475311279, 0.03308585658669472, 0.019433744251728058, 0.042933281511068344, -0.031071608886122704, -0.019526995718479156, 0.013129900209605694, 0.05274340510368347, -0.0453205369412899, 0.01506021898239851, -0.052034687250852585, 0.04386580362915993, -0.006830718368291855, 0.03916589543223381, -0.003951558843255043, -0.031463269144296646, 0.016356423497200012, -0.018948832526803017, -0.018426621332764626, 0.029672827571630478, 0.012299955822527409, -0.020235711708664894, -0.02325708046555519, -0.009017480537295341, -0.026987167075276375, -0.04819270223379135, 0.027490727603435516, -0.0073249549604952335, 0.025122124701738358, 0.0283486470580101, -0.048006195574998856, -0.0057956199161708355, 0.01134878396987915, 0.005926172714680433, 0.03508144989609718, -0.01048153918236494, 0.0004275027313269675, 0.030250990763306618, 0.012607688084244728, -0.010155157186090946, -0.031052960082888603, -0.02223130874335766, -0.07508661597967148, -0.025327278301119804, -0.04897601902484894, 0.05326561629772186, 0.0342608317732811, 0.018473247066140175, 0.06609711050987244, -0.04069523140788078, 0.010817247442901134, -0.0171117652207613, 0.038345277309417725, -0.03140731900930405, -0.002097007352858782, 0.016654830425977707, 0.08907443284988403, 0.12756891548633575, 0.03478304296731949, -0.01656157895922661, 0.02279082126915455, -0.05513066053390503, 0.0004315825062803924, 0.016347099095582962, 0.02495427057147026, -0.01824011653661728, -0.07482551038265228, 0.09728062152862549, 0.016375074163079262, -0.08474753797054291, -0.05509335920214653, -0.00024245554232038558, -0.032116033136844635, 0.0022567014675587416, 0.01826809160411358, 0.05725680664181709, -0.06177021190524101, 0.06016627326607704, -0.019676199182868004, 0.031463269144296646, -0.02148529142141342, 0.05065455660223961, -0.03769250959157944, -0.04270947724580765, -0.01990000531077385, -0.024543961510062218, 0.007697963155806065, 0.0014535675290971994, -0.08765700459480286, -0.020030558109283447, 0.0199746061116457, -0.0016890291590243578, 0.043492794036865234, 0.0399492122232914, 0.015069544315338135, -0.06602250784635544, 0.007301641628146172, 0.017867108806967735, 0.010472213849425316, 0.05002044141292572, -0.05005774274468422, -0.007157100830227137, -0.0851951465010643, 0.018967483192682266, 0.06710423529148102, -0.018650425598025322, 0.030829153954982758, -0.04364199563860893, 0.0016948574921116233, 0.0399492122232914, 0.021317437291145325, -0.041217442601919174, 0.06658202409744263, -0.006718815770000219, -0.027173670008778572, -0.05072915926575661, -0.010173807851970196, -0.024170951917767525, -0.05278070643544197, -0.0398000106215477, 0.08668717741966248, 0.012859468348324299, 0.011208905838429928, -0.007725939154624939, -0.000996632152236998, 0.058748841285705566, -0.07721276581287384, 0.027546679601073265, 0.004872423596680164, -0.029710128903388977, -0.025737587362527847, 0.0050589279271662235, 0.012132101692259312, 0.012085475958883762, -0.00452739093452692, 0.023574138060212135, 0.009800799190998077, 0.03310450538992882, 0.021224183961749077, 0.01138608530163765, 0.005189481191337109, 0.05546636879444122, 0.014444755390286446, -0.0007133787730708718, -0.02900141291320324, 0.004643956199288368, -0.00047063184319995344, -0.005781631916761398, -0.023387635126709938, 0.013437631540000439, 0.07109542191028595, 0.0025201388634741306, -0.011787069030106068, -0.09250611066818237, 0.013111249543726444, -0.03508144989609718, -0.007898455485701561, -0.028292696923017502, 0.03815877065062523, -0.009381163865327835, 0.01653360202908516, -0.02793833799660206, -0.0016447344096377492, -0.0032498366199433804, 0.02165314555168152, 0.0034922922495752573, 0.0043525430373847485, 0.029672827571630478, -0.04449991509318352, 0.03170572593808174, 0.04584274813532829, 0.012663639150559902, -0.0027998951263725758, -0.006177953444421291, -0.04759588837623596, 0.00668617757037282, 0.005077578593045473, 0.019582947716116905, -0.009325212799012661, -0.05408623442053795, -0.03860638290643692, -0.023462235927581787, -0.031593821942806244, 0.07810798287391663, 0.015358625911176205, -0.055988579988479614, -0.06568679958581924, -0.03636832907795906, 0.05759251490235329, -0.04364199563860893, 0.0512140691280365, 0.01250511035323143, -0.014258250594139099, 0.012700940482318401, -0.0038046869449317455, -0.005567152053117752, 0.02777048386633396, -0.06934228539466858, -0.024040399119257927, 0.0010554975597187877, -0.052071988582611084, -0.010863873176276684, 0.03817742317914963, -0.04934902861714363, 0.028721656650304794, 0.04099363461136818, 0.033197756856679916, 0.03245174139738083, 0.040098417550325394, 0.04356739670038223, 0.008984842337667942, -0.013810640200972557, -0.03485764563083649, 0.025401880964636803, -0.06546299904584885, -0.0008958032703958452, 0.010453564114868641, -0.07706356048583984, -0.10115990787744522, -0.05218389257788658, 0.0227721706032753, 0.017335571348667145, -0.04394040256738663, -0.038904789835214615, 0.03239579126238823, -0.019601598381996155, 0.01218805368989706, 0.03871828317642212, 0.044015005230903625, 0.024170951917767525, -0.013549534603953362, -0.011824370361864567, -0.016710782423615456, -0.028031589463353157, -0.003988859709352255, -0.037300851196050644, 0.0084766186773777, 0.02385389432311058, 0.028292696923017502, 0.04640226066112518, -0.03198548033833504, 0.06083768978714943, -0.02607329562306404, -0.06915578246116638, -0.03524930402636528, 0.019657548516988754, 0.0035319244489073753, 0.014062421396374702, 0.010453564114868641, -0.02963552623987198, -0.01814686506986618, -0.026427654549479485, -0.05065455660223961, -0.00020763170323334634, 0.06102419272065163, -0.023443585261702538, -0.014948316849768162, -0.0014838745119050145, -0.04442531615495682, -0.005343346856534481, -0.016235195100307465, -0.003963215742260218, -0.015535804443061352, -0.011665841564536095, 0.013689412735402584, 0.028031589463353157, -0.06773834675550461, -0.024525310844182968, -0.04781969264149666, 0.01581556163728237, -0.006718815770000219, -0.0007704957388341427, 0.023499537259340286, 0.030344242230057716, 0.0034130278509110212, -0.002694986527785659, 0.02903871424496174, -0.007632686756551266, 0.011600565165281296, 0.0037627234123647213, -0.027173670008778572, -0.03248904272913933, -0.001730992691591382, 0.04367929697036743, 0.003625176614150405, 0.0567718967795372, -0.019153987988829613, 0.0012682289816439152, 0.0024198926985263824, 0.029747430235147476, -0.0796746164560318, 0.037804413586854935, 0.059382956475019455, 0.021410688757896423, -0.02441340684890747, -0.0685216635465622, 0.02547648176550865, -0.009115396067500114, -0.024226903915405273, -0.04942362755537033, 0.0014244263293221593, -0.01586218737065792, -0.020235711708664894, 0.0398373082280159, 0.012738240882754326, -0.042373768985271454, 0.026446303352713585, 0.0793016105890274, 0.0169812124222517, -0.024115001782774925, 0.015293349511921406, -0.02944902330636978, 0.03905399143695831, -0.007180414162576199, -0.03532390668988228, -0.008299439214169979, -0.005595127586275339, -0.02791968733072281, 0.008168886415660381, 0.020776575431227684, 0.04707367345690727, -0.0058235954493284225, -0.06658202409744263, -0.0029374421574175358, 0.037841714918613434, 0.015433227643370628, 0.02721097134053707, -0.003506280016154051, -0.020161110907793045, -0.009050119668245316, -0.02213805541396141, -0.04655146226286888, 0.016710782423615456, -0.006774767301976681, 0.024003097787499428, 0.023145178332924843, -0.022548364475369453, -0.009301899932324886, -0.02441340684890747, -0.0023569476325064898, 0.032171983271837234, 0.004676594398915768, 0.030008535832166672, 0.015050893649458885, 0.039986513555049896, -0.02959822677075863, 0.019582947716116905, -0.005198806058615446, 0.05072915926575661, -0.03457789123058319, -0.09839964658021927, 0.0399492122232914, 0.009045456536114216, 0.004429476335644722, 0.037170298397541046, 0.014323526993393898, 0.010313685983419418, -0.005674391984939575, 0.02612924762070179, -0.04416421055793762, -0.03358941897749901, 0.016002066433429718, 0.018389320001006126, -0.009176009334623814, -0.05043075233697891, -0.02547648176550865, -0.021317437291145325, 0.024543961510062218, 0.008821651339530945, 0.03299260511994362, -0.058301232755184174, -0.011497987434267998, -0.012934070080518723, -0.12958316504955292, -0.008406679145991802, 0.02331303246319294, -0.0013696406967937946, 0.0025084821972995996, 0.02663280814886093, -0.07269936054944992, -0.030437495559453964, -0.002988730790093541, 0.025159424170851707, -0.0099033759906888, -0.02680066227912903, -0.03690919280052185, -0.011050377041101456, -0.02605464495718479, 0.0624789260327816, 0.0283486470580101, 0.06770104914903641, 0.0007133787730708718, -0.005180155858397484, -0.06117339804768562, -0.010099206119775772, -0.007441519759595394, 0.0198067519813776, -0.025681637227535248, 0.0035808817483484745, 0.010061904788017273, 0.0004327481728978455, -0.06206861883401871, -0.012085475958883762, -0.013791990466415882, 0.04356739670038223, -0.006504335906356573, 0.006135990377515554, -0.024077700451016426, -0.004988988861441612, -0.07061051577329636, 0.03468979150056839, -0.0228281207382679, -0.0011860504746437073, 0.04476102069020271, -0.03759925812482834, 0.07766037434339523, 0.034354083240032196, -0.017410172149538994, -0.009959327057003975, 0.07075971364974976, -0.07277396321296692, 0.030866455286741257, -0.01809091307222843, 0.004033154807984829, 0.05229579284787178, -0.037767112255096436, -0.08377771079540253, 0.00655096210539341, 0.061695609241724014, -0.002890815958380699, -0.06214321777224541, -0.02208210527896881, -0.05740601196885109, -0.01368008740246296, 0.01826809160411358, 0.08012223243713379, 0.009576993994414806, 0.02107498049736023, 0.03819607198238373, 0.020030558109283447, 0.00011015407653758302, -0.0018522203899919987, 0.001943141222000122, -0.019433744251728058, 0.02329438179731369, 0.01478978805243969, -0.06717883795499802, -0.03293665125966072, 0.010714669711887836, -0.005879546981304884, -0.022473763674497604, -0.06352335214614868, 0.03142596781253815, -0.019023435190320015, -0.019620249047875404, -0.03342156484723091, -0.02336898446083069, -0.049237124621868134, 0.0058888718485832214, -0.0623670257627964, -0.03685324266552925, -0.022026153281331062, -0.02150394208729267, -0.01932184211909771, -0.024599911645054817, -0.010798596777021885, -0.006070713512599468, -0.07691435515880585, 0.016589554026722908, -0.04588004946708679, 0.046924471855163574, -0.04192615672945976, -0.03013908863067627, 0.015423902310431004, 0.01928454078733921, 0.022455113008618355, -0.012822167947888374, 0.035025499761104584, 0.05386243015527725, 0.03144461661577225, -0.014584633521735668, -0.07751116901636124, -0.0021716090850532055, 0.011516638100147247, -0.04703637585043907, 0.019582947716116905, -0.009856750257313251, 0.010891849175095558, -0.025942742824554443, -0.015694333240389824, -0.01586218737065792, -0.0008503428543917835, 0.03763655945658684, -0.032563645392656326, -0.0027998951263725758, 0.000599144957959652, 0.035585012286901474, 0.025886790826916695, -0.0031286089215427637, -0.0568091981112957, -0.0071944016963243484, -0.03672268986701965, -0.015339975245296955, -0.005170830525457859, 0.05326561629772186, -0.01584353670477867, 0.06460507214069366, -0.01077062077820301, 0.0628519356250763, 0.014593957923352718, 0.022399161010980606, -0.043418191373348236, 0.00278124469332397, 0.02961687743663788, 0.024245554581284523, 0.01054681558161974, 0.04588004946708679, 0.017410172149538994, -0.015433227643370628, -0.010341661050915718, -0.005912185180932283, 0.002318480983376503, -0.0227721706032753, 0.04703637585043907, -0.03696514293551445, 0.01825876720249653, -0.04987123981118202, -0.0062851933762431145, -0.02383524365723133, -0.012570386752486229, 0.005725680850446224, -0.037282202392816544, 0.04188885539770126, 0.0397254079580307, -0.00363217038102448, 0.026371702551841736, -0.07221444696187973, 0.021820997819304466, 0.01640304923057556, 0.03312315791845322, 0.046327657997608185, 0.049237124621868134, -0.04192615672945976, 0.05285530909895897, -0.027397476136684418, -0.022604316473007202, -0.03179897740483284, -0.023387635126709938, 0.02038491517305374, 0.028218094259500504, 0.015507829375565052, -0.01189897209405899, -0.009791473858058453, 0.0399492122232914, 0.049162521958351135 ]
43,162
fast_poisson_solver.data
calculate_cases
null
def calculate_cases(self): self.out = np.zeros((len(self.x_grid), len(self.cases))) self.bc = np.zeros((len(self.x_bc), len(self.cases))) for i, case in enumerate(self.cases): if case['b_val'] == 'random': self.bc[:, i] = np.ones_like(self.x_bc) * np.random.uniform(-10, 10) else: np.random.uniform(-10, 10) # to make sure the random seed is not affected self.bc[:, i] = np.ones_like(self.x_bc) * case['b_val'] # if case['name'] == 'sinsin': # self.out[:, i] = sf.sinsin(self.x_grid, self.y_grid, case['param']) if case['name'] == 'sin': self.out[:, i] = sf.sincos(self.x_grid, self.y_grid, case['param']) elif case['name'] == 'exp': self.out[:, i] = sf.exp(self.x_grid, self.y_grid, case['param']) elif case['name'] == 'perlin': self.out[:, i] = sf.perlin(self.x_grid, self.y_grid, case['param']) # elif case['name'] == 'rectangle': # self.out[:, i] = sf.rectangle(self.x_grid, self.y_grid, case['param']) # elif case['name'] == 'circle': # self.out[:, i] = sf.circle(self.x_grid, self.y_grid, case['param']) elif case['name'] == 'geo': self.out[:, i] = sf.rectangle_circle(self.x_grid, self.y_grid, case['param'], grid_num=self.grid_num) else: raise ValueError('Unknown case') if self.noise_std > 0: self.out[:, i] *= np.random.normal(1, self.noise_std, len(self.x_grid))
(self)
[ 0.019039606675505638, -0.04019266366958618, 0.010845345444977283, 0.02829059213399887, -0.05799015238881111, -0.03451971337199211, -0.06473837047815323, -0.04008143022656441, -0.03316636383533478, 0.011744488961994648, -0.062328290194272995, 0.027252405881881714, -0.02491648495197296, 0.04156455397605896, -0.03709664195775986, 0.039710648357868195, 0.0063264514319598675, -0.027845656499266624, -0.014006253331899643, -0.011067814193665981, -0.03642923757433891, -0.014349225908517838, -0.030366966500878334, 0.054727282375097275, 0.026399610564112663, 0.0285872183740139, -0.0006349625182338059, -0.052428439259529114, 0.017315473407506943, -0.035947222262620926, -0.04638470709323883, -0.030496740713715553, 0.024267619475722313, -0.045717302709817886, 0.03307366743683815, -0.062105823308229446, 0.05109362676739693, -0.005705393385142088, -0.015897236764431, 0.010140861384570599, 0.04527236521244049, -0.033518604934215546, -0.00856967642903328, 0.059510357677936554, -0.03222087025642395, -0.025287266820669174, -0.0140804098919034, -0.020504191517829895, -0.023618752136826515, -0.007461968343704939, -0.026214219629764557, -0.04434541240334511, 0.011206856928765774, 0.019224995747208595, 0.055283453315496445, 0.026084445416927338, -0.014831241220235825, 0.005112143699079752, 0.025676587596535683, -0.037967976182699203, -0.010576529428362846, 0.034927573055028915, 0.00799496565014124, -0.014710737392306328, -0.017194969579577446, 0.026622077450156212, -0.059806980192661285, -0.0056312368251383305, 0.0742303654551506, 0.061735041439533234, 0.0503520630300045, 0.045976847410202026, 0.04401170834898949, 0.0162216704338789, -0.010493103414773941, 0.021709229797124863, -0.05168687552213669, 0.011484942398965359, 0.018112653866410255, -0.07756739109754562, -0.007244134321808815, 0.025658046826720238, -0.0031215129420161247, -0.025231650099158287, 0.007767862640321255, 0.012532399035990238, 0.012217234820127487, 0.018446356058120728, 0.0077817668206989765, 0.00727657787501812, -0.0027182884514331818, -0.019577238708734512, 0.014988823793828487, 0.027345100417733192, 0.04731165990233421, 0.03409331664443016, -0.00732756033539772, -0.044493723660707474, 0.008940457366406918, 0.011253204196691513, 0.046236395835876465, -0.016694415360689163, -0.005283629521727562, 0.04178702086210251, -0.01209673099219799, 0.030200114473700523, 0.03772696852684021, -0.007855922915041447, -0.010085243731737137, 0.011503481306135654, -0.016675876453518867, 0.040822990238666534, -0.036336541175842285, -0.04126792773604393, -0.07897636294364929, -0.06874280422925949, -0.02530580572783947, 0.0486464723944664, -0.07582472264766693, 0.03930278867483139, 0.0209120512008667, -0.047089193016290665, -0.0079996008425951, 0.030237194150686264, 0.039488181471824646, 0.01612897589802742, 0.035224199295043945, 0.00031863994081504643, 0.011420056223869324, -0.013959906063973904, 0.022413713857531548, -0.04319598898291588, 0.02018902823328972, 0.0037981881760060787, -0.02760464884340763, -0.002521310932934284, 0.010548720136284828, -0.045346520841121674, 0.05850924551486969, 0.019744090735912323, 0.05239136144518852, 0.0009819903643801808, 0.013134918175637722, -0.02845744416117668, 0.03704102709889412, 0.062365371733903885, 0.08713354170322418, 0.011484942398965359, -0.024508627131581306, 0.0008498996612615883, 0.025194570422172546, 0.053021688014268875, -0.03811629116535187, -0.00814791303128004, 0.003035769797861576, -0.045606065541505814, 0.06540577113628387, -0.017658445984125137, -0.00888020545244217, 0.010150130838155746, -0.04953634738922119, 0.002076373901218176, -0.032202333211898804, 0.005357786081731319, 0.026677696034312248, 0.04401170834898949, -0.05350370332598686, 0.020040715113282204, 0.0477936752140522, -0.07111579924821854, -0.06332939863204956, -0.03411185368895531, -0.04834984615445137, 0.05261382833123207, 0.0002397041389485821, 0.039154477417469025, -0.04972173646092415, -0.01220796536654234, -0.0026464497204869986, -0.01357058621942997, 0.00555708073079586, -0.016898345202207565, -0.010511642321944237, 0.03793089836835861, -0.035353973507881165, 0.052984610199928284, 0.06166088581085205, -0.05580254644155502, 0.017398899421095848, -0.03170177713036537, -0.015554264187812805, 0.01496101450175047, -0.015081518329679966, 0.011549829505383968, 0.03160908445715904, 0.0015109326923266053, 0.008449172601103783, 0.0028387922793626785, -0.00013766693882644176, -0.04189825803041458, -0.03683709725737572, -0.02560243010520935, 0.0009472296806052327, -0.03783820569515228, 0.004912848584353924, 0.015415221452713013, -0.008639197796583176, -0.0047205062583088875, 0.004681110382080078, 0.043715085834264755, 0.00003103118797298521, -0.044827427715063095, 0.001947759068571031, 0.028364749625325203, 0.07152365893125534, 0.00031921931076794863, -0.007749323733150959, 0.0001369427627651021, -0.04156455397605896, -0.008731893263757229, -0.01309784036129713, -0.06158673018217087, -0.034204550087451935, -0.01815900206565857, 0.014923936687409878, 0.0670001357793808, 0.05947327986359596, 0.027586109936237335, -0.00876897107809782, -0.019651394337415695, -0.020467113703489304, -0.015220561064779758, -0.01455315575003624, -0.03485341742634773, -0.03502026945352554, -0.004616223741322756, 0.014219452627003193, -0.016138244420289993, 0.00856967642903328, -0.03772696852684021, -0.01826096512377262, -0.042862288653850555, -0.004739045165479183, -0.0099183926358819, 0.005181665066629648, -0.0056266020983457565, -0.006187408696860075, 0.054986827075481415, -0.018566859886050224, 0.008500155061483383, 0.013755976222455502, -0.024545704945921898, -0.018742980435490608, -0.02888384275138378, -0.024935023859143257, -0.11004780977964401, -0.004880405496805906, 0.028197897598147392, 0.09054473042488098, -0.035650596022605896, 0.01235627755522728, 0.01897471956908703, -0.008810684084892273, 0.009695923887193203, -0.013338848017156124, 0.026010289788246155, -0.029291702434420586, 0.011123430915176868, 0.013848671689629555, 0.02747487463057041, -0.06306985765695572, 0.03303658962249756, -0.07875388860702515, -0.02215416729450226, 0.0013591442257165909, 0.05735982581973076, 0.01691688410937786, 0.006053000222891569, 0.0028689182363450527, 0.014543886296451092, 0.06221705675125122, -0.008838493376970291, -0.0023637290578335524, 0.04838692396879196, -0.02684454619884491, -0.058101389557123184, -0.017686255276203156, -0.031201224774122238, 0.07104164361953735, -0.05702612176537514, -0.05747105926275253, 0.06492375582456589, 0.028661374002695084, -0.007086552679538727, 0.022413713857531548, -0.04319598898291588, 0.00970519334077835, -0.04553190991282463, -0.017593560740351677, 0.018742980435490608, 0.006762119010090828, -0.004372898954898119, 0.0708191767334938, 0.028698451817035675, -0.011670333333313465, 0.021134518086910248, 0.02202439308166504, -0.06822370737791061, 0.02897653728723526, -0.021134518086910248, 0.012068922631442547, 0.008741162717342377, 0.0832032635807991, -0.0027252405416220427, 0.031034372746944427, -0.04319598898291588, 0.01060433778911829, 0.03870953992009163, 0.02163507416844368, 0.058657560497522354, -0.01598993130028248, -0.038932010531425476, 0.04037805646657944, 0.05038914084434509, 0.04130500555038452, 0.05042622238397598, 0.02547265775501728, -0.020467113703489304, 0.006238390691578388, 0.0071097263135015965, -0.045976847410202026, -0.015118597075343132, 0.030570896342396736, 0.05947327986359596, 0.006650884635746479, 0.007953253574669361, -0.042565662413835526, -0.020559808239340782, 0.01992947980761528, -0.05524637550115585, 0.012365547940135002, 0.045086972415447235, -0.061549652367830276, 0.02130137011408806, 0.025620969012379646, -0.02419346198439598, 0.021709229797124863, -0.01839073933660984, -0.04464203491806984, 0.06195751205086708, -0.024768173694610596, -0.029847873374819756, 0.08735600858926773, 0.07437867671251297, 0.05880587175488472, 0.09825697541236877, 0.018928371369838715, -0.01720423996448517, 0.018075576052069664, -0.03042258322238922, 0.05116778239607811, -0.015721116214990616, 0.006423781625926495, 0.029755178838968277, 0.05572839081287384, -0.00459768483415246, 0.0026835277676582336, 0.03147931024432182, 0.03737472742795944, -0.016138244420289993, -0.009631037712097168, -0.028605757281184196, -0.045643147081136703, -0.020374417304992676, 0.010854614898562431, -0.012662172317504883, -0.02832767181098461, -0.02321089245378971, 0.03209109976887703, -0.014590233564376831, -0.010159400291740894, 0.021227214485406876, -0.06518330425024033, 0.09536488354206085, 0.013125648722052574, -0.01386721059679985, -0.004129573702812195, 0.02402661181986332, 0.02675185166299343, -0.019466005265712738, 0.02487940713763237, 0.021690690889954567, 0.03175739571452141, -0.036725860089063644, 0.03477926179766655, 0.0011303027858957648, 0.046792566776275635, 0.03396354243159294, -0.034630946815013885, 0.044493723660707474, -0.08787510544061661, -0.0135520463809371, -0.01970701292157173, 0.02675185166299343, -0.047089193016290665, -0.09336266666650772, -0.02893945947289467, -0.024545704945921898, 0.007582472171634436, 0.004602319560945034, -0.021839002147316933, 0.009853506460785866, 0.004145795479416847, -0.07278431951999664, -0.06763046234846115, -0.006164234597235918, -0.048201534897089005, 0.017324743792414665, 0.0023150641936808825, -0.010372599586844444, 0.040563445538282394, 0.03978480398654938, 0.04786783084273338, 0.042306117713451385, -0.00426166458055377, -0.0014958697138354182, -0.0196328554302454, -0.004150430206209421, -0.019299153238534927, 0.004604637157171965, -0.056173328310251236, -0.021690690889954567, -0.09299188107252121, -0.014673659577965736, 0.04771951958537102, -0.03941402584314346, -0.020541269332170486, 0.01242116466164589, 0.015452299267053604, 0.024434469640254974, -0.019595777615904808, 0.07278431951999664, -0.0058166272938251495, 0.0031354171223938465, -0.0738225057721138, -0.012912449426949024, -0.02385975979268551, -0.07630673795938492, -0.08231338858604431, -0.033685456961393356, 0.05650702863931656, 0.03233210742473602, 0.022858651354908943, -0.022302478551864624, 0.02461986057460308, -0.000357745768269524, -0.045680224895477295, -0.04386339709162712, -0.01299587544053793, -0.00023289684031624347, -0.00462085846811533, -0.019910940900444984, -0.05398571863770485, 0.04812737926840782, 0.027382180094718933, -0.048757705837488174, 0.04149039834737778, 0.03464948758482933, 0.03589160367846489, -0.003907104954123497, -0.012838293798267841, -0.016573911532759666, -0.02130137011408806, 0.002312746597453952, 0.00197556777857244, -0.03413039445877075, -0.05721151456236839, 0.007893001660704613, 0.012411895208060741, 0.006057634949684143, -0.03963649272918701, 0.0003380480338819325, -0.0369112528860569, 0.03251749649643898, 0.02625129744410515, 0.019002528861165047, 0.0494992695748806, -0.009807158261537552, 0.02235809713602066, -0.045643147081136703, -0.029347319155931473, -0.02209855057299137, 0.008773606270551682, 0.015786003321409225, -0.08883913606405258, 0.026566460728645325, 0.02829059213399887, -0.03978480398654938, 0.003985896240919828, -0.04245442897081375, 0.0026904798578470945, 0.03188716992735863, -0.09425254166126251, -0.02628837525844574, -0.007707610726356506, 0.008648467250168324, -0.0285872183740139, -0.017120813950896263, -0.025583891198039055, 0.000944332976359874, 0.007605645805597305, -0.04456787928938866, 0.011104892008006573, -0.03029281087219715, 0.025361422449350357, -0.004898944403976202, -0.007169978227466345, -0.0022675576619803905, -0.07756739109754562, 0.027233866974711418, 0.023878298699855804, -0.03911739960312843, -0.008305495604872704, 0.05405987426638603, 0.0345567911863327, 0.10396700352430344, 0.0050611612387001514, -0.0018817137461155653, 0.0202631838619709, 0.01429360918700695, -0.06566531956195831, -0.045049894601106644, 0.037189338356256485, 0.10952872037887573, 0.028475983068346977, -0.024100767448544502, 0.06518330425024033, -0.08401898294687271, -0.058657560497522354, -0.03768989071249962, -0.00399748282507062, -0.0275304913520813, 0.05513513833284378, -0.021913159638643265, 0.005798088386654854, 0.015980662778019905, 0.013236883096396923, -0.03372253477573395, 0.005079700145870447, -0.03494611382484436, 0.04842400178313255, 0.0022826206404715776, 0.04323307052254677, 0.007953253574669361, 0.09024810045957565, 0.04204656928777695, -0.002006852300837636, 0.023674368858337402, -0.019910940900444984, 0.007290482055395842, -0.04386339709162712, -0.012133809737861156, 0.054727282375097275, -0.02658499963581562, -0.09024810045957565, 0.006502572447061539, 0.014182374812662601, 0.05038914084434509, 0.0054412116296589375, -0.029032155871391296, -0.03602137789130211, 0.05465312302112579, 0.004331185948103666, -0.0045698764733970165, -0.0271040927618742, -0.006066904868930578, 0.01583234965801239, -0.01491466723382473, 0.003223477629944682, -0.020596886053681374, -0.032628729939460754, -0.025639507919549942, -0.015925046056509018, -0.0503520630300045, 0.00856967642903328, 0.023247970268130302, -0.11405224353075027, -0.04675548896193504, 0.07271016389131546, 0.01865028589963913, 0.00196282216347754, 0.03212817758321762, -0.052428439259529114, -0.014006253331899643, -0.06963267922401428, 0.012180157005786896, -0.019169379025697708, -0.002924535423517227, -0.01180010661482811, -0.026047367602586746, -0.026492305099964142, 0.01143859513103962, 0.03687417507171631, -0.0005692068370990455, 0.021746307611465454, 0.006395972799509764, -0.02022610604763031, -0.0068918922916054726, -0.03570621460676193, 0.06800124049186707, 0.040007274597883224, -0.009390030056238174, 0.009974010288715363, -0.004375216085463762, 0.02350751683115959, -0.011429325677454472, -0.02982933446764946, 0.016268018633127213, 0.04149039834737778, 0.0065396507270634174, 0.009176830761134624, 0.02671477384865284, -0.053911563009023666, 0.020244644954800606, -0.005612697917968035, -0.004465593956410885, 0.08186845481395721, -0.026788929477334023, -0.0009617133182473481, 0.04575438052415848, 0.01612897589802742, 0.0007091187289915979, 0.025880515575408936, -0.07430452108383179, 0.021282831206917763, 0.041972413659095764, 0.02812374196946621, 0.04189825803041458, -0.00015005044406279922, 0.02893945947289467, 0.049610503017902374, -0.022246861830353737, 0.05706319957971573, -0.0066184415481984615, -0.027067014947533607, -0.037411805242300034, -0.008847762830555439, -0.017751142382621765, 0.014469729736447334, 0.012087461538612843, -0.021542377769947052, 0.023526057600975037, -0.031293921172618866, 0.018307313323020935, 0.043381381779909134, -0.02556535229086876, -0.04408586397767067, 0.04612516239285469, 0.04178702086210251, -0.04152747616171837, -0.05988113582134247, 0.04100838303565979, -0.012217234820127487, -0.032628729939460754, -0.04642178490757942, 0.00044725462794303894, 0.045680224895477295, 0.0030566260684281588, -0.07727076858282089, 0.05962159112095833, -0.011827914975583553, -0.057804763317108154, -0.03029281087219715, 0.002410076791420579, -0.0369112528860569, -0.03622530773282051, 0.0029616134706884623, 0.029180467128753662, -0.04920264333486557, 0.005265090614557266, 0.058360934257507324, 0.014237991534173489, 0.03029281087219715, 0.0021794973872601986, 0.1011490672826767, -0.001262972946278751, -0.020170487463474274, -0.03388938680291176, 0.00011369652929715812, 0.039154477417469025, -0.023915376514196396, -0.003680001711472869, 0.039747726172208786, 0.012773406691849232, 0.01563769020140171, -0.025787821039557457, -0.011206856928765774, 0.010659954510629177, 0.0192064568400383, 0.027715882286429405, 0.012115269899368286, -0.06084516644477844, -0.02334066666662693, 0.022432252764701843, -0.0016719907289370894, 0.02343336120247841, 0.005561715457588434, -0.006400607526302338, 0.031015833839774132, -0.017454518005251884, 0.01017793919891119, 0.027660265564918518, -0.0117352195084095, 0.023488977923989296, -0.06492375582456589, 0.03819044679403305, -0.006595267448574305, 0.06040022894740105, -0.013848671689629555, -0.014043332077562809, 0.014710737392306328, 0.031145606189966202, 0.015341064892709255, -0.009227813221514225, -0.03451971337199211, 0.020633963868021965, 0.017352553084492683, -0.03611407428979874, 0.06455297768115997, 0.01111416146159172, 0.0022501773200929165, 0.01720423996448517, -0.003381059505045414, 0.03709664195775986, -0.05005544051527977, 0.00696604885160923, 0.013728167861700058, -0.026084445416927338, -0.05873171612620354, -0.0028758703265339136, -0.028401827439665794, -0.049350954592227936, 0.022691799327731133, -0.026733312755823135, -0.051612719893455505, 0.08913575857877731, 0.0682978630065918, -0.0061178868636488914, -0.015415221452713013, -0.05424526706337929, 0.04119377210736275, 0.0635518729686737, 0.04130500555038452, 0.033129286020994186, 0.028735529631376266, -0.009450281970202923, 0.05368909239768982, -0.05294753238558769, 0.002671940717846155, -0.02461986057460308, -0.013255422003567219, 0.01802922785282135, -0.01992947980761528, 0.09529072791337967, 0.008527963422238827, 0.045346520841121674, 0.020374417304992676, 0.03346299007534981 ]
43,163
fast_poisson_solver.data
generate_boundary_coords
null
def generate_boundary_coords(self): # x_grid = np.linspace(self.domain_x[0], self.domain_x[1], self.grid_num + 2) x_grid = np.linspace(self.domain_x[0], self.domain_x[1], self.x_grid_num + 2) y_grid = np.linspace(self.domain_y[0], self.domain_y[1], self.y_grid_num + 2)[1:-1] lower_x = np.ones_like(y_grid) * self.domain_x[0] lower_y = np.ones_like(x_grid) * self.domain_y[0] upper_x = np.ones_like(y_grid) * self.domain_x[1] upper_y = np.ones_like(x_grid) * self.domain_y[1] self.x_bc = np.concatenate([x_grid, x_grid, lower_x, upper_x]).flatten() self.y_bc = np.concatenate([lower_y, upper_y, y_grid, y_grid]).flatten()
(self)
[ 0.05177515745162964, 0.02155299298465252, -0.04338011145591736, 0.04194096103310585, -0.039062660187482834, -0.006077841389924288, -0.047834623605012894, -0.07072397321462631, -0.0598960779607296, -0.03284347429871559, 0.02814910002052784, -0.00994555838406086, -0.023780250921845436, 0.0033066198229789734, -0.0452304482460022, -0.03390570357441902, 0.02703547291457653, -0.05215207859873772, -0.016233276575803757, -0.03441968560218811, -0.03872000426054001, -0.026058904826641083, 0.06637225300073624, 0.01708134636282921, -0.004690089263021946, 0.0010461682686582208, -0.02482534758746624, 0.010887859389185905, 0.01679009012877941, -0.05112411081790924, -0.06644078344106674, -0.017920851707458496, 0.02833756059408188, -0.03464240953326225, 0.04615561664104462, -0.05355696380138397, 0.06835965067148209, 0.04471646621823311, -0.03848014771938324, 0.026881277561187744, 0.00008044359128689393, -0.03178124129772186, -0.013851824216544628, 0.03549904748797417, 0.03119872882962227, -0.032278090715408325, 0.0019649118185043335, -0.00828368216753006, -0.07483582943677902, 0.0592450350522995, -0.011110585182905197, -0.04858846589922905, 0.022169772535562515, -0.01915440894663334, 0.017321204766631126, 0.01891455054283142, 0.035361986607313156, 0.08484135568141937, 0.004458797164261341, 0.013320709578692913, -0.034214094281196594, 0.018263505771756172, -0.01635320484638214, -0.09539512544870377, 0.03248368576169014, 0.0006050000665709376, -0.0612666979432106, -0.00018832634668797255, 0.025579188019037247, 0.08408751338720322, 0.014331541955471039, 0.039199721068143845, 0.026778481900691986, -0.020370833575725555, 0.034865137189626694, -0.014460037462413311, 0.006514726206660271, 0.07277990132570267, 0.07613792270421982, -0.045470304787158966, -0.016370337456464767, 0.02191278152167797, 0.03741791471838951, -0.00007616040966240689, 0.057977210730314255, 0.011076319962739944, -0.012763895094394684, 0.0342826247215271, -0.009834195487201214, -0.029588250443339348, 0.0366298109292984, 0.01358626689761877, -0.01031391229480505, 0.01858902908861637, 0.011042054742574692, 0.011359009891748428, 0.018726089969277382, 0.0016190444584935904, -0.009465841576457024, 0.018983080983161926, -0.010493806563317776, -0.011513205245137215, -0.04074166715145111, 0.01858902908861637, -0.02007957734167576, 0.023540392518043518, 0.0492737740278244, -0.06167788431048393, -0.07421905547380447, 0.0026834162417799234, 0.021244604140520096, 0.049205243587493896, -0.008416460826992989, 0.02384878136217594, -0.06332262605428696, -0.019205806776881218, -0.051192644983530045, -0.022923612967133522, 0.026178834959864616, 0.004977062344551086, 0.0005557434051297605, -0.03464240953326225, -0.016550231724977493, 0.03789763152599335, -0.005178372375667095, 0.04098152741789818, -0.005992177873849869, 0.02011384256184101, -0.06017020344734192, -0.0999181717634201, 0.04684092476963997, -0.019497064873576164, 0.01448573637753725, 0.022495293989777565, 0.01245550625026226, 0.008287965320050716, -0.024482693523168564, -0.008857629261910915, 0.016807222738862038, 0.02158726006746292, 0.021655790507793427, 0.010296779684722424, 0.064658984541893, 0.012703930959105492, -0.006758868228644133, 0.0518779531121254, 0.023865913972258568, 0.026007506996393204, 0.025407861918210983, -0.03584170341491699, -0.0029960889369249344, -0.005949345882982016, 0.023369064554572105, 0.013277878053486347, -0.05496184900403023, -0.0043859826400876045, 0.0289714727550745, -0.007641204632818699, 0.06997013092041016, 0.008840496651828289, -0.06753728538751602, 0.014631364494562149, 0.00312030129134655, -0.007234301883727312, 0.023197736591100693, 0.024619754403829575, 0.007744000758975744, -0.08429310470819473, 0.019000215455889702, -0.014871222898364067, -0.006548991892486811, -0.011084886267781258, -0.06082124635577202, 0.04005635902285576, -0.013226479291915894, -0.001311725820414722, 0.016284674406051636, 0.025322197005152702, -0.006853098049759865, 0.04180390015244484, 0.047457706183195114, 0.013166515156626701, 0.05969048663973808, 0.020730622112751007, -0.013560567982494831, 0.036527011543512344, 0.039473846554756165, -0.018349170684814453, 0.029930906370282173, -0.015222444199025631, -0.054516397416591644, 0.03752071410417557, 0.0017571771750226617, 0.009345912374556065, -0.01451143529266119, 0.05763455480337143, 0.02837182581424713, 0.053077246993780136, -0.05074719339609146, -0.00697731040418148, -0.00206449581310153, -0.06901069730520248, -0.01855476386845112, -0.031164463609457016, 0.011453240178525448, 0.021655790507793427, -0.028080569580197334, -0.03138719126582146, 0.053728289902210236, 0.015899186953902245, 0.018075047060847282, -0.01631893962621689, -0.07291696220636368, -0.028354693204164505, 0.008960425853729248, 0.016344638541340828, -0.0073499479331076145, 0.0036043012514710426, -0.029588250443339348, 0.026178834959864616, 0.03234662488102913, -0.021484462544322014, 0.060512855648994446, -0.05626393482089043, 0.01997678168118, 0.011513205245137215, 0.04396262392401695, -0.01524814311414957, -0.01506824977695942, -0.03758924454450607, 0.05283738672733307, -0.03322039172053337, -0.04324305057525635, -0.004028336610645056, 0.010091187432408333, -0.018931683152914047, -0.008724850602447987, -0.050507333129644394, 0.010193983092904091, 0.04481926187872887, -0.044408075511455536, 0.05009614676237106, -0.008570656180381775, -0.0087334169074893, 0.005452495999634266, -0.001712203724309802, -0.0012892390368506312, 0.06938762217760086, 0.06592680513858795, 0.005461062770336866, -0.0545506626367569, -0.023009277880191803, -0.05180942267179489, 0.006437628995627165, 0.017475400120019913, -0.004021911881864071, -0.010622302070260048, -0.033614445477724075, 0.03611582890152931, 0.05448212847113609, 0.01637890376150608, 0.02814910002052784, -0.012052886188030243, 0.00497277919203043, 0.06599533557891846, 0.0068659475073218346, -0.03405989706516266, 0.020456498488783836, -0.028714481741189957, 0.027104003354907036, 0.038959864526987076, 0.031438589096069336, 0.003994071390479803, -0.017269806936383247, -0.008347930386662483, 0.0022700887639075518, 0.026521489024162292, 0.020730622112751007, 0.032740674912929535, -0.03618435934185982, 0.01123908068984747, -0.025664852932095528, -0.02283794991672039, -0.007872496731579304, 0.014862656593322754, -0.04896538704633713, 0.004313168581575155, -0.04553883895277977, 0.016421737149357796, -0.04540177434682846, -0.1038929671049118, 0.019942516461014748, 0.03837734833359718, -0.0030175046995282173, 0.03424835950136185, -0.053831085562705994, 0.03697246313095093, -0.03077040985226631, -0.00702442554756999, -0.015102514997124672, 0.03399136662483215, 0.04807448387145996, 0.003824885468930006, 0.032603614032268524, -0.021467329934239388, 0.0074056293815374374, 0.011393276043236256, -0.02035370096564293, 0.03464240953326225, -0.030102234333753586, -0.022392498329281807, -0.043208785355091095, 0.05540729686617851, -0.014297275803983212, 0.0492737740278244, -0.013620532117784023, 0.03215816244482994, 0.012309877201914787, -0.03256934881210327, 0.03157564997673035, 0.007092956453561783, 0.021535860374569893, 0.0072814165614545345, 0.03690393269062042, -0.007958159781992435, 0.0532485730946064, 0.00587224867194891, 0.04101579263806343, 0.00012762556434608996, 0.04762903228402138, -0.0077654169872403145, 0.0229750107973814, -0.061849210411310196, 0.05941636115312576, 0.05139823630452156, -0.00994555838406086, 0.03940531611442566, -0.0010279647540301085, 0.01278102770447731, -0.11807888001203537, -0.00783394742757082, 0.013740462251007557, -0.015128213912248611, 0.026230232790112495, 0.011153417639434338, -0.052905917167663574, -0.026178834959864616, -0.006985876709222794, -0.041187118738889694, 0.02316347137093544, -0.007097239606082439, -0.018075047060847282, -0.016336072236299515, -0.06068418547511101, -0.019959649071097374, 0.016147611662745476, 0.006724602542817593, -0.03501933068037033, 0.01970265805721283, 0.06219186633825302, 0.07387639582157135, -0.035087861120700836, 0.005461062770336866, -0.0032059650402516127, -0.021570125594735146, -0.0007190399337559938, 0.004484496079385281, 0.0021330267190933228, 0.0005675221909768879, 0.00459157582372427, -0.004111859016120434, -0.017749523743987083, -0.049582164734601974, 0.007328531704843044, 0.003886991646140814, 0.03224382549524307, -0.042386412620544434, -0.029691047966480255, -0.04536750912666321, -0.02348899468779564, -0.021707188338041306, -0.02270088717341423, 0.06599533557891846, 0.013808992691338062, -0.0372808538377285, -0.0030496285762637854, 0.06811979413032532, 0.02616170234978199, -0.012858125381171703, 0.004951363429427147, 0.032192427664995193, -0.025030940771102905, 0.024893879890441895, 0.023094940930604935, -0.009654302150011063, -0.053968146443367004, 0.08107215166091919, 0.029228463768959045, 0.05139823630452156, -0.0029125667642802, -0.04406541958451271, 0.017543930560350418, 0.01077649649232626, 0.024157170206308365, 0.022032709792256355, -0.08545813709497452, 0.012369842268526554, 0.013980320654809475, 0.059313565492630005, 0.020422233268618584, -0.04221508279442787, 0.021193206310272217, 0.046943724155426025, -0.020559294149279594, -0.04341437667608261, -0.042146552354097366, -0.0631512999534607, 0.0006628230912610888, 0.026401560753583908, -0.010999222286045551, 0.007135788444429636, -0.015093948692083359, 0.027806445956230164, -0.0014284426579251885, -0.02518513612449169, 0.03512212634086609, 0.007885346189141273, -0.05071292817592621, 0.021330267190933228, -0.013123682700097561, -0.021330267190933228, 0.003662124276161194, -0.07175193727016449, 0.022820817306637764, -0.0029532569460570812, -0.02316347137093544, 0.03332319110631943, 0.01790371909737587, 0.03212389722466469, 0.01659306325018406, -0.03515639528632164, 0.03834308311343193, 0.0229750107973814, -0.019222939386963844, 0.0008646682254038751, -0.024294232949614525, -0.06435059010982513, -0.07935887575149536, -0.013663364574313164, 0.023180603981018066, 0.032963402569293976, 0.020542161539196968, 0.05170662701129913, -0.05218634381890297, 0.0033173279371112585, 0.021021878346800804, -0.07524701952934265, -0.06486457586288452, -0.036389950662851334, -0.023934444412589073, -0.0223239678889513, 0.010279647074639797, 0.0016019117319956422, 0.034608144313097, -0.019445665180683136, -0.06304850429296494, 0.0013856107834726572, -0.00495992973446846, -0.035636112093925476, 0.024208569899201393, 0.02127886936068535, -0.024294232949614525, 0.0174668338149786, -0.017783788964152336, 0.02667568437755108, -0.013629099354147911, -0.012249913066625595, 0.07161487638950348, 0.03310046344995499, -0.05067865923047066, -0.08593785017728806, -0.004169682040810585, -0.028406091034412384, 0.027566587552428246, 0.003559327917173505, 0.03704099729657173, -0.009354478679597378, 0.027446657419204712, -0.04098152741789818, -0.00625345204025507, 0.003064619842916727, 0.02210124209523201, -0.06400793790817261, -0.01561649702489376, -0.024379896000027657, 0.009628603234887123, 0.04543603956699371, -0.01741543598473072, 0.02335193194448948, -0.017698125913739204, -0.02621310018002987, -0.016995683312416077, 0.018760357052087784, -0.02670994959771633, 0.008112355135381222, -0.005499611143022776, -0.024191437289118767, 0.008347930386662483, -0.009962690994143486, 0.03649274632334709, 0.0266242865473032, -0.05235766991972923, -0.0108193289488554, -0.03376864269375801, 0.00998839084059, 0.029519720003008842, -0.02893720753490925, -0.028783012181520462, -0.058525457978248596, 0.021724320948123932, -0.030564818531274796, 0.007234301883727312, 0.0058251335285604, -0.0001806969230528921, 0.01624184288084507, 0.06527575850486755, 0.001535522285848856, -0.02847462333738804, 0.01116198394447565, 0.033288925886154175, 0.0031310091726481915, -0.0027176816947758198, 0.06870231032371521, 0.04714931547641754, -0.033066198229789734, 0.03954237699508667, 0.019548462703824043, -0.03824028745293617, -0.0838133916258812, 0.000020244748156983405, 0.0035486198030412197, 0.00785108096897602, 0.029691047966480255, -0.025253666564822197, 0.0033001950941979885, 0.008403611369431019, 0.04728637635707855, -0.005568142049014568, -0.02352325990796089, -0.013603399507701397, 0.08024977892637253, 0.0174668338149786, 0.00034533190773800015, -0.037726305425167084, 0.024671154096722603, -0.0359102338552475, -0.02215263992547989, 0.003991929814219475, -0.048417139798402786, 0.06174641475081444, -0.03830881789326668, -0.00957720447331667, 0.020285170525312424, 0.011418974958360195, -0.10149438679218292, 0.05362549424171448, -0.04176963493227959, 0.020833417773246765, 0.007345664780586958, 0.02833756059408188, -0.012960921972990036, 0.04122138395905495, -0.017124179750680923, -0.03248368576169014, 0.03335745632648468, 0.0065618413500487804, -0.029365526512265205, -0.004193239379674196, -0.03142145648598671, -0.009054656140506268, 0.028286162763834, 0.004887115675956011, 0.007114372681826353, -0.03392283618450165, -0.015933454036712646, 0.011410408653318882, -0.06013593450188637, 0.006840248592197895, 0.0439283587038517, -0.03217529505491257, 0.03443681821227074, 0.07380786538124084, 0.006082124542444944, 0.020370833575725555, -0.025082338601350784, 0.019342869520187378, -0.057840149849653244, -0.016832921653985977, -0.015599364414811134, -0.04516191780567169, 0.03769204020500183, 0.05143250152468681, -0.003503646468743682, 0.10361884534358978, 0.005298301577568054, -0.07038132101297379, 0.018948815762996674, -0.09409303963184357, -0.08984411507844925, -0.013560567982494831, 0.01667872816324234, -0.05256326124072075, 0.0030838942620903254, -0.04204375669360161, -0.040947262197732925, -0.03310046344995499, -0.06246598809957504, 0.04899965226650238, 0.04152977466583252, 0.018846020102500916, 0.003334460547193885, -0.008198019117116928, -0.006566124502569437, -0.0027348145376890898, 0.029108533635735512, -0.006480460986495018, 0.0518779531121254, -0.012721063569188118, 0.032740674912929535, 0.0958063155412674, -0.0034136995673179626, 0.011941523291170597, -0.01570216193795204, -0.050781458616256714, 0.02283794991672039, 0.03441968560218811, -0.009260249324142933, -0.005439646542072296, 0.01241267379373312, 0.03303193300962448, -0.0015879913698881865, 0.0216386578977108, -0.00579086784273386, 0.01679009012877941, -0.028988605365157127, 0.0006296283681876957, 0.02670994959771633, 0.0007725797477178276, 0.01891455054283142, -0.0006681770901195705, -0.01702994853258133, 0.029005737975239754, 0.0183149054646492, -0.018983080983161926, -0.03779483586549759, 0.03957664221525192, -0.074561707675457, 0.016036249697208405, 0.005324000492691994, -0.049479369074106216, -0.02515087090432644, 0.016575930640101433, 0.015205311588943005, -0.07223165780305862, -0.05701777711510658, -0.0006788850296288729, 0.018280640244483948, -0.0018203541403636336, -0.02989664115011692, 0.00927738193422556, 0.08854202926158905, -0.09237976372241974, -0.0838133916258812, -0.01749253273010254, -0.054139476269483566, -0.043757032603025436, -0.021004745736718178, -0.011324744671583176, -0.020045312121510506, 0.014254444278776646, 0.03335745632648468, -0.028628816828131676, -0.03834308311343193, 0.002629876369610429, 0.07915328443050385, -0.005902230739593506, 0.03834308311343193, -0.006754585076123476, 0.025579188019037247, 0.10074054449796677, 0.020730622112751007, 0.027703648433089256, 0.04022768512368202, 0.013457771390676498, 0.054516397416591644, -0.012361275963485241, 0.027583720162510872, -0.07421905547380447, 0.00371352257207036, -0.006617522798478603, -0.041735365986824036, -0.06208907067775726, -0.07099809497594833, 0.057189103215932846, -0.0033087613992393017, -0.00227223034016788, 0.04516191780567169, -0.007962443865835667, 0.022683754563331604, 0.026178834959864616, 0.06284291297197342, 0.016010550782084465, 0.051843687891960144, -0.08991264551877975, -0.039062660187482834, 0.032003968954086304, -0.01970265805721283, 0.04882832616567612, 0.029416924342513084, -0.024585489183664322, -0.0003137433959636837, 0.04540177434682846, -0.005949345882982016, -0.02482534758746624, 0.02109040878713131, 0.03851441293954849, -0.0007865001098252833, -0.074561707675457, -0.0176295954734087, -0.013055152259767056, -0.013766161166131496, 0.015847789123654366, -0.01675582490861416, 0.06894216686487198, -0.005662372335791588, 0.011538904160261154, -0.0652414932847023, -0.03779483586549759, -0.10101466625928879, 0.034214094281196594, -0.0002754624292720109, -0.05204927921295166, 0.010536638088524342, -0.01599341817200184, -0.05352269485592842, 0.06030726432800293, 0.025116603821516037, -0.020148107782006264, 0.018469098955392838, -0.04015915468335152, 0.029588250443339348, 0.09772518277168274, 0.012995187193155289, -0.03286060690879822, -0.02237536571919918, -0.02607603929936886, 0.05869678407907486, 0.0018867435865104198, -0.055475831031799316, -0.01640460453927517, -0.013055152259767056, 0.034950800240039825, -0.04396262392401695, 0.05513317510485649, -0.007684036158025265, 0.014057417400181293, 0.04430527985095978, 0.07353374361991882 ]
43,164
fast_poisson_solver.data
generate_grid
null
def generate_grid(self): # x = np.linspace(self.domain_x[0], self.domain_x[1], self.grid_num + 2)[1:-1] x = np.linspace(self.domain_x[0], self.domain_x[1], self.x_grid_num + 2)[1:-1] y = np.linspace(self.domain_y[0], self.domain_y[1], self.y_grid_num + 2)[1:-1] x, y = np.meshgrid(x, y) self.x_grid = x.flatten() self.y_grid = y.flatten()
(self)
[ 0.014692478813230991, 0.037601765245199203, -0.02274632453918457, -0.008684258908033371, -0.04110120236873627, 0.039488717913627625, -0.053417839109897614, -0.02356971986591816, -0.06642063707113266, 0.01615915261209011, 0.019195428118109703, -0.009306094609200954, -0.003308595158159733, 0.028338557109236717, -0.008963012136518955, -0.05825529247522354, 0.04185597971081734, -0.042610760778188705, 0.009083091281354427, -0.036366671323776245, 0.009134553372859955, -0.045183874666690826, 0.04089535400271416, 0.01902388595044613, 0.0011375306639820337, 0.019572816789150238, -0.030534282326698303, 0.022694861516356468, 0.0104554183781147, -0.05513324961066246, -0.07369397580623627, -0.008414081297814846, 0.056402649730443954, 0.018732266500592232, 0.061480261385440826, -0.049678247421979904, 0.00264816265553236, 0.025490978732705116, -0.024358808994293213, 0.048649001866579056, 0.07993806153535843, -0.02254047617316246, 0.0006137948366813362, 0.061891958117485046, 0.012702603824436665, -0.028098400682210922, 0.05767205357551575, 0.0240500345826149, -0.06676372140645981, 0.018629342317581177, -0.017480017617344856, -0.040106263011693954, -0.006612902041524649, -0.014177856035530567, 0.004282089881598949, 0.0308259017765522, 0.04031211510300636, 0.04806576296687126, 0.0502614863216877, -0.05019287019968033, -0.03993472456932068, 0.0021324679255485535, -0.04175305739045143, -0.05746620520949364, 0.006046817172318697, -0.01928119733929634, -0.055167555809020996, 0.010961463674902916, 0.02348395064473152, 0.06885652244091034, -0.012565371580421925, 0.0749976858496666, 0.05091334134340286, -0.03959164023399353, 0.025834061205387115, 0.015635954216122627, -0.024393117055296898, 0.07712478935718536, 0.06364167481660843, -0.05955900251865387, -0.02648591622710228, 0.06089702248573303, -0.0040612309239804745, 0.017094051465392113, 0.004490083083510399, 0.003501578699797392, -0.018183335661888123, 0.03360486403107643, -0.02111668512225151, -0.05046733468770981, 0.04652189463376999, 0.0003808744077105075, -0.0067672887817025185, 0.002122818725183606, 0.013054262846708298, -0.013465961441397667, 0.00451581459492445, -0.007136101834475994, -0.00783941987901926, -0.013234380632638931, -0.006548574194312096, -0.07986944913864136, -0.03243838623166084, 0.022900711745023727, -0.03413664177060127, -0.024290192872285843, 0.023947110399603844, -0.020825065672397614, -0.048202995210886, 0.05684865638613701, -0.038459472358226776, 0.10813938826322556, -0.0010941093787550926, 0.0027618086896836758, -0.03808208182454109, -0.017025435343384743, -0.029299186542630196, -0.0073033543303608894, 0.0431939996778965, -0.01745428703725338, -0.043983086943626404, -0.011733397841453552, 0.006793019827455282, 0.015524452552199364, -0.0007805111235938966, 0.04072381183505058, -0.02362118288874626, -0.02341533452272415, -0.029779501259326935, -0.08872095495462418, -0.0018269106512889266, -0.0012618978507816792, 0.004412889946252108, 0.010463994927704334, -0.005579368211328983, 0.002757520182058215, -0.018080411478877068, -0.037190068513154984, 0.04326261579990387, 0.030877362936735153, -0.0008802192751318216, 0.04432617127895355, 0.01868080534040928, 0.04415462911128998, -0.0033772115129977465, 0.029522189870476723, 0.05441277474164963, 0.06985145807266235, 0.0136460792273283, -0.03447972238063812, -0.02240324206650257, 0.003836083458736539, 0.09153422713279724, -0.003673119703307748, -0.0304828193038702, 0.024324500933289528, 0.016519390046596527, 0.023381026461720467, 0.09215177595615387, 0.020138902589678764, -0.07691894471645355, 0.023466795682907104, -0.005377807654440403, 0.04068950191140175, -0.019864436239004135, 0.0004591399629134685, 0.012642565183341503, -0.09812139719724655, 0.007968075573444366, -0.013440229929983616, -0.027120618149638176, -0.03598928079009056, -0.05616249144077301, -0.014315089210867882, -0.01698254980146885, 0.008632795885205269, 0.009992257691919804, 0.017136937007308006, -0.0011482519330456853, 0.08014391362667084, 0.03139198571443558, -0.012556794099509716, 0.03770469129085541, -0.011330276727676392, -0.017823100090026855, 0.02036190591752529, 0.045870039612054825, -0.0404493473470211, -0.03399940952658653, 0.0012790518812835217, -0.02077360451221466, 0.021974390372633934, -0.010163798928260803, 0.010712729766964912, 0.024564657360315323, 0.052868906408548355, 0.010275300592184067, 0.014692478813230991, -0.04000334069132805, -0.008075288496911526, 0.009023051708936691, -0.005600810516625643, -0.004734529182314873, -0.04147859290242195, 0.02437596209347248, 0.008692835457623005, -0.0007772947428748012, -0.038939785212278366, 0.07637001574039459, 0.056677114218473434, 0.04072381183505058, -0.02334671840071678, -0.0036752638407051563, 0.020807912573218346, -0.009734946303069592, 0.039077017456293106, -0.02389564923942089, 0.0003111859259661287, -0.021494075655937195, -0.02152838371694088, 0.017754483968019485, -0.005699446890503168, 0.005699446890503168, -0.04748252406716347, 0.014915482141077518, -0.003147775772958994, 0.02437596209347248, -0.012899876572191715, -0.07403705269098282, -0.03199237957596779, 0.046350352466106415, -0.008671392686665058, -0.030139736831188202, -0.0006518554291687906, -0.010995771735906601, -0.019246889278292656, 0.011158736422657967, -0.013680387288331985, -0.0035123000852763653, 0.07746787369251251, -0.032352615147829056, 0.021099532023072243, -0.004734529182314873, -0.04984978958964348, -0.015069868415594101, 0.05125642195343971, -0.04542403295636177, 0.08686831593513489, 0.03763607516884804, -0.0006952767143957317, -0.050021328032016754, -0.039145633578300476, -0.04168444126844406, 0.014083508402109146, -0.00648853462189436, 0.002911906922236085, -0.038871169090270996, -0.004016201477497816, 0.03387932851910591, -0.0054978858679533005, 0.017136937007308006, 0.05214843526482582, -0.027926860377192497, 0.04731098189949989, 0.11788291484117508, -0.0020606352481991053, -0.043434157967567444, 0.07410567253828049, 0.014941212721168995, -0.002613854594528675, 0.04772268235683441, 0.08021252602338791, 0.003923998214304447, -0.03784192353487015, 0.041924599558115005, 0.032215382903814316, 0.04189028963446617, -0.021288227289915085, -0.010815653949975967, -0.016347847878932953, -0.02736077457666397, -0.052868906408548355, 0.013543155044317245, -0.02533659152686596, 0.018920961767435074, -0.02180285006761551, -0.007101793773472309, -0.033313244581222534, 0.02070498839020729, -0.027721010148525238, -0.07952636480331421, 0.026382992044091225, -0.01290845312178135, 0.028338557109236717, -0.000889868475496769, -0.0694054514169693, 0.025902677327394485, -0.0032378346659243107, -0.07273334264755249, 0.005339210852980614, 0.09023051708936691, 0.03592066466808319, 0.005472154822200537, 0.013363036327064037, 0.01083280798047781, 0.04339984804391861, 0.013517423532903194, 0.003426529699936509, 0.07890881597995758, -0.048580385744571686, 0.002242897404357791, 0.007033177185803652, 0.02423872984945774, -0.03626374900341034, 0.043228309601545334, -0.038733936846256256, 0.023655490949749947, 0.0009493717225268483, -0.015129907988011837, 0.02655453234910965, -0.00022863186313770711, 0.03767038509249687, 0.013937698677182198, 0.01018952950835228, -0.01881803758442402, 0.04075811803340912, 0.022489013150334358, 0.01630496419966221, -0.04617881402373314, 0.027858244255185127, 0.0023629760835319757, 0.018852345645427704, -0.03842516243457794, 0.0608627125620842, 0.033862173557281494, -0.020756449550390244, 0.0033772115129977465, -0.009606290608644485, 0.026228604838252068, -0.08508428931236267, 0.0034308182075619698, 0.0034200968220829964, -0.03619513288140297, -0.021511230617761612, 0.02926487848162651, -0.018663650378584862, -0.015584491193294525, -0.013191496022045612, -0.05129073187708855, -0.001624278025701642, 0.013526001013815403, -0.0053992499597370625, 0.02017321065068245, -0.03791053965687752, 0.012350945733487606, 0.04099827632308006, -0.01100434921681881, -0.006617190316319466, -0.034256719052791595, 0.04854607582092285, 0.028098400682210922, -0.014941212721168995, -0.002785395598039031, 0.033519092947244644, -0.02655453234910965, -0.03034558705985546, 0.010669844225049019, 0.0453554168343544, 0.0068273283541202545, 0.04772268235683441, 0.002266484312713146, -0.011295968666672707, -0.042542144656181335, 0.06425922363996506, 0.0055236173793673515, 0.03482280299067497, -0.049884095788002014, -0.032352615147829056, -0.019744358956813812, -0.04360570013523102, 0.03756745904684067, -0.013114302419126034, 0.0793205127120018, -0.0008641373133286834, -0.013603193685412407, -0.027892552316188812, 0.07016023248434067, 0.036366671323776245, -0.023072252050042152, -0.05410400405526161, 0.03547465801239014, -0.021202456206083298, 0.036160822957754135, 0.043434157967567444, 0.0035230214707553387, -0.042542144656181335, 0.06250950694084167, 0.049952711910009384, 0.010035143233835697, 0.016613736748695374, -0.03993472456932068, -0.017196975648403168, 0.009683484211564064, 0.022900711745023727, 0.005176247097551823, -0.08803479373455048, 0.03715576231479645, -0.03096313402056694, 0.0474139079451561, -0.0007890881970524788, 0.005167669616639614, 0.024684736505150795, 0.018423493951559067, -0.023672645911574364, 0.02207731455564499, -0.013963430188596249, -0.03815069794654846, 0.013680387288331985, 0.04717374965548515, 0.040106263011693954, 0.028235632926225662, 0.009254631586372852, -0.002757520182058215, 0.021099532023072243, 0.012745489366352558, 0.014984098263084888, -0.02513074316084385, -0.051976896822452545, -0.019452739506959915, 0.003390077268704772, -0.061891958117485046, -0.003297874005511403, -0.012925607152283192, 0.007920901291072369, 0.0032121033873409033, -0.07016023248434067, 0.016605159267783165, 0.015224255621433258, 0.0022107334807515144, -0.0003993686696048826, 0.020190365612506866, -0.014452321454882622, 0.034119486808776855, -0.06347013264894485, 0.00298910029232502, -0.0014538092073053122, -0.04048365354537964, -0.04394878074526787, 0.0064242067746818066, 0.004713086411356926, 0.01955566368997097, 0.049678247421979904, 0.03780761733651161, -0.05825529247522354, 0.05777497589588165, -0.027017692103981972, -0.05352076143026352, -0.012522486038506031, -0.016004767268896103, 0.03343332186341286, -0.0032935854978859425, 0.024101497605443, -0.02545667067170143, 0.01886950060725212, -0.02329525537788868, -0.070091612637043, 0.007920901291072369, 0.005034725647419691, -0.009734946303069592, 0.002251474419608712, -0.0027811068575829268, -0.012368099763989449, 0.004114837385714054, -0.0062912628054618835, -0.017540058121085167, -0.05472154915332794, 0.005287748295813799, 0.08796617388725281, 0.018560726195573807, -0.04086104407906532, -0.06748419255018234, -0.005386384669691324, 0.021271072328090668, 0.05129073187708855, -0.019435584545135498, 0.05060456693172455, 0.04562988132238388, 0.009374710731208324, -0.06271535903215408, -0.015155639499425888, 0.027446545660495758, -0.042816609144210815, -0.07129240036010742, 0.012608257122337818, -0.028424328193068504, 0.004071952309459448, 0.05170242860913277, -0.02634868398308754, -0.011947824619710445, 0.004172732587903738, -0.010661267675459385, 0.0032571330666542053, 0.0059653352946043015, 0.005673715379089117, 0.01576460897922516, 0.05077610909938812, 0.03667544573545456, 0.0037052836269140244, -0.05201120302081108, 0.01847495511174202, 0.008401216007769108, -0.06350444257259369, -0.044978026300668716, -0.031614989042282104, 0.025027818977832794, -0.030860209837555885, -0.06913098692893982, -0.038939785212278366, -0.07081208378076553, 0.014332243241369724, 0.003859670367091894, 0.0017679434968158603, 0.0030641495250165462, 0.018234798684716225, -0.004284234251827002, 0.09853309392929077, 0.013079994358122349, 0.010086605325341225, -0.0009917208226397634, 0.03856239467859268, 0.027069155126810074, 0.016407888382673264, 0.06618048250675201, 0.07678171247243881, -0.039763182401657104, -0.009949373081326485, -0.020756449550390244, -0.06340152025222778, -0.01514706201851368, -0.0004634284705389291, -0.018972424790263176, -0.015953304246068, 0.029350649565458298, -0.062097810208797455, -0.002905474044382572, -0.009023051708936691, 0.07218441367149353, -0.021236764267086983, 0.008512717671692371, -0.04291953518986702, 0.04549264907836914, 0.015284295193850994, 0.01657085120677948, -0.06607756018638611, 0.015061291866004467, 0.0152414096519351, -0.02566251903772354, -0.02166561596095562, -0.03231830522418022, 0.03183799237012863, -0.03321031853556633, 0.00045672766282223165, -0.0003945440985262394, 0.0411355085670948, -0.07081208378076553, 0.02518220618367195, -0.043502774089574814, 0.04703651741147041, -0.021373996511101723, 0.0046659125946462154, -0.02240324206650257, -0.007097505033016205, -0.0035723394248634577, -0.015936151146888733, 0.0006700816447846591, 0.016871048137545586, 0.009589136578142643, -0.02804693765938282, -0.019641434773802757, -0.019229736179113388, -0.02662314847111702, 0.016527965664863586, -0.0048889159224927425, -0.03917994350194931, -0.01711120642721653, 0.005742331966757774, -0.08213378489017487, 0.025971293449401855, 0.059593312442302704, -0.03715576231479645, 0.05183966085314751, 0.0573289729654789, 0.014580977149307728, 0.0014345108065754175, -0.05739758908748627, 0.021785695105791092, -0.045389723032712936, -0.03442826122045517, 0.015044137835502625, -0.029384957626461983, -0.03216392174363136, 0.09270070493221283, -0.01881803758442402, 0.07170409709215164, 0.021150993183255196, -0.12639133632183075, 0.04638466238975525, -0.0672440379858017, -0.049060698598623276, -0.0005601882585324347, 0.01907534897327423, -0.04659051075577736, -0.011304546147584915, -0.03763607516884804, -0.005742331966757774, -0.027618085965514183, -0.033381860703229904, 0.007860861718654633, 0.07108655571937561, -0.03578343242406845, -0.002266484312713146, -0.0012479601427912712, -0.031906608492136, -0.001125737209804356, 0.01283125951886177, -0.009511942975223064, 0.07218441367149353, -0.05825529247522354, 0.01820049062371254, 0.05602525919675827, -0.024221576750278473, -0.04418893903493881, -0.05262875184416771, -0.023003635928034782, 0.007269045803695917, -0.00781368836760521, -0.036915604025125504, 0.01628780923783779, 0.018011795356869698, -0.0143579738214612, 0.004359283484518528, 0.015087022446095943, -0.0007183275301940739, 0.007577819749712944, -0.043845854699611664, -0.02430734597146511, 0.03430818021297455, 0.0007467390387319028, 0.016605159267783165, -0.02533659152686596, -0.0014591699000447989, 0.006518554408103228, -0.0010587290162220597, 0.013706118799746037, -0.031872302293777466, 0.015284295193850994, -0.06817035377025604, -0.013371613807976246, 0.006681518163532019, -0.058358218520879745, 0.03216392174363136, 0.03797915577888489, 0.020602062344551086, -0.05691727250814438, -0.029522189870476723, 0.006158318370580673, 0.03773900121450424, 0.023672645911574364, -0.0631270557641983, 0.036366671323776245, 0.03763607516884804, -0.10614951699972153, -0.04062088578939438, -0.02531943842768669, -0.024959202855825424, -0.005210555158555508, -0.043228309601545334, 0.01969289593398571, -0.06782727688550949, 0.03286723792552948, -0.015026983805000782, -0.024255884811282158, -0.04130705073475838, -0.004385014530271292, 0.0573289729654789, -0.0018472811207175255, 0.00810959655791521, -0.013371613807976246, 0.028836026787757874, 0.08796617388725281, 0.0009348979219794273, 0.0205677542835474, 0.039282869547605515, 0.000498540757689625, 0.02525082230567932, 0.017025435343384743, 0.009777831844985485, -0.06755281239748001, -0.00981213990598917, 0.0002041068801190704, -0.03550896793603897, -0.039282869547605515, -0.04494371637701988, 0.07787957042455673, -0.013869082555174828, -0.01286556851118803, 0.024547504261136055, 0.00821680948138237, -0.015087022446095943, 0.05283460021018982, 0.04326261579990387, 0.016588006168603897, 0.04432617127895355, -0.03660682961344719, -0.016107691451907158, 0.03550896793603897, 0.01283125951886177, 0.07300780713558197, 0.034531183540821075, -0.01657085120677948, 0.03821931406855583, 0.017154090106487274, -0.027738165110349655, -0.02370695397257805, -0.0015117042930796742, 0.055579252541065216, -0.024839123710989952, -0.02044767700135708, 0.009057359769940376, -0.06957699358463287, -0.015798917040228844, -0.018920961767435074, -0.003555185394361615, 0.04453201964497566, 0.0015899697318673134, 0.01338019035756588, -0.01555018313229084, -0.017437133938074112, -0.08021252602338791, 0.01211936492472887, -0.04487510025501251, -0.043022461235523224, 0.0017636549891903996, -0.03278146684169769, -0.029659422114491463, 0.04514956846833229, 0.05472154915332794, -0.031134674325585365, 0.0066986726596951485, -0.005617964547127485, 0.027052002027630806, 0.058358218520879745, 0.018320569768548012, -0.018251951783895493, -0.02784108929336071, -0.022506166249513626, 0.045046642422676086, -0.028287095949053764, -0.045115258544683456, -0.03530311957001686, -0.03688129410147667, 0.04597296193242073, -0.010729883797466755, 0.025079280138015747, -0.017505750060081482, 0.012308060191571712, 0.09880756586790085, 0.02703484706580639 ]
43,165
fast_poisson_solver.data
generate_random_coords
null
def generate_random_coords(self): engine = qmc.Sobol(d=2, scramble=True, seed=self.seed) # d=2 for 2D points sample = engine.random(int(self.grid_num ** 2)) self.x_grid, self.y_grid = np.hsplit(sample, 2) self.y_grid = self.y_grid.flatten() self.x_grid = self.x_grid.flatten()
(self)
[ 0.032765865325927734, -0.009831531904637814, -0.023616954684257507, -0.003235806478187442, -0.007796963676810265, 0.03758854418992996, -0.0246630497276783, -0.003918428439646959, -0.042517609894275665, 0.03879421576857567, -0.00524821225553751, 0.027056660503149033, -0.01485811360180378, 0.08163097500801086, -0.05297857150435448, -0.006072677671909332, 0.0642905980348587, -0.04308498278260231, -0.03776584938168526, -0.04773036018013954, -0.008971605449914932, -0.006254415027797222, 0.014937900938093662, 0.018244629725813866, -0.003814262105152011, 0.011010606773197651, -0.02459212951362133, 0.030496368184685707, 0.022925466299057007, -0.0825529545545578, -0.02420205809175968, -0.04446795955300331, 0.059255149215459824, 0.05783671513199806, 0.017819099128246307, -0.06620548665523529, 0.06489343196153641, 0.027943182736635208, -0.0036214436404407024, 0.0017763690557330847, 0.0477658212184906, -0.008643592707812786, 0.022233979776501656, 0.03840414807200432, -0.006453882437199354, 0.009636497125029564, 0.021081499755382538, 0.006413988769054413, -0.0896451324224472, 0.03540769964456558, 0.0088474927470088, -0.012535425834357738, -0.018723351880908012, 0.03159565478563309, 0.030886437743902206, -0.005571792833507061, 0.011693228967487812, 0.06702108681201935, 0.032056648284196854, -0.00253323744982481, -0.031719766557216644, 0.025194963440299034, -0.026985738426446915, -0.033475082367658615, 0.035975076258182526, -0.05978706479072571, -0.04897149279713631, 0.02498219907283783, 0.03157792612910271, 0.08049622178077698, 0.019397107884287834, 0.08397139608860016, 0.06195017695426941, 0.011524789966642857, 0.032765865325927734, 0.030248140916228294, -0.01396272610872984, 0.05815586447715759, 0.062482092529535294, -0.042162999510765076, -0.08354586362838745, 0.018315549939870834, 0.04439703747630119, -0.0018173707649111748, -0.04234030470252037, 0.031010549515485764, 0.04911333695054054, 0.04315590485930443, -0.007109908852726221, -0.04787220433354378, 0.03187934309244156, 0.020177247002720833, -0.03436160460114479, -0.03375877067446709, 0.00075631431536749, 0.004100165795534849, 0.03074459359049797, 0.016152435913681984, 0.019450299441814423, 0.02572687715291977, -0.018404202535748482, -0.04301406070590019, -0.020531857386231422, 0.033421892672777176, -0.045425403863191605, 0.032358065247535706, 0.040709104388952255, 0.0038541557732969522, -0.060957275331020355, 0.03843960538506508, -0.01555846631526947, 0.10148907452821732, 0.020904196426272392, 0.048262275755405426, -0.06489343196153641, -0.07751750946044922, -0.019787177443504333, 0.024503476917743683, 0.014893574640154839, -0.0015957402065396309, 0.007194128353148699, -0.021826179698109627, -0.026613399386405945, 0.03336869925260544, -0.0012533209519460797, 0.027375807985663414, 0.021471569314599037, -0.019024768844246864, -0.0805671438574791, -0.04602823778986931, 0.07283667474985123, -0.030336793512105942, 0.04680837690830231, 0.024432554841041565, -0.03762400522828102, 0.027943182736635208, -0.005904238671064377, -0.05755302682518959, 0.033492811024188995, -0.00019212601182516664, 0.04414881020784378, 0.03265948221087456, 0.05790763720870018, 0.024804893881082535, -0.001712096156552434, 0.07453879714012146, 0.010611671954393387, 0.01625881902873516, 0.03177295997738838, -0.033882882446050644, 0.01742016337811947, -0.0032867814879864454, 0.065248042345047, 0.0010510829742997885, -0.05386509373784065, -0.056240975856781006, 0.02177298814058304, -0.02203894406557083, 0.033155933022499084, 0.005044311750680208, -0.03294317051768303, 0.0017929914174601436, 0.04478710517287254, 0.03265948221087456, -0.014441448263823986, 0.0249644685536623, -0.01264180801808834, -0.07616999745368958, 0.009450327605009079, -0.04574454948306084, -0.026666590943932533, -0.02239355258643627, -0.029184313490986824, -0.01633860543370247, 0.018528316169977188, -0.014317335560917854, -0.05244665965437889, -0.019326185807585716, 0.02608148567378521, -0.01632974110543728, 0.02673751302063465, -0.03641833737492561, 0.057340264320373535, 0.007154235150665045, -0.022180788218975067, 0.0797870084643364, 0.03726939857006073, -0.0449998714029789, 0.01538116205483675, -0.011179046705365181, -0.03251763805747032, 0.0579785592854023, -0.03946797177195549, 0.016764136031270027, 0.018918385729193687, 0.09765929728746414, 0.0050354464910924435, 0.002101057907566428, -0.063865065574646, 0.04234030470252037, -0.013998187147080898, -0.024840354919433594, -0.018031863495707512, -0.07230476289987564, 0.03212756663560867, 0.013288969174027443, -0.016063783317804337, -0.05042538791894913, 0.06156010925769806, 0.05971614271402359, 0.04528355970978737, -0.024485746398568153, -0.01554073579609394, -0.01029252354055643, 0.03505309298634529, 0.026666590943932533, -0.0354786217212677, -0.0004914657911285758, -0.009095719084143639, 0.019361646845936775, 0.06312038749456406, -0.04677291586995125, 0.015124070458114147, -0.004324012435972691, 0.025531843304634094, 0.026329712942242622, 0.011232237331569195, -0.051524676382541656, -0.09801390767097473, -0.02709212154150009, 0.049716170877218246, -0.04315590485930443, 0.013164856471121311, -0.03372330963611603, -0.052340276539325714, -0.024858085438609123, 0.012127624824643135, -0.022287171334028244, -0.03900698199868202, 0.055886365473270416, -0.08560259640216827, 0.024024754762649536, 0.007140937261283398, -0.03583323210477829, -0.033457349985837936, 0.056701965630054474, -0.05361687019467354, 0.033155933022499084, 0.030691402032971382, -0.0056294165551662445, -0.00816487055271864, 0.005766827613115311, -0.016569102182984352, 0.017260588705539703, 0.024414824321866035, -0.055531758815050125, -0.009468058124184608, -0.004042541608214378, 0.00038951574242673814, 0.0023293374106287956, -0.05762394890189171, 0.00008650518429931253, -0.03794315457344055, 0.05400693789124489, 0.052623964846134186, 0.0039450242184102535, -0.0630849301815033, 0.0630849301815033, -0.007154235150665045, -0.0234928410500288, 0.04812043160200119, 0.05177290365099907, -0.023670146241784096, 0.000789558922406286, 0.03719847649335861, 0.017269454896450043, 0.027074391022324562, -0.021595682948827744, 0.01695917174220085, -0.01772158034145832, -0.003450788091868162, 0.015718040987849236, 0.024804893881082535, 0.046879298985004425, 0.0007723825401626527, -0.029485732316970825, -0.02608148567378521, -0.03115239366889, 0.05613459274172783, -0.042517609894275665, -0.07886502146720886, 0.01283684279769659, -0.00041444916860200465, 0.02393610216677189, 0.03822684288024902, -0.00333997281268239, 0.00597959291189909, 0.01992902159690857, -0.04063818231225014, 0.00012099643936380744, 0.03629422187805176, 0.011285428889095783, -0.02065596915781498, 0.052269354462623596, 0.05297857150435448, 0.034538909792900085, 0.0037100957706570625, -0.06421967595815659, 0.017943210899829865, -0.034592099487781525, -0.008222494274377823, 0.01373223029077053, 0.04170200973749161, 0.006839519366621971, 0.03769492730498314, -0.009228697046637535, -0.003998215775936842, -0.004264172166585922, 0.012757056392729282, 0.007894481532275677, -0.016436124220490456, -0.029556654393672943, 0.013076203875243664, 0.0019448082894086838, 0.009671958163380623, 0.02751765213906765, -0.03436160460114479, -0.006985795684158802, -0.037801310420036316, 0.03108147159218788, -0.03576231002807617, -0.025248154997825623, -0.051879286766052246, 0.05180836468935013, 0.04524809867143631, -0.029485732316970825, -0.036063726991415024, 0.007991998456418514, 0.049077875912189484, -0.07950332015752792, 0.014219817705452442, -0.023794258013367653, -0.018226899206638336, 0.026932546868920326, 0.008368770591914654, 0.007304943632334471, 0.0003523926134221256, -0.03897152096033096, -0.053758714348077774, -0.013820882886648178, 0.034911248832941055, -0.0238829106092453, 0.052623964846134186, -0.0299821849912405, 0.0412764772772789, 0.08815577626228333, -0.004547859542071819, 0.03249990940093994, -0.013475138694047928, 0.05826224759221077, 0.018599238246679306, -0.07439695298671722, 0.03296089917421341, -0.024077946320176125, -0.061701953411102295, -0.01359038706868887, 0.01158684678375721, 0.0001840918994275853, 0.011675498448312283, 0.024414824321866035, -0.027251696214079857, -0.04134739935398102, -0.061063654720783234, 0.03512401506304741, 0.044290654361248016, -0.003659120760858059, -0.06492889672517776, 0.013288969174027443, -0.023226885125041008, -0.05212751030921936, 0.016498180106282234, -0.023599224165081978, 0.10312027484178543, 0.040744565427303314, -0.035319048911333084, 0.023741066455841064, 0.04918425902724266, 0.05109914392232895, -0.05475161597132683, -0.02028363011777401, -0.014015917666256428, -0.006418421398848295, 0.0565955825150013, 0.014698539860546589, 0.02492900751531124, -0.004742894321680069, 0.04897149279713631, 0.046453770250082016, -0.04773036018013954, 0.026507016271352768, -0.005017716437578201, 0.005075340159237385, -0.040709104388952255, -0.01102833729237318, 0.00011836457997560501, -0.09106357395648956, -0.017650658264756203, -0.031205585226416588, 0.014281874522566795, 0.0019625388085842133, -0.03173749893903732, 0.029077932238578796, 0.07971608638763428, -0.03794315457344055, -0.009521249681711197, -0.016897115856409073, -0.04574454948306084, 0.03985804319381714, 0.0184751246124506, 0.031932532787323, 0.021879371255636215, -0.02716304361820221, -0.009388270787894726, 0.00013969652354717255, 0.009494653902947903, 0.022535396739840508, -0.009831531904637814, -0.030141757801175117, 0.018528316169977188, 0.024485746398568153, -0.0536523312330246, -0.01773044653236866, -0.03663109987974167, 0.026329712942242622, 0.04156016558408737, -0.049716170877218246, 0.012366985902190208, -0.001288781757466495, -0.024397093802690506, 0.02501766011118889, 0.012074434198439121, 0.03918428719043732, 0.01320031750947237, -0.005234914366155863, -0.007588631007820368, -0.026950277388095856, -0.03868783265352249, -0.02969849668443203, 0.031258776783943176, 0.014459178782999516, 0.06340407580137253, 0.0520920492708683, 0.03372330963611603, -0.033900611102581024, 0.051950208842754364, -0.009512384422123432, -0.07851041853427887, -0.009920184500515461, -0.0353899709880352, -0.03950343281030655, -0.02856374904513359, -0.008679053746163845, -0.04929063841700554, -0.01588647998869419, 0.031719766557216644, -0.053758714348077774, 0.0002919982944149524, -0.0023714471608400345, -0.0014827086124569178, 0.003100611735135317, 0.022730432450771332, -0.004765057470649481, 0.024131137877702713, -0.0024512342642992735, -0.0031671009492129087, -0.06960973143577576, -0.03140062093734741, 0.07581538707017899, 0.0019315105164423585, -0.029113393276929855, -0.05755302682518959, -0.021170152351260185, -0.00741132628172636, 0.017118746414780617, -0.011090394109487534, 0.030177218839526176, 0.013599252328276634, -0.01705668866634369, -0.0016810678644105792, -0.0068794130347669125, 0.007464517839252949, 0.0004928510170429945, -0.03904244303703308, -0.04624100401997566, -0.05606367066502571, 0.0007640714175067842, 0.04297859966754913, -0.013067338615655899, 0.013936130329966545, -0.00904252752661705, -0.00029615385574288666, 0.008563805371522903, 0.034219760447740555, -0.045106254518032074, 0.017225127667188644, -0.003144937800243497, 0.017278319224715233, -0.03985804319381714, -0.06588634103536606, 0.037056632339954376, 0.039964426308870316, -0.03225168213248253, 0.011799612082540989, -0.05829770863056183, 0.08616996556520462, 0.023315535858273506, -0.02677297405898571, 0.0020223790779709816, -0.07482248544692993, 0.0038674536626785994, -0.011427272111177444, -0.0031427214853465557, -0.006289875600486994, 0.0646452084183693, -0.018546046689152718, 0.03801407665014267, 0.004208764526993036, -0.0008277901797555387, 0.02283681370317936, 0.024060215801000595, -0.0036436067894101143, 0.002499992959201336, -0.00002830984340107534, 0.06875866651535034, 0.004769490100443363, 0.029432540759444237, 0.014042513445019722, -0.0565955825150013, 0.02608148567378521, -0.04088640958070755, -0.020567316561937332, -0.010815571993589401, 0.025780068710446358, -0.04804950952529907, -0.03180842101573944, 0.011365216225385666, 0.03512401506304741, -0.021897101774811745, -0.04677291586995125, -0.021843910217285156, 0.09624086320400238, -0.018900655210018158, 0.012544290162622929, -0.07021256536245346, 0.0426594540476799, -0.05890054255723953, -0.037056632339954376, -0.03684386610984802, -0.05095730349421501, 0.04641830921173096, -0.03335097059607506, 0.02101057954132557, 0.024397093802690506, 0.03868783265352249, -0.024450285360217094, 0.04212753847241402, -0.06535442173480988, 0.03702117130160332, -0.01430847030133009, -0.02570914663374424, -0.015079744160175323, 0.034184299409389496, 0.006631186697632074, -0.01396272610872984, -0.003435273887589574, -0.014299605041742325, -0.004485802724957466, -0.03179068863391876, 0.017163071781396866, 0.013847478665411472, 0.010797841474413872, 0.031666576862335205, 0.013874074444174767, -0.014866978861391544, -0.008741109631955624, 0.01777477189898491, -0.03147154301404953, 0.01843966357409954, 0.07631184160709381, -0.033457349985837936, 0.04957432672381401, 0.044042427092790604, 0.0027637332677841187, -0.030655940994620323, -0.038616910576820374, -0.04124101623892784, -0.00832444429397583, -0.04170200973749161, -0.008102813735604286, -0.03265948221087456, 0.0023404189851135015, 0.0790068656206131, -0.00040835433173924685, 0.030691402032971382, 0.006054947152733803, -0.09858127683401108, -0.010248198173940182, -0.04847503826022148, -0.05276580899953842, 0.042907681316137314, 0.015549601055681705, -0.044716186821460724, -0.028847435489296913, -0.06492889672517776, -0.007477815728634596, -0.02203894406557083, -0.04368782043457031, 0.022712701931595802, 0.04198569804430008, -0.022287171334028244, -0.014157760888338089, -0.008723379112780094, -0.0005000539822503924, 0.011294294148683548, -0.027393538504838943, -0.03246444836258888, 0.0499289371073246, -0.020744621753692627, 0.006790760904550552, 0.08517706394195557, 0.000882089720107615, -0.05687927082180977, 0.010008837096393108, -0.08709195256233215, 0.02063823863863945, -0.0015104124322533607, -0.0307623241096735, 0.0132180480286479, 0.041134633123874664, 0.043262287974357605, 0.035283587872982025, 0.027730418369174004, 0.017482219263911247, -0.0007806937210261822, -0.04375874251127243, -0.02239355258643627, 0.018297821283340454, 0.032694943249225616, 0.025904182344675064, 0.0012843492440879345, -0.005496438127011061, 0.020904196426272392, 0.03769492730498314, 0.02828006073832512, -0.03475167602300644, -0.034592099487781525, -0.08716287463903427, -0.005926401820033789, 0.034875787794589996, -0.03726939857006073, 0.025992833077907562, 0.06521257758140564, -0.00024102325551211834, -0.014760596677660942, -0.06453882157802582, 0.014255278743803501, 0.021223343908786774, 0.029184313490986824, -0.0660281777381897, 0.03329777717590332, 0.04212753847241402, -0.066631019115448, -0.032783593982458115, -0.024840354919433594, -0.0507090762257576, -0.03159565478563309, -0.0346098318696022, 0.0064982082694768906, -0.07276575267314911, 0.03950343281030655, 0.005181722808629274, -0.00887852068990469, -0.01882973313331604, -0.038155920803546906, 0.021524760872125626, 0.05475161597132683, 0.016427258029580116, -0.00698136305436492, 0.021968021988868713, 0.025602763518691063, 0.03040771558880806, 0.0029188746120780706, 0.05276580899953842, 0.002681730082258582, 0.013501734472811222, -0.018953846767544746, 0.010505289770662785, -0.042162999510765076, -0.016161302104592323, 0.00553189916536212, -0.01324464287608862, -0.03317366540431976, -0.049432482570409775, 0.05929061025381088, -0.015239318832755089, 0.005926401820033789, -0.019680794328451157, 0.03505309298634529, 0.010726920329034328, 0.009654227644205093, 0.034964438527822495, -0.005859912373125553, 0.0020378930494189262, -0.04390058293938637, -0.03038998506963253, 0.01804072968661785, 0.008288983255624771, 0.05801402032375336, 0.014583291485905647, -0.02820914052426815, -0.034166570752859116, -0.0008870763704180717, -0.0355672761797905, -0.005062042269855738, 0.004275253973901272, 0.025850990787148476, 0.002925523556768894, -0.03801407665014267, -0.0012211845023557544, -0.03812045976519585, -0.0485459603369236, -0.025780068710446358, 0.014077974483370781, 0.062056560069322586, -0.008971605449914932, 0.0326240211725235, -0.03794315457344055, -0.030904168263077736, -0.0347871370613575, -0.030585018917918205, -0.034574370831251144, -0.01923753321170807, 0.017508815973997116, -0.00044215298839844763, -0.0587586984038353, 0.05031900480389595, 0.03042544610798359, -0.028865166008472443, 0.01464534830302, 0.018528316169977188, 0.02093965746462345, 0.06936150789260864, 0.04053179919719696, 0.02203894406557083, -0.03826230391860008, -0.03264174982905388, 0.02062050811946392, 0.009459192864596844, -0.0159662663936615, -0.047269370406866074, -0.04893603175878525, 0.008448557928204536, -0.0469856821000576, 0.03595734387636185, -0.019450299441814423, 0.024042485281825066, 0.04875872656702995, 0.03936158865690231 ]
43,166
fast_poisson_solver.data
get_infos
null
def get_infos(self): data = { 'domain_x': self.domain_x, 'domain_y': self.domain_y, 'grid_num': self.grid_num, 'num_cases': self.num_cases, 'shuffle': self.shuffle, 'initial_shuffle': self.initial_shuffle, 'batchsize': self.batchsize, 'batchsize_bc': self.batchsize_bc, 'use_torch': self.use_torch, 'device': self.device, 'seed': self.seed, 'precision': str(self.precision), 'cases': self.cases, } return data
(self)
[ 0.020012853667140007, 0.016257042065262794, -0.0009264789987355471, -0.028377247974276543, 0.034056324511766434, 0.004556416999548674, -0.04594065994024277, -0.06931015849113464, 0.011820828542113304, -0.001490077585913241, -0.026744285598397255, -0.0008907579467631876, -0.019123796373605728, 0.007620488293468952, 0.01632961817085743, -0.048916276544332504, -0.01362615916877985, -0.018144018948078156, -0.006872047670185566, -0.00426838081330061, -0.013081838376820087, 0.008532225154340267, -0.02509317919611931, 0.014497071504592896, -0.007919864729046822, 0.02082933485507965, 0.031116994097828865, -0.039553962647914886, 0.04779134690761566, 0.028195807710289955, -0.10523531585931778, -0.021645816043019295, 0.0060646384954452515, 0.05294425040483475, -0.030354944989085197, -0.010224155150353909, -0.0012439993442967534, -0.030391233041882515, -0.09507466107606888, 0.03438291698694229, -0.04053374007344246, -0.07446305453777313, -0.04826309159398079, 0.025855228304862976, -0.009852202609181404, -0.02727046236395836, 0.044670578092336655, -0.00806048046797514, -0.030246080830693245, -0.03278624266386032, -0.0069809118285775185, -0.01670156978070736, -0.011421660892665386, 0.015104896388947964, 0.013027406297624111, -0.05156530439853668, 0.023677945137023926, 0.048625972121953964, 0.0038714802358299494, 0.038429033011198044, -0.011122284457087517, 0.04256587103009224, 0.01151238102465868, -0.07635003328323364, -0.03236893191933632, 0.010596107691526413, -0.043073903769254684, 0.00277149910107255, -0.009344169870018959, 0.011258364655077457, 0.06325004994869232, -0.04387224093079567, 0.012002268806099892, 0.028377247974276543, 0.0016511058202013373, -0.037376679480075836, -0.021337367594242096, -0.01050538755953312, 0.04996863007545471, -0.03545341640710831, -0.039553962647914886, 0.01332678273320198, -0.008754489943385124, -0.010269515216350555, 0.03313098102807999, -0.022498585283756256, 0.02111963927745819, 0.00819656066596508, 0.0034314878284931183, 0.008908714167773724, -0.050367798656225204, 0.0066452473402023315, -0.017300322651863098, 0.029992064461112022, -0.02420412190258503, 0.006241542752832174, -0.01275524590164423, 0.017418259754776955, 0.025165755301713943, 0.008886033669114113, -0.025601211935281754, -0.014968816190958023, -0.05570214241743088, 0.039553962647914886, -0.059693824499845505, -0.021174071356654167, 0.023369496688246727, -0.00027754681650549173, -0.035344552248716354, 0.009443962015211582, -0.06430240720510483, 0.08505916595458984, -0.0008453979389742017, -0.009652618318796158, 0.04071518033742905, -0.053851451724767685, -0.017808355391025543, -0.0028894352726638317, -0.07671291381120682, -0.0025446987710893154, -0.044815730303525925, 0.048916276544332504, -0.04256587103009224, 0.038247592747211456, -0.047609906643629074, 0.0443439856171608, -0.01558571308851242, -0.018307315185666084, 0.029193727299571037, -0.061290498822927475, 0.03441920503973961, -0.056319039314985275, 0.026000380516052246, 0.04942430928349495, 0.06020185723900795, -0.04024343565106392, 0.07174145430326462, -0.03400189429521561, 0.04024343565106392, 0.06078246608376503, -0.00728935981169343, 0.031679458916187286, -0.0023201664444059134, -0.002653562929481268, 0.009688906371593475, -0.03995313122868538, 0.0580245740711689, -0.031153282150626183, -0.029810624197125435, -0.09732452034950256, 0.046412404626607895, 0.007402759976685047, 0.005670006386935711, -0.03686864674091339, -0.029484031721949577, -0.04387224093079567, 0.005583822261542082, -0.03864676132798195, 0.018906068056821823, 0.00780192855745554, -0.09340541064739227, -0.011131356470286846, -0.009267058223485947, -0.016275186091661453, -0.011938764713704586, 0.017109811305999756, 0.023061050102114677, -0.09928407520055771, 0.036542054265737534, -0.00789718423038721, -0.04681156948208809, -0.04470686614513397, -0.0015388396568596363, 0.018615763634443283, -0.04271102324128151, 0.01750897988677025, 0.005257229786366224, 0.011385372839868069, 0.020811190828680992, 0.03773956000804901, -0.0015286336420103908, -0.022843321785330772, -0.05018635839223862, 0.06205254793167114, -0.004377244971692562, -0.03048195317387581, 0.05116613581776619, -0.0037558120675385, 0.013871103525161743, -0.0022419204469770193, 0.0272523183375597, 0.037521831691265106, -0.02057531848549843, 0.037993576377630234, 0.014487999491393566, -0.0022351164370775223, 0.020230581983923912, -0.006899263709783554, -0.04038858786225319, 0.013372142799198627, 0.009267058223485947, -0.008409753441810608, 0.003408807795494795, -0.003783028107136488, -0.0553392618894577, 0.036796070635318756, -0.022770745679736137, 0.0070534879341721535, -0.03060896135866642, 0.04884370043873787, 0.02565564401447773, -0.007824608124792576, -0.010106218978762627, -0.0004754300171043724, 0.0507669672369957, -0.039735402911901474, 0.016737857833504677, 0.03195161744952202, -0.0018314119661226869, -0.023732377216219902, 0.013535439036786556, -0.046557553112506866, 0.0186520516872406, -0.0283953920006752, -0.032423362135887146, 0.009398601949214935, 0.03033680096268654, 0.014560575596988201, -0.02318805828690529, -0.06789492070674896, 0.0016034777509048581, -0.013735023327171803, -0.04252958297729492, 0.03719523921608925, 0.006586279254406691, 0.03510867804288864, 0.006418447010219097, -0.006386694964021444, 0.03645133599638939, 0.011430732905864716, 0.013544511049985886, -0.014370063319802284, 0.01997656561434269, -0.03734039142727852, -0.0053116618655622005, -0.07497108727693558, 0.02754262275993824, 0.04448913782835007, 0.006168966647237539, -0.038683049380779266, 0.010106218978762627, -0.043219055980443954, 0.0033861277624964714, 0.008105840533971786, -0.0025583067908883095, -0.03529011830687523, -0.013308638706803322, -0.005375165957957506, 0.07547912001609802, -0.09543754160404205, 0.010704971849918365, -0.009852202609181404, -0.06829409301280975, 0.0685843974351883, 0.024839162826538086, 0.03385674208402634, -0.006309582851827145, 0.008427897468209267, -0.02405896969139576, -0.014243055135011673, 0.0804142951965332, 0.07932565361261368, -0.060855042189359665, -0.05904063954949379, -0.0045859008096158504, -0.036959368735551834, 0.04416254535317421, -0.04561406746506691, -0.03117142617702484, 0.045976947993040085, 0.012646381743252277, -0.027869215235114098, -0.03382045403122902, -0.04982347786426544, 0.028522398322820663, -0.04419883340597153, -0.018742771819233894, -0.00018115670536644757, -0.0033679837360978127, 0.009498394094407558, -0.06328634172677994, 0.03908221796154976, -0.06909243017435074, -0.04111434891819954, 0.014996032230556011, -0.010514459572732449, -0.00806048046797514, 0.00608278252184391, 0.02609110064804554, 0.04042487591505051, 0.013961823657155037, 0.009961066767573357, 0.033874884247779846, -0.003184275468811393, -0.0422755666077137, 0.025002459064126015, 0.06277830898761749, -0.020194293931126595, 0.016565490514039993, -0.028649406507611275, 0.043799664825201035, 0.014025327749550343, 0.10523531585931778, 0.07007220387458801, -0.04303761571645737, -0.04572293162345886, -0.04267473518848419, 0.036542054265737534, 0.015676433220505714, 0.1162668764591217, -0.008409753441810608, 0.031715746968984604, 0.0551215335726738, -0.00101152912247926, 0.08498658984899521, -0.0025719148106873035, 0.03278624266386032, 0.001399357570335269, 0.02244415320456028, 0.024022681638598442, -0.07301153242588043, -0.038828201591968536, 0.009788698516786098, 0.055157821625471115, 0.030935553833842278, 0.06491930037736893, -0.025855228304862976, 0.01261916570365429, -0.001832545967772603, -0.022335289046168327, -0.020194293931126595, -0.06197997182607651, -0.06724173575639725, 0.01334492675960064, 0.011149500496685505, -0.06379437446594238, 0.011775468476116657, -0.04594065994024277, -0.014016255736351013, 0.030227936804294586, -0.06477414816617966, -0.016229825094342232, 0.02781478315591812, 0.07058023661375046, 0.0443439856171608, -0.0058469101786613464, -0.003617463866248727, -0.03530826419591904, -0.011956908740103245, 0.03890077769756317, 0.043110191822052, 0.010514459572732449, 0.03158873692154884, 0.033475715667009354, -0.039844267070293427, -0.029338879510760307, 0.02766963094472885, 0.038574185222387314, 0.09224420040845871, 0.005565678235143423, -0.029846912249922752, -0.00045813649194315076, -0.04470686614513397, 0.018434323370456696, 0.029211871325969696, 0.002188622485846281, 0.008409753441810608, -0.01937781274318695, -0.046884145587682724, -0.019014932215213776, -0.032278209924697876, 0.0006809677579440176, 0.004633529111742973, 0.03773956000804901, -0.0028350031934678555, -0.009561898186802864, 0.020883766934275627, 0.027361182495951653, -0.05417804419994354, -0.003127575386315584, -0.02376866526901722, -0.014823663979768753, -0.024748442694544792, 0.022480441257357597, -0.012655453756451607, -0.005048573482781649, 0.0416586697101593, 0.023859385401010513, -0.05628275126218796, -0.008105840533971786, -0.04401739314198494, -0.06346777826547623, -0.0024925346951931715, -0.0003356643719598651, -0.004204876720905304, -0.09507466107606888, 0.031116994097828865, -0.019432244822382927, 0.04169495776295662, 0.01846154034137726, 0.03385674208402634, 0.007189567666500807, 0.03293139487504959, -0.025728220120072365, -0.002660366939380765, 0.018887924030423164, -0.05715366080403328, 0.017028162255883217, 0.06430240720510483, 0.014905312098562717, 0.029629183933138847, 0.004975997377187014, -0.006105462554842234, 0.030790401622653008, 0.0002833585604093969, 0.04811793938279152, -0.04111434891819954, 0.011421660892665386, 0.0275607667863369, 0.017064450308680534, -0.03385674208402634, 0.010686827823519707, -0.007933472283184528, -0.051529016345739365, 0.01457871962338686, -0.019649973139166832, -0.0027284070383757353, 0.0032364395447075367, 0.014415423385798931, 0.03545341640710831, -0.034473638981580734, 0.023950105533003807, 0.06716915965080261, 0.02899414300918579, -0.015513136982917786, -0.018869780004024506, -0.04184010997414589, -0.051238711923360825, -0.014170479960739613, -0.010804763995110989, 0.018869780004024506, -0.01347193494439125, 0.055157821625471115, -0.0661168098449707, 0.04844453185796738, 0.012918542139232159, -0.032278209924697876, -0.02609110064804554, 0.01231071725487709, 0.02302476204931736, -0.00018739369988907129, -0.047609906643629074, -0.049206580966711044, 0.013499150983989239, 0.013290494680404663, -0.02316991426050663, 0.01246494147926569, 0.02534719556570053, -0.037521831691265106, -0.005878662224858999, -0.004619921091943979, 0.08687356859445572, -0.02171839214861393, 0.003547155996784568, -0.036542054265737534, 0.009942922741174698, 0.007770176511257887, 0.06205254793167114, -0.022117560729384422, -0.05689964443445206, 0.023079194128513336, -0.027796639129519463, 0.0057335104793310165, -0.015377056784927845, -0.014370063319802284, -0.019178228452801704, 0.00877716951072216, -0.00409828033298254, -0.05494009330868721, 0.014769231900572777, -0.011757324449717999, -0.026326972991228104, -0.016465697437524796, -0.022407865151762962, 0.016864866018295288, 0.04996863007545471, 0.0636129304766655, 0.008464185521006584, -0.008015120401978493, 0.022081272676587105, -0.0019482141360640526, -0.037848424166440964, 0.016656210646033287, -0.03581629693508148, -0.004023436456918716, 0.0067767915315926075, 0.0019618221558630466, 0.014007183723151684, 0.01261916570365429, 0.033312421292066574, -0.017953507602214813, -0.016139104962348938, -0.0024403706192970276, -0.02418597787618637, 0.009153657592833042, 0.007638632319867611, -0.029230015352368355, 0.0022680023685097694, -0.08346249163150787, 0.03773956000804901, 0.02393196150660515, 0.06843924522399902, 0.038574185222387314, 0.04173124581575394, -0.02667170949280262, 0.09253450483083725, -0.01823473908007145, 0.006173502653837204, -0.026998301967978477, 0.05773426964879036, 0.027016445994377136, -0.04521489888429642, 0.04300132766366005, 0.07105198502540588, 0.0005139860440976918, -0.013580799102783203, 0.04604952409863472, -0.017690420150756836, -0.04895256459712982, -0.006577207241207361, 0.03821130469441414, -0.0588591992855072, -0.022262712940573692, -0.053996603935956955, 0.05650047957897186, -0.03363901376724243, 0.07359214127063751, 0.02607295662164688, 0.015857873484492302, -0.058822911232709885, 0.01202041283249855, -0.04140465334057808, 0.020212437957525253, -0.08063202351331711, 0.018017012625932693, 0.04989605396986008, 0.018189379945397377, -0.02814137563109398, -0.0127461738884449, -0.001412965590134263, -0.008849745616316795, -0.0661168098449707, -0.02099263109266758, 0.03382045403122902, -0.08883312344551086, 0.022353433072566986, -0.006386694964021444, 0.07939822971820831, -0.07007220387458801, -0.023423928767442703, 0.005670006386935711, 0.032332643866539, 0.03529011830687523, 0.04024343565106392, 0.013707807287573814, -0.03371158987283707, -0.006454735063016415, 0.024149689823389053, 0.05232735350728035, -0.02436741814017296, 0.02449442632496357, 0.07076168060302734, 0.003483651904389262, -0.0012712153838947415, 0.005493102129548788, 0.02199055254459381, -0.06724173575639725, -0.01829824410378933, 0.08520431816577911, 0.003982612397521734, 0.00961633026599884, -0.007507088128477335, -0.028304671868681908, 0.019776981323957443, 0.0189605001360178, -0.005057645495980978, -0.041186925023794174, -0.020666038617491722, -0.018724627792835236, -0.03632432594895363, -0.04401739314198494, 0.025710076093673706, -0.016030240803956985, -0.004261576570570469, 0.0050939335487782955, -0.03773956000804901, -0.005724438466131687, 0.033294275403022766, -0.033022116869688034, -0.000998488045297563, -0.0077474964782595634, -0.05548441410064697, -0.007974296808242798, -0.0719228982925415, 0.03278624266386032, -0.037267815321683884, 0.008255529217422009, -0.012410509400069714, 0.008024192415177822, -0.025456059724092484, 0.04895256459712982, -0.009607258252799511, -0.004164052661508322, 0.028758270666003227, 0.0076295603066682816, -0.008768097497522831, 0.013961823657155037, -0.01151238102465868, -0.013526367023587227, -0.02625439688563347, 0.019268948584794998, 0.01707352325320244, 0.01332678273320198, -0.0016148177674040198, -0.026145532727241516, 0.0272523183375597, 0.005783406551927328, 0.0254923477768898, -0.0041685886681079865, 0.02491173893213272, -0.0021069743670523167, 0.07714837044477463, -0.0010171991307288408, -0.0272523183375597, -0.02228085696697235, -0.025401627644896507, -0.012737101875245571, -0.03209676966071129, 0.037412967532873154, -0.029665471985936165, -0.02741561457514763, 0.010423739440739155, -0.009543754160404205, 0.009199017658829689, -0.015558497048914433, 0.04695672169327736, -0.06379437446594238, 0.05552070215344429, -0.029357023537158966, -0.04800907522439957, -0.06687885522842407, 0.04202155023813248, 0.011594029143452644, -0.09732452034950256, 0.0729389563202858, 0.0466301292181015, -0.05682707205414772, 0.026417693123221397, 0.02679871767759323, -0.023514648899435997, 0.04006199538707733, 0.044380273669958115, 0.04960574954748154, 0.005230013746768236, 0.0009332830086350441, 0.019196372479200363, 0.0003691173915285617, 0.033729732036590576, -0.004402192775160074, 0.004966925363987684, 0.07990626245737076, 0.01457871962338686, 0.0314980186522007, 0.020194293931126595, 0.04242071881890297, -0.023804953321814537, -0.019196372479200363, -0.023097338154911995, -0.04427140951156616, 0.0673506036400795, -0.00009043660247698426, -0.005207333713769913, 0.04971461370587349, -0.007493480108678341, 0.05798828601837158, -0.04071518033742905, 0.007606880273669958, -0.004694764968007803, 0.0362698957324028, -0.03414704650640488, -0.035344552248716354, -0.0362698957324028, 0.01406161580234766, 0.04267473518848419, 0.016420338302850723, 0.0011793612502515316, -0.0029597431421279907, 0.0030754113104194403, 0.004567756783217192, -0.030808545649051666, 0.043110191822052, 0.08999434113502502, 0.014406351372599602, -0.028232095763087273, -0.04946059733629227, 0.06782234460115433, 0.01981326937675476, 0.06836666911840439, -0.024004537612199783, 0.004016632214188576, 0.03162502497434616, 0.059403520077466965, 0.028830846771597862, 0.050803255289793015, -0.036505766212940216, 0.08774448186159134, 0.02376866526901722, -0.02667170949280262, 0.029411455616354942, -0.04419883340597153, -0.027016445994377136, -0.019414100795984268, -0.0681852251291275, -0.01670156978070736, -0.05033151060342789, -0.008337177336215973, 0.011775468476116657, -0.0161663219332695, -0.03164317086338997, 0.026417693123221397, -0.011140428483486176, 0.04271102324128151, 0.02899414300918579, 0.06854810565710068, -0.019776981323957443, 0.013381214812397957, 0.06179853156208992, -0.007175959646701813, -0.006676999386399984, -0.04764619469642639, 0.05319826677441597, 0.05846003070473671, -0.027143454179167747, -0.03019164875149727, 0.003515403950586915, -0.06393952667713165, 0.04927915707230568, -0.021609527990221977, 0.04779134690761566, -0.02946588769555092, -0.018633907660841942, -0.02433113008737564, 0.008904177695512772, 0.046122100204229355, -0.05345228314399719, 0.007965224795043468, 0.05650047957897186, -0.0023655265104025602 ]
43,167
fast_poisson_solver.data
plot_functions
null
def plot_functions(self): f, x, y, *_ = self.__call__(0) if self.use_torch: f = f.float().cpu().detach().numpy() x = x.float().cpu().detach().numpy() y = y.float().cpu().detach().numpy() xy = np.array([x, y]).T ind = np.lexsort((xy[:, 1], xy[:, 0])) f = f[ind] x = x[ind] y = y[ind] def plot(fig, ax, x, y, v, title): x = x.reshape(self.grid_num, self.grid_num) y = y.reshape(self.grid_num, self.grid_num) v = v.reshape(self.grid_num, self.grid_num) c = ax.contourf(x, y, v, 100, cmap='jet') # c = ax.scatter(x, y, c=v, s=1) ax.set_title(title) ax.set_xlabel('x') ax.set_ylabel('y') fig.colorbar(c, ax=ax) plots_x = np.min((self.num_cases, 4)) plots_y = int(np.ceil(self.num_cases / plots_x)) fig, axs = plt.subplots(plots_y, plots_x, figsize=(plots_x * 4, plots_y * 4), dpi=100, tight_layout=True) if self.num_cases == 1: plot(fig, axs, x, y, f[:, 0], self.cases[0]['name']) else: i = 0 for ax in axs.flatten(): if i < self.num_cases: plot(fig, ax, x, y, f[:, i], self.cases[i]['name']) else: ax.axis('off') i += 1 plt.savefig(os.path.join('..', 'images', 'functions.png')) plt.close()
(self)
[ -0.011468022130429745, -0.03211427852511406, 0.027458377182483673, 0.04495617374777794, -0.03304927796125412, 0.047780245542526245, -0.05648144334554672, 0.017049381509423256, -0.051901865750551224, 0.008028569631278515, -0.014740511775016785, 0.029652757570147514, 0.02948102355003357, -0.011639757081866264, -0.010571189224720001, -0.007227144204080105, 0.008095355704426765, -0.0012891984079033136, -0.00842451211065054, -0.003992818295955658, -0.0440402589738369, -0.021752987056970596, 0.027172153815627098, 0.01095282007008791, 0.026943175122141838, 0.02339400351047516, 0.0008539001573808491, -0.030091634020209312, 0.0034919269382953644, -0.016572341322898865, -0.10899391770362854, -0.013156740926206112, -0.01859498769044876, 0.0009057782008312643, 0.024596141651272774, 0.0065402076579630375, 0.032992031425237656, 0.0010995754273608327, -0.006707171443849802, 0.05194002762436867, 0.03192346543073654, -0.041597820818424225, 0.01859498769044876, 0.01514122448861599, -0.01777448132634163, 0.014044034294784069, -0.04052925109863281, 0.014301635324954987, -0.010676137171685696, -0.044116586446762085, -0.000058549110690364614, -0.12074816226959229, -0.011468022130429745, 0.004942126106470823, 0.06361795216798782, 0.10670413076877594, 0.05392451211810112, 0.011973683722317219, 0.06575508415699005, -0.06483916938304901, -0.011487103998661041, -0.011620675213634968, -0.006893216632306576, 0.009211626835167408, -0.009788844734430313, 0.021295029670000076, 0.003267718479037285, -0.026905011385679245, -0.017993919551372528, 0.005810337606817484, 0.03157999739050865, 0.04350597411394119, 0.029633674770593643, -0.02950010448694229, 0.029633674770593643, -0.02568379044532776, -0.030721325427293777, 0.0024519814178347588, -0.017535962164402008, -0.034709371626377106, 0.0008121592691168189, -0.0018473343225196004, -0.024729711934924126, -0.005862812045961618, 0.01778402179479599, -0.047780245542526245, 0.054191652685403824, -0.013462046161293983, -0.01686810702085495, 0.06441937386989594, -0.03133193403482437, -0.043315161019563675, -0.008171681314706802, 0.010971901938319206, -0.024386243894696236, -0.01743101328611374, 0.02442440763115883, -0.032648563385009766, -0.0015563403721898794, -0.01650555618107319, 0.06957139819860458, -0.0157232116907835, 0.013261689804494381, 0.0238710418343544, 0.008257548324763775, -0.03822038322687149, -0.05182553827762604, 0.048123713582754135, -0.042628224939107895, -0.02202012948691845, -0.04476536065340042, 0.02055084891617298, 0.0303015299141407, -0.029671838507056236, 0.006139494478702545, -0.024920528754591942, -0.04804738983511925, -0.013566995039582253, -0.043200671672821045, -0.051214929670095444, -0.022783393040299416, 0.011782868765294552, -0.013156740926206112, -0.057550009340047836, -0.0006243250682018697, 0.04007129371166229, 0.015169846825301647, 0.03888823464512825, -0.04820004105567932, -0.054344307631254196, 0.0002935281954705715, -0.019453659653663635, 0.00928795337677002, 0.04236108064651489, 0.011782868765294552, -0.01503627561032772, -0.0009576561860740185, -0.023813797160983086, 0.001897423411719501, 0.057893477380275726, -0.031599078327417374, 0.025187669321894646, -0.02950010448694229, 0.04358230158686638, -0.005085237789899111, 0.04472719505429268, 0.06766324490308762, -0.020722582936286926, 0.009617110714316368, -0.05644327774643898, 0.008500838652253151, 0.054229818284511566, -0.025397567078471184, -0.03795323893427849, 0.007775739300996065, -0.052130844444036484, 0.03785783052444458, 0.05022268742322922, 0.03991864249110222, 0.026523379608988762, -0.025416649878025055, 0.030721325427293777, 0.009827007539570332, -0.015914028510451317, -0.004477012902498245, 0.0009063744801096618, 0.03383162245154381, -0.011496644467115402, -0.02984357252717018, 0.002502070739865303, -0.05228349566459656, -0.058236945420503616, -0.04335332289338112, 0.08846215158700943, 0.01974942348897457, 0.011534808203577995, -0.02295512706041336, 0.017030300572514534, 0.028030823916196823, 0.006707171443849802, -0.01348112802952528, -0.01359561737626791, -0.05335206538438797, 0.0295955128967762, -0.008934943936765194, 0.03362172469496727, 0.07197567820549011, -0.027820926159620285, 0.01676315814256668, -0.004064374137669802, -0.040910881012678146, 0.020512685179710388, 0.0011711312690749764, -0.015608723275363445, 0.058694902807474136, -0.030568672344088554, 0.0030840584076941013, -0.03709457069635391, 0.04243740811944008, -0.09327070415019989, 0.06445753574371338, -0.010914657264947891, 0.05819878354668617, -0.028374291956424713, 0.014358879998326302, 0.06567876040935516, 0.017049381509423256, 0.046520862728357315, -0.00017963506979867816, 0.02236359752714634, 0.035720694810152054, -0.06461019068956375, -0.021524008363485336, 0.04644453898072243, -0.005404854193329811, 0.020283706486225128, -0.02421450987458229, -0.006764416117221117, -0.035987839102745056, -0.009951038286089897, 0.04037659987807274, 0.021085133776068687, -0.0692279264330864, 0.01698259636759758, 0.032076116651296616, 0.02192472293972969, 0.08800419420003891, 0.035854265093803406, 0.022420842200517654, -0.06857915967702866, 0.0238710418343544, -0.004918274469673634, -0.03211427852511406, -0.035968758165836334, 0.0032629482448101044, -0.013128118589520454, 0.03709457069635391, 0.013843677937984467, -0.005457328632473946, 0.011725624091923237, -0.02098972536623478, -0.024481652304530144, 0.048810653388500214, 0.013051792979240417, 0.03257223591208458, 0.010237261652946472, -0.04098720848560333, 0.05381002277135849, -0.044345565140247345, 0.014998112805187702, -0.014750052243471146, -0.04438372701406479, -0.03789599612355232, -0.03028244897723198, -0.04140700399875641, -0.04312434419989586, 0.0004913503653369844, -0.031942546367645264, 0.08456951379776001, -0.01617162860929966, 0.014664185233414173, -0.014721429906785488, -0.050413504242897034, 0.057321030646562576, 0.046062905341386795, -0.04155965521931648, -0.023718388751149178, -0.0011764978989958763, -0.02776368148624897, 0.008667802438139915, -0.07079261541366577, 0.06682365387678146, -0.03522457554936409, -0.0045604947954416275, -0.014196686446666718, 0.03732354938983917, 0.0035539420787245035, -0.05873306840658188, 0.006950461305677891, -0.01359561737626791, 0.030950304120779037, -0.07048731297254562, -0.0897597000002861, 0.014931327663362026, 0.013347556814551353, -0.04472719505429268, 0.009874711744487286, -0.0005918267415836453, 0.025836443528532982, -0.015293876640498638, -0.009640962816774845, 0.04728412628173828, 0.03854476660490036, -0.0002540233836043626, -0.013213986530900002, -0.010828790254890919, 0.0231650248169899, -0.012069092132151127, -0.06663283705711365, -0.015293876640498638, 0.043658629059791565, -0.0477420836687088, 0.06655651330947876, -0.009311805479228497, 0.02927112579345703, -0.011468022130429745, 0.005543195642530918, -0.044345565140247345, 0.040910881012678146, -0.024252673611044884, 0.008701195009052753, 0.06499182432889938, -0.006273065693676472, 0.011859194375574589, -0.004045292269438505, 0.020054727792739868, -0.014225308783352375, 0.011658838018774986, 0.011219962500035763, 0.06689997762441635, 0.013586076907813549, 0.004765621852129698, 0.02556930109858513, 0.05220717191696167, 0.06785405427217484, 0.017526419833302498, 0.036216817796230316, -0.04884881526231766, 0.05758817493915558, 0.019301006570458412, -0.012183581478893757, 0.007494286168366671, 0.029805410653352737, 0.0032271703239530325, 0.002654723124578595, 0.007589693646878004, -0.005199727602303028, 0.009307035245001316, 0.012670161202549934, -0.040109455585479736, 0.019472740590572357, 0.0032223998568952084, -0.03362172469496727, 0.012517509050667286, 0.01491224579513073, 0.035510797053575516, 0.02995806187391281, 0.0017411931185051799, 0.010933738201856613, 0.04007129371166229, 0.00728438887745142, -0.011983225122094154, 0.009779303334653378, 0.042857203632593155, 0.008882470428943634, 0.09624742716550827, -0.007203292101621628, 0.005514573305845261, -0.012145418673753738, -0.0040619890205562115, 0.040452923625707626, -0.08067686855792999, -0.03738079220056534, 0.028755923733115196, 0.036980077624320984, -0.017354685813188553, 0.040109455585479736, 0.014645103365182877, 0.04106353595852852, -0.016114383935928345, 0.002731049433350563, 0.023584818467497826, -0.023260431364178658, -0.020054727792739868, -0.01639106683433056, -0.04957391321659088, 0.03865925595164299, 0.019482281059026718, 0.015866324305534363, 0.037457119673490524, 0.044345565140247345, -0.028546025976538658, -0.009970119222998619, -0.004228952806442976, -0.02556930109858513, 0.011038687080144882, -0.032534074038267136, 0.03795323893427849, 0.01652463898062706, -0.03755252808332443, 0.026179911568760872, -0.017116166651248932, 0.0036493500228971243, 0.01313765998929739, -0.016219332814216614, -0.04487985000014305, 0.06125183403491974, 0.05644327774643898, -0.013547913171350956, -0.010552107356488705, -0.05094778910279274, -0.013385720551013947, -0.0033368892036378384, 0.043315161019563675, 0.04701698571443558, 0.0017459634691476822, -0.01915789395570755, 0.021772069856524467, 0.0394606851041317, 0.00018082767201121897, 0.04781841114163399, -0.014215768314898014, -0.051176767796278, -0.03192346543073654, -0.02087523601949215, 0.014702348038554192, -0.13051792979240417, -0.0007441811612807214, 0.02444348856806755, -0.031141119077801704, 0.04121618717908859, 0.02133319340646267, 0.02305053547024727, 0.025416649878025055, -0.0307404063642025, -0.009307035245001316, 0.0032987261656671762, 0.007208062335848808, 0.040567412972450256, 0.019787587225437164, -0.06785405427217484, -0.03486202657222748, -0.054191652685403824, -0.02879408746957779, -0.005791256204247475, -0.03369804844260216, -0.02638980932533741, -0.002809760859236121, 0.040109455585479736, 0.036789264529943466, -0.012450722977519035, 0.016476934775710106, 0.0027000419795513153, -0.08769889175891876, -0.06987670063972473, 0.0387546643614769, -0.019558606669306755, -0.03823946416378021, -0.05896204710006714, -0.02995806187391281, 0.012899139896035194, 0.08136380463838577, -0.014626022428274155, 0.016238413751125336, 0.029977144673466682, -0.005714929662644863, -0.06197693571448326, -0.03703732416033745, 0.020837072283029556, 0.050642482936382294, -0.021085133776068687, 0.015332040376961231, -0.0440402589738369, -0.040910881012678146, 0.005047074984759092, -0.004224182106554508, 0.06552610546350479, 0.021752987056970596, -0.0007376218563877046, -0.012899139896035194, 0.029652757570147514, -0.031961627304553986, -0.06663283705711365, -0.011172258295118809, 0.014397043734788895, 0.04896330460906029, -0.026771441102027893, 0.026427973061800003, 0.04255189746618271, -0.0172211155295372, -0.010084608569741249, -0.023775633424520493, 0.011964143253862858, 0.03556804358959198, 0.022897882387042046, 0.017803102731704712, 0.06136632338166237, -0.013223526999354362, -0.03432774171233177, -0.003546786494553089, 0.0030077320989221334, -0.05071881040930748, -0.040109455585479736, -0.011372614651918411, -0.04152149334549904, 0.003196162637323141, 0.04907779395580292, -0.018757181242108345, -0.05079513415694237, -0.06598406285047531, 0.025512056425213814, 0.02123778499662876, -0.05671042203903198, -0.006349391769617796, 0.03570161387324333, 0.04529964178800583, 0.06564059853553772, 0.029404696077108383, -0.06220591440796852, -0.04369679093360901, -0.005233120173215866, -0.06502998620271683, 0.026447053998708725, -0.024138184264302254, -0.009621880948543549, -0.02556930109858513, -0.04877248778939247, 0.01537020318210125, -0.014673725701868534, -0.017736317589879036, 0.011496644467115402, -0.01869993656873703, 0.02110421471297741, 0.04312434419989586, 0.01790805160999298, 0.08685930073261261, 0.009249790571630001, 0.0488869771361351, 0.014158523641526699, 0.048352696001529694, -0.054229818284511566, 0.026561543345451355, 0.010781086049973965, 0.042742714285850525, -0.005772174336016178, 0.007546760141849518, -0.03890731930732727, -0.04266638681292534, -0.03694191575050354, -0.009979660622775555, -0.011945061385631561, 0.006893216632306576, 0.024939609691500664, -0.013671943917870522, 0.033087439835071564, -0.0626257061958313, 0.04064374044537544, 0.01141077745705843, 0.05335206538438797, 0.0022230027243494987, 0.03177081048488617, -0.003875943599268794, 0.05220717191696167, -0.0394606851041317, 0.006454340647906065, 0.07132690399885178, 0.002169335726648569, -0.004784703254699707, -0.08014258742332458, -0.03600692003965378, -0.04335332289338112, 0.040681902319192886, 0.01650555618107319, -0.05022268742322922, -0.062015097588300705, 0.002523537492379546, 0.06117550656199455, 0.035319983959198, 0.0012701168889179826, -0.07907401770353317, -0.033774375915527344, 0.05968714505434036, 0.02950010448694229, -0.012546131387352943, -0.039308030158281326, 0.02602725848555565, 0.08212707191705704, -0.05335206538438797, -0.008171681314706802, -0.05701572448015213, -0.10868861526250839, -0.03335458040237427, 0.01555147860199213, 0.0033845931757241488, -0.002420973964035511, 0.040910881012678146, -0.028603270649909973, 0.021943803876638412, 0.05026084929704666, -0.02488236501812935, 0.013471587561070919, 0.006812119856476784, -0.03243866562843323, -0.03282029926776886, -0.005562277045100927, 0.0009522894979454577, -0.06319815665483475, 0.029328370466828346, -0.002833612961694598, 0.019997483119368553, -0.1052539274096489, 0.007298700045794249, 0.0004677965771406889, -0.07167036831378937, -0.01974942348897457, -0.029519185423851013, 0.058809392154216766, -0.008744128979742527, -0.03671293705701828, -0.020379114896059036, 0.014368421398103237, 0.029099391773343086, 0.053771860897541046, -0.04610107094049454, 0.05171104893088341, -0.020493604242801666, -0.023145942017436028, 0.01284189522266388, 0.054535120725631714, 0.05564185231924057, 0.009755452163517475, 0.009769762866199017, -0.04842901974916458, 0.014702348038554192, 0.0238710418343544, 0.041597820818424225, 0.06854099035263062, -0.059038370847702026, 0.024462571367621422, 0.07411281019449234, 0.020379114896059036, -0.0022206176072359085, -0.042513735592365265, -0.044689033180475235, 0.01696351356804371, -0.056290626525878906, 0.003914106637239456, 0.028775004670023918, -0.025893688201904297, -0.0417504720389843, -0.000028249665774637833, -0.0020977798849344254, 0.007770968601107597, -0.026332564651966095, 0.04190312325954437, -0.013958167284727097, -0.02179115079343319, -0.02350849285721779, 0.12135877460241318, -0.03325917199254036, -0.004200330004096031, 0.03785783052444458, -0.03661752864718437, 0.04369679093360901, 0.015971273183822632, -0.00003786498564295471, 0.0025068409740924835, -0.0017793562728911638, 0.03833487257361412, -0.025588383898139, 0.014969490468502045, -0.009206856600940228, 0.03741895407438278, 0.037228140980005264, 0.01249842718243599, -0.04232291877269745, 0.0440402589738369, 0.018165653571486473, -0.07476158440113068, -0.018967078998684883, 0.031141119077801704, -0.02892765775322914, -0.043200671672821045, -0.011487103998661041, -0.020627174526453018, 0.017230655997991562, -0.0049516670405864716, 0.030568672344088554, -0.056863073259592056, 0.0069981650449335575, 0.07197567820549011, 0.036770183593034744, -0.022859718650579453, -0.01905294507741928, 0.049497589468955994, 0.0043076639994978905, -0.01619071140885353, -0.011716082692146301, -0.007995177060365677, 0.058122456073760986, -0.049497589468955994, 0.017965296283364296, 0.008181222714483738, -0.04117802530527115, 0.03247682750225067, 0.018194274976849556, -0.046520862728357315, -0.0474749431014061, 0.06461019068956375, -0.023489410057663918, 0.015866324305534363, -0.026237156242132187, -0.010599811561405659, 0.07216649502515793, -0.012851436622440815, -0.03169448673725128, -0.022230027243494987, -0.04850534722208977, -0.004319590050727129, -0.011210421100258827, -0.018337387591600418, -0.021657580509781837, 0.035949673503637314, 0.022993288934230804, -0.04014762118458748, -0.017421472817659378, -0.036999162286520004, 0.021657580509781837, 0.05865674093365669, 0.008915862999856472, 0.046635352075099945, 0.023451248183846474, 0.02904214709997177, 0.039193540811538696, 0.041941288858652115, 0.025970013812184334, 0.016009435057640076, -0.009736370295286179, -0.02835521101951599, -0.029767246916890144, 0.040567412972450256, -0.011840113438665867, -0.045261479914188385, 0.01377689279615879, -0.04041476175189018, 0.0022683213464915752, 0.04003313183784485, -0.01870947703719139, -0.07163220643997192, -0.015761375427246094, -0.0043720644898712635, -0.08189809322357178, -0.007928391918540001, -0.007231914438307285, 0.031122038140892982, 0.010475780814886093, -0.017049381509423256, 0.019072027876973152, 0.013881840743124485, 0.02375655248761177, 0.0344422310590744, 0.06648018211126328, -0.037342630326747894, -0.016829943284392357, 0.042742714285850525, -0.013605157844722271, 0.033907946199178696, -0.025588383898139, -0.009340427815914154, -0.05556552857160568, -0.028851332142949104, 0.07052547484636307, -0.010924197733402252, 0.02179115079343319, 0.04896330460906029, 0.038487523794174194, -0.002075120573863387, 0.06815936416387558 ]
43,168
fast_poisson_solver.data
shuffle_epoch
null
def shuffle_epoch(self): if self.use_torch: self.indices = torch.randperm(self.indices.shape[0]) self.indices_bc = torch.randperm(self.indices_bc.shape[0]) else: self.indices = np.random.permutation(self.indices) self.indices_bc = np.random.permutation(self.indices_bc)
(self)
[ -0.04865848645567894, -0.02432924322783947, -0.03747694939374924, -0.007702265400439501, -0.011241375468671322, 0.04865848645567894, -0.03039873018860817, 0.0298687182366848, 0.014712096191942692, 0.011506381444633007, -0.01825975440442562, 0.00800146535038948, 0.01722537726163864, 0.09287171065807343, 0.02260242961347103, -0.020106246694922447, 0.028210295364260674, 0.06414850056171417, -0.05457409843802452, -0.042161568999290466, 0.002880869433283806, -0.018516212701797485, -0.04253770411014557, 0.001482109073549509, -0.031014228239655495, 0.0493081770837307, 0.005838676355779171, 0.0015163033967837691, -0.002308115130290389, 0.0200036633759737, -0.008830677717924118, -0.018704280257225037, 0.03805825114250183, 0.07550100982189178, -0.05857483297586441, -0.04250350967049599, -0.0059241619892418385, 0.053069550544023514, -0.009198266081511974, -0.012745924293994904, 0.09560725837945938, -0.07153446972370148, 0.02482505887746811, 0.02099529840052128, -0.05471087619662285, 0.026278316974639893, 0.029150638729333878, -0.007415888365358114, -0.03645111992955208, -0.017319411039352417, -0.019747206941246986, -0.027851255610585213, 0.02643219195306301, 0.06838859617710114, 0.022465653717517853, 0.008668254129588604, 0.017481833696365356, 0.025491848587989807, -0.02049948088824749, 0.022551139816641808, 0.005731819197535515, -0.045273248106241226, -0.030638089403510094, 0.04571777582168579, 0.06975636631250381, -0.06267814338207245, -0.09232459962368011, 0.02817610092461109, 0.03669048100709915, 0.02709897980093956, 0.04705135151743889, 0.03364718705415726, 0.08117726445198059, 0.007933077402412891, -0.018328143283724785, 0.011694449931383133, -0.028364170342683792, 0.05754900351166725, 0.0077065397053956985, -0.004868412856012583, -0.021097881719470024, 0.03280942887067795, -0.0030475666280835867, 0.0031245038844645023, -0.03390364721417427, -0.08138242363929749, 0.003819075645878911, 0.0165414921939373, -0.020448189228773117, -0.11140502244234085, -0.00035636869142763317, 0.0053599560633301735, -0.020550772547721863, -0.040759600698947906, -0.014088050462305546, 0.032587166875600815, -0.016062771901488304, -0.021747572347521782, -0.0075483908876776695, -0.048008792102336884, -0.02675703726708889, 0.0000454476939921733, 0.0020623435266315937, 0.017080051824450493, -0.02988581545650959, 0.013122061267495155, -0.0204823836684227, 0.0007848659879527986, -0.0993686243891716, -0.012745924293994904, -0.01235269010066986, 0.12378335744142532, 0.029988398775458336, 0.040588632225990295, -0.009993283078074455, -0.10682298243045807, 0.027936741709709167, -0.004936801735311747, -0.025594431906938553, 0.05474507063627243, 0.0413409061729908, 0.042811259627342224, -0.0327068455517292, 0.0043384013697505, -0.0597374364733696, 0.03840019553899765, 0.01825975440442562, 0.019200097769498825, -0.04277706518769264, -0.01182267814874649, 0.02031141333281994, -0.011506381444633007, -0.0204823836684227, 0.05700189247727394, 0.03007388487458229, 0.0008431031601503491, 0.008621237240731716, -0.001036514644511044, 0.008369054645299911, -0.0000362312639481388, 0.0023594065569341183, 0.028706112876534462, 0.08008304238319397, 0.06729437410831451, 0.07809977233409882, -0.0016456005396321416, -0.014036758802831173, 0.0008575288811698556, 0.024585699662566185, -0.04462355747818947, 0.09430786967277527, 0.0451364740729332, 0.0661659687757492, -0.010224094614386559, -0.046846188604831696, -0.008300665766000748, -0.06363558769226074, -0.022328875958919525, -0.025765402242541313, 0.02535507082939148, -0.041956402361392975, -0.03438236564397812, 0.015908896923065186, -0.006479819305241108, -0.03628014773130417, 0.0009975117864087224, 0.010831044055521488, -0.02607315219938755, -0.013540941290557384, 0.009429077617824078, 0.014575319364666939, -0.025953471660614014, -0.022311778739094734, -0.02973194234073162, 0.02730414643883705, 0.018020395189523697, -0.0513940304517746, -0.04192220792174339, 0.023029858246445656, 0.06989314407110214, -0.019029125571250916, -0.03383525833487511, 0.035904012620449066, -0.08117726445198059, 0.014925810508430004, 0.03877633437514305, 0.03386945277452469, -0.003581852652132511, 0.040930572897195816, -0.0008869146113283932, -0.00031095437589101493, 0.09629113972187042, -0.03193747252225876, 0.020584966987371445, -0.0015173719730228186, 0.012070586904883385, -0.07885205000638962, -0.029612261801958084, 0.026124443858861923, -0.01154912356287241, 0.0025602979585528374, -0.01146363839507103, 0.04431580752134323, -0.016285033896565437, -0.024790866300463676, 0.0033702754881232977, -0.0036587899085134268, -0.026346705853939056, 0.010369420982897282, 0.004928253125399351, 0.020584966987371445, -0.02279049903154373, 0.05200952664017677, 0.005573670379817486, 0.021337240934371948, -0.023765036836266518, -0.029595164582133293, 0.013934176415205002, 0.053445685654878616, 0.0062575563788414, -0.003457898274064064, 0.006518288049846888, -0.05382182449102402, -0.013173352926969528, -0.003917383961379528, -0.02260242961347103, 0.000491543032694608, -0.04985528439283371, -0.0900677815079689, 0.0084374425932765, 0.03075776994228363, -0.03857116773724556, -0.009249557740986347, 0.015122427605092525, 0.0009841546416282654, 0.029082249850034714, -0.01737925224006176, -0.02643219195306301, -0.011010563932359219, 0.03357879817485809, -0.07632166892290115, -0.005774561781436205, 0.032570067793130875, -0.03669048100709915, -0.014925810508430004, 0.07946754992008209, -0.008578494191169739, 0.013378518633544445, -0.04780362918972969, -0.003639555536210537, -0.018379434943199158, -0.026517678052186966, -0.006821762304753065, -0.008706723339855671, -0.00041166727896779776, -0.0074287112802267075, -0.01486597117036581, 0.011472187004983425, -0.013515296392142773, 0.01164315827190876, -0.054813459515571594, 0.007962997071444988, -0.06896989792585373, -0.029407095164060593, -0.024277951568365097, 0.00843316875398159, -0.016216645017266273, 0.08521218597888947, -0.010224094614386559, -0.046675216406583786, 0.0316639207303524, 0.0336642861366272, -0.06151553988456726, 0.005330035928636789, 0.04657263308763504, 0.009095682762563229, 0.03504915535449982, 0.016456006094813347, 0.011797032319009304, 0.05122305825352669, 0.05060755833983421, -0.008266471326351166, -0.005415522027760744, 0.02292727679014206, 0.01771264523267746, -0.03429688140749931, -0.011241375468671322, -0.011779935099184513, 0.004902607295662165, -0.03296330198645592, 0.008642608299851418, -0.026637356728315353, 0.038502778857946396, -0.016096964478492737, -0.0217133779078722, -0.036074984818696976, -0.03147584944963455, -0.003840446937829256, -0.03043292462825775, 0.043016426265239716, -0.014558222144842148, -0.029304511845111847, -0.017592966556549072, 0.02620992809534073, 0.05019722878932953, 0.01415643934160471, -0.04240093007683754, 0.012369787320494652, 0.04065702110528946, -0.018037492409348488, 0.035014960914850235, -0.010301032103598118, 0.0344165600836277, 0.04154607281088829, 0.010095866397023201, -0.03949441388249397, 0.03993893787264824, 0.009420529007911682, 0.03231361135840416, 0.07303901761770248, -0.06667888164520264, 0.03928924724459648, -0.03737436607480049, 0.02660316415131092, -0.004064847249537706, 0.012899798341095448, 0.03159553185105324, -0.020790133625268936, -0.08391280472278595, -0.002893692348152399, -0.02850094623863697, -0.05895096808671951, -0.03359589725732803, 0.06233620271086693, -0.04034927114844322, 0.027355438098311424, -0.007454356644302607, 0.012805764563381672, 0.07146608084440231, -0.03730597719550133, 0.005116321612149477, -0.03333944082260132, -0.06449044495820999, 0.04205898568034172, 0.049068816006183624, 0.05546315014362335, -0.006967088207602501, 0.019251389428973198, -0.047153934836387634, -0.017353605479002, 0.041101545095443726, 0.010224094614386559, 0.014105147682130337, 0.05471087619662285, 0.043187398463487625, 0.09813763201236725, 0.01138670090585947, 0.0031287781894207, -0.027030592784285545, -0.006902973633259535, 0.005911339074373245, -0.060900043696165085, 0.027338340878486633, 0.01093362644314766, 0.01631922833621502, 0.006133602000772953, -0.006244733463972807, -0.03805825114250183, 0.06876473128795624, 0.0024149722885340452, -0.06869634240865707, -0.014344507828354836, -0.013617878779768944, 0.044247422367334366, -0.004415338858962059, -0.05132564157247543, -0.09533370286226273, 0.03263845667243004, 0.06305428594350815, -0.010548940859735012, 0.015199365094304085, -0.02533797360956669, 0.0711241364479065, 0.03734017163515091, -0.0525224395096302, 0.01451547909528017, 0.0441790334880352, -0.0049538989551365376, -0.01138670090585947, -0.05488184839487076, -0.004919704515486956, 0.016225194558501244, 0.01613115891814232, -0.04585455358028412, -0.001736429170705378, 0.04971850663423538, -0.0004760487354360521, 0.07071380317211151, -0.07468034327030182, -0.03528851643204689, 0.016020027920603752, -0.004876961465924978, -0.024636991322040558, 0.021439824253320694, -0.017080051824450493, 0.025167003273963928, 0.029680650681257248, 0.01599438302218914, 0.020807228982448578, -0.010412163101136684, -0.0327068455517292, 0.05146241560578346, 0.06722598522901535, -0.024021493270993233, 0.06305428594350815, 0.013378518633544445, 0.017498930916190147, -0.01791781187057495, 0.05471087619662285, 0.0367930643260479, 0.01682359352707863, 0.06589241325855255, 0.022687915712594986, 0.03039873018860817, 0.045410025864839554, -0.009155523031949997, 0.016609879210591316, 0.016986018046736717, -0.04660682752728462, 0.023542772978544235, -0.06291750818490982, -0.05922452360391617, -0.0003427444025874138, 0.004723087418824434, 0.10100995749235153, 0.01302802748978138, 0.01619100011885166, 0.022465653717517853, -0.07044025510549545, 0.04052024334669113, 0.02639799751341343, -0.011275569908320904, 0.024893447756767273, -0.020550772547721863, 0.03077486716210842, 0.0023145265877246857, -0.027851255610585213, 0.01979849860072136, -0.01686633750796318, 0.01425902172923088, 0.03496366739273071, 0.045786164700984955, 0.023867620155215263, -0.037989865988492966, 0.012617696076631546, 0.01328448485583067, -0.033253952860832214, 0.003436526982113719, 0.0023230749648064375, -0.031869083642959595, 0.01873847469687462, -0.008236551657319069, -0.05248824506998062, -0.005911339074373245, 0.07030347734689713, -0.053958602249622345, -0.008907614275813103, 0.0016092690639197826, -0.011968003585934639, 0.015515662729740143, 0.014105147682130337, 0.011241375468671322, 0.05269341170787811, -0.027936741709709167, -0.07317579537630081, -0.036040790379047394, -0.016114061698317528, 0.026124443858861923, -0.021935641765594482, -0.003017646726220846, -0.031356170773506165, -0.027885450050234795, -0.01078830100595951, 0.01095072366297245, -0.030261952430009842, -0.00603956775739789, -0.028022225946187973, 0.03108261525630951, 0.018909446895122528, 0.0027889723423868418, 0.0077834767289459705, -0.06356719881296158, -0.00911277998238802, 0.0441790334880352, 0.0006662544910795987, -0.02691091224551201, -0.009164071641862392, 0.010369420982897282, -0.017473286017775536, 0.01260914746671915, 0.028706112876534462, 0.03651950880885124, 0.032399095594882965, -0.039357636123895645, -0.006112230475991964, 0.024927642196416855, -0.0011700860923156142, -0.06767051666975021, -0.04941076040267944, 0.028911277651786804, 0.01947365142405033, -0.03007388487458229, -0.017986200749874115, -0.02956097014248371, 0.06773890554904938, 0.04520485922694206, -0.03451914340257645, 0.012754472903907299, 0.011660255491733551, 0.00029519296367652714, -0.013361421413719654, 0.0330829843878746, 0.009523111395537853, 0.06452463567256927, 0.0032719667069613934, 0.05433473736047745, -0.006826036609709263, -0.007116687949746847, 0.03542529046535492, 0.04435000196099281, -0.05084691941738129, -0.028261587023735046, 0.031151004135608673, 0.06633693724870682, 0.012233009561896324, -0.030330341309309006, -0.0204823836684227, -0.027560602873563766, 0.033100079745054245, -0.008210905827581882, -0.05016303434967995, -0.02795383706688881, 0.04534163698554039, -0.07946754992008209, -0.057583197951316833, 0.0022632351610809565, 0.021593699231743813, 0.036929842084646225, -0.05495023727416992, 0.013327226974070072, -0.010061671957373619, -0.03405752032995224, 0.029851621016860008, -0.08603285253047943, 0.016806496307253838, -0.03332234174013138, -0.039015691727399826, -0.022157903760671616, -0.012959638610482216, 0.019524943083524704, -0.015019845217466354, -0.020738841965794563, 0.04226415231823921, -0.00991634652018547, 0.01043780893087387, 0.0029877268243581057, -0.030518410727381706, -0.011258472688496113, -0.022670818492770195, -0.021815961226820946, -0.034638822078704834, -0.03181779384613037, 0.026517678052186966, 0.017678450793027878, -0.024585699662566185, -0.036724675446748734, 0.025594431906938553, -0.055702511221170425, 0.03976796939969063, -0.015763571485877037, 0.0237992312759161, -0.002032423624768853, -0.007527019828557968, -0.01600293070077896, 0.011873969808220863, 0.03556206822395325, 0.03504915535449982, 0.010839592665433884, 0.046299077570438385, -0.03932344168424606, 0.004701715894043446, 0.06435366719961166, 0.013506747782230377, -0.028278684243559837, -0.0038853269070386887, -0.04670941084623337, 0.0007341087912209332, -0.044213227927684784, 0.022875985130667686, 0.00902729481458664, 0.04428161308169365, 0.0504365898668766, 0.05200952664017677, -0.008702448569238186, 0.0430506207048893, -0.03405752032995224, -0.0618232898414135, -0.03159553185105324, 0.018550407141447067, 0.05019722878932953, -0.040246687829494476, -0.0026799780316650867, -0.000590920215472579, -0.10832753032445908, 0.021268852055072784, -0.04534163698554039, -0.013429810293018818, -0.016370519995689392, 0.0409647673368454, 0.01808878406882286, -0.012703181244432926, 0.02243145927786827, -0.015618245117366314, 0.005163338966667652, -0.045991331338882446, -0.041956402361392975, 0.005663430318236351, -0.01146363839507103, 0.002404286526143551, 0.01302802748978138, 0.015609696507453918, -0.07953593879938126, 0.03359589725732803, -0.009506014175713062, 0.043187398463487625, -0.054847653955221176, -0.0300567876547575, 0.01718263514339924, 0.04882945492863655, -0.041614457964897156, 0.05471087619662285, 0.006129327695816755, 0.04181962460279465, -0.009959088638424873, -0.05416376516222954, -0.06490077823400497, 0.02937290072441101, 0.001070708967745304, -0.0031031323596835136, 0.003675886895507574, -0.008283568546175957, 0.046299077570438385, 0.014293216168880463, 0.03145875409245491, -0.027423826977610588, -0.0013506747782230377, -0.018328143283724785, 0.029287416487932205, 0.02241436205804348, -0.06849117577075958, 0.012549307197332382, 0.07974109798669815, 0.0008671460091136396, -0.03385235369205475, 0.006898699328303337, 0.04517066478729248, -0.0194394588470459, 0.03785308822989464, -0.02499603107571602, 0.021439824253320694, -0.08049337565898895, -0.009052940644323826, -0.028877083212137222, -0.010130060836672783, 0.011626061052083969, -0.014438541606068611, -0.017080051824450493, -0.041272517293691635, -0.015233559533953667, -0.002453440800309181, -0.04175123572349548, -0.021593699231743813, -0.03451914340257645, -0.0034856812562793493, -0.0017065091524273157, 0.03860536217689514, -0.02937290072441101, 0.0024085608310997486, 0.006308848038315773, -0.04291384294629097, 0.001070708967745304, 0.03429688140749931, 0.03458753228187561, -0.014600965194404125, 0.015575502067804337, 0.01928558386862278, 0.012361238710582256, -0.01580631360411644, -0.04164865240454674, -0.01704585738480091, -0.030706478282809258, -0.042640287429094315, -0.045957136899232864, 0.012882701121270657, -0.013968370854854584, 0.0262612197548151, -0.06042132154107094, 0.07214996963739395, -0.004314892925322056, 0.02903095819056034, 0.030518410727381706, 0.008398974314332008, -0.0016092690639197826, 0.057446420192718506, -0.048555903136730194, -0.026705745607614517, 0.02988581545650959, 0.011326860636472702, -0.040383465588092804, 0.001528057618997991, -0.037237588316202164, 0.00030748153221793473, 0.03159553185105324, 0.04175123572349548, 0.009437626227736473, -0.027526408433914185, 0.001845423481427133, -0.0010621603578329086, 0.010386518202722073, -0.038468584418296814, 0.04257189854979515, -0.030518410727381706, 0.03149294853210449, -0.011352506466209888, 0.0013410575920715928, -0.010719912126660347, 0.07057703286409378, 0.004825670272111893, -0.03826341778039932, -0.01579776592552662, -0.05419795960187912, -0.017832325771450996, -0.023696647956967354, 0.04643585532903671, 0.007847591303288937, 0.033989131450653076, 0.04766685143113136, -0.02328631654381752, 0.0396311916410923, -0.06059229373931885, 0.006287476513534784, 0.030843256041407585, -0.045239053666591644, 0.04363192245364189, -0.0035626182798296213, -0.03939183056354523, 0.05190694332122803, 0.0012053489917889237, -0.0262612197548151, -0.08603285253047943, -0.022995665669441223, -0.02537216804921627, -0.02328631654381752, 0.018516212701797485, -0.0300567876547575, -0.008710997179150581, 0.11968003958463669, -0.034826893359422684 ]
43,169
fast_poisson_solver.data
to_torch_tensors
null
def to_torch_tensors(self): self.out = torch.from_numpy(self.out).to(self.device).to(self.precision) self.x_grid = torch.from_numpy(self.x_grid).unsqueeze(1).to(self.device).to(self.precision) self.y_grid = torch.from_numpy(self.y_grid).unsqueeze(1).to(self.device).to(self.precision) self.bc = torch.from_numpy(self.bc).to(self.device).to(self.precision) self.x_bc = torch.from_numpy(self.x_bc).unsqueeze(1).to(self.device).to(self.precision) self.y_bc = torch.from_numpy(self.y_bc).unsqueeze(1).to(self.device).to(self.precision) self.indices = torch.from_numpy(self.indices).long().to(self.device) self.indices_bc = torch.from_numpy(self.indices_bc).long().to(self.device)
(self)
[ -0.07782325148582458, -0.06960740685462952, -0.008338205516338348, -0.009378296323120594, -0.01754169538617134, 0.04219796136021614, -0.042093079537153244, 0.009588061831891537, -0.026308173313736916, 0.0131366066634655, 0.024420278146862984, -0.009465698152780533, -0.015776164829730988, 0.04621848091483116, 0.01210525631904602, -0.009317114017903805, 0.008709666319191456, -0.05663686618208885, 0.020469682291150093, 0.03573017194867134, -0.020557085052132607, -0.0424426905810833, 0.011467217467725277, 0.05960855260491371, -0.07250917702913284, -0.013827086426317692, 0.02873796597123146, -0.028842847794294357, -0.01129241194576025, 0.024315396323800087, -0.08411623537540436, 0.024035707116127014, 0.06953748315572739, 0.02919245883822441, -0.00007866231317166239, -0.032706040889024734, 0.02116890251636505, 0.022357577458024025, -0.03541552275419235, -0.002366424538195133, 0.006341056432574987, -0.07796309143304825, -0.009684205055236816, 0.040275104343891144, -0.007451069075614214, 0.005432069767266512, -0.024297915399074554, -0.03649931401014328, -0.02006763033568859, -0.026570381596684456, 0.004929504822939634, -0.05177728459239006, 0.011082646436989307, 0.04017022252082825, -0.01961313746869564, 0.0012804477009922266, 0.045134689658880234, 0.019246045500040054, -0.08075997978448868, -0.003273226320743561, -0.054469283670186996, 0.013433774933218956, 0.04380616918206215, -0.006148770917207003, 0.029944121837615967, -0.004715368617326021, -0.03908643126487732, 0.0016661115223541856, 0.016073333099484444, 0.046428244560956955, -0.010418386198580265, -0.020434720441699028, 0.045204609632492065, -0.0009302911348640919, -0.006913543213158846, -0.0005293318536132574, 0.01812729425728321, 0.055028658360242844, -0.019193604588508606, -0.02622077241539955, -0.037303417921066284, 0.04069463908672333, -0.02200796827673912, 0.03429676964879036, 0.04230284318327904, -0.013442515395581722, -0.023441370576620102, 0.026954952627420425, -0.0701318234205246, -0.03268856182694435, -0.012393685057759285, -0.023196643218398094, -0.01786508597433567, 0.011318633332848549, 0.02316168136894703, 0.015898527577519417, -0.04419074207544327, -0.019578175619244576, -0.0497145839035511, -0.023388927802443504, -0.019770462065935135, 0.06530719995498657, -0.02665778435766697, 0.035625286400318146, 0.007232562638819218, -0.032583680003881454, -0.029279861599206924, -0.002569635631516576, 0.012778256088495255, -0.004706628620624542, -0.01630931906402111, 0.11921710520982742, 0.013014242984354496, -0.01851186528801918, 0.015548917464911938, -0.1023658886551857, -0.03344022482633591, -0.014438904821872711, -0.02555651217699051, 0.05450424551963806, 0.018843993544578552, 0.014080554246902466, 0.009133568964898586, 0.02737448550760746, -0.09047914296388626, 0.04562414065003395, 0.037443261593580246, 0.011668243445456028, -0.025381706655025482, -0.07460683584213257, -0.04387608915567398, -0.03441913425922394, -0.030136406421661377, 0.06614626944065094, 0.015129385516047478, 0.026517940685153008, 0.04184835031628609, -0.015085684135556221, 0.005331556778401136, 0.03462889790534973, -0.0006145493243820965, 0.013049203902482986, 0.0562872551381588, 0.028580641373991966, 0.005838491953909397, 0.019438331946730614, 0.056147411465644836, 0.040939364582300186, -0.014570008963346481, -0.09467446804046631, -0.013879528269171715, 0.0030743854586035013, 0.03656923770904541, -0.013066684827208519, -0.029996562749147415, 0.026552900671958923, 0.011091385968029499, -0.028265992179512978, 0.04803645238280296, 0.044435467571020126, -0.07859238982200623, -0.01903627999126911, -0.021728279069066048, 0.0037626808043569326, -0.010453347116708755, 0.02737448550760746, 0.018913917243480682, -0.0515325553715229, -0.03340526297688484, -0.020592045038938522, 0.006970355287194252, -0.031237678602337837, 0.017034761607646942, 0.06348922848701477, -0.03473378345370293, 0.008237692527472973, -0.009116088040173054, 0.011205010116100311, -0.01644042320549488, 0.06450309604406357, -0.015251749195158482, -0.04625344276428223, 0.020592045038938522, -0.009657984599471092, -0.0014541603159159422, -0.003791086608543992, 0.02931482344865799, -0.041009288281202316, 0.01966557838022709, -0.0032251549419015646, 0.05558803677558899, 0.04751203954219818, -0.01252478826791048, 0.010470828041434288, -0.0031399372965097427, 0.005108680110424757, -0.0009160882327705622, 0.010846659541130066, 0.0023882752284407616, 0.0055238427594304085, -0.024158071726560593, -0.06757967174053192, 0.05583276227116585, -0.0021916194818913937, -0.0314299650490284, -0.03573017194867134, -0.030206328257918358, 0.010645633563399315, 0.007236932870000601, 0.024088148027658463, 0.025119498372077942, -0.003517953446134925, -0.010767997242510319, 0.006646965630352497, 0.014543787576258183, 0.03901650756597519, -0.04964466020464897, 0.015260488726198673, -0.015321671031415462, -0.01695609837770462, 0.06544704735279083, -0.07250917702913284, -0.04912024363875389, -0.004020518157631159, -0.05786050111055374, 0.021693319082260132, -0.0015940044540911913, -0.014115515165030956, -0.005436439998447895, -0.04859583079814911, 0.03485614433884621, 0.004175657872110605, -0.10670106112957001, 0.041708506643772125, 0.052126895636320114, 0.07866231352090836, -0.03545048460364342, -0.023004356771707535, -0.005772939883172512, 0.028912771493196487, -0.05632221698760986, -0.028755446895956993, 0.006799919996410608, -0.02401822619140148, 0.04310694709420204, 0.027986302971839905, 0.008871360681951046, -0.006804290227591991, -0.025224382057785988, 0.0322340689599514, -0.01090784091502428, -0.03015388734638691, 0.010593191720545292, 0.0013372593093663454, -0.004509972874075174, -0.061566371470689774, -0.002471307758241892, -0.002300872700288892, 0.0295071080327034, -0.026448018848896027, 0.022147811949253082, -0.02200796827673912, -0.004492492415010929, 0.005383998621255159, 0.036149702966213226, -0.025469109416007996, -0.056007567793130875, 0.04576398804783821, -0.007368037011474371, 0.037513185292482376, 0.07236932963132858, 0.06726501882076263, -0.08145919442176819, -0.004898914135992527, 0.03642939031124115, -0.029786797240376472, 0.029419705271720886, 0.05670678988099098, -0.0515325553715229, 0.04537941515445709, -0.00300883362069726, -0.054014790803194046, -0.04866575077176094, -0.03618466481566429, 0.025346746668219566, -0.03695380687713623, -0.04621848091483116, -0.013381334021687508, 0.045169647783041, -0.05450424551963806, 0.018389500677585602, 0.04646320641040802, -0.00461048586294055, -0.03230398893356323, 0.02608092688024044, -0.03356258571147919, -0.07215956598520279, -0.0020408499985933304, 0.031010432168841362, 0.029279861599206924, 0.034524016082286835, 0.0008587302872911096, 0.027217160910367966, 0.03908643126487732, 0.015645060688257217, 0.027024874463677406, -0.011694463901221752, 0.0002996269322466105, 0.032006822526454926, -0.014360242523252964, 0.023598695173859596, -0.024822330102324486, 0.03628954663872719, 0.01903627999126911, 0.02316168136894703, -0.04576398804783821, 0.01200037356466055, 0.005952115170657635, 0.013809606432914734, 0.08439592272043228, -0.0027488109190016985, 0.05170736089348793, 0.02524186298251152, 0.08327717334032059, 0.021623395383358, -0.02069692872464657, 0.009133568964898586, -0.009990113787353039, -0.01954321563243866, -0.024682486429810524, 0.0057467189617455006, -0.036534275859594345, 0.022637266665697098, 0.05009915307164192, -0.004389794077724218, -0.003019758965820074, 0.003885044250637293, 0.022147811949253082, -0.007822530344128609, -0.02064448781311512, 0.04964466020464897, 0.026063447818160057, -0.009981373324990273, 0.043002065271139145, 0.01992778666317463, -0.004728479310870171, -0.025276822969317436, -0.0009324761922471225, -0.0004176204092800617, 0.07509628683328629, -0.02115142159163952, 0.014185437001287937, 0.009684205055236816, 0.07439707219600677, 0.024158071726560593, 0.04279229789972305, -0.016772553324699402, -0.034908588975667953, -0.042932141572237015, -0.017760202288627625, 0.012944321148097515, 0.022881994023919106, 0.019560694694519043, -0.01039216574281454, 0.016929877921938896, -0.02090669423341751, 0.019071241840720177, -0.04167354479432106, 0.028912771493196487, 0.09460454434156418, 0.0010805142810568213, 0.0038937844801694155, -0.035030949860811234, 0.061566371470689774, -0.019910305738449097, -0.009273412637412548, -0.08908069878816605, 0.03681396320462227, 0.008390646427869797, -0.01304046344012022, 0.002860249252989888, -0.01158958114683628, 0.024105628952383995, 0.018686668947339058, 0.031936898827552795, 0.01070681493729353, 0.04013526067137718, -0.0055981348268687725, -0.017681540921330452, -0.04184835031628609, -0.007245673332363367, 0.011624542064964771, -0.014290320686995983, -0.033807314932346344, -0.023843420669436455, -0.03176209330558777, 0.040799520909786224, 0.0661812275648117, -0.03887666389346123, -0.06464294344186783, -0.059119097888469696, -0.05411967262625694, -0.018616747111082077, 0.05132279172539711, -0.04926009103655815, -0.006249283906072378, 0.03382479399442673, 0.015164346434175968, 0.03758310526609421, -0.018109813332557678, -0.018022410571575165, 0.053805023431777954, 0.03489110618829727, 0.016274359077215195, -0.009963893331587315, 0.033422742038965225, -0.020032670348882675, -0.045973751693964005, 0.023843420669436455, 0.04544933885335922, -0.03422684594988823, 0.05275619402527809, 0.02742692641913891, 0.013381334021687508, -0.004357018042355776, -0.02704235538840294, -0.020085111260414124, 0.040345028042793274, -0.0010695889359340072, 0.009998854249715805, -0.03385975584387779, -0.043771207332611084, 0.01985786482691765, -0.045134689658880234, 0.04495988413691521, 0.013975671492516994, 0.05170736089348793, 0.021693319082260132, -0.04405089467763901, 0.032129187136888504, -0.00967546459287405, 0.003965891897678375, 0.02536422573029995, -0.03968076780438423, 0.00562872551381588, -0.0073549263179302216, -0.07852247357368469, -0.023860901594161987, -0.08075997978448868, 0.03968076780438423, 0.03027625009417534, 0.015391592867672443, 0.07027167081832886, -0.08341701328754425, 0.03053845837712288, -0.009238451719284058, -0.020224954932928085, -0.04544933885335922, -0.006157511379569769, 0.013425035402178764, 0.045169647783041, 0.019001320004463196, -0.0010652188211679459, -0.03628954663872719, 0.04593878984451294, -0.06149644777178764, 0.02886032871901989, -0.03337030112743378, -0.03176209330558777, -0.011440997011959553, 0.04905032366514206, 0.024752408266067505, 0.025154460221529007, -0.035625286400318146, 0.004411644767969847, 0.006642595399171114, 0.004177842754870653, 0.02660534344613552, -0.03877178207039833, -0.048176296055316925, -0.08411623537540436, -0.10914833098649979, 0.01440394390374422, 0.027968822047114372, -0.031674690544605255, 0.0405198335647583, 0.025731317698955536, 0.01682499423623085, 0.022235214710235596, 0.0017054426716640592, -0.0057336087338626385, 0.0012181733036413789, -0.0018267137929797173, -0.030451055616140366, -0.022340096533298492, 0.037443261593580246, 0.01478851493448019, 0.025906121358275414, -0.05747593194246292, 0.038981545716524124, 0.022881994023919106, -0.005012537352740765, 0.0027007395401597023, -0.014692372642457485, -0.015409073792397976, 0.032059263437986374, 0.042757339775562286, 0.02886032871901989, -0.05181224271655083, 0.0004654187068808824, -0.02478737011551857, -0.015103164128959179, -0.03221658617258072, -0.057755619287490845, -0.04174346849322319, 0.014596229419112206, -0.02179820090532303, -0.010164919309318066, -0.05404974892735481, -0.0034174404572695494, -0.007132049649953842, 0.08089981973171234, -0.010068776085972786, 0.02510201930999756, -0.018214695155620575, 0.086493581533432, -0.04198819398880005, 0.01999770849943161, 0.029594510793685913, 0.019718019291758537, -0.01851186528801918, -0.0023642396554350853, 0.015478995628654957, 0.016414202749729156, -0.023021837696433067, -0.016938619315624237, 0.02672770619392395, -0.002292132470756769, 0.04272237792611122, -0.02879040688276291, -0.029681913554668427, -0.013416294939815998, -0.023546252399683, -0.04258253425359726, 0.001969835488125682, 0.01129241194576025, -0.011100126430392265, 0.07432714849710464, 0.013468735851347446, 0.01603837125003338, -0.009334594942629337, -0.03538056090474129, 0.05667182803153992, -0.023738538846373558, 0.03448905423283577, 0.041323937475681305, 0.007149530574679375, -0.00954436045140028, -0.04058975353837013, 0.007992965169250965, 0.01300550252199173, -0.050763413310050964, 0.04237276688218117, 0.029105056077241898, -0.03448905423283577, 0.007888082414865494, -0.0026767037343233824, 0.03279344365000725, -0.04006534069776535, -0.009483179077506065, -0.008696556091308594, 0.013669761829078197, 0.004623596090823412, 0.013285190798342228, 0.005842861719429493, -0.07160018384456635, -0.010811697691679, -0.03877178207039833, 0.022829551249742508, -0.05065853148698807, 0.029297342523932457, 0.03649931401014328, -0.031936898827552795, -0.0014399574138224125, 0.06359411031007767, 0.02045220136642456, -0.025591472163796425, 0.02768913470208645, 0.05733608826994896, -0.05621733516454697, 0.043071988970041275, 0.061566371470689774, -0.03485614433884621, 0.016615228727459908, 0.05702143907546997, -0.0313250832259655, -0.08048028498888016, 0.020242435857653618, 0.07041151076555252, -0.02529430389404297, 0.0076783159747719765, 0.00847804918885231, 0.02323160320520401, 0.008950022980570793, 0.0022637266665697098, -0.09460454434156418, -0.022182771936058998, -0.022410020232200623, 0.020434720441699028, 0.01077673677355051, 0.02789890021085739, 0.012926840223371983, 0.012253840453922749, -0.041009288281202316, -0.023004356771707535, -0.06261520087718964, -0.04286222159862518, 0.030660822987556458, 0.007468549534678459, 0.05740600824356079, 0.023284045979380608, 0.03300321102142334, -0.02732204459607601, 0.012612191028892994, -0.007582173217087984, 0.0019130237633362412, 0.0069441343657672405, -0.05247650295495987, 0.04705754294991493, 0.027601731941103935, 0.044820040464401245, -0.050448764115571976, 0.024105628952383995, 0.009282153099775314, -0.02665778435766697, -0.04135889559984207, -0.023668617010116577, 0.014666151255369186, 0.05104310065507889, -0.02069692872464657, 0.047477077692747116, 0.03761806711554527, 0.012131476774811745, -0.032845888286828995, 0.010995243676006794, -0.11173544824123383, 0.005480141378939152, -0.04013526067137718, 0.007175751030445099, 0.015277969650924206, -0.008853880688548088, 0.09278657287359238, 0.01889643631875515, -0.005877823103219271, -0.029017653316259384, 0.06460797786712646, -0.06373395770788193, 0.03933115676045418, 0.0004165278805885464, 0.0004924588720314205, -0.005296595860272646, 0.026500459760427475, -0.019071241840720177, -0.03333533927798271, 0.023091759532690048, 0.01759413816034794, -0.037303417921066284, 0.06044761836528778, -0.029944121837615967, 0.014290320686995983, -0.029996562749147415, -0.014762294478714466, -0.026115888729691505, -0.011467217467725277, 0.017559176310896873, -0.00016469921683892608, 0.014325281605124474, -0.018861474469304085, -0.02924489974975586, -0.034401651471853256, -0.01668515056371689, 0.03978564962744713, -0.020941656082868576, 0.059119097888469696, -0.0012247285339981318, -0.026692746207118034, -0.008976244367659092, 0.012192659080028534, -0.014325281605124474, -0.03835224732756615, 0.012472347356379032, 0.01135359425097704, 0.03915635123848915, -0.017882566899061203, 0.04492492228746414, 0.009037425741553307, 0.011467217467725277, -0.021308746188879013, -0.02296939492225647, -0.004151622299104929, 0.005515102297067642, -0.048176296055316925, -0.07810293883085251, -0.007647724822163582, 0.05289603769779205, -0.006240543443709612, 0.05009915307164192, -0.012315022759139538, -0.039645805954933167, 0.01420291792601347, 0.03356258571147919, 0.05702143907546997, 0.014543787576258183, -0.05377006158232689, -0.03849209100008011, 0.01870414987206459, 0.017008541151881218, 0.06359411031007767, -0.008696556091308594, 0.005432069767266512, -0.0014847512356936932, -0.01915864460170269, 0.05551811307668686, 0.03366747125983238, -0.03660419583320618, 0.015811124816536903, -0.0016562787350267172, 0.011598321609199047, -0.0170260202139616, -0.042687416076660156, 0.023738538846373558, -0.0020921991672366858, 0.034209366887807846, -0.03462889790534973, -0.023004356771707535, -0.027776537463068962, 0.0405198335647583, -0.05111302435398102, -0.05565795674920082, 0.008172140456736088, -0.015749942511320114, -0.004315502010285854, 0.015243008732795715, 0.015828605741262436, 0.036534275859594345, 0.015190566889941692, 0.021710798144340515, -0.05058860778808594, 0.007966744713485241, -0.0032754114363342524, 0.07747364044189453, 0.07432714849710464, -0.03545048460364342, -0.043456558138132095, 0.0985201820731163, -0.03559032827615738, 0.044435467571020126, -0.012533528730273247, -0.09886978566646576, -0.1275378316640854, -0.03207674250006676, 0.01747177354991436, -0.04495988413691521, 0.041184090077877045, -0.07369785010814667, 0.01580238528549671, 0.08048028498888016, -0.029524588957428932 ]
43,170
matplotlib.cm
ScalarMappable
A mixin class to map scalar data to RGBA. The ScalarMappable applies data normalization before returning RGBA colors from the given colormap.
class ScalarMappable: """ A mixin class to map scalar data to RGBA. The ScalarMappable applies data normalization before returning RGBA colors from the given colormap. """ def __init__(self, norm=None, cmap=None): """ Parameters ---------- norm : `.Normalize` (or subclass thereof) or str or None The normalizing object which scales data, typically into the interval ``[0, 1]``. If a `str`, a `.Normalize` subclass is dynamically generated based on the scale with the corresponding name. If *None*, *norm* defaults to a *colors.Normalize* object which initializes its scaling based on the first data processed. cmap : str or `~matplotlib.colors.Colormap` The colormap used to map normalized data values to RGBA colors. """ self._A = None self._norm = None # So that the setter knows we're initializing. self.set_norm(norm) # The Normalize instance of this ScalarMappable. self.cmap = None # So that the setter knows we're initializing. self.set_cmap(cmap) # The Colormap instance of this ScalarMappable. #: The last colorbar associated with this ScalarMappable. May be None. self.colorbar = None self.callbacks = cbook.CallbackRegistry(signals=["changed"]) def _scale_norm(self, norm, vmin, vmax): """ Helper for initial scaling. Used by public functions that create a ScalarMappable and support parameters *vmin*, *vmax* and *norm*. This makes sure that a *norm* will take precedence over *vmin*, *vmax*. Note that this method does not set the norm. """ if vmin is not None or vmax is not None: self.set_clim(vmin, vmax) if isinstance(norm, colors.Normalize): raise ValueError( "Passing a Normalize instance simultaneously with " "vmin/vmax is not supported. Please pass vmin/vmax " "directly to the norm when creating it.") # always resolve the autoscaling so we have concrete limits # rather than deferring to draw time. self.autoscale_None() def to_rgba(self, x, alpha=None, bytes=False, norm=True): """ Return a normalized RGBA array corresponding to *x*. In the normal case, *x* is a 1D or 2D sequence of scalars, and the corresponding `~numpy.ndarray` of RGBA values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already RGB or RGBA, such as might have been read from an image file. If *x* is an `~numpy.ndarray` with 3 dimensions, and the last dimension is either 3 or 4, then it will be treated as an RGB or RGBA array, and no mapping will be done. The array can be `~numpy.uint8`, or it can be floats with values in the 0-1 range; otherwise a ValueError will be raised. If it is a masked array, any masked elements will be set to 0 alpha. If the last dimension is 3, the *alpha* kwarg (defaulting to 1) will be used to fill in the transparency. If the last dimension is 4, the *alpha* kwarg is ignored; it does not replace the preexisting alpha. A ValueError will be raised if the third dimension is other than 3 or 4. In either case, if *bytes* is *False* (default), the RGBA array will be floats in the 0-1 range; if it is *True*, the returned RGBA array will be `~numpy.uint8` in the 0 to 255 range. If norm is False, no normalization of the input data is performed, and it is assumed to be in the range (0-1). """ # First check for special case, image input: try: if x.ndim == 3: if x.shape[2] == 3: if alpha is None: alpha = 1 if x.dtype == np.uint8: alpha = np.uint8(alpha * 255) m, n = x.shape[:2] xx = np.empty(shape=(m, n, 4), dtype=x.dtype) xx[:, :, :3] = x xx[:, :, 3] = alpha elif x.shape[2] == 4: xx = x else: raise ValueError("Third dimension must be 3 or 4") if xx.dtype.kind == 'f': if norm and (xx.max() > 1 or xx.min() < 0): raise ValueError("Floating point image RGB values " "must be in the 0..1 range.") if bytes: xx = (xx * 255).astype(np.uint8) elif xx.dtype == np.uint8: if not bytes: xx = xx.astype(np.float32) / 255 else: raise ValueError("Image RGB array must be uint8 or " "floating point; found %s" % xx.dtype) # Account for any masked entries in the original array # If any of R, G, B, or A are masked for an entry, we set alpha to 0 if np.ma.is_masked(x): xx[np.any(np.ma.getmaskarray(x), axis=2), 3] = 0 return xx except AttributeError: # e.g., x is not an ndarray; so try mapping it pass # This is the normal case, mapping a scalar array: x = ma.asarray(x) if norm: x = self.norm(x) rgba = self.cmap(x, alpha=alpha, bytes=bytes) return rgba def set_array(self, A): """ Set the value array from array-like *A*. Parameters ---------- A : array-like or None The values that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the value array *A*. """ if A is None: self._A = None return A = cbook.safe_masked_invalid(A, copy=True) if not np.can_cast(A.dtype, float, "same_kind"): raise TypeError(f"Image data of dtype {A.dtype} cannot be " "converted to float") self._A = A def get_array(self): """ Return the array of values, that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the array. """ return self._A def get_cmap(self): """Return the `.Colormap` instance.""" return self.cmap def get_clim(self): """ Return the values (min, max) that are mapped to the colormap limits. """ return self.norm.vmin, self.norm.vmax def set_clim(self, vmin=None, vmax=None): """ Set the norm limits for image scaling. Parameters ---------- vmin, vmax : float The limits. The limits may also be passed as a tuple (*vmin*, *vmax*) as a single positional argument. .. ACCEPTS: (vmin: float, vmax: float) """ # If the norm's limits are updated self.changed() will be called # through the callbacks attached to the norm if vmax is None: try: vmin, vmax = vmin except (TypeError, ValueError): pass if vmin is not None: self.norm.vmin = colors._sanitize_extrema(vmin) if vmax is not None: self.norm.vmax = colors._sanitize_extrema(vmax) def get_alpha(self): """ Returns ------- float Always returns 1. """ # This method is intended to be overridden by Artist sub-classes return 1. def set_cmap(self, cmap): """ Set the colormap for luminance data. Parameters ---------- cmap : `.Colormap` or str or None """ in_init = sel
(norm=None, cmap=None)
[ -0.0058901384472846985, -0.07129554450511932, -0.042210012674331665, 0.03126589208841324, 0.03380611166357994, 0.014002970419824123, -0.05474177002906799, -0.020544040948152542, 0.03291703760623932, -0.020808646455407143, -0.0004151012981310487, -0.011219311505556107, 0.06672314554452896, 0.0312870591878891, 0.010616008192300797, 0.0051968698389828205, 0.003942635376006365, 0.07493653148412704, 0.04877224937081337, -0.0029609454795718193, 0.021740062162280083, -0.04889926314353943, 0.04690942168235779, 0.044115178287029266, -0.004487724509090185, 0.007192001678049564, 0.023581722751259804, -0.00868438184261322, -0.0037415344268083572, 0.0319221168756485, -0.044538550078868866, -0.03770111873745918, 0.003154108300805092, 0.027370885014533997, 0.0349915511906147, -0.04695175960659981, 0.0352032333612442, 0.0010319649009034038, -0.01957028917968273, -0.0021591882687062025, 0.012298905290663242, -0.005305358208715916, 0.030503826215863228, -0.03105420619249344, 0.06274347007274628, 0.027963604778051376, -0.029953444376587868, 0.03505505621433258, -0.04872991517186165, -0.05359867215156555, -0.01778155006468296, -0.06049960479140282, 0.01769687607884407, 0.043204933404922485, 0.042083002626895905, 0.11659616231918335, 0.005826632957905531, 0.08179512619972229, 0.012817533686757088, -0.03397545963525772, -0.01642676442861557, -0.019221007823944092, 0.010298481211066246, -0.06922103464603424, -0.003781225299462676, -0.043480124324560165, 0.00798582099378109, -0.0036595065612345934, 0.021718893200159073, 0.013283241540193558, -0.040262509137392044, 0.021909410133957863, 0.03712956979870796, -0.03370027244091034, 0.005069858394563198, 0.006398182827979326, -0.020395861938595772, 0.020057164132595062, 0.013230320066213608, -0.0030218050815165043, 0.04657072573900223, 0.07243864983320236, 0.022163432091474533, -0.003180568804964423, 0.027984771877527237, -0.07929724454879761, -0.044538550078868866, 0.04944964498281479, -0.026841672137379646, 0.042125336825847626, -0.01607748493552208, -0.025190528482198715, 0.00849386490881443, 0.08712959289550781, -0.03279002383351326, -0.011325153522193432, 0.009494077414274216, 0.029572410508990288, 0.058509767055511475, -0.0182895939797163, -0.0016180680831894279, -0.026629988104104996, 0.022099927067756653, 0.010578963905572891, -0.026016101241111755, 0.03655802085995674, -0.039500441402196884, 0.028450479730963707, -0.003233490278944373, 0.019834894686937332, 0.011981377378106117, 0.03571128100156784, -0.01869179680943489, -0.04868757724761963, -0.03575361520051956, -0.03617698699235916, -0.03190094605088234, -0.019665546715259552, -0.010250851511955261, -0.023518215864896774, -0.0373200848698616, -0.0022610616870224476, 0.03918291628360748, 0.03397545963525772, 0.023137183859944344, 0.024343788623809814, -0.01665961928665638, 0.03979680314660072, -0.03549959510564804, 0.00007652913336642087, -0.060033898800611496, -0.0006621775100938976, -0.06477564573287964, -0.025656236335635185, 0.0691363587975502, -0.06583407521247864, -0.00033323868410661817, 0.030397983267903328, -0.029868770390748978, 0.05067741870880127, 0.03486453741788864, 0.023602889850735664, -0.006969732698053122, -0.007049114443361759, 0.0057260822504758835, -0.0188717283308506, 0.11219311505556107, 0.0005437661311589181, -0.025000011548399925, 0.014204071834683418, -0.026905179023742676, 0.024661315605044365, 0.0019647025037556887, 0.022269275039434433, 0.059695202857255936, -0.00825571920722723, -0.0008024189155548811, -0.0388018824160099, 0.026566483080387115, 0.04856056720018387, -0.055630847811698914, -0.007260799407958984, -0.021972915157675743, -0.06960206478834152, -0.0032255519181489944, 0.0325571708381176, -0.008917235769331455, -0.022353949025273323, -0.028640996664762497, -0.00415696669369936, -0.010922951623797417, -0.08425067365169525, -0.03638867288827896, 0.039225250482559204, 0.0331922248005867, 0.06418292969465256, -0.04631670191884041, 0.0036595065612345934, -0.007107327692210674, 0.00864733662456274, -0.00032678889692761004, 0.001882674521766603, -0.028492817655205727, 0.011198142543435097, 0.0023179519921541214, -0.0034451752435415983, 0.040580037981271744, -0.005297420080751181, 0.0026923699770122766, 0.027307379990816116, 0.04944964498281479, -0.011134637519717216, 0.011018210090696812, 0.021909410133957863, 0.0362616591155529, -0.05177817866206169, -0.005466768052428961, -0.03759527578949928, 0.058594439178705215, -0.010324941948056221, -0.044496212154626846, -0.07658767700195312, -0.01698772981762886, 0.003027097089216113, -0.006752755027264357, -0.07480952143669128, 0.028217626735568047, -0.012224815785884857, -0.013823037967085838, -0.027497896924614906, -0.03803981468081474, -0.026397135108709335, -0.007742383051663637, 0.010769479908049107, 0.019633794203400612, -0.06845896691083908, 0.0388018824160099, -0.013484342023730278, 0.007991112768650055, 0.04805252328515053, 0.011473333463072777, 0.0027519066352397203, 0.03154108300805092, 0.03109654411673546, -0.002008362440392375, 0.014638026244938374, 0.03875954449176788, 0.03397545963525772, 0.0625741183757782, 0.022629139944911003, 0.03249366581439972, -0.010113256052136421, -0.03569011017680168, 0.0312870591878891, 0.0188717283308506, -0.01797206699848175, 0.08048268407583237, 0.05067741870880127, -0.010118548758327961, 0.024237945675849915, 0.006726294755935669, 0.020078333094716072, 0.042210012674331665, 0.025127023458480835, 0.01801440306007862, -0.03217613697052002, 0.041320934891700745, 0.07303136587142944, -0.05486878380179405, 0.0037283040583133698, -0.07171891629695892, 0.00831393338739872, 0.03780696168541908, 0.039648622274398804, -0.040241342037916183, -0.05317530035972595, -0.03475869446992874, 0.008964864537119865, 0.043861158192157745, -0.0374259278178215, -0.021454285830259323, -0.01840602047741413, 0.04762915149331093, 0.05148182064294815, 0.03268418088555336, -0.026333628222346306, 0.03179510310292244, 0.04462322220206261, -0.014468677341938019, 0.08039800822734833, 0.00893840380012989, 0.025402214378118515, -0.014712115749716759, 0.007170833181589842, -0.01851186342537403, 0.039987318217754364, 0.04606268182396889, -0.04860290139913559, 0.08797633647918701, 0.026079606264829636, 0.00047662228462286294, -0.011621513403952122, -0.05127013474702835, -0.0050672125071287155, 0.04479257017374039, -0.03321339562535286, -0.0077317990362644196, -0.005387386307120323, 0.008779640309512615, -0.008096955716609955, 0.00931943766772747, -0.020321771502494812, -0.03782812878489494, -0.00947290938347578, 0.023412374779582024, -0.039817970246076584, -0.06219308823347092, -0.006461688317358494, 0.006318800617009401, -0.05325997620820999, 0.015421261079609394, -0.06354787200689316, 0.08890774846076965, -0.0038950061425566673, -0.04724811762571335, -0.011229895055294037, -0.03370027244091034, -0.00419136555865407, 0.005810756701976061, 0.020332355052232742, 0.0304403193295002, 0.026185449212789536, -0.056308239698410034, 0.00870025809854269, 0.014680363237857819, -0.010827694088220596, 0.04618969187140465, -0.003569540334865451, 0.039500441402196884, 0.06295515596866608, -0.03243016079068184, -0.04936496913433075, -0.055630847811698914, -0.014923800714313984, 0.0328746996819973, -0.024026261642575264, 0.042739223688840866, 0.03765878081321716, 0.06812027096748352, 0.01758044958114624, -0.05038105696439743, 0.003275827271863818, -0.029106704518198967, 0.027878930792212486, 0.020120671018958092, -0.10186287760734558, -0.03454701229929924, -0.027222706004977226, -0.003638338064774871, -0.059610530734062195, -0.06519901752471924, 0.023878080770373344, -0.01597164198756218, -0.007398394867777824, -0.00014048945740796626, -0.022036420181393623, -0.0000508126977365464, -0.0084832813590765, -0.01607748493552208, -0.027497896924614906, 0.042379360646009445, -0.029508905485272408, -0.03090602718293667, 0.074851855635643, -0.024618979543447495, -0.009875110350549221, -0.0015042873565107584, -0.07044880837202072, 0.0370025597512722, 0.01644793339073658, 0.04754447564482689, -0.0012403425062075257, -0.0026685555931180716, -0.024449631571769714, 0.0005483967834152281, 0.03325573354959488, -0.058298081159591675, -0.075910285115242, 0.05110078677535057, -0.039754465222358704, 0.07133788615465164, 0.015347170643508434, -0.029212545603513718, -0.042972080409526825, -0.007890562526881695, -0.06646912544965744, 0.0004250240162946284, 0.04741746559739113, -0.025084685534238815, 0.0033366866409778595, 0.031117713078856468, 0.001508256420493126, -0.043056752532720566, -0.004344836808741093, -0.001832399284467101, -0.0024687775876373053, 0.026481809094548225, 0.003910882398486137, -0.06176971644163132, 0.019580872729420662, -0.025804415345191956, -0.022099927067756653, 0.043289605528116226, -0.06312450021505356, -0.006943271961063147, 0.01705123670399189, 0.0003396884712856263, 0.07066049426794052, 0.01719941571354866, -0.03096953220665455, -0.05368334427475929, -0.01869179680943489, 0.04991535097360611, -0.024830663576722145, -0.001475180615670979, -0.03143524006009102, 0.01917867176234722, 0.01750635914504528, 0.0015466243494302034, 0.060626618564128876, 0.027201537042856216, 0.01541067659854889, -0.005831925198435783, -0.03279002383351326, 0.0025375753175467253, -0.043945830315351486, -0.041469115763902664, -0.12159193307161331, -0.01860712096095085, 0.03357325866818428, -0.0319221168756485, -0.01657494530081749, -0.012129557318985462, 0.03884422034025192, -0.0025402214378118515, -0.03958511725068092, -0.012658770196139812, 0.059102483093738556, -0.024618979543447495, -0.024830663576722145, -0.0008030803874135017, -0.015198991633951664, 0.0067210025154054165, -0.08192214369773865, -0.022734981030225754, 0.012256568297743797, -0.013357331044971943, 0.04915328323841095, 0.038442015647888184, -0.013558431528508663, 0.03761644661426544, -0.000402863253839314, -0.003341978881508112, -0.020925074815750122, -0.0059589361771941185, 0.0036753828171640635, -0.028768006712198257, 0.05080442875623703, -0.03370027244091034, 0.0041754888370633125, -0.007223754655569792, 0.01947503164410591, -0.011780276894569397, -0.007451316341757774, 0.05431840196251869, -0.01798265054821968, -0.022650307044386864, -0.043480124324560165, 0.03666386380791664, 0.008853729814291, 0.005498521029949188, 0.0007812503608874977, -0.045427627861499786, -0.04813719540834427, -0.00870555080473423, 0.025550393387675285, 0.04479257017374039, -0.009679301641881466, -0.0322396419942379, 0.021613050252199173, 0.0019316266989335418, -0.023306531831622124, 0.011208727024495602, -0.039055902510881424, -0.011420411989092827, 0.03418714553117752, -0.010674222372472286, 0.020290018990635872, -0.021951746195554733, -0.028831513598561287, 0.023179519921541214, -0.007615372072905302, 0.027624906972050667, -0.05173584446310997, 0.0015281019732356071, 0.05448774993419647, 0.062785804271698, 0.007784720044583082, 0.023475879803299904, 0.03685437887907028, -0.08103306591510773, -0.022248106077313423, -0.00014784882660023868, 0.07015244662761688, -0.04589333385229111, -0.027709582820534706, 0.06562238931655884, -0.04610501974821091, 0.03452584147453308, 0.0033737316261976957, 0.029868770390748978, -0.023835744708776474, -0.029064366593956947, -0.01683955080807209, 0.04923795908689499, -0.04610501974821091, -0.03962745517492294, 0.022925497964024544, -0.0005434353952296078, -0.03274768590927124, -0.03814565762877464, 0.0028445187490433455, 0.03253600373864174, -0.08712959289550781, -0.0050248755142092705, -0.024894170463085175, -0.03156225010752678, -0.038547858595848083, -0.020184176042675972, -0.022629139944911003, -0.03283236175775528, 0.061304010450839996, -0.010303772985935211, -0.008234551176428795, -0.03107537515461445, 0.06155803054571152, 0.0030403274577111006, -0.027434391900897026, -0.027074526995420456, -0.0051545328460633755, -0.04716344550251961, -0.03060966730117798, 0.00971105508506298, 0.019348019734025, 0.0008976772078312933, 0.03569011017680168, -0.001263495534658432, -0.041066911071538925, 0.019930154085159302, -0.023497048765420914, 0.030927196145057678, 0.024005092680454254, 0.07849284261465073, -0.0004098091449122876, -0.013696026988327503, -0.007059698458760977, -0.03613464906811714, 0.013717195950448513, 0.003127647563815117, -0.025402214378118515, 0.01796148158609867, 0.020353524014353752, 0.0030985409393906593, -0.002825996372848749, -0.01959145814180374, 0.023793406784534454, 0.004225763957947493, -0.04606268182396889, -0.03410247340798378, -0.007340181618928909, -0.013336162082850933, 0.026037270203232765, -0.012722275219857693, -0.00908129196614027, -0.071888267993927, -0.005673161242157221, 0.00912892073392868, 0.04546996206045151, 0.003535141469910741, -0.057874709367752075, 0.012457668781280518, 0.010039166547358036, -0.05397970601916313, 0.00021896179532632232, -0.008149877190589905, 0.03863253444433212, -0.0034028382506221533, -0.10237092524766922, 0.00914479698985815, -0.08192214369773865, -0.005440307315438986, -0.004680887330323458, 0.0025375753175467253, -0.058425091207027435, 0.019919568672776222, -0.002976821968331933, -0.01852244697511196, 0.07154957205057144, -0.029466567561030388, -0.04712110757827759, -0.00940411165356636, 0.025994932278990746, -0.03253600373864174, -0.05122779682278633, -0.011896703392267227, 0.006038317922502756, -0.029212545603513718, 0.026100775226950645, 0.012224815785884857, 0.01950678415596485, 0.010039166547358036, -0.005741958972066641, -0.058425091207027435, 0.004942847415804863, 0.005927183199673891, -0.057281993329524994, 0.09864526242017746, -0.03490687534213066, 0.022565633058547974, -0.05237089842557907, -0.04792550951242447, 0.042866237461566925, -0.022586802020668983, -0.012806949205696583, 0.027307379990816116, -0.08196447789669037, -0.05643525347113609, 0.06820494681596756, 0.0342506505548954, 0.11049962788820267, 0.013759532943367958, 0.002126112347468734, -0.006128284148871899, 0.044496212154626846, 0.004805251955986023, -0.05207454040646553, 0.027582570910453796, 0.021433118730783463, -0.0023126599844545126, -0.04813719540834427, 0.009890987537801266, 0.04894160106778145, 0.023116014897823334, -0.059398844838142395, 0.006445812061429024, -0.020427614450454712, 0.029466567561030388, 0.025783248245716095, 0.024047428742051125, 0.05313296616077423, 0.03158342093229294, -0.03355209156870842, 0.0342506505548954, 0.022015253081917763, 0.026693493127822876, 0.04762915149331093, 0.00908129196614027, -0.014320498332381248, 0.04936496913433075, -0.01653260737657547, -0.004553875885903835, 0.006398182827979326, -0.0051968698389828205, 0.00853091012686491, -0.028005940839648247, 0.021845903247594833, -0.013272657059133053, -0.006959148216992617, -0.04496191814541817, -0.014235824346542358, -0.06104998663067818, 0.034674022346735, 0.01660669781267643, 0.01692422479391098, 0.05042339488863945, -0.05237089842557907, 0.0323454849421978, 0.01880822330713272, -0.015071980655193329, 0.06820494681596756, -0.05220155045390129, -0.0323454849421978, -0.057197317481040955, 0.002773075131699443, 0.0304403193295002, -0.01593988947570324, 0.026905179023742676, 0.0195597056299448, 0.04724811762571335, 0.0004964677500538528, 0.04987301304936409, 0.022692644968628883, -0.0634208619594574, 0.09602037072181702, 0.06888233870267868, 0.01750635914504528, 0.01597164198756218, -0.043988168239593506, 0.015188407152891159, 0.011706187389791012, 0.014426340349018574, 0.03151991218328476, 0.029530074447393417, -0.025889089331030846, -0.042612213641405106, 0.01597164198756218, -0.0961897149682045, 0.0050751506350934505, 0.020046580582857132, -0.010330233722925186, 0.03744709864258766, -0.029741758480668068, -0.06316684186458588, 0.05110078677535057, 0.011991961859166622, 0.024132102727890015, -0.014733283780515194, 0.01640559732913971, 0.03465285524725914, -0.0158022940158844, -0.009292976930737495, 0.08213382214307785, 0.028746839612722397, -0.03585945814847946, -0.020332355052232742, -0.020829815417528152, -0.056858621537685394, -0.012944544665515423, 0.012150725349783897, 0.03024980239570141, 0.03063083626329899, 0.059314168989658356, 0.03778579458594322, 0.01624683290719986, -0.029699422419071198, -0.0029953443445265293, -0.01645851880311966, -0.027222706004977226, -0.013854791410267353, -0.004114629700779915, 0.021348444744944572, 0.023327700793743134, -0.005651992745697498, 0.09813722223043442, -0.008694966323673725, -0.00880080834031105, 0.0010028582764789462, -0.011208727024495602, -0.01848011091351509, -0.01662786677479744, -0.014987306669354439, -0.08060969412326813, -0.009684594348073006, 0.0032202599104493856, -0.010795940645039082, 0.042569875717163086, 0.027392053976655006, 0.03378494456410408, 0.000626124907284975, 0.00451153889298439, 0.023306531831622124, 0.027603739872574806, -0.06583407521247864, 0.040770553052425385, 0.043395448476076126, -0.06265879422426224, 0.010436076670885086, 0.0018535677809268236, 0.039606284350156784, -0.03649451583623886, -0.028069445863366127, -0.003992910496890545, -0.03780696168541908, 0.00866850558668375, 0.06536836177110672, 0.059187158942222595, -0.014648609794676304, 0.035414919257164 ]
43,171
matplotlib.cm
__init__
Parameters ---------- norm : `.Normalize` (or subclass thereof) or str or None The normalizing object which scales data, typically into the interval ``[0, 1]``. If a `str`, a `.Normalize` subclass is dynamically generated based on the scale with the corresponding name. If *None*, *norm* defaults to a *colors.Normalize* object which initializes its scaling based on the first data processed. cmap : str or `~matplotlib.colors.Colormap` The colormap used to map normalized data values to RGBA colors.
def __init__(self, norm=None, cmap=None): """ Parameters ---------- norm : `.Normalize` (or subclass thereof) or str or None The normalizing object which scales data, typically into the interval ``[0, 1]``. If a `str`, a `.Normalize` subclass is dynamically generated based on the scale with the corresponding name. If *None*, *norm* defaults to a *colors.Normalize* object which initializes its scaling based on the first data processed. cmap : str or `~matplotlib.colors.Colormap` The colormap used to map normalized data values to RGBA colors. """ self._A = None self._norm = None # So that the setter knows we're initializing. self.set_norm(norm) # The Normalize instance of this ScalarMappable. self.cmap = None # So that the setter knows we're initializing. self.set_cmap(cmap) # The Colormap instance of this ScalarMappable. #: The last colorbar associated with this ScalarMappable. May be None. self.colorbar = None self.callbacks = cbook.CallbackRegistry(signals=["changed"])
(self, norm=None, cmap=None)
[ -0.004493608605116606, -0.012257687747478485, -0.027514036744832993, 0.02209540270268917, 0.006961805280297995, 0.008496208116412163, -0.03584365174174309, -0.03237151727080345, 0.025620145723223686, 0.010267348028719425, -0.02691781148314476, 0.03468627482652664, 0.025585073977708817, 0.03798304870724678, -0.014388315379619598, 0.01816733181476593, 0.015186205506324768, 0.025462321937084198, 0.028794167563319206, 0.01827254705131054, 0.02218308299779892, -0.02302481234073639, 0.015247581526637077, 0.02300727553665638, -0.015300189144909382, -0.012994200922548771, -0.03857927396893501, -0.031985726207494736, -0.0041669998317956924, 0.01741328090429306, -0.042296912521123886, -0.024918703362345695, 0.002801381517201662, 0.02758418209850788, 0.0850146934390068, -0.055764585733413696, 0.02214801125228405, -0.01661539264023304, -0.002693973248824477, 0.016019167378544807, 0.05088957026600838, -0.005471242591738701, -0.012257687747478485, -0.023112492635846138, 0.09048593789339066, 0.039280716329813004, -0.012134935706853867, 0.03221369534730911, -0.04426094889640808, -0.06607577204704285, -0.04850466921925545, -0.031266748905181885, 0.02362103760242462, 0.035300035029649734, 0.015002076514065266, 0.10212986171245575, 0.023480748757719994, 0.07182759791612625, -0.015238813124597073, 0.004458536393940449, -0.016019167378544807, -0.0011091541964560747, -0.010600532405078411, -0.07842114567756653, 0.006229675840586424, -0.06691750138998032, 0.011705302633345127, 0.02374378964304924, 0.03270470350980759, 0.005322186276316643, -0.00913627352565527, 0.0039193034172058105, -0.012476888485252857, -0.015712285414338112, 0.008167407475411892, -0.0153791019693017, -0.049451615661382675, 0.01967542991042137, 0.009811410680413246, 0.026286514475941658, 0.03861434757709503, 0.026409266516566277, 0.01587011106312275, -0.03885985165834427, -0.013879770413041115, -0.0763869658112526, -0.024690736085176468, 0.027391284704208374, -0.018570659682154655, 0.04222676903009415, -0.019237028434872627, -0.0230423491448164, 0.021025704219937325, 0.06018366664648056, -0.00649271672591567, 0.0204470157623291, 0.02055223099887371, 0.02444523200392723, 0.07996431738138199, -0.032792381942272186, 0.009486994706094265, -0.05071420967578888, 0.04278792068362236, 0.01388853881508112, -0.04899567738175392, 0.03412512317299843, -0.011635158210992813, 0.020096294581890106, -0.03984186798334122, 0.04138503968715668, 0.0236736461520195, 0.045628760010004044, 0.004430040717124939, -0.0024725808762013912, -0.06172683835029602, -0.015458013862371445, 0.002362980507314205, -0.018588196486234665, 0.0236736461520195, -0.02619883418083191, -0.04780322685837746, 0.009995539672672749, 0.026602163910865784, -0.011424725875258446, -0.004822409246116877, 0.041700687259435654, -0.016168223693966866, 0.012520727701485157, -0.06253349781036377, 0.019552677869796753, 0.012766232714056969, -0.03878970816731453, -0.03310803323984146, -0.013379993848502636, 0.08010460436344147, -0.08508483320474625, 0.004307288210839033, 0.02621637098491192, -0.03798304870724678, 0.10093741118907928, 0.05699210986495018, 0.0299515463411808, -0.024813488125801086, -0.0119245033711195, 0.022358443588018417, 0.027373747900128365, 0.0364048071205616, 0.027443893253803253, -0.022814380005002022, -0.01265224814414978, -0.05765847861766815, 0.02463812753558159, 0.03400237113237381, 0.04566383361816406, 0.06284914165735245, -0.03566829115152359, -0.0020341798663139343, -0.06926733255386353, 0.020938023924827576, 0.03480902686715126, -0.029653433710336685, -0.0012439624406397343, -0.002165700076147914, -0.08585642278194427, -0.026602163910865784, 0.04198126494884491, -0.003741751192137599, -0.03619437292218208, -0.04264763370156288, -0.005756203085184097, -0.03230137377977371, -0.11061730235815048, -0.04422587901353836, 0.05295882374048233, 0.03861434757709503, 0.024953776970505714, -0.012538264505565166, 0.04836438223719597, -0.008535664528608322, -0.02225322648882866, 0.028636343777179718, 0.005677290726453066, -0.00754926260560751, -0.008163023740053177, -0.01261717639863491, -0.02207786589860916, 0.019131813198328018, 0.01832515560090542, 0.005054761655628681, 0.014142811298370361, 0.07035456597805023, 0.0011135381646454334, -0.01967542991042137, 0.018746020272374153, 0.05758833512663841, -0.027093172073364258, 0.009522066451609135, -0.03724653646349907, 0.026532018557190895, -0.001362330629490316, 0.004664584994316101, -0.043243858963251114, -0.002415588591247797, 0.019500069320201874, 0.03340614587068558, -0.02991647459566593, 0.013099417090415955, 0.028776630759239197, -0.024357551708817482, -0.03808826580643654, -0.036825671792030334, -0.03230137377977371, -0.0020034918561577797, 0.008969681337475777, -0.008513743989169598, -0.054116200655698776, 0.014546140097081661, -0.05117014795541763, 0.012529496103525162, 0.027093172073364258, 0.07337076216936111, -0.0007485694368369877, 0.05159101262688637, 0.030249658972024918, -0.030460091307759285, 0.029513144865632057, 0.028057653456926346, 0.004528680816292763, 0.047347292304039, 0.02056976780295372, -0.018728483468294144, -0.03149471804499626, -0.013152025640010834, 0.0017678514122962952, -0.002522996859624982, -0.02925010398030281, 0.05800919979810715, 0.0844535380601883, -0.06256856769323349, 0.04745250567793846, -0.020745128393173218, 0.0277069341391325, 0.01811472326517105, 0.011231829412281513, 0.013686873950064182, -0.03084588423371315, 0.04541832581162453, 0.05302896723151207, -0.04373486712574959, -0.016282208263874054, -0.06667199730873108, -0.011275669559836388, 0.009828946553170681, 0.02218308299779892, 0.021113384515047073, -0.05330954119563103, -0.0676189437508583, 0.010942485183477402, 0.007825454697012901, -0.012012182734906673, -0.03875463455915451, -0.005528234876692295, 0.040929101407527924, 0.0808761864900589, 0.011731606908142567, -0.014072666876018047, 0.007303758058696985, 0.05520343407988548, -0.0091012017801404, 0.0711962953209877, 0.01825501210987568, 0.016255903989076614, 0.01342383399605751, -0.0013941146899014711, -0.02463812753558159, 0.02463812753558159, 0.0173957459628582, -0.07842114567756653, 0.06737343966960907, -0.00008295365842059255, 0.028285622596740723, -0.017045024782419205, -0.020745128393173218, 0.001612219144590199, 0.016369886696338654, -0.02305988408625126, 0.004660200793296099, -0.013195865787565708, -0.00013878126628696918, 0.005401098635047674, -0.020113831385970116, -0.02618129923939705, -0.015554461628198624, 0.009907859377563, 0.03629959002137184, -0.08220892399549484, 0.005063529592007399, 0.001599067123606801, -0.05001276731491089, -0.03195065259933472, 0.02784722112119198, -0.08648771792650223, 0.0330904945731163, 0.03885985165834427, -0.0313895009458065, -0.011889430694282055, -0.0020977479871362448, 0.004572520963847637, 0.023410605266690254, 0.020236583426594734, 0.04348936304450035, 0.08929348737001419, -0.05555415526032448, 0.03412512317299843, -0.010293652303516865, 0.04994262382388115, 0.030688058584928513, -0.0523625984787941, 0.028040118515491486, 0.07421249151229858, -0.05481764301657677, -0.06863603740930557, -0.036790598183870316, -0.06288421899080276, -0.014028826728463173, -0.011705302633345127, 0.018816163763403893, 0.033669184893369675, 0.05222230777144432, 0.016054239124059677, -0.04348936304450035, -0.00475226528942585, 0.0043862005695700645, -0.007067021448165178, 0.005304650403559208, -0.10016582161188126, -0.02777707763016224, -0.004307288210839033, -0.018027042970061302, -0.09707948565483093, -0.033669184893369675, 0.020850343629717827, 0.003822855418547988, -0.010881109163165092, -0.03533510863780975, -0.008960912935435772, -0.015668446198105812, -0.031968191266059875, -0.010758357122540474, -0.0428580678999424, 0.010495316237211227, 0.013686873950064182, -0.030617915093898773, 0.07575566321611404, -0.0013963066739961505, 0.035370178520679474, 0.010872340761125088, -0.05001276731491089, 0.007746542803943157, 0.0033055422827601433, 0.06712793558835983, -0.023936687037348747, -0.03082834742963314, -0.05134550854563713, 0.003675991203635931, 0.04755772277712822, -0.05071420967578888, -0.05457213893532753, 0.035948868840932846, -0.013204633258283138, 0.02376132644712925, -0.026602163910865784, -0.03400237113237381, -0.005370410159230232, -0.009776338934898376, -0.020201511681079865, -0.030442554503679276, 0.017632482573390007, 0.006966189481317997, -0.059868019074201584, 0.047171931713819504, -0.029004599899053574, -0.03549293428659439, -0.013914843089878559, -0.02619883418083191, -0.02917996048927307, 0.008772401139140129, 0.04177083075046539, -0.024988848716020584, 0.032897599041461945, 0.0020133559592068195, -0.035229891538619995, 0.024866096675395966, -0.07287975400686264, -0.021744681522250175, 0.00613761181011796, 0.03189804404973984, 0.04215662553906441, 0.018360227346420288, -0.01969296671450138, -0.020745128393173218, -0.01469519641250372, 0.051029857248067856, -0.0032836224418133497, -0.022340906783938408, -0.053519975394010544, -0.009057361632585526, -0.007956975139677525, 0.0054274024441838264, 0.03885985165834427, 0.04664584994316101, 0.016054239124059677, 0.022726699709892273, -0.024234797805547714, -0.007062637712806463, -0.0618671290576458, -0.02693534828722477, -0.12920549511909485, -0.007316910196095705, 0.002928517758846283, -0.04583919420838356, 0.03154732659459114, 0.0049495454877614975, 0.023393068462610245, 0.04177083075046539, -0.034423235803842545, -0.007426510099321604, -0.006488332524895668, 0.009811410680413246, -0.030635451897978783, -0.03812333568930626, -0.013195865787565708, -0.03475641831755638, -0.04601455107331276, -0.03503699600696564, 0.024901168420910835, -0.03473888337612152, 0.05783383920788765, 0.0349668525159359, 0.009022288955748081, 0.02379639819264412, -0.021516714245080948, -0.003377878572791815, -0.04036794975399971, -0.027496501803398132, 0.004394968505948782, -0.035159748047590256, 0.016150686889886856, 0.00003435281541896984, -0.021639466285705566, 0.012748696841299534, 0.02048208750784397, -0.011968343518674374, 0.001527827000245452, 0.06176191195845604, -0.002422164659947157, -0.05215216428041458, -0.07687797397375107, 0.05288867652416229, -0.0029855098109692335, -0.0036518790293484926, -0.026584627106785774, -0.0381934829056263, -0.05481764301657677, -0.013669338077306747, 0.04131489619612694, 0.053344614803791046, 0.02526942454278469, -0.031985726207494736, 0.0004153847985435277, 0.0070889415219426155, 0.019587749615311623, 0.023252781480550766, -0.0318279005587101, -0.0412447527050972, 0.01302927266806364, -0.025760434567928314, -0.02374378964304924, -0.01818486675620079, -0.0021887163165956736, 0.013537818565964699, -0.00473911315202713, 0.04829423874616623, 0.004480456467717886, -0.010267348028719425, 0.06453260779380798, 0.03822855278849602, -0.026742450892925262, 0.011880663223564625, 0.05453706532716751, -0.05366026237607002, 0.034475840628147125, 0.013090649619698524, 0.07266932725906372, -0.013616730459034443, 0.001947595737874508, 0.08389238268136978, -0.03473888337612152, 0.029934009537100792, 0.002498884918168187, 0.025848113000392914, -0.02449783869087696, -0.04205140843987465, -0.01271362416446209, 0.037527114152908325, -0.05639588460326195, -0.06828531622886658, -0.01904413290321827, -0.028233014047145844, -0.043910227715969086, 0.031056316569447517, -0.04275285080075264, 0.008053423836827278, -0.02683013118803501, -0.0145724443718791, -0.03005676157772541, -0.036124229431152344, -0.037527114152908325, -0.024322478100657463, -0.01821993850171566, -0.021183528006076813, 0.04419080540537834, -0.025883186608552933, -0.03321324661374092, -0.04857481271028519, 0.045523542910814285, 0.012134935706853867, -0.017045024782419205, -0.005751818884164095, 0.014817948453128338, -0.006519020535051823, -0.039245642721652985, -0.010276115499436855, 0.0441206619143486, -0.011082773096859455, 0.08312080055475235, 0.0009809219045564532, -0.015159901231527328, -0.012047255411744118, -0.04243720322847366, 0.015624606050550938, 0.023340461775660515, 0.1294860690832138, -0.0016341391019523144, 0.04885539039969444, 0.01063560415059328, -0.03159993141889572, 0.0051512098871171474, 0.0069574215449392796, -0.0035115908831357956, 0.03384454548358917, 0.025041455402970314, -0.0346161313354969, -0.04047316685318947, -0.02625144273042679, 0.032108478248119354, 0.0009294098126702011, -0.050328418612480164, 0.004629512783139944, 0.008123567327857018, 0.007755310740321875, 0.042261842638254166, 0.045523542910814285, 0.006343660410493612, -0.037527114152908325, 0.017106400802731514, -0.006085003726184368, 0.017220385372638702, -0.00004695684037869796, -0.031407035887241364, 0.008456752635538578, 0.004484840668737888, -0.043068498373031616, 0.0011650501983240247, -0.01103016547858715, 0.0412447527050972, 0.04127982258796692, -0.0677943080663681, -0.019482534378767014, -0.05751819163560867, 0.01731683313846588, 0.01460751611739397, -0.003930263686925173, -0.06074482202529907, 0.022603947669267654, 0.002584372879937291, -0.06302450597286224, 0.054256487637758255, -0.016212062910199165, -0.06256856769323349, -0.017685089260339737, 0.02053469605743885, -0.05867556855082512, -0.04924118146300316, 0.014879324473440647, -0.03145964443683624, -0.010986325331032276, 0.005243273917585611, -0.0010247619356960058, 0.05316925421357155, 0.0031542940996587276, 0.03151225298643112, -0.06860096752643585, 0.06362073123455048, -0.007658862974494696, -0.0740722045302391, 0.07435278594493866, 0.0028079573530703783, 0.008193711750209332, -0.002424356760457158, -0.0316525399684906, 0.022586410865187645, -0.011223061941564083, -0.013090649619698524, 0.028829239308834076, -0.08838161081075668, -0.04850466921925545, 0.004379624500870705, 0.04057838395237923, 0.10774139314889908, 0.021516714245080948, -0.032880064100027084, -0.02058730460703373, 0.05285360664129257, -0.021902505308389664, -0.03533510863780975, 0.04341921955347061, 0.002895637648180127, -0.0009705098927952349, -0.012888984754681587, 0.017746467143297195, 0.02456798404455185, -0.00393245555460453, -0.12099863588809967, 0.023182636126875877, 0.03643987700343132, -0.0068083652295172215, 0.04661077633500099, 0.04689135402441025, 0.06996877491474152, 0.029074743390083313, -0.012196311727166176, 0.05474749580025673, 0.02839083783328533, 0.02149917744100094, -0.00030167459044605494, -0.012932824902236462, -0.0007650094921700656, 0.03822855278849602, -0.010828500613570213, -0.0022906444501131773, -0.0005567690823227167, 0.002935093594714999, 0.023480748757719994, -0.0075667984783649445, -0.004756649024784565, 0.0004523748648352921, -0.027250995859503746, -0.015370333567261696, 0.005826347041875124, -0.07309018820524216, 0.016080543398857117, 0.0408940315246582, 0.032774847000837326, 0.06067467853426933, -0.06077989190816879, 0.016203295439481735, -0.00003116756124654785, -0.039982158690690994, 0.011372118256986141, -0.029460536316037178, -0.006453260313719511, -0.06446246057748795, -0.017255457118153572, -0.024199726060032845, 0.01655401661992073, 0.020710056647658348, -0.016229599714279175, 0.050328418612480164, 0.013695642352104187, 0.05302896723151207, 0.030705595389008522, -0.062112633138895035, 0.06099032610654831, 0.049451615661382675, 0.02597086690366268, 0.0018511476228013635, -0.028355766087770462, 0.015273885801434517, 0.007615022826939821, 0.016974881291389465, 0.012187543325126171, 0.01031995564699173, -0.040753740817308426, -0.043138641864061356, 0.02693534828722477, -0.0869787260890007, -0.05001276731491089, 0.046400345861911774, 0.0022994123864918947, 0.06625113636255264, 0.010267348028719425, -0.047171931713819504, 0.04818902164697647, 0.023480748757719994, 0.013239705935120583, 0.01897398941218853, 0.015291421674191952, 0.06449753046035767, 0.031038779765367508, 0.034318018704652786, 0.08627728372812271, 0.021008169278502464, -0.02227076329290867, -0.01383593026548624, 0.0027575413696467876, -0.055729515850543976, 0.014134042896330357, -0.02067498303949833, -0.024831023067235947, 0.02767186053097248, -0.0062559801153838634, 0.01271362416446209, 0.028671415522694588, 0.03321324661374092, -0.005164362024515867, 0.0029855098109692335, -0.015273885801434517, 0.000055005606554914266, -0.040087372064590454, 0.010021843016147614, -0.006580396555364132, -0.03584365174174309, 0.0728096142411232, -0.013239705935120583, 0.030652986839413643, 0.0002852345642168075, -0.001473026815801859, 0.01586134172976017, 0.02446276694536209, -0.019377317279577255, -0.054116200655698776, 0.01986832544207573, 0.0019497877219691873, -0.002779461443424225, 0.02379639819264412, -0.006751372944563627, 0.020131366327404976, 0.025602608919143677, -0.00572113087400794, 0.029618361964821815, 0.05601009353995323, -0.05155593901872635, 0.040052302181720734, 0.015405405312776566, -0.095045305788517, 0.03735175356268883, 0.011573782190680504, 0.007886831648647785, -0.04671599343419075, -0.01024981215596199, -0.03323078528046608, -0.005414250306785107, -0.004721577279269695, 0.06947776675224304, 0.07968373596668243, 0.01888630911707878, 0.014844252727925777 ]
43,172
matplotlib.cm
_scale_norm
Helper for initial scaling. Used by public functions that create a ScalarMappable and support parameters *vmin*, *vmax* and *norm*. This makes sure that a *norm* will take precedence over *vmin*, *vmax*. Note that this method does not set the norm.
def _scale_norm(self, norm, vmin, vmax): """ Helper for initial scaling. Used by public functions that create a ScalarMappable and support parameters *vmin*, *vmax* and *norm*. This makes sure that a *norm* will take precedence over *vmin*, *vmax*. Note that this method does not set the norm. """ if vmin is not None or vmax is not None: self.set_clim(vmin, vmax) if isinstance(norm, colors.Normalize): raise ValueError( "Passing a Normalize instance simultaneously with " "vmin/vmax is not supported. Please pass vmin/vmax " "directly to the norm when creating it.") # always resolve the autoscaling so we have concrete limits # rather than deferring to draw time. self.autoscale_None()
(self, norm, vmin, vmax)
[ 0.009542946703732014, -0.028368577361106873, 0.007391445804387331, 0.01495639979839325, -0.015303416177630424, 0.01266609225422144, -0.0033573820255696774, -0.021306795999407768, 0.018999138846993446, 0.030121009796857834, -0.028628839179873466, 0.032203108072280884, 0.05545319244265556, 0.01740286499261856, 0.001292635453864932, 0.04334232583642006, 0.018530666828155518, 0.013707141391932964, 0.017073199152946472, 0.0047150831669569016, 0.05725767835974693, 0.02430848777294159, 0.030121009796857834, -0.007864255458116531, -0.019554365426301956, 0.04035798832774162, -0.021515006199479103, -0.025176027789711952, -0.0017665295163169503, 0.0032272508833557367, -0.0019422065233811736, 0.04525091499090195, 0.06510024517774582, 0.029062610119581223, 0.0514972098171711, -0.06051963195204735, 0.014939049258828163, 0.001930277794599533, -0.07675999402999878, -0.00976850651204586, 0.009863936342298985, -0.013967403210699558, 0.01434912160038948, 0.022712212055921555, 0.08383911848068237, 0.0239788219332695, -0.010427838191390038, 0.042613591998815536, -0.05524498596787453, -0.07089541852474213, -0.059200968593358994, -0.014028131030499935, 0.03699193149805069, 0.03799827769398689, -0.014279717579483986, 0.07197116315364838, 0.0030819380190223455, 0.08494957536458969, -0.010636047460138798, -0.03138761967420578, -0.012839600443840027, -0.02300717681646347, -0.08099358528852463, -0.05777820199728012, 0.01898178830742836, -0.03949044644832611, -0.028784995898604393, 0.05385692045092583, 0.029704589396715164, 0.030676234513521194, -0.062428221106529236, 0.009759831242263317, -0.01289165299385786, -0.006311357952654362, -0.0017665295163169503, 0.03411169722676277, -0.003691385267302394, 0.043030012398958206, 0.02253870479762554, -0.025818007066845894, 0.03976805880665779, 0.026737600564956665, 0.010792205110192299, -0.04309941455721855, -0.02625177800655365, -0.06319165974855423, -0.07006257772445679, 0.018131598830223083, -0.005799508653581142, -0.011321404948830605, -0.03605498746037483, 0.013117213733494282, 0.03135291486978531, 0.08668465167284012, -0.026182373985648155, 0.044522181153297424, -0.02824712172150612, -0.010714125819504261, 0.030121009796857834, -0.041780754923820496, 0.008710107766091824, -0.003702229354530573, 0.06798048317432404, 0.004949319176375866, -0.007009727880358696, -0.006046758033335209, -0.005161866545677185, -0.019797276705503464, -0.03640200197696686, 0.07627417147159576, -0.010410486720502377, 0.0378594696521759, -0.019085893407464027, -0.016474595293402672, -0.07040959596633911, -0.027709245681762695, -0.02708461694419384, -0.03383408114314079, 0.04726361110806465, -0.0016125410329550505, -0.0548979677259922, 0.016838962212204933, 0.06194239854812622, -0.0633651614189148, 0.0025982840452343225, 0.02949637919664383, -0.02625177800655365, 0.022573405876755714, -0.06149127706885338, 0.044834498316049576, 0.012397155165672302, -0.021185340359807014, -0.026373233646154404, 0.029062610119581223, 0.06926444172859192, -0.0800219401717186, -0.03163053095340729, 0.09258393198251724, -0.0004286192706786096, 0.10153695195913315, 0.0283338762819767, 0.03138761967420578, -0.0161536056548357, -0.006879596970975399, 0.010167575441300869, 0.022000828757882118, 0.06863980740308762, 0.013490255922079086, 0.009005071595311165, 0.025158677250146866, -0.032619524747133255, 0.02888910099864006, 0.06232411414384842, 0.011173922568559647, 0.029826045036315918, -0.0009824896696954966, -0.0022317480761557817, -0.09612349420785904, 0.04198896512389183, 0.05059496685862541, -0.03360852226614952, -0.014774216338992119, 0.005309348460286856, -0.09619289636611938, -0.01898178830742836, 0.04792294278740883, 0.010167575441300869, -0.01851331628859043, -0.0161536056548357, 0.042197175323963165, -0.0005460083484649658, -0.08029955625534058, -0.03751245513558388, 0.014140911400318146, 0.06079724431037903, 0.007261314895004034, 0.011382132768630981, -0.004281312692910433, -0.03619379177689552, 0.021914074197411537, 0.019085893407464027, -0.0253668874502182, 0.02980869449675083, -0.03213370218873024, -0.021775268018245697, 0.002364048035815358, -0.01842656172811985, 0.011451535858213902, -0.044938601553440094, -0.035482410341501236, 0.04684719070792198, -0.0239788219332695, -0.041884858161211014, -0.013559659011662006, 0.02783070132136345, -0.009282683953642845, -0.009213280864059925, -0.036922525614500046, 0.06794577836990356, -0.03726954385638237, -0.034892480820417404, -0.02769189514219761, 0.015485599637031555, 0.004771473351866007, 0.042613591998815536, -0.04098261892795563, 0.005821197293698788, 0.017836634069681168, 0.022694861516356468, -0.03994156792759895, -0.05444684624671936, -0.01119994930922985, -0.003984180279076099, 0.03449341282248497, -0.01695174351334572, -0.023996172472834587, 0.037477754056453705, -0.040219180285930634, -0.01354230847209692, 0.04851286858320236, 0.03779006749391556, -0.022243740037083626, 0.04750652238726616, 0.003641501534730196, -0.02078627236187458, 0.02911466173827648, 0.009542946703732014, -0.014834944158792496, 0.05639013648033142, 0.010809555649757385, -0.025314833968877792, -0.03633259981870651, -0.030398622155189514, 0.050629667937755585, -0.032931841909885406, -0.016604727134108543, 0.0705484002828598, 0.07103422284126282, 0.024742256850004196, 0.021983478218317032, -0.04264829680323601, 0.03496188670396805, -0.04958862066268921, 0.006259305402636528, 0.0024876727256923914, -0.011486236937344074, 0.006294006947427988, 0.036089688539505005, -0.0177325289696455, 0.016596050933003426, -0.0786338821053505, -0.01758504845201969, -0.010774853639304638, 0.012588013894855976, 0.0382411889731884, -0.029045259580016136, -0.11423774063587189, 0.017333460971713066, 0.002084266161546111, 0.005222594365477562, -0.029236117377877235, -0.020768921822309494, -0.0005855899071320891, 0.07537192851305008, 0.025609798729419708, -0.05003974214196205, -0.008189583197236061, 0.027067266404628754, -0.01772385463118553, 0.058264024555683136, 0.06277523934841156, 0.03185608983039856, -0.022469300776720047, 0.009395464323461056, 0.016917040571570396, 0.05462035536766052, -0.013637738302350044, -0.06378158181905746, 0.05968679115176201, 0.004179376643151045, 0.048686377704143524, -0.028316523879766464, -0.05614722520112991, -0.015615730546414852, 0.05472445860505104, -0.019641118124127388, 0.012483908794820309, -0.03640200197696686, -0.03612438961863518, 0.0126834437251091, -0.014696137048304081, 0.012024112045764923, 0.009777182713150978, 0.021272094920277596, -0.02194877713918686, -0.0925145298242569, 0.0017459254013374448, -0.018964437767863274, -0.0459449477493763, -0.0695420503616333, 0.0025397250428795815, -0.07703760266304016, 0.011078493669629097, 0.03980276361107826, 0.02828182280063629, -0.015416196547448635, -0.023458296433091164, -0.007261314895004034, 0.028368577361106873, -0.005010046996176243, 0.0007715689134784043, 0.038588203489780426, -0.07800924777984619, 0.016596050933003426, 0.02167116291821003, 0.056875959038734436, 0.04892928898334503, -0.035256847739219666, 0.0030559117440134287, 0.04643077030777931, -0.06447561830282211, -0.002409593900665641, -0.019970783963799477, -0.041086722165346146, -0.03671431913971901, -0.04198896512389183, 0.008497560396790504, 0.04504270851612091, 0.041503142565488815, 0.03837999701499939, -0.020716868340969086, 0.01995343342423439, 0.017706504091620445, 0.02031780034303665, -0.026633495464920998, -0.0911264643073082, 0.019970783963799477, -0.005474180914461613, -0.0029626511968672276, -0.04892928898334503, 0.0007200586842373013, 0.05222594365477562, -0.013984753750264645, -0.03334825858473778, 0.0024009186308830976, 0.02578330598771572, 0.029895449057221413, -0.05684125795960426, -0.02180997096002102, -0.040392689406871796, -0.011798552237451077, -0.005769144743680954, -0.03556916490197182, 0.012223646976053715, -0.03315740078687668, 0.020820973441004753, 0.002945300191640854, -0.10514591634273529, 0.011486236937344074, -0.061317767947912216, 0.03473632410168648, 0.004801837261766195, -0.003888750681653619, -0.050247952342033386, 0.009065799415111542, 0.026789654046297073, -0.034701623022556305, -0.08175702393054962, 0.04931100830435753, 0.02017899416387081, 0.01329072192311287, -0.02328478917479515, 0.01795808970928192, -0.021862022578716278, -0.04403635859489441, 0.007356744259595871, -0.05135840177536011, 0.0010405065258964896, 0.00706178043037653, 0.007998724468052387, 0.058819252997636795, -0.0003811756323557347, 0.008315376937389374, -0.03994156792759895, 0.03329620882868767, -0.06756406277418137, 0.061595380306243896, 0.04254418984055519, -0.028958505019545555, -0.013646413572132587, -0.01931145414710045, 0.013776544481515884, 0.04761062562465668, -0.04962332174181938, -0.005695404019206762, 0.0022838006261736155, 0.020890377461910248, 0.04056619852781296, 0.0059426529332995415, -0.003051574109122157, -0.037477754056453705, 0.05108078941702843, 0.020196344703435898, 0.019016489386558533, -0.02963518723845482, -0.03374733030796051, 0.010774853639304638, 0.03537830337882042, 0.00879686139523983, 0.05583491176366806, 0.018027493730187416, 0.011434185318648815, -0.0074565112590789795, -0.01340350229293108, 0.005244283005595207, -0.049241602420806885, -0.011026441119611263, -0.06884802132844925, -0.01455733086913824, 0.0055956365540623665, -0.04237068071961403, 0.016170956194400787, 0.004511211067438126, 0.049241602420806885, 0.06482262909412384, -0.07356744259595871, 0.02805626206099987, -0.04823525622487068, -0.006710426416248083, -0.05441214516758919, -0.020300449803471565, 0.022989826276898384, 0.0005769144627265632, -0.04334232583642006, 0.01509520597755909, 0.02125474438071251, -0.0006582463975064456, 0.05448154732584953, -0.015589704737067223, -0.01781928353011608, 0.024985168129205704, -0.058264024555683136, -0.01680426113307476, -0.035118043422698975, 0.03876171261072159, -0.008649379946291447, -0.04368934407830238, 0.025870060548186302, 0.018738877028226852, -0.025540394708514214, -0.01597142219543457, 0.01587599329650402, -0.02134149894118309, -0.000344576284987852, 0.06922973692417145, -0.01282224990427494, -0.0556614026427269, -0.019085893407464027, 0.011546964757144451, -0.02300717681646347, 0.004107804503291845, 0.007590980269014835, -0.04778413474559784, -0.03556916490197182, -0.01670883223414421, 0.049658022820949554, 0.061178963631391525, 0.027848051860928535, -0.010991739109158516, -0.029201416298747063, 0.021029183641076088, -0.0026394922751933336, 0.06711293756961823, -0.023770611733198166, 0.01856536790728569, -0.01296105608344078, -0.0392475351691246, -0.010054795071482658, -0.006437151227146387, 0.0012601027265191078, 0.02547099068760872, 0.014878321439027786, 0.04976212605834007, 0.025540394708514214, -0.022070232778787613, 0.03949044644832611, 0.015364143997430801, 0.012839600443840027, 0.004409275017678738, 0.05847223475575447, 0.008562625385820866, 0.0095602972432971, 0.03499658778309822, 0.05961738899350166, -0.03518744558095932, -0.03074563853442669, 0.040531497448682785, -0.03116205707192421, 0.04084381088614464, 0.015936721116304398, 0.017203329131007195, -0.022122284397482872, -0.006077121943235397, 0.007391445804387331, 0.012978407554328442, 0.028177717700600624, -0.0743308737874031, 0.024881063029170036, -0.022903071716427803, -0.00767339626327157, 0.020959779620170593, -0.038727011531591415, -0.00974248070269823, -0.01666545495390892, 0.03938634321093559, -0.007374094799160957, -0.061040155589580536, -0.040913213044404984, 0.016491945832967758, -0.022261090576648712, -0.04334232583642006, 0.035673268139362335, -0.06988906860351562, -0.0675293579697609, -0.03258482366800308, 0.020126940682530403, -0.027240773662924767, -0.007686409633606672, 0.04879048094153404, 0.0011603354942053556, 0.013637738302350044, -0.01601479947566986, 0.02453404851257801, 0.023250088095664978, 0.009959366172552109, 0.04906809702515602, -0.04490390047430992, -0.02453404851257801, -0.0003537939046509564, -0.021497655659914017, -0.014409849420189857, 0.026095621287822723, 0.06426740437746048, 0.023302139714360237, 0.014245016500353813, 0.010011418722569942, -0.016405193135142326, -0.007577966898679733, 0.012371128425002098, -0.028351226821541786, -0.020682167261838913, 0.05833343043923378, -0.0027782986871898174, -0.00342027866281569, -0.07766222953796387, -0.0037477752193808556, -0.010289031080901623, -0.029964851215481758, -0.02949637919664383, 0.00904844794422388, 0.008072464726865292, 0.01945026032626629, 0.07793984562158585, -0.0066323475912213326, -0.08328389376401901, 0.002721908502280712, -0.025176027789711952, 0.030953848734498024, 0.04358523711562157, -0.013845947571098804, -0.00858865212649107, 0.016353139653801918, -0.015043153427541256, 0.01342952810227871, -0.023926768451929092, 0.06246292218565941, 0.046604279428720474, -0.07061780244112015, -0.009213280864059925, -0.05291997641324997, 0.013386150822043419, -0.001173348631709814, -0.0037716326769441366, -0.020213695243000984, 0.003222913248464465, -0.008809874765574932, -0.029322871938347816, 0.04254418984055519, -0.03138761967420578, -0.007842566817998886, -0.0469512976706028, 0.03482307866215706, -0.02949637919664383, -0.04726361110806465, 0.004840876441448927, -0.040219180285930634, -0.034424010664224625, 0.014357796870172024, 0.018079545348882675, 0.059235669672489166, -0.025852710008621216, 0.04171135276556015, -0.024412592872977257, 0.06419800221920013, -0.004754122346639633, -0.07745402306318283, 0.06628010421991348, -0.03468427434563637, -0.025852710008621216, 0.010870283469557762, -0.03751245513558388, 0.034198448061943054, -0.007560616359114647, 0.0012785379076376557, 0.04157254472374916, -0.058264024555683136, -0.05403042584657669, -0.020109590142965317, 0.07717640697956085, 0.05399572476744652, 0.0011581666767597198, -0.00474544707685709, -0.017246706411242485, -0.002050649141892791, -0.03463222086429596, -0.011546964757144451, 0.017697827890515327, 0.02966988831758499, -0.059652090072631836, -0.08085478097200394, -0.033625874668359756, -0.017333460971713066, -0.020109590142965317, -0.05933977663516998, 0.010193602181971073, 0.03876171261072159, -0.006280994042754173, 0.012761522084474564, 0.02828182280063629, 0.031960196793079376, 0.05836813151836395, -0.01587599329650402, 0.05115019157528877, 0.021306795999407768, 0.006558606866747141, 0.04077440872788429, -0.016769560053944588, 0.026286479085683823, 0.0225907564163208, 0.0027999873273074627, 0.021011833101511, 0.025314833968877792, 0.027240773662924767, 0.008436832576990128, 0.016179632395505905, -0.015728510916233063, -0.02184467203915119, -0.06388568878173828, 0.01434912160038948, -0.020439255982637405, -0.07530251890420914, 0.03591617941856384, 0.05003974214196205, 0.0006777661037631333, 0.0225907564163208, -0.04847816750407219, -0.014904347248375416, -0.027483684942126274, -0.049380410462617874, -0.011304053477942944, -0.021775268018245697, -0.018391860648989677, -0.04986623302102089, 0.012267024256289005, -0.022347845137119293, 0.041607245802879333, 0.018721526488661766, -0.05458565428853035, 0.01948496140539646, 0.008861927315592766, 0.004602302797138691, -0.022417249158024788, -0.08932197839021683, 0.08314508944749832, 0.021462954580783844, 0.019016489386558533, -0.015607055276632309, -0.0012308232253417373, 0.009195930324494839, 0.029739290475845337, 0.016170956194400787, -0.02425643429160118, -0.032237809151411057, -0.035950880497694016, -0.043030012398958206, -0.00706178043037653, -0.06909093260765076, -0.042752400040626526, 0.04643077030777931, 0.06582897901535034, 0.04944981262087822, -0.0021287277340888977, -0.06680062413215637, 0.0020441424567252398, 0.01322131883352995, -0.02805626206099987, 0.016700156033039093, 0.02292042225599289, 0.05621663108468056, 0.05975619703531265, 0.058958057314157486, 0.03980276361107826, 0.060866646468639374, -0.029756642878055573, 0.005062099080532789, -0.015823939815163612, -0.0299127995967865, 0.03643670305609703, 0.015155933797359467, -0.043030012398958206, 0.04653487727046013, -0.02672025002539158, 0.019155295565724373, -0.03820648789405823, 0.02036985196173191, -0.006784167140722275, -0.03208165243268013, 0.01833980716764927, 0.027431633323431015, -0.03910873085260391, -0.010991739109158516, 0.01032373309135437, -0.022486651316285133, 0.05611252412199974, -0.01920734904706478, 0.010583994910120964, -0.0008041016990318894, -0.008137530647218227, -0.04865167662501335, -0.01972787268459797, -0.006645360961556435, -0.028177717700600624, 0.02323273755609989, -0.018738877028226852, 0.014592032879590988, 0.009473543614149094, 0.02869824320077896, -0.016882339492440224, 0.021653812378644943, -0.004426626022905111, 0.04126023128628731, 0.024048224091529846, -0.0324980691075325, 0.03263687714934349, 0.041503142565488815, -0.06808458268642426, 0.04476509243249893, 0.0330706462264061, 0.024187032133340836, -0.047020699828863144, 0.039143431931734085, -0.01356833428144455, -0.003461486892774701, 0.016136255115270615, 0.059235669672489166, 0.0646144226193428, 0.07141593843698502, 0.013117213733494282 ]
43,173
matplotlib.cm
autoscale
Autoscale the scalar limits on the norm instance using the current array
def autoscale(self): """ Autoscale the scalar limits on the norm instance using the current array """ if self._A is None: raise TypeError('You must first set_array for mappable') # If the norm's limits are updated self.changed() will be called # through the callbacks attached to the norm self.norm.autoscale(self._A)
(self)
[ 0.017620548605918884, 0.015132540836930275, 0.032940540462732315, 0.05504291132092476, -0.013965222053229809, 0.013667001388967037, -0.007604612968862057, -0.07443574070930481, 0.02685685083270073, 0.020602749660611153, -0.024419967085123062, -0.013743686489760876, 0.030316203832626343, 0.0019416259601712227, -0.036059070378541946, 0.006484157405793667, -0.0006523564807139337, 0.03334952890872955, 0.006854802370071411, 0.047306232154369354, 0.04212572053074837, -0.05040771886706352, 0.02624337002635002, 0.002997112227603793, -0.005329619627445936, 0.034729860723018646, 0.01644470915198326, -0.02685685083270073, 0.027385126799345016, -0.011008582077920437, -0.020977655425667763, 0.03943321853876114, 0.060257501900196075, -0.0012844766024500132, 0.07191365212202072, -0.05736050754785538, -0.006058128550648689, -0.005559674929827452, -0.0817975178360939, -0.008610040880739689, 0.034389037638902664, -0.004750220570713282, 0.03677479922771454, 0.00535518117249012, 0.07123200595378876, 0.022238699719309807, 0.01257636770606041, 0.05974626913666725, -0.033230241388082504, -0.014237879775464535, -0.030793355777859688, -0.04267103597521782, 0.0363658107817173, 0.02341453917324543, -0.019171293824911118, 0.1173112690448761, 0.034525368362665176, 0.07109567523002625, 0.006531020626425743, -0.0875915065407753, 0.011749872006475925, -0.04161448776721954, -0.04873768612742424, -0.08084321022033691, 0.040626101195812225, -0.05381594970822334, -0.0028799541760236025, 0.05391819775104523, 0.03810400888323784, 0.0140759889036417, -0.07089117914438248, -0.02615816332399845, -0.009594166651368141, -0.006573623511940241, 0.026345616206526756, 0.037422362715005875, -0.037217870354652405, 0.03868340700864792, 0.0016434058779850602, -0.00734899565577507, 0.04819237068295479, 0.03329840674996376, 0.0101480046287179, 0.019580280408263206, -0.0538841150701046, -0.06458595395088196, -0.04130774736404419, 0.009193699806928635, 0.03135571628808975, -0.032616760581731796, -0.002588124480098486, -0.0013281445717439055, 0.03830850496888161, 0.11178994178771973, -0.03251451253890991, 0.04952158033847809, -0.03732011839747429, -0.05494066700339317, 0.020330091938376427, -0.000557032588403672, 0.004528685472905636, 0.013735166750848293, 0.0636657327413559, 0.027095427736639977, 0.012405957095324993, 0.0432504378259182, 0.03622948378324509, -0.025663970038294792, -0.03239522501826286, 0.08091137558221817, 0.006790897808969021, 0.08207017183303833, -0.0509871169924736, 0.005725826136767864, -0.07457207143306732, -0.02237502858042717, -0.02109694294631481, -0.023431580513715744, 0.050509966909885406, 0.03205440193414688, -0.03599090874195099, 0.004912111442536116, 0.0065011982806026936, -0.06646048277616501, -0.005730086471885443, 0.03006058745086193, 0.03104897402226925, 0.014237879775464535, -0.026379698887467384, -0.03449128568172455, -0.029276695102453232, -0.016052762046456337, -0.04706765338778496, 0.0176375899463892, 0.04624968022108078, -0.08111587166786194, 0.012516723945736885, 0.02228982374072075, -0.030213957652449608, 0.05153243616223335, 0.0064202528446912766, 0.08234283328056335, 0.06530168652534485, -0.0029672901146113873, 0.03789951652288437, 0.011144911870360374, 0.0732087790966034, 0.03899015113711357, -0.011945845559239388, -0.024437008425593376, -0.060257501900196075, 0.02893587201833725, 0.07239080220460892, -0.01319837011396885, 0.01112787052989006, 0.009355590678751469, -0.02752145566046238, -0.07907093316316605, 0.011315323412418365, 0.027794115245342255, -0.07252713292837143, 0.010744445025920868, -0.05783766135573387, -0.07688966393470764, -0.027265839278697968, -0.005653401371091604, -0.017364930361509323, 0.019614363089203835, -0.04031936079263687, 0.060461997985839844, 0.029702723026275635, -0.09215853363275528, -0.03960363194346428, 0.024880077689886093, 0.07464023679494858, 0.05650845170021057, 0.009756057523190975, 0.03507068380713463, -0.0005799315986223519, 0.05596313253045082, 0.038751572370529175, -0.017518300563097, 0.03851299732923508, -0.03895606845617294, -0.01615501008927822, 0.0023942815605551004, -0.003525387728586793, 0.022988511249423027, -0.030316203832626343, -0.004549986682832241, 0.06168895959854126, -0.00414312956854701, -0.042943697422742844, -0.05579272285103798, 0.003376277629286051, 0.02312484011054039, -0.025646928697824478, -0.035888660699129105, 0.030861521139740944, 0.017134875059127808, -0.061382219195365906, -0.02370423823595047, 0.03179878368973732, 0.016333941370248795, 0.033605147153139114, -0.008972165174782276, 0.028458720073103905, 0.012942752800881863, 0.008090285584330559, -0.04795379564166069, -0.024556295946240425, -0.00714024156332016, -0.02257952280342579, -0.02794748544692993, 0.030708150938153267, -0.034729860723018646, 0.030077628791332245, -0.05684927478432655, 0.029498228803277016, 0.04079651087522507, 0.003480654675513506, 0.017569424584507942, -0.026993179693818092, -0.008124368265271187, -0.030537739396095276, 0.015081416815519333, 0.030895603820681572, -0.0009377957321703434, 0.02644786424934864, -0.00014897692017257214, -0.00010104868852067739, -0.002896995283663273, -0.033025749027729034, -0.02125031314790249, 0.03104897402226925, -0.004775782115757465, 0.05010097846388817, 0.03735419735312462, -0.002383630722761154, 0.01417823601514101, -0.0269420575350523, 0.03449128568172455, -0.04454556480050087, 0.024062102660536766, -0.06250693649053574, 0.015677858144044876, 0.0034550928976386786, 0.05327063426375389, -0.010940417647361755, -0.00037756795063614845, -0.03585457801818848, -0.018523728474974632, -0.03411637991666794, 0.029668640345335007, 0.019750691950321198, -0.020994696766138077, -0.05575864017009735, 0.015533007681369781, -0.007723900955170393, 0.006871843244880438, -0.015038814395666122, -0.006215759087353945, -0.017586465924978256, 0.03578641265630722, -0.008869918063282967, 0.016845175996422768, -0.00601978600025177, 0.041784897446632385, -0.017518300563097, 0.06772153079509735, 0.06523352116346359, 0.03156020864844322, -0.022732893005013466, -0.025970712304115295, 0.0005109682097099721, 0.04536353796720505, 0.0010011674603447318, -0.008388505317270756, 0.04478413984179497, 0.016223173588514328, 0.012968314811587334, -0.04624968022108078, -0.010113921947777271, 0.006002744659781456, -0.018608935177326202, -0.030282123014330864, 0.024692624807357788, 0.022323906421661377, -0.023380456492304802, 0.021522970870137215, 0.00046037728316150606, 0.029907217249274254, 0.017237123101949692, 0.00222173985093832, -0.02607295848429203, -0.10954050719738007, -0.025851422920823097, -0.011443131603300571, 0.00032804213697090745, -0.03650214150547981, 0.008307560347020626, -0.008281998336315155, -0.04774929955601692, 0.037797268480062485, 0.021983083337545395, -0.037422362715005875, -0.030912645161151886, -0.001818077638745308, 0.035138849169015884, 0.003614853834733367, -0.01963140442967415, 0.03633173182606697, -0.12658165395259857, 0.05136202275753021, 0.03277013078331947, 0.06949380785226822, 0.0844559371471405, -0.006134813651442528, -0.007357516326010227, 0.061791207641363144, -0.029958341270685196, -0.0016135837649926543, -0.036093153059482574, -0.061177726835012436, -0.048226453363895416, -0.034474246203899384, 0.025510599836707115, 0.039705876260995865, 0.001665772288106382, -0.004064314067363739, 0.003968457691371441, 0.003474264405667782, -0.005470208823680878, -0.0034550928976386786, -0.04642008990049362, -0.05299797281622887, 0.029753847047686577, -0.03554783761501312, -0.016325421631336212, -0.04706765338778496, -0.0456702783703804, 0.06410880386829376, -0.02220461703836918, 0.007983778603374958, -0.000278516294201836, 0.02569805271923542, 0.004490342922508717, -0.03345177695155144, 0.01295127347111702, -0.0849330872297287, -0.046386007219552994, -0.011178993619978428, -0.007195625454187393, 0.007118939887732267, 0.003491305513307452, -0.002173811662942171, -0.011051185429096222, -0.029617518186569214, -0.024113226681947708, -0.05088487267494202, 0.02286922186613083, -0.05524740740656853, -0.053202468901872635, -0.0525549054145813, 0.019273540005087852, 0.03909239545464516, -0.047885630279779434, -0.0706866905093193, 0.07504922151565552, 0.014638347551226616, -0.004724658560007811, -0.0578717440366745, -0.04212572053074837, -0.005039920099079609, -0.02520385943353176, 0.03789951652288437, -0.04890809953212738, 0.007753722835332155, -0.005380742717534304, -0.0020651742815971375, 0.07409491389989853, -0.00661196606233716, 0.009338549338281155, -0.03554783761501312, 0.023755362257361412, -0.002537001157179475, 0.026294494047760963, 0.0170667115598917, -0.0201767198741436, -0.018216988071799278, 0.012465600855648518, 0.004155910108238459, 0.0012855416862294078, -0.07416307926177979, -0.046011101454496384, 0.010241731069982052, -0.016282817348837852, 0.04498863220214844, 0.020125597715377808, 0.014544621109962463, -0.05538373440504074, 0.030367327854037285, 0.03101489134132862, 0.05180509388446808, -0.034849151968955994, -0.0374564453959465, 0.02055162563920021, 0.03997853770852089, -0.007093378342688084, 0.07170915603637695, 0.004241115879267454, 0.0414440743625164, 0.02387464977800846, -0.018370358273386955, 0.029378941282629967, 0.0025029187090694904, 0.021148066967725754, -0.07723049074411392, -0.003067406825721264, 0.01772279478609562, -0.01589939184486866, 0.04774929955601692, -0.023448621854186058, 0.05712193250656128, 0.03885382041335106, -0.08847764879465103, 0.011281240731477737, -0.044443316757678986, -0.022153494879603386, 0.011034144088625908, -0.02228982374072075, -0.00469057634472847, 0.005900498013943434, -0.05657661706209183, -0.0242836382240057, -0.012133298441767693, -0.00029529116000048816, 0.034440163522958755, -0.015703419223427773, -0.028629131615161896, 0.06390430778265, -0.018779346719384193, -0.00264137820340693, -0.06482452899217606, 0.04028527811169624, -0.02005743235349655, -0.024999365210533142, 0.021949000656604767, -0.044272907078266144, -0.02532314695417881, -0.0026435083709657192, -0.0028693035710603, 0.0341334231197834, 0.015243307687342167, 0.027674825862050056, -0.02096061408519745, -0.03772910311818123, -0.11233525723218918, 0.033230241388082504, -0.03135571628808975, -0.05722418054938316, 0.007229707669466734, -0.0128064239397645, -0.02835647203028202, 0.024062102660536766, 0.06093914806842804, 0.013215411454439163, 0.0445796474814415, -0.017876164987683296, -0.03599090874195099, 0.04526129364967346, -0.016044242307543755, 0.04243246093392372, -0.04952158033847809, 0.015183663927018642, -0.021488890051841736, -0.0054403869435191154, 0.03104897402226925, 0.004673535004258156, -0.01913721114397049, 0.000293427292490378, 0.004737439565360546, 0.04969199001789093, 0.01676849089562893, -0.004958974663168192, 0.02349974401295185, -0.014289003796875477, -0.028867706656455994, -0.02520385943353176, 0.041205499321222305, -0.027163591235876083, 0.04335268214344978, 0.0414440743625164, 0.07136833667755127, -0.034849151968955994, -0.01046326570212841, 0.031066015362739563, -0.029873134568333626, 0.03292350098490715, 0.02138664200901985, -0.00874210987240076, -0.018523728474974632, -0.07573086768388748, -0.004831166006624699, 0.014203798025846481, 0.03287237510085106, -0.11513000726699829, 0.019273540005087852, -0.024556295946240425, 0.01284902635961771, 0.011093787848949432, -0.05248674005270004, -0.028049731627106667, 0.00728509109467268, 0.045602116733789444, -0.015839748084545135, -0.03382668271660805, -0.00927890557795763, -0.012465600855648518, -0.007958216592669487, -0.05494066700339317, -0.017825042828917503, -0.06594924628734589, -0.0037384021561592817, 0.005056960973888636, 0.014041907154023647, -0.025016406551003456, -0.028714336454868317, 0.059098705649375916, 0.03121938556432724, 0.050714459270238876, -0.008243655785918236, 0.049385249614715576, 0.06260918080806732, -0.0033890586346387863, 0.05804215371608734, -0.024010978639125824, -0.05746275559067726, 0.014041907154023647, -0.009790140204131603, -0.04069426283240318, 0.007481064647436142, 0.1030648723244667, 0.00570878479629755, 0.023670155555009842, 0.008320340886712074, -0.04887401685118675, -0.010420662350952625, 0.02569805271923542, -0.02777707390487194, -0.014519059099256992, 0.032565634697675705, 0.035684168338775635, 0.020909490063786507, -0.017859123647212982, -0.008827315643429756, 0.0159760769456625, -0.03783135116100311, -0.00898920651525259, 0.0027926182374358177, -0.013292096555233002, -0.026788687333464622, 0.08459226787090302, 0.05078262463212013, -0.03687704727053642, 0.019580280408263206, -0.020227843895554543, 0.07327694445848465, 0.06625598669052124, 0.0025625627022236586, -0.001515597221441567, -0.01364144030958414, -0.02395985648036003, -0.011340884491801262, -0.04079651087522507, 0.04665866494178772, 0.042943697422742844, -0.06397247314453125, -0.06127997115254402, -0.04219388589262962, 0.044272907078266144, -0.046351924538612366, -0.03411637991666794, 0.015354075469076633, 0.014646868221461773, -0.0159760769456625, -0.009253344498574734, 0.04021711274981499, -0.06387022882699966, -0.030742233619093895, -0.05647436901926994, 0.04130774736404419, -0.013709604740142822, -0.022988511249423027, 0.01910312846302986, 0.008869918063282967, -0.030997850000858307, -0.021182147786021233, 0.05575864017009735, 0.007059296127408743, -0.01508993748575449, 0.03188398852944374, -0.04795379564166069, 0.02893587201833725, -0.01942691020667553, -0.06376797705888748, 0.0021194929722696543, -0.04209163784980774, 0.008921042084693909, 0.02798156626522541, -0.03639989346265793, 0.03259971737861633, -0.01459574420005083, -0.005730086471885443, -0.00556393526494503, -0.027214715257287025, -0.02690797485411167, -0.011945845559239388, 0.08725068718194962, 0.004605370573699474, 0.017705753445625305, 0.016044242307543755, 0.006816459819674492, -0.019580280408263206, -0.01910312846302986, -0.027623703703284264, 0.04740847647190094, -0.011221596971154213, -0.029566394165158272, -0.041580405086278915, 0.0035765112843364477, -0.037797268480062485, -0.00041378039168193936, -0.0620979480445385, 0.031066015362739563, 0.015141061507165432, -0.0629500076174736, 0.017262684181332588, 0.014169715344905853, 0.017569424584507942, 0.025834381580352783, -0.022477276623249054, 0.0523163266479969, 0.02125031314790249, 0.02125031314790249, 0.027385126799345016, -0.02520385943353176, 0.008618561550974846, -0.005095303524285555, 0.004456260707229376, -0.020619791001081467, -0.024419967085123062, -0.0376950204372406, 0.053406961262226105, 0.05565639212727547, 0.02142072468996048, -0.02092653140425682, -0.023721279576420784, -0.0031547427643090487, -0.03208848461508751, -0.07130017131567001, 0.006237060762941837, 0.01498769037425518, -0.011238638311624527, 0.035309262573719025, -0.0629500076174736, -0.026004793122410774, -0.026993179693818092, -0.05616762861609459, 0.04665866494178772, -0.04475005716085434, -0.011562420055270195, -0.03973995894193649, -0.013428425416350365, 0.035513754934072495, 0.0014271961990743876, 0.01905200444161892, -0.03868340700864792, -0.017518300563097, 0.02668643929064274, -0.03219073265790939, -0.003452962962910533, -0.05258898809552193, 0.03861524537205696, 0.021693382412195206, -0.018421482294797897, 0.02171042375266552, 0.04338676482439041, 0.016990026459097862, 0.03188398852944374, 0.013087602332234383, -0.003947156015783548, -0.0038768614176660776, -0.019460992887616158, -0.0011343015357851982, -0.006462855730205774, -0.032241854816675186, 0.022732893005013466, 0.02711246907711029, 0.03534334525465965, 0.06284775584936142, 0.024845995008945465, -0.07586719840765, 0.003947156015783548, 0.010940417647361755, 0.002662679646164179, -0.029293736442923546, 0.01572898030281067, 0.04267103597521782, 0.048839934170246124, 0.02644786424934864, 0.07545820623636246, 0.04400024563074112, -0.017620548605918884, 0.004490342922508717, 0.017117833718657494, -0.012201462872326374, 0.06502902507781982, 0.018114741891622543, -0.004967494867742062, 0.01710931397974491, -0.03225889429450035, 0.04209163784980774, -0.05020322650671005, 0.007881531491875648, 0.038342587649822235, 0.02000630833208561, -0.008414067327976227, -0.008294779807329178, 0.007489585317671299, 0.0022899045143276453, -0.022221658378839493, 0.012303709983825684, 0.05003281310200691, 0.015405198559165001, 0.01326653454452753, 0.0004598447703756392, -0.023772403597831726, -0.03334952890872955, -0.00025149009888991714, 0.013914098031818867, -0.06530168652534485, 0.04798787459731102, -0.011613543145358562, 0.01777391880750656, -0.019904062151908875, -0.02939598262310028, 0.01905200444161892, 0.005632099695503712, -0.01627429760992527, 0.026021834462881088, 0.03150908648967743, 0.003348585916683078, 0.014519059099256992, 0.017237123101949692, -0.060836903750896454, 0.029958341270685196, 0.01830219477415085, 0.012789382599294186, -0.05105528235435486, -0.0059984843246638775, -0.026993179693818092, -0.0054318662732839584, 0.03500252217054367, 0.019034963101148605, 0.00006290580495260656, 0.04812420532107353, -0.021574094891548157 ]
43,174
matplotlib.cm
autoscale_None
Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
def autoscale_None(self): """ Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None """ if self._A is None: raise TypeError('You must first set_array for mappable') # If the norm's limits are updated self.changed() will be called # through the callbacks attached to the norm self.norm.autoscale_None(self._A)
(self)
[ 0.009962395764887333, 0.02174697443842888, 0.04976089298725128, 0.053030602633953094, -0.04301711544394493, -0.010362595319747925, -0.025391338393092155, -0.054461099207401276, 0.044822268187999725, 0.002592777367681265, -0.037056706845760345, -0.015786565840244293, 0.02144043892621994, -0.004559712018817663, -0.019652316346764565, 0.028541838750243187, -0.001164408284239471, 0.0329865999519825, 0.027979858219623566, 0.03148798272013664, 0.0517704002559185, -0.05119138956069946, 0.006956647615879774, 0.01649329997599125, -0.022479252889752388, 0.015411912463605404, 0.005032287444919348, -0.030823824927210808, 0.008761799894273281, 0.008727740496397018, -0.002091464586555958, 0.01027744635939598, 0.046695537865161896, 0.0016210180474445224, 0.0765656977891922, -0.05725397542119026, -0.008966156281530857, 0.0030823824927210808, -0.0895082950592041, -0.0166295375674963, 0.044617909938097, -0.0204527135938406, 0.016093101352453232, -0.004344711545854807, 0.05558506026864052, 0.016697656363248825, 0.04795574024319649, 0.0607280433177948, -0.047989800572395325, -0.0021010437048971653, -0.010541407391428947, -0.010907546617090702, 0.030857883393764496, 0.038010373711586, -0.022377073764801025, 0.128336101770401, 0.018375085666775703, 0.076020747423172, 0.0032250063959509134, -0.07888174057006836, 0.002890797797590494, -0.026276884600520134, -0.05469951406121254, -0.0829007625579834, 0.05371179059147835, -0.055925656110048294, -0.0011654726695269346, 0.04993119090795517, 0.05180446058511734, 0.030176693573594093, -0.0818108543753624, -0.02818421460688114, -0.019482018426060677, 0.012491311877965927, 0.04243810474872589, 0.008485066704452038, -0.03211808577179909, 0.04720643162727356, 0.013734483160078526, -0.011716458946466446, 0.044617909938097, 0.04097354784607887, 0.01576102152466774, 0.027588173747062683, -0.04376642405986786, -0.03709076717495918, -0.02750302478671074, 0.03021075390279293, 0.023637274280190468, -0.036477696150541306, -0.02188321202993393, -0.018681621178984642, 0.024982623755931854, 0.07854114472866058, -0.01301923394203186, 0.06409993022680283, -0.03296957165002823, -0.05841199681162834, -0.002126588486135006, -0.025118861347436905, 0.006190309301018715, -0.01272972859442234, 0.06563260406255722, 0.04342582821846008, 0.030312931165099144, 0.017438450828194618, 0.038350969552993774, -0.03784007579088211, -0.02346697822213173, 0.08365006744861603, 0.0019381969468668103, 0.061204876750707626, -0.03967928886413574, -0.005019514821469784, -0.05909318849444389, -0.014671118929982185, -0.04993119090795517, -0.017259638756513596, 0.04403889924287796, 0.034621454775333405, -0.03681829199194908, 0.014798841439187527, -0.030568378046154976, -0.08528492599725723, 0.020078059285879135, 0.01614418998360634, 0.03239056095480919, 0.02431846410036087, -0.012159232050180435, -0.03838502615690231, -0.004593771416693926, -0.012789332307875156, -0.045844051986932755, 0.039951764047145844, 0.009681405499577522, -0.0535755529999733, 0.018375085666775703, 0.01914142444729805, -0.021474499255418777, 0.029154909774661064, -0.00039993273094296455, 0.037465423345565796, 0.06283973157405853, 0.01705528236925602, 0.053030602633953094, 0.02419925667345524, 0.06324844062328339, 0.022547371685504913, -0.012891511432826519, -0.015880228951573372, -0.044686030596494675, 0.02818421460688114, 0.052451591938734055, -0.013828146271407604, 0.001643369672819972, 0.022206777706742287, -0.008991701528429985, -0.09039384126663208, -0.00496842572465539, 0.03313986957073212, -0.05888883024454117, -0.013300225138664246, -0.01732775755226612, -0.0895082950592041, -0.021099844947457314, -0.011529131792485714, 0.0003405947354622185, 0.023109354078769684, -0.007292984984815121, 0.06147735193371773, 0.024948565289378166, -0.08760096877813339, -0.03208402544260025, 0.025953318923711777, 0.0900532528758049, 0.07881361991167068, -0.0012644579401239753, -0.008144471794366837, -0.019533108919858932, 0.05974031612277031, 0.03542185202240944, -0.01734478771686554, 0.03262897580862045, -0.0271964892745018, -0.0026438666973263025, 0.003110055811703205, -0.010107149370014668, 0.009766554459929466, -0.04400483891367912, 0.0018221818609163165, 0.05292842164635658, 0.002343717496842146, -0.04809197783470154, -0.03208402544260025, 0.018477264791727066, 0.022564401850104332, -0.01612716168165207, -0.03927057236433029, 0.04577593505382538, -0.013351313769817352, -0.0583779402077198, -0.03903215751051903, 0.033003631979227066, 0.019924791529774666, 0.0047427816316485405, 0.004738524556159973, 0.014764782041311264, 0.01726815290749073, -0.016391122713685036, -0.033616699278354645, -0.005160010419785976, -0.0006279715453274548, -0.04005394130945206, -0.030772734433412552, 0.029444415122270584, -0.013053293339908123, 0.01180160790681839, -0.04104166477918625, 0.00521109951660037, 0.06147735193371773, -0.008502095937728882, -0.006450012791901827, -0.009698435664176941, -0.011537646874785423, -0.00003015128277183976, 0.03480878099799156, 0.04420919716358185, -0.0113588348031044, 0.04315335303544998, 0.006326547358185053, -0.009749524295330048, -0.011929330416023731, -0.06965162605047226, -0.0299553070217371, 0.03528561443090439, -0.012474282644689083, 0.04369830712676048, 0.006062586326152086, -0.006415953394025564, -0.005496347788721323, -0.02908679097890854, 0.00807209499180317, -0.053439315408468246, 0.02677074633538723, -0.0351153165102005, 0.01840914599597454, -0.0006838503759354353, 0.05282624438405037, -0.005730506498366594, -0.00134109181817621, -0.036205220967531204, -0.01943092979490757, -0.03732918202877045, 0.022394103929400444, 0.03896403685212135, -0.039917703717947006, -0.05255376920104027, 0.00009093613334698603, -0.010158238001167774, 0.0034910961985588074, -0.0028673820197582245, -0.04403889924287796, -0.03283333405852318, 0.027264609932899475, 0.00885546300560236, 0.025101833045482635, -0.007914570160210133, 0.024539850652217865, -0.013146957382559776, 0.0715930163860321, 0.0414503812789917, 0.018051521852612495, -0.006347834598273039, -0.023637274280190468, 0.007961401715874672, 0.047717321664094925, 0.007799619808793068, -0.021253112703561783, 0.05003336817026138, 0.021338259801268578, 0.022785788401961327, -0.03021075390279293, -0.020759249106049538, 0.00015193718718364835, -0.011742004193365574, -0.019907763227820396, 0.013070323504507542, 0.0025225298013538122, -0.026276884600520134, 0.018903007730841637, 0.027962828055024147, 0.06277161091566086, 0.01754062995314598, 0.005402684211730957, -0.028456689789891243, -0.10156535357236862, -0.03022778406739235, -0.011733489111065865, 0.022990144789218903, -0.03313986957073212, 0.010788338258862495, -0.013300225138664246, -0.017395876348018646, 0.014424187131226063, 0.04158661887049675, -0.03383808583021164, -0.025663813576102257, 0.009340810589492321, 0.057356156408786774, 0.021116873249411583, -0.00827645231038332, 0.020486773923039436, -0.11839073151350021, 0.0351153165102005, 0.07268291711807251, 0.08746472746133804, 0.10442634671926498, -0.002801391761749983, 0.007327044382691383, 0.06457675993442535, -0.03569432720541954, -0.012125172652304173, -0.04431137442588806, -0.05752645060420036, -0.0657007247209549, -0.045707814395427704, 0.031028181314468384, 0.024284405633807182, -0.006888528820127249, 0.01659547910094261, 0.01566735841333866, -0.011861211620271206, -0.014458246529102325, -0.0011654726695269346, -0.06539419293403625, -0.05670902505517006, 0.024352524429559708, -0.026225795969367027, -0.01410913746803999, -0.04679771885275841, -0.058514177799224854, 0.06106863543391228, -0.014211315661668777, 0.01532676350325346, 0.024097077548503876, 0.03657987713813782, 0.021270141005516052, -0.04363018646836281, 0.03436600789427757, -0.07431777566671371, -0.03150501474738121, 0.002567232819274068, 0.015726963058114052, 0.014952109195291996, 0.03283333405852318, 0.008433977141976357, -0.00009639096970204264, -0.010779823176562786, -0.023637274280190468, -0.05967219918966293, 0.016740230843424797, -0.03675017133355141, -0.05711773782968521, -0.03319095820188522, 0.03009154461324215, 0.03967928886413574, -0.029240058735013008, -0.052894365042448044, 0.052621886134147644, -0.0017934441566467285, -0.02217271737754345, -0.08671542257070541, -0.03162422031164169, -0.024829355999827385, -0.0171489454805851, 0.03961116820573807, -0.03869156166911125, 0.008829918690025806, -0.0047853561118245125, -0.035183437168598175, 0.051327627152204514, -0.004244661889970303, -0.0014858446083962917, -0.029836099594831467, -0.01512240618467331, -0.0009850638452917337, 0.02041865512728691, 0.0329865999519825, -0.025970349088311195, -0.029887188225984573, 0.02174697443842888, -0.00550060486420989, 0.0025863912887871265, -0.07213796675205231, -0.029682831838726997, 0.03756760060787201, -0.0011303487699478865, 0.04846663028001785, -0.0067437756806612015, -0.014194285497069359, -0.03445115685462952, -0.00043984618969261646, 0.02174697443842888, 0.06345280259847641, -0.033446405082941055, -0.023569155484437943, 0.010788338258862495, 0.010899031534790993, 0.004644860979169607, 0.07431777566671371, -0.001514582196250558, 0.03583056852221489, 0.034621454775333405, -0.015394882299005985, 0.04110978543758392, 0.005713476799428463, 0.025868169963359833, -0.055176347494125366, 0.01100972481071949, 0.015565179288387299, -0.012482797726988792, 0.024250345304608345, -0.0067139738239347935, 0.07261479645967484, 0.05061237886548042, -0.07275103777647018, 0.023262619972229004, -0.06328250467777252, -0.019533108919858932, 0.010064574889838696, -0.02229192666709423, -0.01668914221227169, 0.0016359190922230482, -0.070230633020401, -0.020691130310297012, -0.0005050381296314299, -0.001517775352112949, 0.030329961329698563, -0.01857944391667843, -0.007476054597645998, 0.06028527021408081, -0.02505074255168438, 0.0008791601867415011, -0.06140923127532005, 0.049590595066547394, -0.009340810589492321, -0.011435468681156635, 0.03685235232114792, -0.05698150023818016, -0.024097077548503876, -0.00842120498418808, 0.010643585585057735, 0.00560704106464982, 0.010345565155148506, 0.02215568721294403, -0.024352524429559708, -0.052145056426525116, -0.08862274885177612, 0.027860650792717934, -0.0443454347550869, -0.0665181502699852, 0.013419432565569878, -0.018170729279518127, -0.02779253013432026, 0.04376642405986786, 0.06682468950748444, 0.02947847545146942, 0.016621023416519165, -0.04441355541348457, -0.035319674760103226, 0.03831690922379494, -0.03121550753712654, 0.03954305127263069, -0.04659336060285568, 0.01688498444855213, -0.013887750916182995, 0.0013794087572023273, 0.014509336091578007, 0.03096006251871586, -0.01512240618467331, 0.0064457557164132595, 0.025868169963359833, 0.047138310968875885, 0.013862205669283867, -0.015079832635819912, 0.024233315140008926, -0.03080679476261139, -0.048262275755405426, -0.006922588218003511, 0.0578329861164093, -0.03067055717110634, 0.029580652713775635, 0.028882434591650963, 0.05306465923786163, -0.044549793004989624, 0.004110552836209536, 0.03613710030913353, -0.032424621284008026, 0.038623444736003876, 0.026430152356624603, -0.008442492224276066, -0.019618257880210876, -0.07179737091064453, -0.019533108919858932, 0.00885546300560236, -0.01086497213691473, -0.11811825633049011, 0.013794086873531342, -0.037363242357969284, 0.028967583552002907, 0.01085645705461502, -0.051157329231500626, 0.002556589199230075, -0.011818637140095234, 0.047002073377370834, -0.0008600017172284424, -0.02316044270992279, -0.029393326491117477, -0.0000516879117640201, -0.019311722368001938, -0.046831775456666946, 0.007327044382691383, -0.0549379326403141, 0.024846386164426804, -0.0046618906781077385, 0.007510113995522261, -0.02588520012795925, -0.03542185202240944, 0.06563260406255722, 0.005317535251379013, 0.04918188229203224, -0.026106586679816246, 0.03269709646701813, 0.0665181502699852, -0.01007308904081583, 0.04877316579222679, -0.008582987822592258, -0.0652579516172409, 0.0037550569977611303, -0.016484785825014114, -0.03715888783335686, 0.01561626885086298, 0.10858160257339478, 0.01591428928077221, 0.025851141661405563, 0.008595759980380535, -0.06430428475141525, 0.025646783411502838, 0.022513313218951225, -0.019056275486946106, -0.03135174512863159, 0.02518698200583458, 0.06590507924556732, 0.03024481236934662, -0.03354858234524727, -0.013921810314059258, 0.03009154461324215, -0.014041018672287464, 0.00935784075409174, 0.014849931001663208, -0.01585468463599682, -0.020691130310297012, 0.06958350539207458, 0.009562197141349316, -0.013087352737784386, 0.0105669517070055, -0.013513096608221531, 0.0443454347550869, 0.0782005563378334, 0.03409353271126747, -0.015199040062725544, -0.015105376951396465, -0.04230186715722084, -0.004819415509700775, -0.03657987713813782, 0.04846663028001785, 0.026975102722644806, -0.05739021301269531, -0.08494433015584946, -0.06157952919602394, 0.04693395644426346, -0.05429080128669739, -0.026293914765119553, -0.0049726832658052444, 0.015403397381305695, -0.03569432720541954, -0.019482018426060677, 0.021491527557373047, -0.06062586233019829, -0.01317250169813633, -0.03497907891869545, 0.05541476607322693, 0.005849714856594801, -0.016970133408904076, 0.014773297123610973, 0.025152921676635742, -0.04359612613916397, -0.030823824927210808, 0.06369121372699738, 0.0227176696062088, -0.002599163679406047, 0.02721351943910122, -0.03368481993675232, 0.04284681752324104, -0.014262405224144459, -0.044617909938097, -0.022547371685504913, -0.019073305651545525, 0.006731003522872925, 0.006999222096055746, -0.035626210272312164, 0.046865835785865784, 0.008391402661800385, -0.011784577742218971, -0.004470305982977152, -0.03967928886413574, -0.03552403301000595, 0.006909816060215235, 0.061204876750707626, -0.005943378433585167, 0.01473923772573471, 0.004819415509700775, -0.026855895295739174, -0.028388570994138718, -0.02188321202993393, -0.04499256610870361, 0.0514979250729084, -0.0038657502736896276, -0.032152142375707626, -0.011835667304694653, 0.004261691588908434, -0.041246023029088974, -0.034621454775333405, -0.044549793004989624, 0.015650328248739243, 0.008442492224276066, -0.06488329917192459, 0.026992132887244225, 0.024063019081950188, 0.042812760919332504, 0.022632520645856857, -0.031283628195524216, 0.0707755908370018, 0.01252537127584219, 0.015224585309624672, 0.03411056473851204, -0.038044434040784836, 0.0007062018848955631, 0.0037507996894419193, -0.003499611048027873, -0.043528009206056595, -0.02084439806640148, -0.01546300109475851, 0.03233947232365608, 0.04897752404212952, 0.03310580924153328, -0.025783022865653038, -0.036068983376026154, 0.0036720370408147573, -0.032748185098171234, -0.070230633020401, -0.009758039377629757, 0.020810339599847794, 0.002724757883697748, 0.04202939197421074, -0.051293566823005676, -0.019499048590660095, -0.04591217264533043, -0.02649827115237713, 0.03096006251871586, -0.07234232127666473, 0.0006881078006699681, -0.03668205440044403, -0.009136454202234745, 0.022649550810456276, -0.005287733394652605, 0.028320452198386192, -0.028882434591650963, -0.03155610337853432, 0.01722557842731476, 0.0015922804595902562, -0.01259349100291729, -0.06478112190961838, 0.026992132887244225, 0.00672674598172307, -0.004708722233772278, 0.0003374016669113189, 0.026242824271321297, 0.044958505779504776, 0.009110908955335617, 0.026719657704234123, -0.027332728728652, 0.02242816425859928, -0.011401409283280373, -0.013385373167693615, -0.007454767357558012, -0.054461099207401276, 0.018102610483765602, 0.042506225407123566, 0.04383454471826553, 0.06314626336097717, 0.022956086322665215, -0.0961158350110054, 0.009340810589492321, 0.013666364364326, 0.0031313428189605474, -0.025544606149196625, 0.014662603847682476, 0.046865835785865784, 0.021406380459666252, 0.000742390111554414, 0.08242392539978027, 0.032901450991630554, -0.00900021567940712, -0.019771525636315346, 0.011478043161332607, -0.015539634972810745, 0.050578318536281586, 0.013989929109811783, -0.023960839956998825, 0.03285036236047745, -0.02792876958847046, 0.0303640216588974, -0.024522822350263596, 0.021372320130467415, 0.038350969552993774, -0.00636486429721117, -0.05626625195145607, 0.010149722918868065, 0.018903007730841637, 0.014935079030692577, -0.011835667304694653, 0.04328959062695503, 0.059229426085948944, 0.018170729279518127, 0.007791104726493359, 0.016254883259534836, -0.02835451252758503, -0.050442080944776535, -0.004632088355720043, -0.009170513600111008, -0.0705031082034111, 0.07111617922782898, 0.007544173393398523, 0.047717321664094925, -0.018494294956326485, -0.019192513078451157, 0.028456689789891243, 0.01209962833672762, -0.014407157897949219, 0.01854538358747959, 0.029325207695364952, 0.018034491688013077, 0.03213511407375336, 0.011188536882400513, -0.058207642287015915, 0.01886894926428795, 0.039202455431222916, 0.018903007730841637, -0.03869156166911125, -0.034042444080114365, -0.010234871879220009, -0.008344571106135845, 0.0329865999519825, 0.0068800137378275394, 0.006624567788094282, 0.05636842921376228, -0.022240836173295975 ]
43,175
matplotlib.cm
changed
Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
def changed(self): """ Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal. """ self.callbacks.process('changed', self) self.stale = True
(self)
[ 0.0500805489718914, 0.023439763113856316, -0.06756571680307388, 0.037414129823446274, -0.004461643286049366, -0.02529842220246792, -0.01253734715282917, 0.0241109449416399, 0.030530204996466637, 0.02264811098575592, -0.052902959287166595, -0.07469058036804199, 0.05961478501558304, 0.03989234194159508, -0.01963639445602894, -0.015161843039095402, -0.03558988869190216, -0.012261990457773209, 0.01082497090101242, -0.06112924963235855, -0.0051242210902273655, -0.0017629300709813833, 0.053556930273771286, -0.014043205417692661, -0.015566273592412472, -0.00348068424500525, -0.026158912107348442, 0.004184135235846043, 0.04749907925724983, 0.03104649856686592, -0.07400218397378922, -0.060372017323970795, 0.01276967953890562, -0.025986814871430397, 0.0068064802326262, 0.018621016293764114, 0.004711185581982136, 0.01036030612885952, -0.039031852036714554, -0.007043115328997374, 0.021546684205532074, -0.00912980455905199, 0.010239837691187859, 0.030564624816179276, 0.08653093129396439, 0.040924929082393646, -0.050631262362003326, 0.07262540608644485, 0.0547616183757782, 0.029669713228940964, -0.014688573777675629, 0.016443975269794464, -0.017502378672361374, 0.05727425217628479, -0.0042701843194663525, 0.05655143782496452, 0.021168068051338196, 0.07393334805965424, 0.04020211845636368, -0.025160742923617363, 0.00930190272629261, -0.03665689751505852, 0.024128155782818794, -0.07352031022310257, 0.04619113355875015, -0.05273086205124855, 0.06642986834049225, 0.009620284661650658, 0.021443424746394157, 0.00599761912599206, -0.016994688659906387, -0.00606645829975605, 0.011831745505332947, 0.03312888741493225, 0.009697728790342808, 0.029704133048653603, -0.03376564756035805, -0.021856460720300674, -0.007301262114197016, 0.02930830791592598, 0.05125081539154053, -0.03548663109540939, 0.025814715772867203, 0.023577440530061722, -0.04216403514146805, -0.02230391465127468, 0.03426473215222359, -0.04860050603747368, -0.00880281813442707, -0.00535225123167038, -0.028895271942019463, 0.06205857917666435, -0.01334620825946331, 0.018242400139570236, 0.017691684886813164, -0.04412595555186272, -0.019120100885629654, -0.003850695211440325, -0.009542840532958508, 0.01085939072072506, 0.026950564235448837, 0.004169076681137085, -0.016762355342507362, -0.002370651578530669, 0.05138849467039108, 0.019309407100081444, 0.0017274348065257072, -0.03927278891205788, -0.030048329383134842, 0.0189824216067791, -0.009233064018189907, -0.019980590790510178, -0.043850596994161606, 0.052283406257629395, 0.0018436009995639324, 0.04536506161093712, 0.01486927643418312, -0.019670814275741577, 0.002992355963215232, -0.03731086850166321, -0.022751370444893837, 0.038343459367752075, -0.004063666798174381, -0.05851335823535919, 0.03820578008890152, 0.007533594965934753, 0.055209074169397354, 0.046776264905929565, 0.07365798950195312, -0.02075503207743168, -0.027415229007601738, -0.03505638614296913, -0.038343459367752075, -0.024868177250027657, 0.015790002420544624, -0.03879091516137123, 0.011410105042159557, -0.044229213148355484, -0.0342131033539772, 0.03355913236737251, -0.03319772705435753, 0.044538989663124084, 0.05796264484524727, 0.018844742327928543, 0.036415960639715195, -0.017132366076111794, -0.05304063856601715, 0.05431416258215904, -0.026468688622117043, 0.003809821791946888, 0.0309604499489069, -0.03710435330867767, 0.016013728454709053, 0.025160742923617363, -0.0880453959107399, 0.061335764825344086, -0.056792374700307846, -0.015419990755617619, 0.0067032212391495705, -0.014697178266942501, -0.014180884696543217, -0.007555107120424509, -0.015110214240849018, -0.05118197947740555, -0.04498644545674324, 0.03450567275285721, -0.05379787087440491, -0.010248442180454731, -0.04367849975824356, 0.06529401987791061, -0.0075120823457837105, 0.006686011794954538, -0.013871107250452042, -0.007830464281141758, 0.04787769541144371, 0.05469277873635292, 0.0015241438522934914, 0.01110893301665783, 0.0242658331990242, 0.011547783389687538, -0.024472352117300034, -0.018655434250831604, -0.005786798894405365, 0.02781105414032936, -0.00436268700286746, 0.024937016889452934, -0.0199117511510849, 0.026313800364732742, 0.023474182933568954, 0.05052800476551056, 0.005485627334564924, -0.022286705672740936, 0.009740753099322319, -0.016857009381055832, -0.022751370444893837, -0.00891468208283186, 0.005227480083703995, 0.002514783525839448, -0.04949541762471199, 0.06426143646240234, -0.06095714867115021, -0.02553935907781124, -0.039961181581020355, 0.006053551100194454, 0.007800346706062555, 0.003973315004259348, 0.021856460720300674, 0.01141870953142643, 0.05310947820544243, -0.04570925980806351, 0.009964480996131897, 0.042267296463251114, 0.007589526474475861, -0.0035710358060896397, 0.03293957933783531, -0.08384619653224945, -0.014439031481742859, -0.0003393559600226581, 0.021546684205532074, 0.001661822316236794, 0.005950292106717825, 0.0050854990258812904, -0.07751298695802689, -0.023474182933568954, -0.06333210319280624, 0.036415960639715195, 0.013914132490754128, -0.022854629904031754, 0.025246793404221535, 0.0012294258922338486, 0.024162573739886284, 0.04206077754497528, 0.024592820554971695, -0.03132185712456703, 0.07028486579656601, -0.0241109449416399, 0.010601243935525417, -0.010730316862463951, -0.07634272426366806, 0.004835956729948521, 0.01515323854982853, 0.0010449582478031516, 0.005132826045155525, 0.034144263714551926, 0.009852617047727108, -0.034953124821186066, 0.005717959720641375, -0.004007734823971987, -0.02949761599302292, 0.016598863527178764, 0.04040863737463951, -0.03913510963320732, 0.00703881261870265, 0.04312778636813164, 0.029256679117679596, -0.10064297169446945, -0.04302452877163887, 0.0332837738096714, 0.03397216647863388, -0.008458621799945831, -0.017287254333496094, 0.0398235023021698, -0.05458952113986015, 0.047774434089660645, 0.013785058632493019, -0.0005222102045081556, 0.03583082556724548, 0.042542651295661926, -0.0013939946657046676, 0.008092913776636124, 0.094585120677948, -0.032406073063611984, -0.07806370407342911, 0.018655434250831604, -0.04502086713910103, -0.06274697184562683, 0.01011076383292675, -0.03405821695923805, -0.03820578008890152, -0.05121639743447304, 0.0309604499489069, -0.026967773213982582, 0.03562431037425995, -0.0005286638624966145, -0.036760155111551285, -0.02576308697462082, 0.04312778636813164, 0.03275027126073837, -0.03954814746975899, -0.027243129909038544, 0.06405491381883621, -0.022889047861099243, -0.03257817402482033, -0.00379906571470201, 0.014352981932461262, -0.03565872833132744, -0.05403880774974823, 0.062024157494306564, 0.010678688064217567, 0.02134016528725624, 0.009517025202512741, -0.03250933438539505, -0.056792374700307846, 0.0016101929359138012, 0.00761534133926034, -0.0053264363668859005, 0.002145848236978054, 0.016934454441070557, -0.03404100611805916, 0.038068100810050964, 0.01264921110123396, -0.008505948819220066, -0.0821252167224884, 0.009912851266562939, 0.042198456823825836, -0.002463154261931777, -0.011504759080708027, 0.01382808294147253, 0.04849724844098091, 0.058375678956508636, -0.04467666894197464, 0.0019081378122791648, -0.04409153759479523, -0.006268673576414585, -0.02361186034977436, -0.027707796543836594, 0.026451479643583298, 0.03961698338389397, 0.0019522379152476788, -0.04202635958790779, 0.013122481293976307, -0.04357524216175079, 0.052627600729465485, -0.02507469430565834, -0.05472720041871071, -0.02392163686454296, -0.00161772221326828, -0.06556937843561172, 0.018534965813159943, -0.000787886674515903, 0.05923616886138916, 0.01623745635151863, -0.045192964375019073, -0.010041925124824047, -0.03376564756035805, 0.0332837738096714, -0.041578903794288635, 0.054555099457502365, 0.0280003622174263, -0.07813253998756409, -0.03342145308852196, 0.005300621967762709, -0.001216518459841609, 0.09313949942588806, 0.04595019668340683, -0.04767117649316788, 0.03178652003407478, -0.03275027126073837, -0.01486927643418312, -0.061266928911209106, 0.011194981634616852, -0.00226309010758996, -0.018517756834626198, -0.04508970305323601, 0.006535425782203674, 0.032681431621313095, 0.005455510225147009, -0.0578593835234642, 0.055863045156002045, -0.07255656272172928, -0.045158542692661285, -0.0034957427997142076, 0.0023276270367205143, 0.0553811714053154, 0.0286199152469635, -0.0228718388825655, -0.00045121973380446434, 0.053901128470897675, -0.05304063856601715, 0.05083778128027916, 0.007189398631453514, -0.020015010610222816, -0.017261439934372902, -0.022097397595643997, 0.03158000484108925, 0.0060320389457046986, 0.004007734823971987, -0.007012997753918171, -0.009620284661650658, -0.001980203902348876, 0.0326642207801342, -0.01203826256096363, -0.1054617241024971, 0.0035495234187692404, -0.03223397582769394, 0.022269494831562042, 0.011831745505332947, 0.0008610283839516342, 0.025023065507411957, -0.04952983558177948, 0.03366238996386528, -0.03469497710466385, 0.0028224089182913303, -0.00567063270136714, -0.0003089699021074921, -0.0317348912358284, -0.004965030588209629, 0.07420870661735535, -0.02090992033481598, -0.0002675587893463671, -0.0027191501576453447, 0.016478393226861954, -0.01515323854982853, -0.0830889642238617, -0.01490369625389576, -0.054142065346241, -0.014378797262907028, -0.0659479945898056, 0.03127022832632065, 0.06880482286214828, -0.0028912483248859644, 0.04329988360404968, 0.01325155422091484, 0.0006943083135411143, 0.0038593001663684845, -0.03786158561706543, -0.008712466806173325, 0.04071841388940811, -0.010248442180454731, 0.05341925472021103, 0.07971584796905518, 0.02330208383500576, 0.01748516783118248, -0.044848766177892685, 0.002583622932434082, 0.036071762442588806, 0.018018672242760658, -0.02772500552237034, -0.010067739523947239, 0.0013100968208163977, 0.01791541278362274, 0.017381908372044563, 0.028826434165239334, -0.04329988360404968, 0.03710435330867767, -0.042267296463251114, -0.027088241651654243, -0.003515103831887245, 0.02075503207743168, -0.03589966520667076, -0.07923396676778793, -0.03357633948326111, -0.04588135704398155, 0.0008325246162712574, 0.04240497574210167, -0.05689563602209091, 0.007735810242593288, -0.04564042016863823, -0.01272665522992611, -0.01791541278362274, -0.052248984575271606, -0.00964609906077385, -0.03620944172143936, 0.005859940778464079, 0.05541559308767319, 0.03538336977362633, -0.010463564656674862, 0.023973267525434494, -0.042886849492788315, 0.023973267525434494, 0.0581691600382328, -0.02734638936817646, 0.005623305682092905, -0.061989739537239075, -0.03569314628839493, -0.007546502165496349, -0.01001610979437828, 0.012950383126735687, -0.02557377889752388, 0.0104979844763875, 0.0034290547482669353, 0.03183814883232117, 0.042542651295661926, -0.0027793843764811754, -0.012494322843849659, -0.051595013588666916, 0.00962888915091753, -0.047051623463630676, -0.006660196930170059, -0.0485316663980484, -0.06536286324262619, -0.02827571891248226, 0.024696078151464462, 0.021856460720300674, 0.004646649118512869, -0.02915341965854168, -0.008101518265902996, 0.009671913459897041, 0.09045476466417313, -0.018930792808532715, 0.005868545733392239, -0.02495422586798668, -0.02588355541229248, 0.04178542271256447, -0.029170630499720573, -0.02765616588294506, -0.005872847978025675, 0.00872537400573492, -0.03710435330867767, 0.02264811098575592, 0.019481506198644638, -0.013957156799733639, 0.03457450866699219, 0.0245756097137928, -0.00891468208283186, -0.060716211795806885, -0.013638774864375591, 0.028637126088142395, 0.0013498945627361536, 0.026434268802404404, 0.043506402522325516, -0.02853386662900448, 0.05944268777966499, -0.03844671696424484, -0.04918564110994339, -0.07868325710296631, -0.0696997344493866, -0.03961698338389397, -0.003437659703195095, -0.011608017608523369, 0.038894172757864, -0.04650091007351875, 0.02399047650396824, -0.02626217156648636, 0.021942509338259697, 0.020892711356282234, 0.009112594649195671, -0.07957816869020462, -0.07668691873550415, 0.022820210084319115, -0.0007991805905476213, -0.01440461166203022, 0.03851555660367012, 0.03565872833132744, -0.024506770074367523, -0.0070173004642128944, -0.026795675978064537, -0.06553495675325394, 0.007542199455201626, 0.0033752741292119026, -0.042232874780893326, 0.0035796407610177994, 0.036760155111551285, 0.015101608820259571, -0.03565872833132744, -0.025057485327124596, -0.00010742686572484672, -0.028757594525814056, 0.04536506161093712, 0.03524569422006607, -0.0119780283421278, 0.01567813754081726, 0.023319294676184654, 0.08384619653224945, 0.0021350921597331762, 0.06044085696339607, 0.009017940610647202, 0.0290845800191164, 0.0351596437394619, 0.0485316663980484, 0.08632440865039825, 0.014611129648983479, -0.010429145768284798, -0.009697728790342808, 0.03104649856686592, 0.007808951660990715, 0.05248992517590523, -0.02476491779088974, -0.01623745635151863, -0.09437860548496246, 0.025504939258098602, 0.029170630499720573, 0.012158731929957867, 0.0006593508878722787, -0.013638774864375591, 0.019860122352838516, -0.03472939878702164, 0.11083118617534637, 0.017691684886813164, 0.025797506794333458, -0.053625769913196564, -0.006604264955967665, -0.04185425862669945, -0.021770410239696503, 0.03486707806587219, 0.0311153382062912, 0.030134379863739014, -0.037035513669252396, -0.061370186507701874, 0.05345367267727852, 0.023577440530061722, 0.05861661583185196, 0.029394356533885002, -0.06116366758942604, 0.004186286590993404, -0.02072061225771904, -0.04832514747977257, 0.007546502165496349, 0.003059044014662504, 0.06591357290744781, -0.013156900182366371, 0.009121200069785118, 0.0021243360824882984, -0.03376564756035805, 0.028241299092769623, 0.0030977660790085793, -0.037035513669252396, 0.0014348679687827826, 0.018035881221294403, 0.0326642207801342, 0.054520681500434875, 0.02140900492668152, -0.0014864974655210972, 0.008015469647943974, -0.06240277364850044, -0.053901128470897675, 0.018001461401581764, 0.003915232140570879, -0.03178652003407478, -0.0476023368537426, -0.02261369116604328, 0.00234483671374619, 0.024971434846520424, -0.06632661074399948, 0.09444744139909744, -0.019481506198644638, -0.0005165632464922965, 0.01026565209031105, -0.015179052948951721, -0.015187658369541168, 0.007826161570847034, -0.031029289588332176, 0.07296960055828094, -0.05665469914674759, -0.013957156799733639, 0.04250823333859444, -0.019808491691946983, 0.016805380582809448, 0.04632881283760071, -0.027449648827314377, -0.002226519398391247, -0.008329548873007298, -0.021236907690763474, 0.07806370407342911, 0.0466730073094368, 0.005984711926430464, -0.014086230657994747, -0.021099228411912918, 0.0076110390946269035, -0.023370923474431038, -0.059649206697940826, 0.0018349960446357727, -0.01505858451128006, -0.0042121014557778835, 0.09293297678232193, 0.002256636507809162, 0.002107126172631979, 0.05218014866113663, -0.0016112684970721602, 0.06460563093423843, -0.028723174706101418, -0.007189398631453514, 0.001976977102458477, 0.026468688622117043, 0.007180793676525354, -0.11055582761764526, 0.01560069341212511, -0.005614700727164745, 0.0192921981215477, 0.03779274597764015, -0.030633464455604553, 0.02283741906285286, 0.009336322546005249, 0.015110214240849018, 0.00989564135670662, 0.06474331021308899, 0.019842911511659622, -0.0037775535602122545, 0.05469277873635292, 0.0011509060859680176, -0.02479933761060238, -0.00922445859760046, 0.015729766339063644, 0.013002011924982071, -0.05665469914674759, -0.026399850845336914, -0.06663639098405838, -0.07400218397378922, -0.03944488614797592, 0.008036981336772442, 0.06904575973749161, -0.001254164963029325, -0.0072195157408714294, -0.05575978755950928, 0.021753201261162758, 0.052248984575271606, -0.042542651295661926, -0.058754295110702515, -0.007477662991732359, 0.008200475014746189, -0.023697908967733383, 0.023061146959662437, 0.0241109449416399, -0.03782716393470764, 0.0395137257874012, -0.06477773189544678, -0.008579091168940067, -0.04233613610267639, 0.06615450978279114, 0.026279380545020103, -0.03077114187180996, -0.044814348220825195, 0.024816546589136124, -0.0010691594798117876, 0.0392039492726326, 0.05366019159555435, 0.03655363991856575, -0.020634563639760017, -0.03158000484108925, 0.012545952573418617, 0.017622847110033035, -0.020961549133062363, -0.06405491381883621, 0.06350420415401459, 0.04650091007351875, -0.016538627445697784, -0.02507469430565834, 0.019860122352838516, -0.020359206944704056, 0.020307576283812523, 0.008906077593564987, -0.036415960639715195, 0.060406435281038284, 0.03748296946287155, -0.0122878048568964, -0.006186927203088999, 0.016418159008026123, 0.016607467085123062, -0.010196813382208347, 0.01523068267852068, 0.019688023254275322, 0.022854629904031754, -0.0007351816166192293, -0.0007507780101150274, -0.014352981932461262, 0.021116437390446663, -0.040924929082393646, 0.028172461315989494, -0.012485717423260212, 0.002665369538590312, 0.0025276909582316875, 0.03503917530179024, -0.013027827255427837, -0.019980590790510178, 0.06529401987791061, 0.04171658307313919, 0.003996978513896465, 0.02672683633863926 ]
43,176
matplotlib.cm
get_alpha
Returns ------- float Always returns 1.
def get_alpha(self): """ Returns ------- float Always returns 1. """ # This method is intended to be overridden by Artist sub-classes return 1.
(self)
[ 0.003961881622672081, -0.02409954182803631, 0.010238150134682655, 0.06654797494411469, 0.0611962154507637, -0.022454123944044113, -0.024997040629386902, 0.004537361674010754, 0.00005606129707302898, 0.03453713655471802, 0.02448180876672268, -0.010288011282682419, 0.012631483376026154, 0.023567689582705498, -0.012947270646691322, 0.0064445496536791325, 0.023949958384037018, 0.04294704273343086, 0.004254815634340048, -0.02921861596405506, -0.022154957056045532, 0.03201083838939667, 0.013703498058021069, -0.030647968873381615, -0.003078924026340246, 0.020160512998700142, 0.044010747224092484, -0.015390465036034584, -0.02278653159737587, -0.005065058823674917, -0.03407176584005356, -0.0070885890163481236, 0.04676973074674606, 0.05471426993608475, 0.018199307844042778, -0.033473432064056396, -0.01422703918069601, 0.01672009564936161, -0.04809936136007309, 0.016620373353362083, 0.019229771569371223, 0.011709053069353104, 0.051290471106767654, -0.031013615429401398, -0.016304586082696915, -0.004053293261677027, 0.034636858850717545, -0.006531806662678719, -0.013670257292687893, -0.05275306478142738, 0.022603707388043404, -0.018448613584041595, 0.07492464035749435, 0.026193708181381226, -0.021540002897381783, 0.060863807797431946, 0.04334593191742897, -0.01445972453802824, -0.013911251910030842, 0.04504121094942093, 0.025977643206715584, -0.02187241055071354, 0.02172282710671425, -0.06860890239477158, -0.010146738030016422, -0.022570466622710228, -0.019163290038704872, 0.05448158457875252, -0.03513547033071518, 0.06628204882144928, 0.011501298286020756, 0.01362039614468813, 0.01886412315070629, -0.02730727382004261, -0.01580597460269928, 0.05378352850675583, -0.03812713548541069, 0.024265743792057037, 0.061063252389431, -0.01972838304936886, -0.009606575593352318, 0.021008150652050972, 0.05507991462945938, 0.019080188125371933, 0.03513547033071518, -0.0900159403681755, -0.03842630237340927, -0.03324074670672417, 0.02931833826005459, 0.07040390372276306, -0.0385260246694088, 0.013878011144697666, 0.025894541293382645, -0.006698010489344597, -0.01681150682270527, 0.010487455874681473, 0.030249079689383507, -0.09334001690149307, 0.1047748327255249, -0.028121670708060265, 0.018132826313376427, 0.05817130580544472, 0.03476982191205025, 0.016894608736038208, 0.009656436741352081, -0.019661901518702507, -0.02323528192937374, -0.022952735424041748, -0.02399981953203678, 0.04946222901344299, -0.02308569848537445, -0.020376577973365784, -0.024215884506702423, 0.03304130211472511, -0.019695142284035683, -0.08855334669351578, -0.005862836726009846, 0.0018739470979198813, 0.013595465570688248, 0.013545604422688484, 0.012016530148684978, 0.033190883696079254, -0.030797550454735756, 0.016437549144029617, 0.02270342968404293, 0.012049770914018154, 0.003382246010005474, 0.003698033047839999, -0.05255362018942833, -0.04311324656009674, 0.043146487325429916, 0.03290833905339241, -0.02285301312804222, 0.04042074829339981, 0.05085834115743637, -0.021523382514715195, 0.06894131004810333, 0.02921861596405506, 0.00544732715934515, 0.05866991728544235, 0.0013472889550030231, -0.0014968723990023136, 0.06737899035215378, -0.035467877984046936, -0.07519056648015976, 0.014659169130027294, 0.003078924026340246, -0.02386685647070408, -0.027141069993376732, -0.04434315487742424, 0.04949546977877617, 0.008281100541353226, 0.027905605733394623, -0.032575931400060654, 0.027041347697377205, -0.05019352585077286, -0.004123929888010025, -0.05115750804543495, 0.050060562789440155, 0.021290697157382965, -0.008659214712679386, 0.016711784526705742, -0.02624356932938099, -0.04903009906411171, -0.00982264056801796, 0.03453713655471802, -0.028736624866724014, 0.009365580044686794, -0.019312873482704163, -0.03553435951471329, 0.02547903172671795, -0.028670143336057663, -0.024963799864053726, 0.019196530804038048, 0.03457037732005119, 0.06561723351478577, 0.007317119278013706, 0.056741952896118164, 0.04128500819206238, 0.05195528641343117, 0.04052047058939934, -0.06016575172543526, -0.07505760341882706, -0.022437503561377525, 0.08057557046413422, -0.00855949241667986, 0.06445381045341492, 0.051755841821432114, -0.006107986904680729, -0.003754126839339733, 0.02248736470937729, 0.0031724136788398027, -0.033872321248054504, -0.027639679610729218, -0.0199444480240345, -0.025379309430718422, 0.025196485221385956, -0.03835982084274292, 0.02087518945336342, 0.028553800657391548, -0.05468102917075157, -0.028520559892058372, -0.01886412315070629, 0.016163311898708344, 0.053584083914756775, 0.02376713417470455, 0.009914052672684193, -0.04397750645875931, -0.09214334934949875, -0.05119074881076813, -0.06302445381879807, -0.02685852348804474, 0.004404399078339338, 0.013088543899357319, -0.01947907730937004, -0.09639816731214523, 0.028021948412060738, 0.010387733578681946, 0.01292234007269144, 0.08130686730146408, -0.011733983643352985, -0.022969355806708336, 0.040154822170734406, -0.0029563489370048046, 0.056343063712120056, -0.005426551681011915, 0.047135379165410995, 0.03826009854674339, -0.058038342744112015, -0.020077411085367203, -0.024797596037387848, -0.03998861834406853, 0.001160309766419232, 0.003274213522672653, 0.004686945118010044, 0.07027094066143036, 0.019761623814702034, 0.02577819861471653, -0.1095615029335022, -0.02047630026936531, 0.004227807279676199, 0.02263694815337658, 0.05102454498410225, 0.039922136813402176, -0.08343427628278732, -0.020542781800031662, -0.005439016968011856, 0.05584445223212242, -0.05009380355477333, -0.017833659425377846, -0.030864031985402107, -0.002758981892839074, 0.017318429425358772, 0.014177178032696247, 0.009614885784685612, -0.02832111530005932, -0.052055008709430695, 0.003671024926006794, 0.015548358671367168, -0.01323812734335661, -0.04809936136007309, 0.008343427442014217, -0.0015082989120855927, 0.07492464035749435, 0.023418106138706207, 0.03583352267742157, 0.026293430477380753, 0.030631348490715027, 0.024614771828055382, 0.03643185645341873, 0.04404398798942566, -0.001727479975670576, -0.014634238556027412, -0.019395975396037102, -0.001263148384168744, -0.015598219819366932, 0.008497165516018867, 0.041152045130729675, -0.04211602360010147, 0.02670894004404545, 0.028819726780056953, -0.010819862596690655, -0.07299667596817017, 0.039556488394737244, 0.00212013628333807, -0.005576135125011206, 0.022337781265378, 0.023567689582705498, -0.023733893409371376, -0.007184156216681004, 0.007595510687679052, 0.02577819861471653, 0.0359332449734211, -0.025678476318717003, 0.06272529065608978, -0.06382223218679428, -0.006772802211344242, 0.0068268184550106525, 0.02983357012271881, 0.03629889339208603, 0.015623150393366814, -0.038559265434741974, -0.003671024926006794, 0.006685545202344656, -0.052886027842760086, 0.035567596554756165, -0.005023507867008448, 0.037562042474746704, 0.004890544805675745, 0.0003848655032925308, 0.0071966215036809444, 0.04175037890672684, -0.04643732309341431, 0.043080005794763565, -0.010844793170690536, -0.013603775762021542, 0.016088521108031273, -0.00950685329735279, 0.007030417677015066, 0.08596056699752808, -0.021124493330717087, 0.03752880170941353, -0.03799417242407799, -0.004223652184009552, 0.037429079413414, -0.07060334831476212, 0.011950048618018627, 0.058038342744112015, 0.027340514585375786, -0.034636858850717545, -0.07652019709348679, -0.042082782834768295, -0.00820215418934822, -0.007209086790680885, -0.09274168312549591, -0.026642458513379097, 0.01949569769203663, 0.0018240859499201179, 0.032725512981414795, -0.048365287482738495, -0.007570580113679171, -0.01718546636402607, -0.023301763460040092, 0.0560106560587883, 0.005002732388675213, 0.01431014109402895, 0.054282139986753464, -0.055512044578790665, 0.06634853035211563, -0.019844725728034973, -0.01511622965335846, -0.05564500764012337, 0.016620373353362083, 0.01161764096468687, 0.016836438328027725, -0.006481945514678955, -0.037861209362745285, -0.05611037835478783, -0.01696109026670456, 0.03706343099474907, 0.008459770120680332, -0.0348363034427166, -0.026642458513379097, 0.036863986402750015, -0.05308547243475914, -0.02647625468671322, 0.006702165585011244, -0.03314102441072464, 0.04042074829339981, -0.026143847033381462, -0.010720140300691128, -0.012191043235361576, -0.03982241451740265, -0.044376395642757416, 0.0013348236680030823, -0.012506830506026745, 0.02285301312804222, 0.034105006605386734, 0.029019171372056007, -0.006398843601346016, 0.03922408074140549, 0.04311324656009674, -0.06887482851743698, 0.019462456926703453, -0.012889099307358265, -0.025744957849383354, 0.0020775466691702604, -0.028720004484057426, -0.005833751056343317, 0.013396020978689194, -0.006087211426347494, 0.0001767213107086718, 0.0361991710960865, -0.04404398798942566, -0.0329914391040802, -0.001023711054585874, -0.0048406836576759815, -0.07047038525342941, -0.02599426358938217, 0.030199218541383743, 0.021972132846713066, -0.015822594985365868, 0.011974979192018509, -0.00323058501817286, -0.004271436017006636, -0.004342072643339634, 0.06039843708276749, 0.04620463773608208, -0.04773371294140816, 0.03368949517607689, -0.05055917426943779, 0.027639679610729218, -0.06860890239477158, -0.018847502768039703, 0.021540002897381783, -0.01579766534268856, -0.0096315061673522, -0.0946696475148201, -0.03282523527741432, 0.02532944828271866, -0.02739037573337555, 0.03083079122006893, 0.011709053069353104, 0.07126815617084503, 0.018697919324040413, -0.01864805817604065, 0.01224090438336134, 0.028869587928056717, -0.01247358974069357, -0.004221574869006872, -0.046370841562747955, -0.05198852717876434, 0.025595374405384064, -0.05953417718410492, 0.017983242869377136, 0.01863143779337406, -0.017052503302693367, -0.05471426993608475, -0.05102454498410225, -0.015556668862700462, 0.07798279076814651, 0.03520195186138153, 0.007354515139013529, 0.045539822429418564, 0.021207595244050026, -0.044908247888088226, 0.021190974861383438, 0.02700810693204403, 0.05913528800010681, -0.04657028615474701, -0.041617415845394135, 0.0584704726934433, 0.03014935739338398, -0.021739447489380836, 0.037429079413414, -0.02134055830538273, -0.04218250513076782, -0.037628524005413055, 0.003444572212174535, -0.014443104155361652, -0.006398843601346016, 0.0747251957654953, -0.04839852824807167, -0.019994309172034264, 0.00839328859001398, -0.0030934668611735106, 0.05517963692545891, 0.010179978795349598, -0.03899139538407326, -0.00708027882501483, 0.09334001690149307, 0.0023185419850051403, 0.008497165516018867, -0.04381130263209343, -0.0025720028206706047, 0.020659124478697777, -0.04500797018408775, 0.020376577973365784, 0.027440236881375313, -0.022354401648044586, 0.007404376287013292, -0.02830449491739273, -0.0013182032853364944, -0.020659124478697777, 0.03590000420808792, 0.03998861834406853, -0.06209371238946915, 0.015340604819357395, 0.03978917375206947, 0.008983311243355274, -0.020758846774697304, 0.007333739660680294, 0.011152270250022411, 0.03746232017874718, -0.028520559892058372, -0.0001503624371252954, 0.0718664899468422, 0.019229771569371223, -0.03275875374674797, 0.0349692665040493, 0.0018261634977534413, -0.023916717618703842, -0.004782512318342924, -0.025944402441382408, 0.031645189970731735, -0.043379172682762146, -0.024963799864053726, -0.04793315753340721, -0.00786143634468317, 0.016612062230706215, 0.029418060556054115, -0.03659806028008461, 0.06684713810682297, -0.055744729936122894, 0.0435786172747612, 0.009299098514020443, -0.0206258837133646, 0.016769956797361374, 0.03398866206407547, 0.009332339279353619, -0.0023663255851715803, -0.022952735424041748, -0.02361755073070526, -0.03922408074140549, -0.016836438328027725, 0.020293476060032845, -0.05471426993608475, 0.004140550270676613, 0.005833751056343317, 0.05501343309879303, 0.00500688748434186, -0.012531761080026627, -0.003887089667841792, 0.03290833905339241, -0.01499157678335905, 0.046603526920080185, -0.06914075464010239, 0.015922317281365395, 0.010479145683348179, 0.017285188660025597, 0.03958972916007042, -0.03084741160273552, 0.034470655024051666, -0.05531259998679161, 0.04676973074674606, -0.015706252306699753, -0.03536815568804741, 0.016587132588028908, 0.023451346904039383, 0.017468012869358063, -0.007977779023349285, -0.008027640171349049, -0.02822139300405979, -0.044542599469423294, 0.06046491861343384, 0.031246300786733627, 0.023966578766703606, -0.02047630026936531, -0.013570534996688366, 0.04650380462408066, 0.03889167308807373, -0.018066344782710075, 0.04367833957076073, -0.01454282645136118, -0.05438186228275299, -0.011351714842021465, 0.024215884506702423, 0.03068120963871479, 0.018980465829372406, -0.01765083707869053, -0.010495766066014767, -0.0035255965776741505, 0.031013615429401398, 0.026044124737381935, -0.08755612373352051, 0.022603707388043404, -0.03476982191205025, -0.037628524005413055, -0.01553173828870058, -0.056143619120121, -0.002607321133837104, -0.04298028349876404, -0.0011010997695848346, -0.014177178032696247, 0.0062451050616800785, -0.01824916899204254, 0.0286202821880579, 0.058869361877441406, -0.023650791496038437, -0.00414262805134058, -0.04903009906411171, -0.026958245784044266, -0.013146715238690376, -0.06565047055482864, -0.023800374940037727, -0.07339556515216827, -0.02493055909872055, -0.03766176477074623, -0.02376713417470455, -0.00006849411875009537, 0.01565639115869999, -0.017983242869377136, -0.005958403926342726, 0.018199307844042778, 0.057340286672115326, -0.01971176266670227, 0.049761395901441574, -0.012764446437358856, -0.05238741636276245, -0.058736398816108704, -0.01603865996003151, 0.031262923032045364, -0.018315650522708893, -0.08576112240552902, 0.024830836802721024, -0.007346204947680235, 0.013470812700688839, 0.006332362070679665, 0.018980465829372406, 0.06784436106681824, -0.06465324759483337, 0.05418241769075394, -0.020725606009364128, 0.03314102441072464, 0.009997154586017132, -0.049994081258773804, 0.06737899035215378, -0.06594964116811752, 0.00939882081001997, -0.06505213677883148, 0.02077546715736389, 0.023949958384037018, -0.03192773833870888, -0.06485269218683243, -0.04088611900806427, -0.0260939858853817, -0.021440280601382256, 0.006963936146348715, -0.004666169639676809, 0.012839238159358501, -0.008181378245353699, 0.04693593457341194, -0.03736259788274765, 0.035102229565382004, 0.005322674289345741, 0.02125745639204979, -0.08163927495479584, -0.035567596554756165, 0.038093894720077515, -0.057739175856113434, -0.026426393538713455, 0.018299030140042305, 0.026958245784044266, 0.02891944907605648, -0.03736259788274765, -0.018980465829372406, 0.017434772104024887, 0.058038342744112015, -0.020426439121365547, -0.025262966752052307, -0.04244843125343323, -0.004275591112673283, -0.04188334196805954, 0.05468102917075157, 0.07804927229881287, -0.02670894004404545, -0.03136264532804489, -0.055811211466789246, -0.004612153396010399, -0.052354175597429276, -0.03826009854674339, 0.04500797018408775, 0.0019019939936697483, -0.030033014714717865, -0.016329515725374222, 0.020193753764033318, -0.008567802608013153, 0.03513547033071518, 0.06648149341344833, 0.027207551524043083, 0.010238150134682655, 0.01093620527535677, -0.024348845705389977, 0.01657051220536232, 0.049229543656110764, 0.006157848052680492, -0.05690815672278404, 0.047833435237407684, 0.0048406836576759815, -0.05315195396542549, -0.08336779475212097, -0.051057785749435425, -0.012058081105351448, 0.0027652145363390446, 0.04351213574409485, -0.015049748122692108, -0.02669231966137886, 0.05448158457875252, 0.050525933504104614, -0.028271254152059555, 0.009581645019352436, 0.024830836802721024, -0.04434315487742424, 0.035168711096048355, 0.025528892874717712, 0.0007593432674184442, -0.02577819861471653, -0.013038682751357555, -0.0498611181974411, -0.033174265176057816, -0.022055234760046005, 0.05960065871477127, -0.03543463721871376, -0.004475035239011049, -0.013836460188031197, 0.06744547188282013, 0.032659031450748444, 0.00548887811601162, 0.023135559633374214, 0.05664223060011864, -0.016545580700039864, -0.023584309965372086, 0.030864031985402107, 0.03998861834406853, -0.037329357117414474, 0.001139534288085997, -0.04710213840007782, -0.020908430218696594, -0.053517602384090424, -0.04194982349872589, -0.004044983070343733, 0.015697943046689034, -0.015290743671357632, 0.04657028615474701, -0.04942898824810982, 0.00563846156001091, 0.0014096153900027275, -0.04268111661076546, 0.005995799787342548, -0.024980420246720314, 0.030647968873381615, -0.008239549584686756, -0.03530167415738106, -0.026526115834712982, 0.03322412446141243, 0.04071991518139839, -0.00014750580885447562, 0.027672920376062393, 0.014684099704027176, -0.008958380669355392, 0.029418060556054115, 0.048597969114780426, 0.02522972598671913, 0.021972132846713066, 0.07512408494949341, -0.033639635890722275, 0.046836212277412415, 0.006648149341344833, 0.02968398667871952, -0.020526161417365074, -0.061096493154764175, -0.05102454498410225, 0.01565639115869999, 0.04440963640809059, -0.05438186228275299, 0.05936797335743904, -0.0013701419811695814, 0.034703340381383896 ]
43,177
matplotlib.cm
get_array
Return the array of values, that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the array.
def get_array(self): """ Return the array of values, that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the array. """ return self._A
(self)
[ -0.013673629611730576, -0.07047376781702042, -0.010674197226762772, 0.024493930861353874, 0.03578692302107811, 0.0503629595041275, -0.03891526907682419, -0.05940422788262367, 0.07968692481517792, 0.002855476690456271, -0.009049862623214722, -0.019629523158073425, 0.052872516214847565, 0.026814408600330353, 0.008009945042431355, -0.018976351246237755, 0.03190227225422859, 0.0487128421664238, 0.040049728006124496, 0.054385121911764145, -0.0024644332006573677, -0.037162020802497864, 0.04314369708299637, 0.005749627947807312, -0.011499255895614624, -0.0074470145627856255, 0.012264154851436615, -0.03167881816625595, 0.042421769350767136, -0.00538866501301527, -0.10540125519037247, -0.00039480350096710026, -0.010106969624757767, 0.05689467489719391, 0.05998864769935608, -0.04338433966040611, 0.022775059565901756, 0.03324299305677414, -0.018581010401248932, 0.005410150624811649, 0.0003327629528939724, -0.03384459763765335, -0.018907595425844193, -0.008753357455134392, 0.02810356393456459, -0.01759265922009945, 0.023256342858076096, -0.018168481066823006, -0.04152795672416687, -0.03692137822508812, 0.005478905513882637, -0.046203289180994034, 0.017515309154987335, 0.05940422788262367, 0.039018403738737106, 0.07714299112558365, -0.0025439311284571886, 0.013665035367012024, -0.03980908542871475, 0.0013611320173367858, -0.03009745478630066, -0.02636750228703022, 0.0476471409201622, -0.06741417199373245, 0.027467580512166023, -0.0470971018075943, -0.0011699075112119317, 0.07116131484508514, 0.0687548965215683, 0.02684878744184971, -0.01878727599978447, -0.002683589467778802, 0.03764330595731735, -0.03454933315515518, 0.028241073712706566, 0.0232735313475132, 0.004408907610923052, 0.0221906416118145, 0.01878727599978447, -0.0286879800260067, 0.004286438226699829, 0.07982443273067474, 0.024184534326195717, 0.023961080238223076, 0.0038373826537281275, -0.07226139307022095, -0.03963719680905342, 0.026762843132019043, -0.06600470095872879, 0.011258614249527454, 0.001095243962481618, 0.00587424635887146, -0.03833085298538208, 0.1012072041630745, -0.05658527836203575, 0.006222317926585674, 0.0006606915849260986, 0.032142914831638336, 0.05689467489719391, 0.008817815221846104, 0.005221074912697077, -0.03994659334421158, 0.04885035380721092, 0.014661981724202633, -0.03534001484513283, 0.011060943827033043, -0.021296828985214233, 0.02009361796081066, -0.001292377128265798, 0.03097408078610897, 0.028069185093045235, 0.09646312147378922, 0.009651468135416508, -0.007597415708005428, -0.03298516198992729, -0.0033281666692346334, -0.025594009086489677, -0.015246397815644741, -0.00488589471206069, 0.015959730371832848, -0.027759788557887077, 0.01310640200972557, 0.04895348474383354, 0.01182584185153246, 0.023892326280474663, 0.04297180846333504, -0.037712059915065765, -0.0037578847259283066, -0.04142482578754425, 0.0013912123395130038, -0.04699397087097168, -0.021365582942962646, -0.04159671068191528, -0.036130696535110474, 0.03534001484513283, -0.025972161442041397, 0.02621280401945114, -0.025456499308347702, 0.016819166019558907, 0.03925904631614685, 0.03394772857427597, 0.04218112677335739, 0.0008712534327059984, -0.012857165187597275, 0.01283138245344162, -0.00941942073404789, 0.10443868488073349, 0.05747909098863602, -0.0016415230929851532, 0.014498688280582428, -0.021193696185946465, 0.05029420554637909, 0.05328504368662834, 0.0286879800260067, 0.026573767885565758, -0.018340367823839188, 0.0040608360432088375, -0.04152795672416687, 0.01023588515818119, -0.0035365798976272345, -0.06978622078895569, -0.01688792183995247, -0.039499688893556595, -0.05276938155293465, -0.0014105496229603887, 0.03750579431653023, 0.015796437859535217, -0.012539174407720566, -0.03274451941251755, -0.02782854437828064, -0.04582513868808746, -0.13792231678962708, -0.05809788778424263, 0.05111926421523094, 0.06645160913467407, 0.029788058251142502, -0.048369068652391434, 0.04582513868808746, 0.024236099794507027, 0.021503092721104622, 0.018374746665358543, 0.0034398932475596666, -0.03561503440141678, -0.013123590499162674, 0.014283829368650913, -0.011774275451898575, 0.043006185442209244, -0.022946946322917938, 0.008852193132042885, 0.043349962681531906, 0.039705950766801834, 0.022603170946240425, -0.008035728707909584, 0.026780031621456146, 0.03822772204875946, -0.04049663245677948, -0.05490078404545784, -0.02518147975206375, 0.002967203501611948, 0.017076997086405754, -0.023531362414360046, -0.06456084549427032, -0.048369068652391434, 0.03812459111213684, -0.00941942073404789, -0.03260700777173042, 0.03042404167354107, -0.0324866883456707, -0.009290505200624466, -0.015495634637773037, -0.010132752358913422, -0.028086375445127487, 0.030252153053879738, 0.004649549722671509, 0.047681521624326706, -0.03439463675022125, 0.009806167334318161, -0.02896299958229065, -0.02848171442747116, 0.06019490957260132, 0.024115780368447304, -0.026006538420915604, 0.015727682039141655, 0.0018649764824658632, -0.04379686713218689, -0.006097699981182814, -0.011765681207180023, -0.0035086481366306543, -0.014137725345790386, -0.018288802355527878, 0.008761951699852943, -0.005925812758505344, -0.019956108182668686, 0.006845409050583839, 0.02404702454805374, 0.012444635853171349, 0.05668840929865837, 0.0006660630460828543, -0.010631226003170013, 0.05276938155293465, -0.029444284737110138, 0.015014350414276123, 0.05661965534090996, 0.04850658029317856, 0.010330422781407833, 0.027794165536761284, 0.006621955893933773, 0.07927439361810684, -0.01679338328540325, 0.005543363280594349, -0.07501158863306046, -0.0227406807243824, 0.026728466153144836, 0.03276170790195465, -0.004877300467342138, -0.03243512287735939, 0.00010756381379906088, 0.010725763626396656, -0.0030617413576692343, -0.010975000448524952, -0.033277370035648346, -0.010218696668744087, 0.07391151040792465, 0.036955755203962326, 0.00977178942412138, 0.02148590423166752, 0.025456499308347702, 0.06597032397985458, -0.05507267266511917, 0.05565708875656128, 0.06346076726913452, 0.039705950766801834, -0.008521310053765774, -0.04273116588592529, -0.023754816502332687, 0.02500959299504757, 0.014326801523566246, 0.0243564210832119, 0.03661198168992996, 0.02485489472746849, -0.003448487725108862, -0.040255989879369736, -0.04489694535732269, -0.009221750311553478, -0.024184534326195717, -0.021399961784482002, 0.01969827711582184, 0.016664467751979828, 0.006089105270802975, -0.026986297219991684, 0.01992173120379448, -0.011593794450163841, -0.06318575143814087, -0.017824705690145493, 0.05613837018609047, -0.023686060681939125, -0.059748005121946335, 0.03313985839486122, -0.010218696668744087, -0.007842355407774448, 0.044312529265880585, -0.034893110394477844, 0.025628387928009033, 0.03487592190504074, -0.06291072815656662, -0.002230237005278468, 0.0047183046117424965, 0.04001534730195999, -0.026006538420915604, 0.003594591747969389, 0.003974892199039459, 0.04121856018900871, -0.06184502691030502, 0.014868246391415596, -0.027862921357154846, -0.018821652978658676, 0.0186841432005167, 0.018907595425844193, 0.042903054505586624, 0.06315137445926666, -0.04695959389209747, -0.054557010531425476, -0.03929342329502106, -0.027742600068449974, 0.027381636202335358, 0.024218911305069923, 0.015169048681855202, -0.010794518515467644, 0.031369421631097794, 0.013355638831853867, -0.007129023317247629, -0.0011108212638646364, -0.023668872192502022, 0.01131877489387989, 0.012839976698160172, -0.06913305073976517, -0.004346598405390978, -0.0006386685417965055, -0.02160622552037239, -0.06459522247314453, -0.09185653924942017, 0.010639820247888565, -0.028361395001411438, 0.016965270042419434, 0.00874476321041584, 0.006097699981182814, -0.044037509709596634, 0.015701899304986, 0.01031323429197073, -0.05228809639811516, 0.043659359216690063, -0.007618901785463095, 0.008276370353996754, 0.09611934423446655, -0.015340936370193958, 0.03406805172562599, -0.0335523895919323, -0.02127964049577713, 0.009238938800990582, 0.05923234298825264, 0.04933163896203041, -0.028017619624733925, 0.021674981340765953, -0.055794596672058105, 0.02311883307993412, 0.03747141733765602, -0.0654890388250351, -0.043006185442209244, 0.02506115846335888, -0.032194480299949646, 0.0011527187889441848, 0.011086726561188698, -0.04613453522324562, -0.010304640047252178, -0.017523903399705887, -0.04145920276641846, -0.048059672117233276, 0.018581010401248932, -0.017403582111001015, 0.003130496246740222, 0.01765281893312931, -0.0004850442928727716, -0.018048159778118134, -0.007954081520438194, -0.03558065742254257, 0.010725763626396656, 0.01672462746500969, 0.012676684185862541, -0.07109256088733673, 0.042318638414144516, -0.0335695780813694, -0.053731951862573624, -0.01597691886126995, -0.06837674230337143, -0.03130066767334938, -0.007966973818838596, 0.00045764975948259234, 0.06676100194454193, 0.0009378597605973482, -0.045618873089551926, -0.058613549917936325, -0.024992404505610466, 0.05620712786912918, -0.031592875719070435, -0.052700627595186234, -0.06469835340976715, -0.012014918029308319, 0.04462192580103874, 0.015882380306720734, -0.001195690594613552, 0.018271613866090775, 0.027037862688302994, 0.02538774535059929, -0.024700196459889412, 0.010579659603536129, -0.05747909098863602, 0.007296613417565823, -0.06772357225418091, 0.025147102773189545, 0.04596264660358429, 0.020385826006531715, -0.013132184743881226, -0.017910649999976158, 0.02186405658721924, 0.008981107734143734, -0.025628387928009033, -0.005470311269164085, 0.06885802745819092, 0.012504796497523785, -0.0009851286886259913, -0.019681088626384735, -0.03974032774567604, -0.0070903487503528595, -0.07899937778711319, -0.050225451588630676, -0.008710386231541634, -0.012246965430676937, 0.0221906416118145, 0.050981756299734116, 0.03064749389886856, 0.05634463578462601, 0.03709326684474945, 0.023187588900327682, -0.03222885727882385, 0.015143265947699547, -0.05338817462325096, -0.04310932010412216, 0.021210884675383568, -0.016801977530121803, -0.03217729181051254, -0.0013858408201485872, 0.027209749445319176, 0.03747141733765602, -0.029856814071536064, 0.04558449611067772, 0.030200587585568428, -0.03822772204875946, -0.06562654674053192, 0.035047806799411774, 0.002438650233671069, 0.015392501838505268, -0.008491229265928268, -0.06363265216350555, -0.057100940495729446, -0.023153210058808327, -0.024751761928200722, 0.011258614249527454, -0.015392501838505268, -0.0341196171939373, -0.002969352062791586, 0.030836571007966995, 0.013192345388233662, -0.01754109188914299, -0.0828496515750885, -0.018804464489221573, 0.029306774958968163, -0.018666954711079597, 0.034411825239658356, -0.04754400998353958, -0.0034721221309155226, -0.054006971418857574, -0.043556224554777145, 0.016913704574108124, -0.05441949889063835, -0.018529444932937622, 0.07954941689968109, 0.04541260749101639, 0.007739223074167967, 0.0232735313475132, 0.010562471114099026, -0.04984729737043381, 0.009917893446981907, -0.005771114025264978, 0.05496953800320625, -0.02334228716790676, 0.01388848852366209, 0.08353719860315323, -0.04850658029317856, 0.01932012476027012, 0.06184502691030502, 0.011679737828671932, -0.026676898822188377, -0.05235685408115387, -0.0062781814485788345, 0.02213907614350319, -0.0882125273346901, -0.017618441954255104, -0.018099725246429443, -0.0029263801407068968, -0.0056464956142008305, -0.00537147605791688, 0.014232262969017029, -0.02208751067519188, -0.06737979501485825, 0.0003187971014995128, -0.02528461255133152, -0.026384690776467323, -0.03943093121051788, -0.039224669337272644, -0.01361346896737814, -0.02181249111890793, 0.0422498844563961, -0.05799475312232971, 0.03308829292654991, -0.060126155614852905, 0.062120046466588974, -0.006854003760963678, -0.03719639778137207, -0.023479796946048737, 0.008400988765060902, -0.032830461859703064, -0.04695959389209747, -0.022671926766633987, 0.07281143218278885, -0.04314369708299637, 0.05190994590520859, 0.01240166462957859, -0.03530563786625862, -0.004606578033417463, 0.02246566116809845, 0.026126859709620476, 0.01480808574706316, 0.09611934423446655, 0.014447122812271118, 0.006437176838517189, -0.01823723502457142, -0.06101996824145317, -0.0035988891031593084, -0.008443960919976234, -0.04046225547790527, 0.04434690624475479, 0.005844166036695242, 0.006381313782185316, -0.02765665575861931, 0.059369850903749466, 0.039705950766801834, 0.007966973818838596, -0.0492628812789917, -0.028980188071727753, 0.021640602499246597, 0.03016621060669422, -0.006682116538286209, -0.01120704784989357, 0.000987277366220951, -0.05201307684183121, 0.01345877069979906, -0.01191178523004055, 0.08656240999698639, -0.027381636202335358, -0.05029420554637909, -0.00494175823405385, -0.018598198890686035, -0.03216010332107544, 0.001851010718382895, 0.04266241192817688, 0.01677619479596615, 0.013226723298430443, -0.05025982856750488, -0.008211912587285042, -0.06297948211431503, -0.0030273639131337404, 0.030355285853147507, -0.0051652113907039165, -0.044312529265880585, 0.04228426143527031, 0.0003271228924859315, -0.033053915947675705, 0.04754400998353958, -0.002986540785059333, -0.049778543412685394, 0.007954081520438194, 0.006703602150082588, -0.024700196459889412, 0.0029457174241542816, -0.01971546560525894, -0.009479581378400326, -0.004739790689200163, 0.0007600638782605529, 0.00788102950900793, 0.020110806450247765, 0.021142130717635155, 0.011894596740603447, -0.026539389044046402, 0.0011194156249985099, 0.0030080266296863556, -0.06346076726913452, 0.04585951566696167, -0.036130696535110474, 0.006746574304997921, -0.009831950068473816, -0.05723844841122627, -0.008594362065196037, -0.01629490964114666, -0.0405997671186924, 0.04200924187898636, -0.029048943892121315, -0.045343853533267975, 0.09783821552991867, 0.004067281726747751, 0.08835004270076752, 0.03812459111213684, -0.0368182472884655, -0.02181249111890793, 0.009428014978766441, 0.022809436544775963, -0.0124532300978899, 0.03461809083819389, -0.04066852107644081, 0.010717169381678104, 0.00984913855791092, 0.05225371941924095, 0.03867463022470474, 0.02035144902765751, -0.06885802745819092, -0.008319342508912086, -0.03198821470141411, -0.01711137406527996, 0.044209398329257965, 0.009410826489329338, 0.039018403738737106, -0.010192913003265858, -0.001357909175567329, 0.016492580994963646, 0.019027916714549065, 0.035649411380290985, -0.042524904012680054, -0.030991269275546074, -0.014275235123932362, 0.039224669337272644, -0.004984729923307896, -0.034016482532024384, 0.0015136819565668702, -0.011439095251262188, 0.04321245104074478, -0.016217561438679695, 0.008263478986918926, -0.027536336332559586, 0.04142482578754425, -0.0470971018075943, 0.004512039944529533, -0.09247533231973648, 0.06490462273359299, -0.02906613238155842, -0.017188724130392075, 0.036680735647678375, -0.027467580512166023, 0.021348394453525543, 0.004380975849926472, -0.013879894278943539, 0.06081370636820793, -0.03350082412362099, 0.021348394453525543, -0.015555795282125473, -0.023239154368638992, 0.02225939743220806, 0.01148206740617752, 0.0579259991645813, 0.01453306619077921, 0.07047376781702042, -0.01830599084496498, 0.00868889968842268, 0.011026565916836262, -0.03822772204875946, 0.10526374727487564, 0.053353797644376755, 0.01066560298204422, -0.01785908453166485, -0.004890191834419966, 0.01863257586956024, 0.01542687974870205, -0.001012523309327662, -0.012521984986960888, 0.051463037729263306, -0.004610875155776739, -0.03994659334421158, 0.07872435450553894, -0.05545082315802574, -0.009462392888963223, 0.000016987292838166468, 0.026401879265904427, 0.010321828536689281, -0.023617306724190712, -0.06342639029026031, 0.026539389044046402, 0.036302585154771805, 0.028223885223269463, 0.02334228716790676, 0.019990485161542892, 0.03439463675022125, 0.0038545713759958744, 0.005582037847489119, 0.04792216047644615, 0.025164291262626648, -0.0286879800260067, -0.020488958805799484, -0.013819733634591103, -0.05483203008770943, 0.024923648685216904, -0.04489694535732269, 0.047509633004665375, -0.011456284672021866, 0.03647447004914284, 0.06208566948771477, 0.03991221636533737, -0.04802529513835907, 0.04262803494930267, 0.025250235572457314, -0.02739882655441761, -0.018752897158265114, -0.00026615665410645306, -0.0021947852801531553, 0.014988566748797894, -0.004722601734101772, 0.06902991235256195, -0.0238235704600811, 0.01635507121682167, -0.005023404490202665, -0.02891143411397934, 0.00098835164681077, -0.015143265947699547, -0.007713439874351025, -0.06792983412742615, -0.006626253016293049, 0.007438420318067074, 0.009617091156542301, 0.011645359918475151, 0.006656333338469267, 0.03894964978098869, -0.018151292577385902, -0.04080602899193764, 0.014851056970655918, 0.08154330402612686, -0.039877839386463165, 0.014421339146792889, 0.029581794515252113, -0.045446984469890594, 0.03284765034914017, -0.05160054937005043, 0.00804002583026886, -0.03661198168992996, -0.06868614256381989, 0.012358692474663258, -0.07226139307022095, 0.04286867752671242, 0.04410626366734505, 0.04235301539301872, 0.0325038768351078, -0.010330422781407833 ]
43,178
matplotlib.cm
get_clim
Return the values (min, max) that are mapped to the colormap limits.
def get_clim(self): """ Return the values (min, max) that are mapped to the colormap limits. """ return self.norm.vmin, self.norm.vmax
(self)
[ 0.04719426855444908, -0.03369775414466858, 0.036815013736486435, 0.02462461031973362, -0.016326431185007095, 0.04162151366472244, 0.01132836565375328, -0.02457236684858799, 0.009673953987658024, 0.014001547358930111, -0.042248450219631195, 0.004910990130156279, 0.009464976377785206, 0.01231230515986681, 0.011633126065135002, 0.03751160576939583, -0.0021017559338361025, -0.042492255568504333, 0.042387768626213074, 0.007257642690092325, 0.022430337965488434, -0.03848683834075928, 0.0063912533223629, -0.030702397227287292, -0.01821594312787056, 0.02563467249274254, -0.021315786987543106, -0.002066926099359989, -0.0016065207310020924, -0.02831656113266945, -0.11570432782173157, 0.0319562666118145, 0.03456849604845047, -0.01672697253525257, 0.024781344458460808, -0.03824303299188614, 0.06986841559410095, -0.008298180066049099, -0.08749224990606308, 0.010892994701862335, -0.0004876160528510809, -0.04468652978539467, 0.012538698501884937, 0.020253481343388557, 0.044198911637067795, -0.023266252130270004, -0.001055231667123735, -0.02922213450074196, -0.013653249479830265, -0.030528249219059944, 0.012965362519025803, -0.054891638457775116, 0.00917763076722622, 0.019365323707461357, -0.015238001942634583, 0.03392414748668671, 0.008110971190035343, 0.0766950398683548, -0.004710719455033541, -0.029605260118842125, -0.048761606216430664, -0.022465169429779053, -0.011519929394125938, -0.07822754979133606, 0.028368806466460228, -0.011563466861844063, -0.01084075029939413, 0.061404794454574585, 0.03806888312101364, 0.06262383610010147, -0.04635835438966751, 0.00885110255330801, 0.010187692940235138, -0.022308435291051865, 0.027080105617642403, -0.04273606464266777, 0.018407506868243217, 0.060638539493083954, 0.005228811409324408, -0.037616096436977386, 0.009499805979430676, 0.04447755217552185, 0.05036377161741257, 0.013557467609643936, -0.0024772637989372015, -0.08595974743366241, -0.030510833486914635, 0.012843458913266659, -0.0077234902419149876, 0.021437691524624825, -0.039531730115413666, 0.03719814121723175, 0.000451153697213158, 0.08721361309289932, -0.05161764472723007, 0.04548761248588562, -0.0028103229124099016, 0.03758126497268677, 0.050537921488285065, -0.034881964325904846, 0.004493033513426781, 0.03277476504445076, 0.0255650132894516, 0.004680243320763111, -0.014123450964689255, -0.00330664636567235, -0.007801856845617294, -0.020236067473888397, -0.03754643723368645, 0.02004450373351574, -0.031468652188777924, 0.04559210315346718, 0.017832815647125244, 0.015795277431607246, -0.03368033841252327, 0.014741678722202778, -0.06875386834144592, -0.02081075683236122, 0.02904798462986946, 0.01994001306593418, -0.07683435827493668, 0.011633126065135002, 0.04914473369717598, -0.04803018271923065, 0.0015466571785509586, 0.06412151455879211, -0.013540052808821201, 0.033105649054050446, -0.06823141872882843, 0.018895123153924942, 0.027445819228887558, -0.07342104613780975, -0.02735874429345131, 0.011276121251285076, 0.05537925288081169, -0.06896284222602844, 0.023179177194833755, 0.03785990551114082, 0.02624419331550598, 0.07571981102228165, 0.025199301540851593, 0.10407119989395142, -0.013931887224316597, 0.007349070627242327, -0.029796823859214783, 0.02904798462986946, 0.08317337185144424, 0.027811530977487564, 0.020410215482115746, -0.0035700462758541107, -0.004571400582790375, 0.006639414932578802, 0.0333842858672142, -0.005516156554222107, 0.023457815870642662, -0.020619193091988564, 0.0000891831296030432, -0.06589782983064651, 0.031155183911323547, 0.013339782133698463, -0.06736067682504654, 0.02014899253845215, -0.011694078333675861, -0.06969426572322845, 0.01366195734590292, -0.00410990696400404, 0.032252319157123566, -0.057712845504283905, -0.012564821168780327, 0.03820820152759552, -0.023945432156324387, -0.06412151455879211, -0.06962461024522781, 0.0060429563745856285, 0.015751739963889122, 0.010962653905153275, -0.03914860263466835, 0.03543923795223236, -0.0030737225897610188, 0.03824303299188614, 0.029587846249341965, -0.0008838041103444993, 0.0008625797345302999, 0.006016833707690239, 0.01994001306593418, 0.005494388286024332, 0.04447755217552185, -0.020619193091988564, -0.036571204662323, -0.023858357220888138, 0.027010446414351463, -0.0018895122921094298, -0.003763786517083645, -0.028682272881269455, -0.009874225594103336, -0.043955106288194656, -0.0032043340615928173, -0.012408087030053139, 0.027445819228887558, -0.035160601139068604, -0.030597908422350883, -0.03169504553079605, -0.02716718055307865, 0.009865517728030682, 0.029518187046051025, 0.0004315619880799204, -0.002210598671808839, -0.011049727909266949, 0.035770121961832047, 0.04106424003839493, -0.0017295131692662835, -0.004580107983201742, 0.0030018864199519157, -0.02009674720466137, 0.005041601601988077, -0.006935467943549156, 0.004580107983201742, 0.0003151001001242548, -0.041308045387268066, 0.0802476704120636, 0.029465941712260246, -0.035108357667922974, 0.045905567705631256, -0.0019820285961031914, -0.025652088224887848, -0.003678889013826847, 0.001845975057221949, 0.017049146816134453, 0.03300115838646889, -0.030319269746541977, 0.03925309330224991, -0.021594425663352013, -0.03157313913106918, 0.006234519649296999, -0.03275734931230545, 0.013522638007998466, 0.021472521126270294, 0.0353347510099411, -0.031451236456632614, -0.003955349791795015, -0.03273993730545044, 0.03275734931230545, 0.018720973283052444, 0.059558819979429245, 0.0023814819287508726, 0.0013224409194663167, -0.008215459994971752, 0.04071594029664993, 0.020863002166152, 0.03547406941652298, -0.0475773960351944, -0.062171049416065216, -0.03890479728579521, 0.01922600530087948, 0.018686143681406975, -0.026627320796251297, -0.0980108305811882, 0.017266832292079926, 0.019765865057706833, -0.011528637260198593, -0.033140476793050766, 0.019765865057706833, 0.009682661853730679, 0.02279605157673359, 0.06175309047102928, 0.014236647635698318, 0.011659248732030392, 0.03209558501839638, -0.03928792104125023, 0.023144347593188286, 0.1255263090133667, 0.04465169832110405, -0.07558049261569977, -0.017144929617643356, -0.024851003661751747, -0.003931404557079077, 0.02532120607793331, -0.05719039961695671, 0.040541794151067734, 0.029553016647696495, 0.010814627632498741, -0.02829914726316929, -0.08902475982904434, -0.015046438202261925, 0.00399888725951314, -0.02450270764529705, 0.02089783176779747, -0.06537538021802902, -0.02189047820866108, 0.012094619683921337, -0.00018027100304607302, -0.02716718055307865, -0.015359905548393726, -0.017388736829161644, 0.08317337185144424, -0.07376934587955475, 0.058688074350357056, -0.0347948893904686, -0.03883513808250427, -0.011676663532853127, 0.02457236684858799, -0.10678791999816895, -0.016622483730316162, 0.038626156747341156, 0.0020201236475259066, 0.04942337051033974, -0.003916166722774506, -0.003613583277910948, 0.031398992985486984, 0.016326431185007095, -0.025686917826533318, 0.0031825655605643988, -0.038660988211631775, -0.018407506868243217, -0.01912151649594307, 0.03796439245343208, 0.02829914726316929, 0.011136802844703197, -0.00962170958518982, 0.04040247201919556, -0.032147832214832306, -0.01040537841618061, -0.030406344681978226, -0.039496902376413345, -0.008733551949262619, 0.012486454099416733, -0.0166921429336071, 0.007510158233344555, 0.06896284222602844, 0.012512576766312122, -0.03368033841252327, 0.0246768556535244, -0.0347948893904686, 0.043188851326704025, 0.0490054152905941, -0.03838235139846802, 0.039531730115413666, 0.042213618755340576, -0.018808048218488693, -0.07237615436315536, 0.016448333859443665, 0.02013157680630684, -0.02361455000936985, 0.011032313108444214, -0.018494579941034317, 0.04200464114546776, 0.001749104936607182, 0.001110197277739644, -0.03709365054965019, -0.02194272354245186, -0.0011352311121299863, 0.004514802247285843, -0.044059593230485916, 0.0383475199341774, -0.030719811096787453, 0.04573142156004906, 0.017110100015997887, -0.062414854764938354, 0.03629256784915924, 0.030388928949832916, 0.049771666526794434, -0.0031129061244428158, -0.010544697754085064, -0.03988002613186836, -0.0244156327098608, 0.02269156090915203, -0.01670955680310726, -0.052140090614557266, 0.052383895963430405, -0.015934595838189125, -0.04454721137881279, -0.004462557844817638, 0.008772735483944416, -0.02904798462986946, -0.03254837170243263, -0.000046292232582345605, -0.064992256462574, 0.00374854844994843, -0.03543923795223236, 0.029796823859214783, -0.002969233551993966, -0.01896478235721588, 0.00845056027173996, -0.049702007323503494, -0.016309015452861786, 0.0014541407581418753, 0.0029518187511712313, -0.003474264405667782, -0.017493225634098053, 0.013444271869957447, -0.016500579193234444, -0.01771961897611618, -0.0007765938644297421, -0.00917763076722622, 0.009438853710889816, 0.00908184889703989, 0.04398993402719498, 0.037616096436977386, 0.06554953008890152, -0.01684887707233429, -0.020532120019197464, 0.037616096436977386, 0.02626160718500614, -0.005751257296651602, -0.03758126497268677, -0.04437306150794029, 0.0290305707603693, 0.048587456345558167, 0.034098293632268906, -0.02366679348051548, -0.015255416743457317, 0.02377128228545189, 0.022430337965488434, -0.056110676378011703, -0.019522057846188545, -0.0747445747256279, -0.0381733700633049, -0.031137768179178238, 0.022343264892697334, -0.000901763211004436, 0.004902282729744911, -0.04343266040086746, 0.006591524463146925, -0.0066132927313447, 0.024746514856815338, -0.04374612495303154, 0.019487228244543076, -0.024729100987315178, -0.011511222459375858, -0.007288118824362755, -0.034986451268196106, 0.002370597794651985, 0.019643960520625114, -0.06621129810810089, -0.01915634609758854, 0.023893186822533607, 0.0012995839351788163, 0.0475773960351944, 0.029866483062505722, -0.001931960927322507, 0.046776313334703445, -0.019556887447834015, -0.00481085479259491, -0.032321978360414505, 0.00952592771500349, -0.027132350951433182, -0.052140090614557266, -0.00885980948805809, 0.03845201060175896, -0.05990711599588394, -0.011485099792480469, 0.004025009460747242, -0.02828173153102398, -0.017249418422579765, 0.09613002091646194, -0.006304179318249226, -0.11396283656358719, -0.018006963655352592, -0.005537925288081169, -0.0018383561400696635, 0.014454333111643791, 0.042422596365213394, -0.04604488983750343, -0.04667182266712189, -0.026940787211060524, 0.030214780941605568, 0.05339395999908447, -0.004062016028910875, -0.017745742574334145, -0.030423758551478386, 0.0335584357380867, 0.004040247295051813, 0.0017382206860929728, -0.06565401703119278, 0.01315692625939846, 0.02088041603565216, -0.040367644280195236, 0.0564589723944664, 0.008794504217803478, -0.013313660398125648, -0.022273605689406395, -0.03171245753765106, 0.013583590276539326, -0.01812886819243431, -0.009935176931321621, 0.02011416293680668, -0.0566331222653389, 0.008097909390926361, -0.03726780042052269, 0.007261996157467365, 0.0023161761928349733, 0.031085524708032608, -0.03754643723368645, 0.03388931602239609, -0.0011074761860072613, 0.007584171369671822, 0.06910216063261032, -0.05102553963661194, 0.056807272136211395, 0.03897445648908615, -0.016039084643125534, -0.020253481343388557, -0.025773992761969566, -0.03343652933835983, -0.012172986753284931, -0.0073229484260082245, -0.0435023196041584, -0.006887577008455992, 0.003389366902410984, 0.01688370667397976, 0.05896671488881111, -0.07237615436315536, 0.0027450171764940023, -0.016169697046279907, 0.015490517020225525, -0.033210135996341705, -0.07251547276973724, -0.0076059396378695965, 0.00910797156393528, -0.0029779409524053335, -0.0383475199341774, 0.013984131626784801, -0.02927437797188759, -0.05523993447422981, -0.022987613454461098, 0.029796823859214783, -0.019556887447834015, -0.07056500762701035, -0.001542303478345275, 0.04566176235675812, 0.008742259815335274, -0.030510833486914635, 0.007597232237458229, 0.058618415147066116, -0.01905185543000698, 0.03277476504445076, -0.03803405165672302, -0.04033281281590462, -0.06251934170722961, 0.007061725482344627, -0.00374854844994843, -0.02920471876859665, 0.11396283656358719, 0.05116485804319382, 0.03096362017095089, -0.008328656665980816, -0.01582139916718006, 0.006574109196662903, -0.018372677266597748, -0.013444271869957447, 0.02471168525516987, 0.03484713286161423, -0.03206075727939606, -0.05527476221323013, -0.028003094717860222, 0.056842099875211716, -0.0022857002913951874, -0.04486067593097687, -0.01697077974677086, 0.02465944178402424, 0.011258706450462341, -0.018372677266597748, 0.048587456345558167, 0.004754256457090378, -0.11918729543685913, 0.015412150882184505, -0.008097909390926361, 0.06833590567111969, -0.0033915438689291477, 0.016500579193234444, -0.002444610930979252, 0.008868517354130745, -0.023405570536851883, 0.01899961195886135, 0.004671535920351744, 0.05624999478459358, 0.06565401703119278, -0.03737228736281395, -0.016134867444634438, -0.04994581639766693, 0.011615711264312267, 0.03524767607450485, 0.03535216301679611, -0.048691947013139725, 0.006382545921951532, 0.05945432931184769, -0.04844813793897629, 0.04089009016752243, 0.0006579551263712347, -0.0033806595019996166, 0.028908666223287582, 0.0347948893904686, -0.014245354570448399, -0.035160601139068604, -0.03305340185761452, 0.0037746706511825323, -0.04214395955204964, 0.017641251906752586, 0.012765091843903065, 0.1148684099316597, -0.01448045577853918, 0.0014378143241629004, -0.015298954211175442, 0.04075077176094055, -0.02272639237344265, -0.08094426989555359, 0.08386996388435364, -0.09229875355958939, -0.04573142156004906, -0.0017175405519083142, -0.03754643723368645, -0.02648800052702427, -0.03244388476014137, -0.014680726453661919, 0.006243227049708366, -0.026609905064105988, -0.03287925571203232, 0.020410215482115746, 0.07160989940166473, 0.051408663392066956, 0.029866483062505722, -0.010318304412066936, 0.013409441336989403, -0.031381577253341675, 0.03893962502479553, 0.006521864794194698, 0.005860100034624338, 0.0018775395583361387, -0.02274380624294281, 0.02835139073431492, 0.0016369967488572001, -0.004192627500742674, 0.015673372894525528, -0.04646284505724907, -0.04980649799108505, 0.04109906777739525, 0.01700560934841633, -0.015577591955661774, 0.014245354570448399, 0.07537151128053665, 0.018390091136097908, 0.04942337051033974, 0.03928792104125023, 0.03467298671603203, -0.02020123600959778, 0.031381577253341675, -0.011720200069248676, 0.0420743003487587, 0.03474264591932297, -0.03357584774494171, -0.006112615577876568, 0.010710138827562332, 0.019400153309106827, 0.004871807061135769, -0.0419001504778862, -0.06861454248428345, -0.04203946888446808, 0.011162924580276012, 0.0059471745043993, -0.06844040006399155, -0.06844040006399155, 0.0436764657497406, 0.02911764569580555, -0.04165634512901306, 0.02079334296286106, -0.03988002613186836, 0.007336009293794632, 0.016091329976916313, -0.026853712275624275, -0.005585816223174334, 0.05126934498548508, -0.021542180329561234, -0.08317337185144424, 0.017049146816134453, -0.014645896852016449, 0.0200619176030159, -0.0007042133947834373, 0.0013790391385555267, 0.008141446858644485, 0.011450270190834999, 0.04179566353559494, 0.031085524708032608, -0.05910603329539299, 0.08212848007678986, 0.07801856845617294, 0.008467975072562695, -0.027985678985714912, 0.018790632486343384, 0.0475773960351944, 0.07732197642326355, -0.01404508389532566, -0.027532892301678658, 0.0056075844913721085, 0.0030715458560734987, 0.025895895436406136, 0.03388931602239609, -0.05154798552393913, -0.007806210778653622, 0.032461296766996384, 0.042248450219631195, 0.006221458315849304, -0.0010568642755970359, -0.09271670877933502, 0.04820432886481285, -0.009978714399039745, -0.045801080763339996, 0.0802476704120636, -0.03845201060175896, 0.019347907975316048, 0.0200619176030159, 0.046950459480285645, 0.06530572474002838, 0.0564589723944664, -0.03282700851559639, -0.005446497350931168, 0.011842104606330395, -0.06725618988275528, 0.005651121959090233, 0.025216717272996902, -0.024136995896697044, 0.032496128231287, 0.01047503761947155, 0.012529991567134857, 0.03618807718157768, 0.011554758995771408, 0.02896091155707836, -0.02718459628522396, -0.008742259815335274, -0.007336009293794632, -0.027846360579133034, -0.03702399134635925, -0.02009674720466137, -0.025303790345788002, 0.07732197642326355, 0.007958590984344482, 0.041447363793849945, -0.0001394549326505512, -0.022587072104215622, -0.07025153934955597, 0.009464976377785206, 0.005781733430922031, -0.048691947013139725, 0.023231422528624535, -0.008803211152553558, -0.015751739963889122, 0.015673372894525528, 0.00211264006793499, 0.04820432886481285, 0.014297599904239178, -0.024938078597187996, 0.055971357971429825, 0.053986065089702606, 0.03561338782310486, -0.03841717913746834, -0.005015479400753975, -0.04263157397508621, 0.01404508389532566, 0.0009735994972288609, -0.00003581610872060992, -0.005307178478688002, -0.00907314196228981, 0.019870353862643242, -0.04660216346383095, 0.04089009016752243, 0.03536957874894142, 0.038800306618213654, 0.012190401554107666, -0.011650540865957737 ]
43,179
matplotlib.cm
get_cmap
Return the `.Colormap` instance.
def get_cmap(self): """Return the `.Colormap` instance.""" return self.cmap
(self)
[ 0.026097897440195084, -0.042468395084142685, -0.02591148391366005, 0.036299802362918854, -0.026775764301419258, 0.013599716126918793, 0.015362171456217766, 0.04440031945705414, 0.04877256229519844, -0.0009463665192015469, -0.01246428769081831, -0.009939231909811497, 0.02187817171216011, 0.033639173954725266, 0.046400025486946106, 0.00256530474871397, 0.0023365244269371033, -0.010667938739061356, 0.014438576996326447, -0.003202923806384206, 0.012277874164283276, -0.033029090613126755, 0.06510917097330093, -0.02880936674773693, -0.03299519792199135, 0.04375634342432022, -0.020742744207382202, -0.0002471833140589297, 0.05039944499731064, -0.02394566871225834, -0.10764535516500473, -0.040502581745386124, -0.026318203657865524, 0.05277198180556297, 0.03528299927711487, 0.0038384245708584785, 0.026911338791251183, 0.021098624914884567, 0.02367452159523964, 0.004168884828686714, 0.017607606947422028, -0.016980579122900963, -0.0038553711492568254, -0.05277198180556297, 0.06409236788749695, -0.00982060469686985, -0.014235216192901134, -0.0034380590077489614, -0.0022051874548196793, -0.055449556559324265, -0.027046911418437958, -0.05324648693203926, 0.009744344279170036, 0.04701010882854462, 0.01986151561141014, 0.010650992393493652, 0.0005677139852195978, 0.036740414798259735, -0.01620103232562542, 0.03931631147861481, -0.03606254979968071, -0.043010689318180084, 0.029741434380412102, -0.054263290017843246, 0.014769037254154682, -0.018251581117510796, -0.0076302457600831985, 0.023166120052337646, 0.05433107540011406, 0.05477169156074524, -0.02711469866335392, 0.007507381960749626, 0.0020812649745494127, 0.0027729016728699207, 0.005944050382822752, -0.0316564105451107, -0.008219142444431782, -0.03306298330426216, 0.02482689544558525, -0.014989344403147697, -0.0223696269094944, 0.0452815443277359, -0.03596086800098419, -0.0032008052803575993, 0.05067059397697449, -0.0839877799153328, 0.0009008222841657698, -0.007460778579115868, -0.06904079765081406, 0.04212946072220802, -0.023589788004755974, -0.0010755850235000253, 0.005435649771243334, 0.05772041529417038, -0.006918484810739756, -0.05297534167766571, -0.0022263708524405956, 0.07239624112844467, 0.06266884505748749, -0.011600006371736526, 0.011362752877175808, -0.007359098643064499, 0.015158810652792454, 0.00790986604988575, 0.013718342408537865, 0.01630271226167679, -0.025216668844223022, 0.015023237094283104, -0.04151938110589981, -0.009456250816583633, -0.02547086961567402, 0.0649058073759079, 0.03211396932601929, 0.02580980397760868, 0.018183793872594833, -0.017878754064440727, -0.02684355154633522, -0.011328860186040401, 0.015701105818152428, 0.006138937082141638, -0.11313607543706894, 0.024182921275496483, 0.008625863119959831, -0.022572986781597137, 0.036570947617292404, 0.03792668506503105, -0.030182048678398132, 0.019946249201893806, -0.0371132418513298, 0.004503582138568163, -0.003378745634108782, -0.021962905302643776, -0.06517695635557175, -0.02286108024418354, 0.06666826456785202, -0.04348519816994667, 0.058296602219343185, 0.00602878350764513, -0.011286493390798569, 0.09117317199707031, 0.0006566841038875282, 0.04101097956299782, -0.011345806531608105, 0.010922139510512352, -0.008956323377788067, -0.0024170211981981993, 0.013616662472486496, 0.04019754007458687, -0.0073675718158483505, -0.0076599023304879665, -0.02475910820066929, 0.001460592495277524, 0.006062677130103111, 0.003649892518296838, 0.0011608480708673596, -0.04046868532896042, 0.003959169611334801, 0.022403519600629807, 0.0371132418513298, -0.03016510233283043, -0.03684209659695625, 0.04395970329642296, -0.02313222736120224, -0.0791071355342865, 0.017277147620916367, 0.029165247455239296, 0.026775764301419258, -0.04243450239300728, -0.0049314857460558414, -0.03394421190023422, -0.07544665038585663, -0.08608916401863098, -0.03360527753829956, 0.014819877222180367, 0.02089526504278183, 0.03979082033038139, -0.030148155987262726, 0.038163937628269196, 0.02475910820066929, 0.031453050673007965, 0.03158862516283989, 0.02197985164821148, -0.07158280164003372, 0.0207257978618145, 0.01598919928073883, 0.00129218481015414, 0.041756633669137955, 0.025572549551725388, -0.0044485051184892654, 0.015209650620818138, 0.06782063841819763, 0.010439158417284489, -0.0028745816089212894, 0.017090734094381332, 0.03890959173440933, -0.08697039633989334, 0.007808185648173094, -0.010379845276474953, -0.025352243334054947, 0.0681595727801323, -0.027250271290540695, -0.023860935121774673, -0.043451305478811264, 0.05477169156074524, 0.021895118057727814, 0.003391455626115203, 0.021573131904006004, -0.00616435706615448, -0.030690448358654976, 0.028453486040234566, -0.011371226981282234, -0.03350359946489334, 0.0188277680426836, -0.006189777050167322, 0.027470579370856285, -0.07897155731916428, -0.02989395521581173, -0.02657240442931652, -0.046400025486946106, 0.05751705542206764, 0.02492857538163662, -0.001865194644778967, 0.04331573098897934, 0.03070739656686783, -0.04168884828686714, -0.02253909222781658, -0.041451595723629, 0.0033702722284942865, 0.00317750358954072, -0.05951676145195961, 0.013650556094944477, -0.0056390101090073586, -0.006198250688612461, -0.0070540583692491055, 0.04368855804204941, -0.013091315515339375, 0.033198557794094086, 0.03613033518195152, -0.027521418407559395, 0.004010009579360485, 0.010184958577156067, 0.0529075562953949, 0.0687018632888794, 0.05107731372117996, 0.019878463819622993, 0.021183358505368233, 0.00875296350568533, 0.021200304850935936, 0.013769182376563549, 0.025233615189790726, 0.009998545050621033, -0.034232307225465775, 0.016938213258981705, 0.03348665311932564, 0.0018821413395926356, -0.05636467784643173, -0.0938168540596962, 0.0008563372539356351, 0.015557058155536652, 0.007998836226761341, -0.041926100850105286, 0.06317725032567978, 0.10012102127075195, 0.05995737761259079, 0.04080761969089508, -0.0038130043540149927, 0.024996362626552582, 0.052738089114427567, -0.0196412093937397, 0.029758380725979805, 0.06321114301681519, 0.038875699043273926, -0.00856231339275837, -0.018963342532515526, -0.013650556094944477, -0.04321404919028282, -0.008587732911109924, -0.04124823585152626, 0.018099060282111168, 0.039248526096343994, 0.02170870453119278, -0.04504429176449776, -0.04399359971284866, 0.011718633584678173, -0.04233282431960106, -0.01784486137330532, 0.003897737944498658, 0.03340191766619682, 0.010752672329545021, 0.01514186430722475, 0.00888853706419468, -0.028334859758615494, -0.07178616523742676, 0.02503025531768799, 0.05582238361239433, -0.03860455006361008, 0.006655810866504908, 0.0185396745800972, -0.025775909423828125, 0.0068252780474722385, 0.014565677382051945, -0.07002370804548264, -0.011523746885359287, 0.07768361270427704, -0.0073760454542934895, 0.04789133742451668, -0.03246985003352165, 0.011515273712575436, 0.005160266067832708, 0.04775576293468475, 0.022725505754351616, 0.00790986604988575, -0.03684209659695625, 0.06199098005890846, -0.05666971951723099, -0.027453631162643433, 0.010549312457442284, -0.013548876158893108, 0.013413302600383759, 0.08168302476406097, -0.055076729506254196, -0.04151938110589981, -0.020251290872693062, -0.0376555360853672, 0.03531689569354057, 0.000047960445954231545, 0.02804676629602909, 0.009422357194125652, 0.07598894089460373, 0.0004130754678044468, -0.06375343352556229, -0.019387008622288704, -0.005528856534510851, 0.008358953520655632, 0.023166120052337646, -0.07632787525653839, -0.012481234967708588, -0.018590515479445457, -0.04368855804204941, -0.045247651636600494, -0.00837166327983141, -0.011057713069021702, -0.04511208087205887, -0.026657138019800186, -0.02848738059401512, 0.02220015972852707, -0.023098332807421684, 0.003149965312331915, -0.021742599084973335, -0.05175517871975899, 0.05636467784643173, -0.028877153992652893, -0.020200449973344803, 0.08547908812761307, -0.02880936674773693, 0.058398280292749405, -0.02394566871225834, -0.001965815667062998, 0.019980143755674362, 0.052500832825899124, 0.05358542129397392, -0.016107825562357903, 0.0031097170431166887, -0.052839767187833786, -0.016107825562357903, 0.04212946072220802, -0.05880500003695488, -0.005812713410705328, 0.035486362874507904, -0.038977377116680145, 0.0007461837958544493, 0.03269015625119209, -0.00015424132288899273, -0.0027517182752490044, -0.024318495765328407, -0.009066477417945862, -0.007914102636277676, 0.04728125408291817, -0.011659320443868637, -0.01708225905895233, 0.02165786549448967, -0.011727106757462025, -0.046501707285642624, -0.019980143755674362, -0.02394566871225834, -0.025352243334054947, -0.0014563559088855982, 0.0009108844096772373, -0.019505636766552925, 0.009337624534964561, -0.0512806735932827, -0.03104632906615734, -0.027521418407559395, -0.02231878601014614, 0.02553865686058998, 0.008630099706351757, 0.0359947606921196, 0.030029527842998505, 0.05405993014574051, -0.009990071877837181, 0.03313077241182327, 0.008905483409762383, 0.0660242885351181, -0.00008453484042547643, -0.03407978639006615, -0.013311621733009815, -0.025555603206157684, 0.011015346273779869, 0.027250271290540695, -0.05368710309267044, 0.013853915967047215, 0.011498326435685158, -0.0012699422659352422, -0.05331427603960037, -0.015353698283433914, -0.0665326938033104, -0.023538947105407715, -0.0780225470662117, 0.05724590644240379, 0.004342588596045971, -0.021132517606019974, -0.0008727543754503131, -0.002514464547857642, -0.018183793872594833, 0.0012487589847296476, -0.03043624944984913, 0.006325350608676672, 0.05650025233626366, -0.015633318573236465, -0.008117462508380413, -0.05585628002882004, -0.00426844647154212, 0.03823172301054001, -0.049450431019067764, 0.007236235309392214, 0.041112661361694336, 0.0094138840213418, 0.03143610432744026, 0.027809511870145798, 0.022996652871370316, 0.0376555360853672, -0.0012667648261412978, -0.015887519344687462, -0.03441872075200081, 0.04348519816994667, 0.006469397339969873, -0.05907614901661873, 0.04179053008556366, 0.05961844325065613, -0.03282573074102402, -0.005812713410705328, 0.009905338287353516, -0.011091606691479683, -0.033029090613126755, 0.10168011486530304, -0.020539384335279465, -0.060092948377132416, -0.04324794188141823, 0.05378878116607666, 0.005596643313765526, -0.027199432253837585, -0.018895555287599564, 0.0015379118267446756, -0.0501960851252079, -0.03208007663488388, 0.03038540855050087, 0.03524910658597946, -0.010278165340423584, -0.001057579182088375, -0.015124917961657047, 0.042468395084142685, 0.03979082033038139, -0.018082113936543465, -0.09849414229393005, -0.04402749240398407, 0.016133245080709457, -0.037621643394231796, 0.04057036712765694, 0.017743181437253952, -0.011633899994194508, -0.032537639141082764, 0.014277582988142967, 0.03626590967178345, -0.05195854231715202, -0.02465742826461792, 0.013074368238449097, 0.016167139634490013, -0.015082551166415215, 0.018285473808646202, -0.016133245080709457, -0.06449908763170242, 0.048365842550992966, -0.033029090613126755, 0.04043479263782501, -0.012066041119396687, 0.009498617611825466, 0.0911053866147995, -0.036469269543886185, 0.02165786549448967, 0.024013454094529152, 0.044163063168525696, -0.008795330300927162, -0.04223114252090454, -0.006079623941332102, 0.0013790365774184465, -0.09415578842163086, -0.024081241339445114, -0.026911338791251183, -0.010735725983977318, -0.01811600849032402, 0.04575605317950249, -0.017472034320235252, -0.038740124553442, -0.05324648693203926, 0.014040329493582249, -0.01524354424327612, -0.033571384847164154, -0.055076729506254196, -0.045417118817567825, 0.01301505509763956, -0.006846461445093155, 0.06104196608066559, 0.0272672176361084, -0.006253327243030071, -0.05575459823012352, 0.0491114966571331, 0.006676994264125824, 0.00009512651740806177, -0.060465775430202484, 0.0272672176361084, -0.033808641135692596, -0.06497359275817871, -0.05155181884765625, 0.050162192434072495, -0.027301112189888954, 0.01675179973244667, -0.027318058535456657, -0.02433544211089611, -0.03738439083099365, -0.016446759924292564, 0.0015961660537868738, -0.05799156054854393, 0.12581220269203186, -0.0014161075232550502, 0.010667938739061356, -0.0409093014895916, -0.06029631197452545, 0.013218414969742298, -0.0007520092185586691, 0.0052492362447083, 0.03201229125261307, 0.028792420402169228, -0.025572549551725388, -0.04565437138080597, -0.01102381944656372, 0.0796494260430336, 0.002338642720133066, -0.04839973524212837, -0.002853398211300373, 0.022454358637332916, 0.010151064954698086, 0.02197985164821148, 0.02662324346601963, 0.013904755935072899, -0.0300125814974308, 0.02143755741417408, -0.04033311456441879, 0.07327747344970703, -0.04572216048836708, -0.04921317845582962, 0.002243317663669586, -0.01811600849032402, -0.004151938017457724, 0.004588315263390541, -0.00724047189578414, 0.05002661794424057, 0.02804676629602909, -0.009786711074411869, 0.02330169454216957, -0.055280089378356934, -0.02733500488102436, 0.055890172719955444, 0.06517695635557175, -0.019217541441321373, -0.017488980665802956, -0.03201229125261307, -0.04816248267889023, 0.026216523721814156, 0.007223525084555149, -0.05934729427099228, 0.02133587747812271, 0.015557058155536652, -0.031775038689374924, -0.04399359971284866, 0.013082842342555523, -0.014574150554835796, -0.021301984786987305, 0.00724047189578414, -0.004952669143676758, 0.03582529351115227, 0.015091024339199066, 0.0022772110532969236, -0.012989635579288006, 0.009396937675774097, 0.01355734933167696, -0.037181030958890915, 0.07463320344686508, -0.02848738059401512, 0.02308138646185398, -0.0036117625422775745, -0.060906391590833664, -0.0321817584335804, -0.013057421892881393, 0.0027919665444642305, 0.023538947105407715, -0.0916476771235466, -0.014574150554835796, 0.02564033679664135, 0.0014542374992743134, 0.06761728227138519, 0.048908136785030365, -0.010049385018646717, 0.028555165976285934, 0.01914975605905056, 0.013447195291519165, -0.020607169717550278, 0.027453631162643433, -0.03484238684177399, 0.03636758774518967, 0.02323390729725361, 0.014938504435122013, 0.0371132418513298, -0.0067235976457595825, -0.09978208690881729, 0.00402271980419755, 0.0302837286144495, -0.001272060675546527, -0.012820168398320675, 0.019132809713482857, 0.08039508014917374, -0.03260542452335358, 0.027673939242959023, 0.04701010882854462, 0.04701010882854462, -0.024538801982998848, -0.009752818383276463, 0.004052376374602318, 0.0199123565107584, 0.024471014738082886, -0.05504283681511879, -0.04131602123379707, -0.01102381944656372, 0.029165247455239296, 0.0014298766618594527, -0.016124771907925606, -0.07436206191778183, -0.026114843785762787, 0.01448094379156828, -0.0518229678273201, -0.022030692547559738, -0.034944068640470505, 0.020590223371982574, -0.02187817171216011, -0.021505344659090042, 0.04179053008556366, -0.01833631470799446, 0.008939377032220364, 0.03441872075200081, -0.039417993277311325, 0.022827185690402985, 0.0016025210497900844, -0.005350916180759668, -0.04714568331837654, -0.05951676145195961, -0.0027072331868112087, 0.014980871230363846, 0.009600297547876835, 0.008769909851253033, 0.07341304421424866, 0.008511473424732685, 0.05331427603960037, 0.05450054258108139, -0.06395679712295532, 0.10818764567375183, 0.04592552036046982, 0.05341595411300659, -0.008439449593424797, -0.028334859758615494, 0.03213091567158699, -0.027521418407559395, -0.016463706269860268, -0.021505344659090042, 0.029826167970895767, 0.021403664723038673, -0.011455959640443325, 0.06368564814329147, -0.06290610134601593, -0.03975692763924599, 0.04504429176449776, 0.023928720504045486, -0.019505636766552925, 0.0007837842567823827, -0.04480703920125961, 0.016904320567846298, 0.0512806735932827, 0.0343509316444397, 0.044535890221595764, 0.012718488462269306, 0.0038701994344592094, 0.0009108844096772373, 0.026250416412949562, 0.07300632447004318, 0.02547086961567402, -0.03131747618317604, 0.009108844213187695, -0.009100371040403843, -0.07158280164003372, 0.0008002013200893998, -0.028927993029356003, -0.01434537023305893, 0.035215213894844055, -0.004478161688894033, 0.019065022468566895, 0.03333413228392601, 0.043078478425741196, 0.004745072219520807, -0.06571924686431885, -0.04490871727466583, -0.0419938899576664, 0.022454358637332916, -0.023437267169356346, -0.016946686431765556, -0.05721201375126839, 0.07937827706336975, -0.04124823585152626, -0.010489999316632748, 0.0035143191926181316, -0.0014309358084574342, -0.02258993312716484, 0.0018514255061745644, -0.04206167533993721, -0.04572216048836708, -0.001948868972249329, 0.07158280164003372, 0.0008007309515960515, 0.009896865114569664, 0.02379314787685871, 0.024962469935417175, 0.023386428132653236, 0.015667211264371872, 0.032757945358753204, 0.03568972274661064, -0.011769473552703857, 0.03119884990155697, -0.011820313520729542, -0.033961158245801926, -0.035588040947914124, -0.015218124724924564, 0.018183793872594833, 0.007795475888997316, -0.024081241339445114, 0.00511366268619895, -0.05663582682609558, -0.024623535573482513, 0.06666826456785202, 0.07083714753389359, 0.020607169717550278, -0.008736017160117626 ]
43,180
matplotlib.cm
set_array
Set the value array from array-like *A*. Parameters ---------- A : array-like or None The values that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the value array *A*.
def set_array(self, A): """ Set the value array from array-like *A*. Parameters ---------- A : array-like or None The values that are mapped to colors. The base class `.ScalarMappable` does not make any assumptions on the dimensionality and shape of the value array *A*. """ if A is None: self._A = None return A = cbook.safe_masked_invalid(A, copy=True) if not np.can_cast(A.dtype, float, "same_kind"): raise TypeError(f"Image data of dtype {A.dtype} cannot be " "converted to float") self._A = A
(self, A)
[ -0.01692829094827175, -0.03996362164616585, -0.0029173623770475388, 0.03814222291111946, -0.009883764199912548, 0.002970932750031352, -0.0596061535179615, -0.036642249673604965, 0.05257055535912514, -0.001377209322527051, -0.006732031237334013, -0.020624658092856407, 0.06221325322985649, 0.027320975437760353, -0.02094608172774315, -0.012464079074561596, 0.012098013423383236, 0.06174897402524948, 0.04767778143286705, 0.052784837782382965, 0.009517699480056763, -0.045392103493213654, 0.0032053040340542793, 0.017285427078604698, 0.011669449508190155, -0.022499626502394676, 0.014910466969013214, 0.020838940516114235, 0.03158876299858093, -0.004517782013863325, -0.023588893935084343, -0.01463368535041809, -0.02755311317741871, 0.06828457862138748, 0.089927077293396, -0.062391821295022964, 0.002023403998464346, 0.005482051987200975, -0.044642116874456406, 0.01819612644612789, -0.014455117285251617, -0.010124831460416317, -0.01770506240427494, 0.006562390830367804, 0.02773168310523033, 0.005504372995346785, 0.0465349406003952, 0.032981596887111664, -0.02907094545662403, -0.008026652038097382, -0.006910599768161774, -0.015946164727211, 0.012214083224534988, 0.06667746603488922, 0.025321008637547493, 0.12278367578983307, -0.002738793846219778, 0.040177904069423676, -0.02007109485566616, -0.02307104505598545, -0.016839006915688515, -0.022910334169864655, 0.022624624893069267, -0.07792727649211884, 0.03266017138957977, -0.03685653209686279, -0.0009810104966163635, 0.07649873197078705, 0.05696333944797516, 0.023642465472221375, -0.04996345564723015, 0.03596368804574013, 0.026963837444782257, -0.02474958822131157, 0.017428282648324966, 0.031249480322003365, -0.04074932262301445, 0.05674905702471733, -0.03846364840865135, 0.017937202006578445, 0.06353466212749481, 0.11049816757440567, 0.05096343904733658, 0.03199946880340576, -0.007513267919421196, -0.053391970694065094, -0.04053504019975662, 0.06353466212749481, -0.012285510078072548, 0.027642399072647095, 0.02174963802099228, -0.0035267272032797337, -0.04167788103222847, 0.08449859917163849, -0.024035315960645676, 0.05210627615451813, 0.03199946880340576, -0.006178468931466341, 0.021910350769758224, 0.007834691554307938, -0.0005211966927163303, -0.08257006108760834, 0.09156990796327591, -0.0023727284278720617, -0.008946279995143414, -0.00663828244432807, 0.01607116125524044, 0.029303085058927536, 0.0056516919285058975, 0.0403921864926815, 0.020178236067295074, 0.03953505679965019, -0.03896363824605942, -0.03985648229718208, -0.034981563687324524, 0.006432929076254368, 0.000499991700053215, -0.0492134690284729, 0.03082091733813286, 0.018624691292643547, -0.011428381316363811, 0.018321124836802483, 0.02935665473341942, 0.041713591665029526, 0.027767395600676537, 0.017615778371691704, 0.011481951922178268, 0.03101734258234501, -0.012856929562985897, -0.04557067155838013, -0.05028488114476204, -0.01692829094827175, -0.0399993360042572, -0.017767561599612236, 0.017428282648324966, -0.017089001834392548, -0.04928489774465561, -0.024106742814183235, -0.03839221969246864, 0.00458474550396204, 0.008535572327673435, 0.034785136580467224, 0.02967807836830616, -0.01784791797399521, 0.07107024639844894, 0.011348025873303413, 0.08978422731161118, 0.03974933922290802, -0.03541012480854988, 0.015222962014377117, -0.0522848479449749, 0.017517566680908203, 0.047927774488925934, 0.027820967137813568, 0.037785086780786514, -0.01933896541595459, 0.022660337388515472, -0.0365351065993309, 0.026981694623827934, 0.04589209705591202, -0.032785169780254364, -0.01756220869719982, -0.011794446967542171, -0.027838824316859245, -0.040177904069423676, 0.007977546192705631, -0.019892526790499687, 0.04289214685559273, -0.039713624864816666, -0.0014564490411430597, 0.023106759414076805, -0.14742612838745117, -0.0530705489218235, 0.049392037093639374, 0.0845700278878212, 0.024624591693282127, -0.03026735410094261, -0.007281129248440266, 0.01760685071349144, 0.0392136350274086, 0.004046807996928692, 0.05060630291700363, -0.001700864639133215, 0.019088968634605408, 0.009865907952189445, -0.02133893221616745, 0.013544417917728424, -0.027820967137813568, 0.005830260459333658, 0.02555314637720585, 0.0830700471997261, 0.05314197391271591, -0.027695968747138977, -0.004508853890001774, 0.05146343261003494, -0.024088885635137558, -0.04421355202794075, -0.07342734932899475, 0.0017968451138585806, 0.04585638269782066, -0.0244103092700243, -0.05646334961056709, 0.007102560717612505, 0.0028727201279252768, 0.011312312446534634, -0.06360608339309692, 0.04403498396277428, -0.013124781660735607, -0.015106892213225365, -0.033303018659353256, -0.018428266048431396, -0.020838940516114235, -0.004542335402220488, -0.01750863716006279, 0.05899902060627937, -0.02141035906970501, 0.011285526677966118, -0.01303549762815237, -0.013106925413012505, 0.054641950875520706, 0.04403498396277428, 0.01380334235727787, -0.006964169908314943, -0.015562241896986961, 0.0052454485557973385, 0.026624558493494987, 0.007955225184559822, -0.033303018659353256, 0.021499643102288246, 0.0296066515147686, -0.037642233073711395, 0.0030178071465343237, -0.054570522159338, 0.009312345646321774, 0.02741025947034359, -0.021356787532567978, 0.0799986720085144, 0.01946396194398403, -0.029910217970609665, 0.03910649195313454, -0.023088902235031128, 0.0019419320160523057, 0.015258675441145897, 0.038642216473817825, -0.01809791475534439, 0.005455266684293747, 0.00299995020031929, 0.06735602766275406, -0.047856349498033524, 0.008446288295090199, -0.033178020268678665, -0.015839023515582085, 0.0010133760515600443, 0.04414212331175804, 0.003694134997203946, -0.021660353988409042, 0.029820933938026428, 0.01340156327933073, 0.00029463795362971723, -0.0007137158536352217, -0.04249929264187813, -0.06382036954164505, 0.08364146947860718, 0.012223011814057827, -0.000043560939957387745, 0.011294455267488956, 0.027356687933206558, 0.05482051894068718, -0.04196358844637871, 0.053856249898672104, 0.01463368535041809, 0.021767495200037956, 0.010187330655753613, 0.0001948907447513193, 0.0050579519011080265, 0.035177987068891525, 0.010499825701117516, -0.01059803832322359, 0.0465349406003952, -0.009821265935897827, 0.014133693650364876, -0.035177987068891525, -0.013339064083993435, 0.025821000337600708, -0.002868256065994501, -0.018124699592590332, 0.03028521127998829, 0.055927641689777374, -0.006388286594301462, -0.003586994018405676, -0.0032901240047067404, 0.02541029267013073, -0.055856216698884964, 0.000344581319950521, -0.0248031597584486, -0.023356754332780838, -0.0814986452460289, 0.03373158350586891, 0.007441840600222349, -0.039177920669317245, 0.016651509329676628, -0.026767412200570107, 0.030517350882291794, 0.033785153180360794, -0.02621385082602501, -0.026160279288887978, -0.033713724464178085, 0.02548171952366829, -0.01463368535041809, 0.022303201258182526, 0.0411064587533474, 0.07257022708654404, -0.11278384178876877, 0.0020903670229017735, 0.03796365484595299, 0.02373174950480461, 0.05382053554058075, 0.017490781843662262, 0.02374960482120514, 0.04374927282333374, -0.021053221076726913, -0.08671284466981888, -0.053641967475414276, -0.04196358844637871, 0.019321108236908913, -0.0211425069719553, 0.026856696233153343, 0.01848183572292328, -0.008731997571885586, 0.03442800045013428, -0.003095930675044656, 0.007825762964785099, 0.001592607470229268, 0.017838990315794945, 0.03180304169654846, -0.03623154014348984, -0.06624890118837357, -0.04557067155838013, -0.02514244057238102, -0.026856696233153343, -0.10442683845758438, 0.035838689655065536, -0.01541045866906643, 0.001493278774432838, 0.022963903844356537, 0.006026685703545809, -0.031445905566215515, -0.020249662920832634, 0.010669466108083725, -0.03639225289225578, -0.0004224260337650776, -0.02328532747924328, 0.028624525293707848, 0.07092739641666412, -0.005397231783717871, 0.010089118033647537, -0.015722952783107758, -0.013830127194523811, -0.006807922851294279, -0.02314247377216816, 0.030517350882291794, -0.012053371407091618, 0.027660254389047623, -0.06846314668655396, -0.005633835215121508, 0.055641934275627136, -0.07935582846403122, -0.05903473496437073, 0.0280709620565176, -0.003339230315759778, 0.037713658064603806, -0.020660370588302612, -0.03562440723180771, -0.04710635915398598, 0.015508671291172504, -0.020178236067295074, -0.05160628631711006, 0.05053487420082092, -0.0062990025617182255, 0.012080156244337559, 0.03699938580393791, 0.016446156427264214, -0.013142638839781284, 0.010794463567435741, 0.0009564573410898447, 0.019231824204325676, 0.02994593232870102, 0.013847984373569489, -0.0488206185400486, 0.010624823160469532, -0.03569583594799042, -0.01650865375995636, 0.02899951860308647, -0.08628427982330322, -0.012892642989754677, -0.016955075785517693, -0.009419486857950687, 0.0799272432923317, 0.012508721090853214, -0.04660636931657791, -0.06392750889062881, -0.06485606729984283, 0.04485639929771423, -0.007486483082175255, -0.00857128668576479, -0.02233891561627388, -0.029767362400889397, -0.00008056507067522034, -0.013508704490959644, 0.011794446967542171, 0.030892344191670418, -0.003424050286412239, 0.0492134690284729, -0.005955258384346962, 0.012919428758323193, -0.01003554742783308, -0.009919478558003902, -0.10006976872682571, 0.007142738439142704, 0.03026735410094261, -0.008138258010149002, -0.017696134746074677, -0.04610637575387955, 0.03942791745066643, 0.01597294956445694, -0.03541012480854988, 0.030838774517178535, 0.023160329088568687, 0.015722952783107758, 0.005214198958128691, -0.002432995242998004, -0.008142721839249134, -0.003776723053306341, -0.05442766845226288, -0.0292138010263443, -0.011883731000125408, -0.033910151571035385, 0.018392551690340042, 0.002092599170282483, 0.004767777863889933, 0.06499891728162766, -0.019785385578870773, 0.022856762632727623, -0.03153518959879875, -0.030178070068359375, -0.04949917644262314, -0.013678343966603279, 0.057320475578308105, -0.08028437942266464, -0.025088869035243988, -0.014830110594630241, 0.025499576702713966, -0.01180337555706501, -0.01677650772035122, 0.055249083787202835, 0.017919344827532768, -0.03255303204059601, -0.05299912020564079, 0.07464161515235901, -0.002093715127557516, -0.005807939451187849, -0.02048180252313614, -0.061856117099523544, -0.06942741572856903, 0.024035315960645676, -0.011714091524481773, 0.031910184770822525, -0.0071159531362354755, -0.02848166972398758, -0.012615862302482128, 0.0018057735869660974, -0.061784688383340836, 0.007687372155487537, -0.01994609832763672, -0.009865907952189445, 0.0037209203001111746, -0.0035669051576405764, 0.040642183274030685, -0.0791415423154831, 0.0023124616127461195, -0.030553063377738, -0.029856646433472633, 0.013669416308403015, -0.029660221189260483, -0.0004899472114630044, 0.03526727110147476, 0.045177821069955826, -0.016517583280801773, 0.006709710229188204, 0.04521353542804718, -0.04442783445119858, 0.02028537727892399, -0.032981596887111664, 0.061927542090415955, -0.0008989805937744677, 0.007790049072355032, 0.06585604697465897, -0.0259459987282753, 0.025785285979509354, 0.023374611511826515, -0.02894594892859459, -0.022856762632727623, -0.08278433978557587, -0.03301730751991272, 0.059320442378520966, -0.05971329286694527, -0.03223160654306412, -0.017615778371691704, -0.001707560964860022, -0.03682081773877144, -0.020517516881227493, 0.02092822454869747, -0.028892377391457558, -0.0596061535179615, -0.003171822289004922, -0.028588810935616493, -0.04196358844637871, -0.053713392466306686, -0.044177837669849396, -0.02799953520298004, -0.04285643249750137, 0.03135662153363228, -0.014339047484099865, 0.023160329088568687, -0.023124616593122482, 0.013937268406152725, 0.0063347164541482925, -0.03507084771990776, -0.017955059185624123, -0.026231708005070686, -0.036642249673604965, -0.034320857375860214, -0.004955274984240532, 0.05567764863371849, 0.0020345645025372505, 0.04153502359986305, 0.05474909022450447, -0.028660237789154053, 0.04928489774465561, -0.011151600629091263, -0.02121393382549286, 0.0296066515147686, 0.06278467178344727, 0.03541012480854988, 0.023588893935084343, -0.02714240737259388, -0.08292719721794128, 0.015785451978445053, -0.004069129005074501, -0.045927807688713074, 0.0032276250422000885, 0.007522196508944035, 0.03892792388796806, 0.026981694623827934, 0.006232039537280798, 0.006026685703545809, 0.023499609902501106, -0.053391970694065094, -0.010794463567435741, 0.009419486857950687, -0.018892543390393257, -0.025088869035243988, 0.019713958725333214, 0.01955324597656727, -0.04503496736288071, -0.03569583594799042, -0.033106591552495956, 0.042249299585819244, 0.006290073972195387, -0.031160196289420128, 0.046320658177137375, -0.00184595154132694, -0.03967791423201561, -0.01023197267204523, -0.005040094722062349, 0.04360641911625862, -0.013312279246747494, -0.04557067155838013, -0.014535472728312016, -0.06285610049962997, -0.007156131323426962, 0.0006037846324034035, -0.04860633611679077, -0.04560638591647148, 0.057391904294490814, -0.0422850139439106, -0.011785518378019333, 0.05128486454486847, -0.04907061532139778, -0.024374594911932945, 0.005294554866850376, 0.00029352190904319286, -0.016392584890127182, 0.00916949100792408, -0.03842793405056, -0.0018113538390025496, 0.013231922872364521, -0.016401512548327446, 0.04849919304251671, 0.020231807604432106, 0.006232039537280798, -0.008102543652057648, -0.04007076472043991, -0.021053221076726913, 0.003461996093392372, -0.05367768183350563, 0.010053404606878757, -0.009455200284719467, 0.04335642233490944, -0.018821116536855698, -0.01443726010620594, 0.08557000756263733, 0.00499991700053215, -0.01753542385995388, 0.028249530121684074, 0.006642746739089489, -0.05782046914100647, 0.06817743927240372, -0.015883665531873703, 0.0696059837937355, 0.009026635438203812, -0.032374463975429535, -0.02626742050051689, -0.013981910422444344, 0.001716489321552217, -0.055713359266519547, 0.022571053355932236, -0.030320925638079643, -0.00427448283880949, -0.022571053355932236, 0.059641867876052856, 0.016669366508722305, 0.019428249448537827, -0.04235643893480301, 0.0027454900555312634, -0.03835650533437729, -0.011544451117515564, 0.04699921980500221, 0.023910317569971085, 0.045177821069955826, 0.030981628224253654, -0.03153518959879875, 0.05760618671774864, 0.024303168058395386, 0.042320724576711655, -0.028517384082078934, -0.027785252779722214, -0.04396355524659157, 0.012544434517621994, 0.03294588252902031, -0.03696367144584656, -0.0029374512378126383, -0.038713641464710236, 0.027981678023934364, 0.017812203615903854, 0.041320741176605225, -0.016205087304115295, 0.026785269379615784, -0.041642166674137115, 0.01946396194398403, -0.09399843961000443, 0.06560605019330978, -0.013910483568906784, 0.012330152094364166, 0.0599990040063858, -0.022856762632727623, 0.04321356862783432, 0.012598005123436451, -0.021821066737174988, 0.07928439974784851, -0.06735602766275406, 0.0006054586847312748, -0.03799936920404434, -0.025053154677152634, 0.0676417350769043, -0.03541012480854988, 0.020321091637015343, -0.008615928702056408, 0.03333873301744461, 0.02501744218170643, -0.024106742814183235, 0.028570953756570816, -0.04335642233490944, 0.10192687809467316, 0.04142788425087929, 0.04710635915398598, -0.00857128668576479, 0.0061115059070289135, 0.023499609902501106, 0.021374644711613655, 0.013615845702588558, -0.007955225184559822, 0.01063375174999237, -0.024463878944516182, -0.06557033956050873, 0.03526727110147476, -0.05907044932246208, -0.0038660073187202215, -0.010348042473196983, 0.04107074812054634, 0.027249546721577644, 0.009321274235844612, -0.06914170831441879, 0.03967791423201561, 0.00796415377408266, -0.003772258758544922, -0.009705196134746075, 0.04357070475816727, 0.022767478600144386, -0.011017674580216408, -0.0003853172529488802, 0.048713475465774536, -0.003234321251511574, -0.03749937564134598, -0.04467783123254776, 0.028856663033366203, -0.0496063195168972, -0.0219282079488039, -0.023660320788621902, 0.014383689500391483, 0.0018716207705438137, 0.033713724464178085, 0.04289214685559273, 0.016937218606472015, -0.03341015800833702, 0.032642316073179245, 0.0259459987282753, -0.020517516881227493, 0.00924091786146164, -0.008107008412480354, 0.02087465301156044, 0.008990922011435032, 0.012517649680376053, 0.05007059872150421, -0.02128536067903042, -0.02626742050051689, -0.019446106627583504, -0.019392535090446472, 0.012151584029197693, -0.025249579921364784, -0.015651525929570198, -0.061391837894916534, -0.02228534407913685, -0.019374677911400795, -0.03028521127998829, 0.008245399221777916, -0.011714091524481773, 0.001693052239716053, -0.007406127173453569, -0.0009916130220517516, -0.026356704533100128, 0.027695968747138977, -0.04046361520886421, 0.04260643571615219, 0.09449843317270279, -0.0707845389842987, -0.012508721090853214, 0.02226748690009117, 0.05257055535912514, -0.023463895544409752, -0.050856299698352814, 0.02701740898191929, -0.035320840775966644, 0.0035847618710249662, 0.03774937242269516, 0.047927774488925934, 0.022767478600144386, -0.020446090027689934 ]
43,181
matplotlib.cm
set_clim
Set the norm limits for image scaling. Parameters ---------- vmin, vmax : float The limits. The limits may also be passed as a tuple (*vmin*, *vmax*) as a single positional argument. .. ACCEPTS: (vmin: float, vmax: float)
def set_clim(self, vmin=None, vmax=None): """ Set the norm limits for image scaling. Parameters ---------- vmin, vmax : float The limits. The limits may also be passed as a tuple (*vmin*, *vmax*) as a single positional argument. .. ACCEPTS: (vmin: float, vmax: float) """ # If the norm's limits are updated self.changed() will be called # through the callbacks attached to the norm if vmax is None: try: vmin, vmax = vmin except (TypeError, ValueError): pass if vmin is not None: self.norm.vmin = colors._sanitize_extrema(vmin) if vmax is not None: self.norm.vmax = colors._sanitize_extrema(vmax)
(self, vmin=None, vmax=None)
[ 0.012310365214943886, -0.037109505385160446, 0.02367515116930008, 0.010026702657341957, -0.059803396463394165, 0.0158250629901886, 0.0018554753623902798, -0.017974916845560074, 0.01134694553911686, 0.03445117920637131, -0.06030294671654701, 0.0015633271541446447, 0.06533414125442505, 0.022729571908712387, 0.010169431567192078, 0.02667245827615261, -0.017020417377352715, -0.018412023782730103, 0.047278936952352524, -0.006619051564484835, 0.04506663978099823, -0.0051025571301579475, 0.012658266350626945, -0.020017724484205246, -0.006092738825827837, 0.02545926161110401, -0.03227456659078598, 0.01816224865615368, -0.026279952377080917, -0.028010541573166847, -0.03750200942158699, 0.02069568634033203, 0.04970533028244972, 0.006177484057843685, 0.027867812663316727, -0.05680609121918678, 0.048456452786922455, -0.02208729274570942, -0.10654710233211517, 0.007957134395837784, -0.004571784287691116, -0.020338863134384155, 0.04917009547352791, 0.041034549474716187, 0.04999078810214996, 0.008059720508754253, -0.0069535719230771065, 0.014995452016592026, -0.030579660087823868, -0.0464225634932518, -0.040891822427511215, -0.010428127832710743, -0.009732324630022049, 0.016895530745387077, 0.010642221197485924, 0.04963396489620209, 0.009705563075840473, 0.08142682164907455, 0.03400515392422676, -0.039393167942762375, -0.03553948923945427, -0.03821565583348274, -0.04424595087766647, -0.07971407473087311, 0.0165387075394392, -0.0112755810841918, -0.017154226079583168, 0.07011555880308151, 0.02947351150214672, 0.046922117471694946, -0.05887565761804581, 0.02610154263675213, -0.020249659195542336, -0.020017724484205246, 0.012569061480462551, 0.001283444813452661, -0.03380890190601349, 0.09634198993444443, -0.04535209760069847, -0.009866133332252502, 0.0367170013487339, 0.04217638075351715, 0.03452254459261894, -0.038929298520088196, -0.03427277132868767, -0.08513776957988739, -0.052238766103982925, 0.008889332413673401, 0.024353113025426865, -0.013666288927197456, -0.05712722986936569, 0.028046222403645515, 0.0016714888624846935, 0.06751075387001038, -0.022729571908712387, 0.05848315358161926, -0.018929416313767433, 0.011641323566436768, 0.028991801664233208, -0.030097950249910355, -0.006079357583075762, 0.019910678267478943, 0.07664540410041809, -0.02592313103377819, -0.018643958494067192, -0.004101224709302187, -0.012337126769125462, -0.0012979406164959073, -0.013175658881664276, 0.031453873962163925, -0.03184637799859047, 0.03664563596248627, -0.02055295743048191, -0.009268456138670444, -0.04717189073562622, 0.0029683145694434643, -0.05113261938095093, -0.03928612172603607, 0.05106125399470329, 0.009023141115903854, -0.0646204948425293, 0.00729701342061162, 0.05470084026455879, -0.011900019831955433, 0.004919685889035463, 0.036681320518255234, -0.0013369680382311344, 0.044995278120040894, -0.039678625762462616, 0.002709618303924799, 0.02119523659348488, -0.04917009547352791, -0.023889245465397835, 0.034254927188158035, 0.062087059020996094, -0.06551255285739899, -0.03140035271644592, 0.07478992640972137, 0.004502649884670973, 0.05937521159648895, 0.003280533943325281, 0.05459379404783249, -0.022622525691986084, 0.015976712107658386, -0.021873198449611664, 0.04249751940369606, 0.07985680550336838, -0.02387140318751335, -0.009411185048520565, 0.011944622732698917, -0.03231024742126465, 0.018287137150764465, 0.04909873008728027, -0.014344251714646816, 0.00874660350382328, 0.008688620291650295, -0.022907983511686325, -0.058590199798345566, 0.05459379404783249, 0.048634860664606094, -0.04421026632189751, 0.02661893516778946, 0.02583392523229122, -0.05712722986936569, -0.016565470024943352, 0.004669910296797752, -0.0038113067857921124, -0.04613710567355156, -0.032952528446912766, 0.050097834318876266, 0.026511887088418007, -0.0647275447845459, -0.04991942271590233, -0.010401366278529167, 0.04460277035832405, 0.025905290618538857, -0.004012019373476505, -0.004741274751722813, -0.0329703688621521, 0.039678625762462616, 0.02269389107823372, 0.0012120803585276008, 0.05705586448311806, 0.007916991598904133, 0.012239000760018826, -0.00837193988263607, -0.01221223920583725, 0.013541401363909245, -0.04092750325798988, -0.06305047869682312, 0.08399593830108643, -0.0011256624711677432, -0.004339849576354027, -0.04567323997616768, 0.0031400350853800774, -0.030990006402134895, 0.0017250122036784887, -0.061765920370817184, 0.07964271306991577, -0.05106125399470329, -0.024121178314089775, -0.012479855678975582, 0.00537017360329628, -0.00357937254011631, 0.048028264194726944, -0.03821565583348274, 0.0005876414943486452, 0.018519069999456406, 0.05809064954519272, 0.028688503429293633, -0.008206910453736782, 0.03147171437740326, 0.012301444076001644, -0.016351375728845596, 0.011668085120618343, -0.025655513629317284, 0.053773101419210434, 0.0043576909229159355, -0.05445106327533722, 0.04838508740067482, 0.027903493493795395, -0.02353242225944996, 0.023389693349599838, 0.0055129025131464005, -0.026601092889904976, 0.009723404422402382, 0.00883580930531025, -0.02096330188214779, 0.08563732355833054, 0.0023996292147785425, -0.007671676576137543, 0.007997277192771435, -0.036217451095581055, 0.010704665444791317, -0.0598747618496418, -0.005758218001574278, 0.04713620990514755, 0.06476322561502457, -0.0176716186106205, -0.01139154750853777, -0.038001563400030136, 0.011266659945249557, -0.020713526755571365, 0.04274729639291763, 0.005932168569415808, 0.007256871089339256, 0.003055289853364229, 0.027528831735253334, -0.008666318841278553, 0.0710076093673706, -0.027100645005702972, -0.05573562532663345, -0.061302050948143005, 0.03216752037405968, 0.04017817601561546, 0.0012388420291244984, -0.13787609338760376, 0.0034812462981790304, 0.010517333634197712, -0.03562869504094124, -0.011882178485393524, -0.03689541295170784, 0.009652039967477322, 0.06169455498456955, 0.03495073318481445, -0.010258637368679047, 0.010008862242102623, -0.002355026314035058, -0.03814429044723511, 0.020374545827507973, 0.1076175644993782, 0.04178387671709061, -0.02171262912452221, 0.01942896656692028, 0.001781880739144981, 0.030347725376486778, -0.01372873317450285, -0.05202467367053032, 0.03807292506098747, 0.004101224709302187, 0.063514344394207, -0.02924157679080963, -0.03518266603350639, -0.0012767543084919453, 0.04667234048247337, -0.002312653698027134, 0.014950849115848541, -0.029027484357357025, -0.04570892080664635, 0.00796605460345745, -0.002140932949259877, 0.006141801830381155, 0.012087351642549038, -0.011061487719416618, 0.013015088625252247, -0.09512878954410553, 0.024674253538250923, -0.00007868207467254251, -0.056199491024017334, -0.045887332409620285, -0.0008976307581178844, -0.10026703029870987, -0.017225589603185654, 0.012247920967638493, 0.03398731350898743, 0.014478059485554695, 0.006039215251803398, -0.014353171922266483, 0.02895611897110939, 0.011587800458073616, -0.007520027458667755, 0.042426157742738724, -0.08970509469509125, -0.016172965988516808, 0.020570797845721245, 0.041212961077690125, 0.057840876281261444, 0.023800039663910866, -0.014255045913159847, 0.01928623765707016, -0.03086511790752411, -0.03619961068034172, -0.034772321581840515, -0.05477220565080643, -0.017127463594079018, -0.025387898087501526, 0.002164349425584078, 0.05726996064186096, 0.020481592044234276, 0.03735928237438202, -0.010374604724347591, 0.02260468527674675, -0.01198030449450016, 0.032149676233530045, 0.01778758503496647, -0.07721631973981857, 0.02148069441318512, 0.0041458276100456715, -0.0015053435927256942, -0.03928612172603607, 0.010900917463004589, 0.03853679448366165, -0.0009784733410924673, -0.03268491104245186, -0.042105015367269516, 0.033791061490774155, 0.011320183053612709, -0.05280968174338341, -0.04699347913265228, -0.012194397859275341, -0.013773336075246334, 0.008291655220091343, -0.037430647760629654, -0.006333593744784594, -0.01942896656692028, 0.017627015709877014, -0.002983925398439169, -0.06090954691171646, 0.03420140594244003, -0.07293445616960526, 0.01183757558465004, 0.03992840275168419, 0.0033875806257128716, -0.03964294493198395, -0.0037845452316105366, 0.03305957466363907, -0.014299648813903332, -0.08428139984607697, 0.0354502834379673, 0.01328270509839058, -0.0051025571301579475, 0.0023884784895926714, 0.010258637368679047, -0.05145375803112984, -0.0049642883241176605, -0.01141830999404192, -0.06419230997562408, 0.007551249116659164, 0.0003423262678552419, 0.06950896233320236, -0.010472730733454227, -0.01387146208435297, 0.03942884877324104, -0.07297013700008392, 0.0232648067176342, -0.01429072767496109, 0.039393167942762375, 0.021427171304821968, -0.0005045688594691455, 0.009277376346290112, -0.01760917343199253, 0.00333851738832891, 0.03268491104245186, -0.02428174950182438, 0.007131983060389757, -0.02312207780778408, 0.0287241842597723, 0.046208471059799194, 0.046493928879499435, -0.02115955576300621, -0.039072029292583466, 0.07214944064617157, 0.005240825470536947, 0.01504005491733551, -0.020445911213755608, -0.02760019525885582, -0.01016051135957241, 0.042105015367269516, 0.0316501259803772, -0.009616357274353504, 0.03156092017889023, 0.008122164756059647, 0.004413444083184004, -0.010383524931967258, -0.0026070319581776857, -0.036966778337955475, -0.03339855745434761, -0.0756463035941124, -0.000931640388444066, -0.0014819271164014935, -0.0341300405561924, 0.0018643959192559123, 0.02843872644007206, 0.005330031272023916, 0.04809962958097458, -0.05702018365263939, 0.0660477876663208, -0.053773101419210434, -0.0070918407291173935, -0.06761780381202698, -0.017198828980326653, 0.048777591437101364, 0.03316662088036537, -0.008969617076218128, -0.0062979115173220634, 0.009357661940157413, -0.011516436003148556, 0.055878352373838425, -0.008122164756059647, -0.019999882206320763, 0.023193441331386566, -0.08149818331003189, -0.012667187489569187, -0.055592894554138184, 0.0019993192981928587, -0.02424606680870056, -0.029669763520359993, 0.03361264988780022, 0.024156861007213593, -0.042283426970243454, -0.040427953004837036, 0.03157876431941986, -0.07029397040605545, 0.006975873373448849, 0.09834019094705582, -0.0023527962621301413, -0.0756463035941124, 0.01139154750853777, 0.015191704034805298, -0.0366099551320076, 0.01989283598959446, 0.016993656754493713, -0.0402495414018631, -0.04049931839108467, -0.0030887420289218426, 0.04310411959886551, 0.08421003073453903, 0.023603787645697594, -0.01214087475091219, -0.041641149669885635, 0.010722506791353226, -0.04203365370631218, 0.020802732557058334, 0.006833144463598728, 0.01966090127825737, -0.013398672454059124, -0.040285222232341766, 0.010133749805390835, 0.012658266350626945, -0.02176615223288536, 0.03664563596248627, 0.025530626997351646, 0.056484948843717575, -0.012551220133900642, -0.011650243774056435, -0.009982100687921047, -0.01919703371822834, -0.0176716186106205, -0.014183681458234787, 0.05573562532663345, 0.018287137150764465, -0.008545891381800175, -0.023978449404239655, 0.0439961738884449, -0.0035236189141869545, -0.006333593744784594, 0.02820679359138012, -0.02474561706185341, 0.06290774792432785, -0.00357937254011631, -0.01183757558465004, -0.020106930285692215, -0.0079125314950943, -0.029758969321846962, -0.008599414490163326, 0.0538087822496891, -0.06019590049982071, 0.026743821799755096, 0.00027681596111506224, -0.01859043538570404, 0.026369158178567886, -0.04524505138397217, -0.0006896703853271902, 0.00014579530397895724, 0.020338863134384155, -0.03648506850004196, -0.08114136010408401, 0.016431661322712898, 0.018554752692580223, -0.0022334838286042213, -0.03489720821380615, 0.014353171922266483, -0.030847277492284775, -0.0439961738884449, -0.023246964439749718, -0.010660062544047832, -0.03352344408631325, -0.0669398382306099, 0.03548596426844597, 0.02358594536781311, 0.019072145223617554, -0.04082045704126358, 0.024388795718550682, 0.02610154263675213, -0.002555738901719451, 0.0201782938092947, -0.02722553163766861, -0.02904532477259636, -0.0006305716815404594, -0.022872300818562508, -0.023175600916147232, 0.02073136903345585, 0.05937521159648895, 0.06790325790643692, -0.023389693349599838, -0.002970544621348381, -0.008059720508754253, 0.013139976188540459, 0.009660960175096989, -0.013416513800621033, -0.0038224575109779835, 0.033880267292261124, -0.03839406743645668, -0.013015088625252247, -0.06358571350574493, 0.010526253841817379, 0.003702030051499605, -0.05366605520248413, -0.027814287692308426, 0.02185535803437233, -0.008942855522036552, 0.005459379404783249, 0.07600312680006027, 0.015441480092704296, -0.06536982208490372, -0.00959851685911417, 0.008483447134494781, 0.0403565876185894, 0.03703813999891281, -0.018340660259127617, 0.011409388855099678, 0.0007231224444694817, -0.011132852174341679, 0.034076519310474396, -0.05309513956308365, 0.08356775343418121, 0.04688643291592598, -0.04974101111292839, -0.014424536377191544, -0.041676830500364304, 0.011668085120618343, 0.005026732571423054, 0.006587829440832138, -0.02909884788095951, 0.00007010998524492607, 0.0071899667382240295, -0.0439961738884449, 0.03825133666396141, -0.0274574663490057, 0.032488659024238586, 0.009339820593595505, 0.02690439112484455, -0.027386102825403214, -0.03703813999891281, -0.03562869504094124, -0.022444114089012146, -0.03446902334690094, -0.006721637677401304, 0.010936599224805832, 0.09812609851360321, -0.023568104952573776, -0.005379094276577234, -0.027528831735253334, 0.037109505385160446, -0.032577864825725555, -0.06255092471837997, 0.0598747618496418, -0.05049033835530281, -0.02826031669974327, 0.033273667097091675, -0.030008744448423386, 0.042105015367269516, -0.029491351917386055, 0.013247023336589336, -0.0024241607170552015, -0.005548584740608931, -0.033416397869586945, 0.006864366587251425, 0.05388014763593674, 0.05295241251587868, 0.029366465285420418, -0.014745675958693027, 0.029437828809022903, -0.03664563596248627, -0.04342525824904442, -0.01585182547569275, -0.02376435697078705, 0.010561936534941196, -0.08121272921562195, -0.02447800152003765, -0.029866015538573265, -0.026030177250504494, 0.009067743085324764, -0.008046340197324753, -0.002731919754296541, 0.018001679331064224, 0.010856314562261105, 0.004364381078630686, 0.0390363447368145, 0.03964294493198395, 0.06776053458452225, 0.004003098700195551, 0.0709005668759346, 0.011703766882419586, -0.01876884698867798, 0.06658301502466202, -0.0402495414018631, 0.03703813999891281, 0.020981144160032272, -0.01933976262807846, 0.0256911963224411, 0.017546730116009712, 0.010222955606877804, 0.007024936378002167, -0.0012511077802628279, -0.048028264194726944, -0.029223736375570297, -0.03700245916843414, 0.01919703371822834, -0.047564394772052765, -0.04346093907952309, 0.05627085641026497, 0.06212273985147476, 0.0007353881956078112, 0.02858145534992218, -0.05063306540250778, 0.00900975987315178, -0.02130228467285633, -0.056913137435913086, -0.007466503884643316, 0.0006305716815404594, -0.03475448116660118, -0.10490571707487106, 0.03928612172603607, 0.008068641647696495, 0.00971448328346014, -0.001754004042595625, -0.03974999114871025, -0.010285398922860622, 0.0330774150788784, -0.01813548617064953, 0.023015029728412628, -0.04442436248064041, 0.07407627999782562, 0.06080249696969986, 0.03689541295170784, -0.038322702050209045, 0.02950919419527054, 0.014941928908228874, 0.08057044446468353, 0.000300511164823547, 0.008679699152708054, -0.04888463765382767, -0.028563614934682846, -0.005026732571423054, 0.011784052476286888, -0.06651165336370468, -0.06290774792432785, -0.0009132417617365718, 0.04988374188542366, 0.05530743673443794, 0.003561531426385045, -0.08321093022823334, 0.01160564087331295, -0.04349662363529205, -0.05245285853743553, 0.0625152438879013, -0.007569090463221073, 0.005107017233967781, 0.03689541295170784, 0.03570006042718887, 0.049669645726680756, 0.057983603328466415, -0.033880267292261124, 0.016842005774378777, -0.0015343353152275085, -0.04610142484307289, -0.010526253841817379, 0.024781299754977226, -0.06005317345261574, 0.05334491655230522, -0.030383408069610596, -0.0038893616292625666, -0.016244329512119293, 0.0367170013487339, -0.023371852934360504, -0.0023282647598534822, 0.017163146287202835, 0.0378231517970562, -0.03380890190601349, 0.0006512004765681922, -0.000044010390411131084, -0.02124875970184803, 0.017279114574193954, 0.012881280854344368, 0.01611052080988884, -0.004643148742616177, -0.007961594499647617, -0.04281866177916527, -0.005227444693446159, 0.0031065831426531076, -0.03942884877324104, 0.02465641312301159, -0.02988385781645775, -0.03657427430152893, 0.012131953611969948, 0.022069452330470085, 0.020106930285692215, 0.032899003475904465, 0.00012614221486728638, 0.027725083753466606, 0.027332577854394913, 0.010642221197485924, 0.027582354843616486, 0.027403943240642548, -0.05834042653441429, 0.04396049305796623, 0.04570892080664635, 0.033880267292261124, -0.010588698089122772, 0.05313082039356232, 0.020606480538845062, -0.0014038722729310393, 0.0006863251328468323, 0.0403565876185894, 0.061587508767843246, 0.0538087822496891, -0.01942896656692028 ]
43,182
matplotlib.cm
set_cmap
Set the colormap for luminance data. Parameters ---------- cmap : `.Colormap` or str or None
def set_cmap(self, cmap): """ Set the colormap for luminance data. Parameters ---------- cmap : `.Colormap` or str or None """ in_init = self.cmap is None self.cmap = _ensure_cmap(cmap) if not in_init: self.changed() # Things are not set up properly yet.
(self, cmap)
[ 0.03452688828110695, -0.006570995785295963, -0.007149900309741497, 0.07686466723680496, -0.023087048903107643, 0.005935929249972105, -0.009279749356210232, 0.03046591952443123, 0.01817932352423668, 0.033178992569446564, -0.030725128948688507, -0.013824580237269402, 0.07506746798753738, 0.05913464352488518, 0.019803710281848907, -0.00044011848513036966, -0.03423311561346054, 0.04541374742984772, 0.013997387140989304, -0.019423535093665123, -0.005093493964523077, -0.0022400140296667814, 0.04043689742684364, 0.00036424529389478266, -0.038639701902866364, 0.020425816997885704, -0.0284440740942955, 0.012295235879719257, 0.029446355998516083, -0.009824092499911785, -0.029152583330869675, -0.0358402244746685, 0.0023609790951013565, 0.03722268342971802, 0.026353105902671814, -0.007352948654443026, 0.026301264762878418, 0.005827924702316523, -0.04351286590099335, -0.0049250065349042416, 0.03722268342971802, -0.012545806355774403, -0.0008229945669882, -0.008558278903365135, 0.04385847970843315, -0.0006680080550722778, -0.03798303380608559, -0.0051366956904530525, 0.01010922435671091, -0.02547178976237774, -0.07721027731895447, -0.007288145832717419, -0.0007171501056291163, 0.0491463840007782, 0.029550040140748024, 0.04268339276313782, -0.003935685381293297, 0.040506020188331604, -0.019820991903543472, -0.019319850951433182, -0.030310392379760742, -0.038743387907743454, -0.03110530599951744, -0.071680448949337, 0.010739970952272415, -0.06583956629037857, 0.0018382371636107564, 0.036220401525497437, 0.033178992569446564, 0.03402574732899666, -0.06456079334020615, 0.031813815236091614, -0.019008798524737358, 0.0028383592143654823, -0.0022961762733757496, 0.025402667000889778, -0.04921550676226616, 0.018231164664030075, -0.03984935209155083, 0.034786101430654526, 0.028357669711112976, 0.03853601589798927, 0.01857678033411503, -0.0017410330474376678, -0.03383566066622734, -0.10755523294210434, 0.016606777906417847, 0.01050668116658926, -0.004855883773416281, 0.011733612045645714, -0.017375769093632698, 0.007072136737406254, 0.009737689048051834, 0.03808671981096268, -0.004860204178839922, 0.010835015214979649, -0.005966170225292444, 0.07067816704511642, 0.02690608985722065, -0.0208751168102026, 0.008009616285562515, -0.03492434695363045, 0.05934201180934906, -0.03642776980996132, -0.018766866996884346, -0.004799721296876669, -0.02341538295149803, 0.02004564180970192, -0.007288145832717419, 0.022603189572691917, -0.056093234568834305, 0.00637658778578043, -0.0003261737001594156, 0.0026785123627632856, -0.025333544239401817, 0.019803710281848907, 0.050805334001779556, -0.03530452027916908, 0.018490375950932503, 0.04351286590099335, -0.07306290417909622, 0.02108248509466648, 0.010161066427826881, -0.01751401461660862, 0.056231480091810226, 0.03146820142865181, 0.049872174859046936, 0.05384673923254013, -0.012424841523170471, 0.008039857260882854, 0.006303144618868828, -0.015111993998289108, -0.050701647996902466, 0.010619006119668484, 0.06414604932069778, -0.06739483028650284, -0.026646878570318222, 0.007888651452958584, 0.011016461998224258, 0.04907726123929024, -0.005866806022822857, 0.023156171664595604, -0.03656601533293724, 0.017168400809168816, 0.01835213042795658, 0.02770100347697735, 0.005041651427745819, 0.011664489284157753, -0.01838669180870056, -0.00639386847615242, -0.022171171382069588, -0.00171943218447268, -0.0017151120118796825, 0.013435764238238335, 0.00021884418674744666, -0.004341782070696354, 0.0014018988003954291, 0.0007841128972359002, 0.06024060770869255, 0.04551742970943451, -0.011284314095973969, 0.027234423905611038, 0.028789687901735306, -0.05208410695195198, -0.03991847485303879, -0.004747879225760698, -0.04931918904185295, -0.035045310854911804, -0.013470325618982315, -0.009772250428795815, 0.018956955522298813, -0.1192370057106018, 0.0061303372494876385, 0.00910694245249033, 0.07893835008144379, 0.012416200712323189, -0.027182580903172493, -0.016157478094100952, -0.02327713742852211, 0.054468847811222076, 0.023190733045339584, 0.03732636570930481, -0.03898531571030617, 0.028513196855783463, 0.011042383499443531, -0.016433969140052795, -0.03243592008948326, -0.024417664855718613, -0.010083302855491638, 0.017989234998822212, 0.0947674959897995, -0.012597648426890373, -0.037775665521621704, -0.012226113118231297, 0.07513659447431564, -0.0436856746673584, 0.026301264762878418, -0.054468847811222076, 0.01571681909263134, 0.034250397235155106, -0.007223343010991812, -0.034146714955568314, -0.024745998904109, 0.054607093334198, 0.011379357427358627, -0.012934623286128044, 0.01555265299975872, 0.018490375950932503, 0.01282229833304882, -0.009478477761149406, -0.014973748475313187, -0.003507987130433321, 0.03760285675525665, 0.031053462997078896, 0.009694486856460571, -0.07824712246656418, -0.03399118781089783, -0.010800452902913094, -0.006462991237640381, 0.027752844616770744, 0.01968274638056755, -0.008147861808538437, 0.02327713742852211, 0.02205020561814308, -0.0065753161907196045, 0.008009616285562515, -0.007413431070744991, -0.010567163117229939, 0.02291424199938774, 0.05999867990612984, -0.027389949187636375, 0.0208751168102026, -0.010351154021918774, 0.0009250588482245803, 0.019440816715359688, -0.006471631582826376, 0.07444536685943604, 0.06514833122491837, -0.06504464894533157, 0.015906907618045807, -0.0417502336204052, 0.02640494890511036, 0.03383566066622734, 0.00914150383323431, -0.013919624499976635, -0.007983694784343243, 0.015232959762215614, 0.034751538187265396, -0.059929557144641876, 0.0385705791413784, -0.04575936123728752, -0.03093249909579754, 0.03732636570930481, 0.05042515695095062, 0.013850501738488674, -0.04942287504673004, -0.06850079447031021, 0.047141820192337036, -0.0004919606726616621, -0.025713719427585602, -0.036980751901865005, 0.013245675712823868, 0.02654319442808628, 0.05730288475751877, 0.03193477913737297, -0.02044309861958027, 0.030776971951127052, 0.043270934373140335, 0.007374549750238657, 0.011543524451553822, 0.06331657618284225, 0.024348542094230652, -0.021704591810703278, 0.015353924594819546, 0.02567915804684162, 0.0024344222620129585, 0.014749099500477314, -0.09068924933671951, 0.017565857619047165, 0.05350112542510033, 0.054607093334198, -0.06908833980560303, -0.01460221316665411, 0.02065046690404415, -0.018058357760310173, -0.022205732762813568, 0.0023307378869503736, 0.015630416572093964, -0.01907792128622532, -0.010359794832766056, 0.028858810663223267, -0.011275673285126686, -0.06342025846242905, 0.07320114970207214, 0.03165828809142113, -0.052464280277490616, 0.0037887990474700928, 0.04565567523241043, -0.03819040209054947, -0.025350823998451233, 0.0007733124657534063, -0.11384541541337967, 0.014351642690598965, 0.005698319058865309, 0.013021026737987995, -0.027614599093794823, -0.04935375228524208, 0.006402508821338415, -0.005784722976386547, 0.05833972990512848, 0.04731462523341179, 0.07361588627099991, -0.08218713104724884, -0.009850013069808483, -0.012433481402695179, -0.005901367869228125, 0.052602529525756836, 0.0031753333751112223, 0.018196603283286095, 0.044065847992897034, -0.023864680901169777, -0.06013692542910576, -0.03215942904353142, -0.03753373399376869, -0.0151033541187644, -0.02507433295249939, 0.07299378514289856, 0.029256267473101616, 0.05111638456583023, 0.003056528279557824, -0.0651828944683075, -0.021652748808264732, 0.018507657572627068, 0.0012604128569364548, 0.03212486952543259, -0.11004365980625153, -0.05270621180534363, -0.036220401525497437, -0.044065847992897034, -0.02090967819094658, -0.025523630902171135, -0.03533908352255821, -0.023501787334680557, -0.015060151927173138, 0.027752844616770744, 0.053259193897247314, 0.006298824213445187, -0.03556373342871666, -0.031226269900798798, 0.0059445695951581, 0.015639055520296097, -0.029118021950125694, -0.05560937523841858, 0.03991847485303879, 0.010394356213510036, 0.05391586199402809, -0.01099054142832756, -0.05450340732932091, 0.0003059228474739939, 0.008951415307819843, 0.02956732176244259, 0.008018256165087223, 0.005503911059349775, -0.06186499819159508, -0.010014180094003677, 0.018542218953371048, -0.03808671981096268, -0.01704743504524231, 0.06397324800491333, 0.0034561450593173504, 0.02014932595193386, -0.00727518554776907, -0.015630416572093964, 0.030051181092858315, -0.04219952970743179, -0.006985733285546303, 0.007339987903833389, 0.03711899742484093, -0.012122428975999355, 0.0009979618480429053, 0.021324414759874344, -0.04264882951974869, -0.01954450085759163, -0.03309258818626404, -0.01005738228559494, 0.003114850725978613, 0.008143541403114796, 0.0191124826669693, -0.05225691199302673, -0.0067351628094911575, -0.01591554842889309, 0.0037088757380843163, 0.0444805882871151, -0.024365821853280067, 0.040644265711307526, 0.06103552132844925, 0.015431688167154789, 0.041542865335941315, 0.0393654927611351, -0.034146714955568314, -0.013090149499475956, -0.016062434762716293, -0.026733282953500748, 0.013867782428860664, -0.01611427590250969, 0.012096507474780083, -0.04548287019133568, 0.007348628249019384, -0.0009093981934711337, -0.03006846271455288, 0.05291358008980751, 0.01885327138006687, 0.016935110092163086, -0.06946851313114166, -0.01724616438150406, -0.03715356066823006, -0.0016384287737309933, -0.11045839637517929, 0.05315551161766052, 0.03257416561245918, -0.023294417187571526, 0.009832732379436493, 0.015414406545460224, 0.0013457364402711391, 0.031226269900798798, -0.03546004742383957, 0.053466565907001495, 0.02770100347697735, -0.03321355581283569, 0.01608835533261299, -0.015431688167154789, 0.025419946759939194, 0.05287902057170868, -0.0440312884747982, 0.035874783992767334, 0.025730999186635017, -0.026716001331806183, 0.06352394819259644, -0.026232140138745308, -0.029619162902235985, 0.07935309410095215, -0.05771762132644653, -0.013427123427391052, -0.03829408809542656, 0.02338082157075405, 0.024936087429523468, -0.018939675763249397, 0.04295988380908966, 0.027960212901234627, 0.005758801940828562, -0.049491997808218, -0.02018388733267784, -0.08363871276378632, -0.0019516418687999249, 0.10264750570058823, -0.0018544378690421581, -0.05018322542309761, 0.01192370057106018, 0.06673815846443176, -0.0074177514761686325, 0.01325431652367115, -0.03010302409529686, -0.04658883437514305, -0.03929636999964714, 0.035909347236156464, 0.08923766762018204, 0.041508302092552185, -0.0014839823124930263, -0.0046053132973611355, -0.046899888664484024, -0.04544830694794655, 0.024089330807328224, 0.048005856573581696, -0.03566741570830345, -0.06946851313114166, -0.022257573902606964, -0.046969011425971985, 0.015336643904447556, -0.0003010626242030412, -0.003702395362779498, 0.0035835905000567436, 0.015811864286661148, 0.09594258666038513, -0.046070415526628494, 0.007676962297409773, -0.017496734857559204, 0.023017926141619682, -0.040575142949819565, 0.039745669811964035, 0.005560073535889387, -0.056196920573711395, -0.006182179320603609, -0.005853845737874508, 0.032988905906677246, -0.014178834855556488, -0.027061615139245987, 0.03660057485103607, -0.055125512182712555, 0.05761393904685974, 0.03321355581283569, 0.01553537230938673, -0.00375855783931911, -0.043478306382894516, -0.0012992945266887546, -0.00392056442797184, -0.007888651452958584, 0.005080533213913441, 0.003896803595125675, 0.015803223475813866, -0.015129274688661098, 0.0016287083271890879, -0.001449420815333724, -0.01871502585709095, -0.05861622095108032, 0.011595366522669792, -0.006074174772948027, -0.02700977399945259, -0.011128786951303482, -0.03711899742484093, 0.011180629022419453, -0.01327159721404314, 0.026128455996513367, 0.05011410266160965, -0.01694375090301037, -0.035045310854911804, 0.010593084618449211, -0.011241111904382706, -0.016641339287161827, -0.047798484563827515, 0.008420033380389214, -0.042095847427845, -0.0697450041770935, -0.019734587520360947, 0.015630416572093964, -0.011310234665870667, 0.024694155901670456, 0.03943461552262306, -0.05118550732731819, -0.0323667973279953, -0.042095847427845, -0.019492657855153084, -0.030776971951127052, 0.11363805085420609, 0.0004249978519510478, -0.011465760879218578, -0.050805334001779556, -0.08647274971008301, 0.0294636357575655, 0.009461197070777416, -0.01585506461560726, -0.004773800261318684, 0.03266056999564171, -0.034699697047472, -0.02590380795300007, -0.036013033241033554, 0.012511244975030422, 0.0294636357575655, -0.03919268399477005, 0.00687772873789072, -0.007918892428278923, -0.007638080511242151, 0.021652748808264732, 0.016572214663028717, 0.043443743139505386, 0.001598467119038105, -0.036116715520620346, -0.05025234818458557, 0.005231739487498999, -0.028997056186199188, -0.03171012923121452, 0.05567849799990654, -0.03373197466135025, -0.04351286590099335, 0.015414406545460224, -0.020494939759373665, 0.018092919141054153, 0.04848971590399742, -0.044273220002651215, 0.0697450041770935, -0.06342025846242905, -0.023484505712985992, 0.04728006571531296, 0.020754151046276093, -0.01048940047621727, 0.02144538052380085, -0.023052487522363663, -0.03283337876200676, 0.05903095752000809, -0.03146820142865181, -0.028910653665661812, -0.013435764238238335, -0.027182580903172493, -0.030051181092858315, -0.0732702761888504, -0.03940005227923393, -0.02503977157175541, 0.010161066427826881, 0.004026408772915602, 0.017038794234395027, 0.08204888552427292, -0.006000732071697712, -0.028063897043466568, -0.0623488575220108, -0.01722024194896221, -0.012450763024389744, -0.06556307524442673, 0.055090952664613724, 0.037948474287986755, 0.03853601589798927, 0.00907238107174635, -0.03349004685878754, 0.015258880332112312, 0.005309503059834242, 0.03160644695162773, 0.030223987996578217, -0.08184151351451874, 0.00792753230780363, 0.019129762426018715, 0.039641983807086945, 0.08750959485769272, 0.01508607342839241, -0.03533908352255821, 0.024625033140182495, 0.022171171382069588, -0.017341207712888718, -0.017099278047680855, -0.013954185880720615, 0.010273391380906105, 0.005110774654895067, -0.05284445732831955, -0.03373197466135025, 0.019060639664530754, -0.007992335595190525, -0.06967588514089584, 0.009996899403631687, -0.01183729711920023, -0.016459891572594643, -0.0065839565359056, 0.05204954370856285, 0.04171567037701607, 0.005391586106270552, 0.027303546667099, 0.09580434113740921, -0.01182001642882824, -0.004575071856379509, 0.03995303809642792, 0.0026029092259705067, 0.028357669711112976, 0.02780468761920929, -0.0033351799938827753, -0.007979375310242176, -0.02180827595293522, 0.03926180675625801, 0.030621444806456566, 0.020253010094165802, -0.001069784862920642, -0.02773556485772133, 0.00023436984338331968, 0.01228659600019455, -0.021670030429959297, -0.044238656759262085, 0.0265086330473423, 0.031917501240968704, 0.023916523903608322, 0.1002282053232193, -0.02331169880926609, 0.027355387806892395, -0.009832732379436493, -0.03812127932906151, -0.021670030429959297, -0.0554020069539547, -0.0028750805649906397, -0.0018123160116374493, -0.021652748808264732, 0.04092075675725937, -0.00017847749404609203, 0.012969184666872025, -0.03096706047654152, 0.07928396761417389, 0.02687152847647667, 0.004335301928222179, 0.032211270183324814, -0.04918094351887703, 0.09870750457048416, 0.03056960366666317, 0.10333874076604843, -0.05115094780921936, -0.02230941690504551, 0.03919268399477005, 0.007361588999629021, 0.00663579860702157, -0.042545147240161896, 0.0005076213274151087, -0.0013673374196514487, -0.06635798513889313, 0.04109356552362442, -0.08481380343437195, -0.034077588468790054, 0.03067328780889511, 0.02733810804784298, 0.03639320656657219, -0.0014645414194092155, -0.06497552990913391, 0.008856371976435184, -0.0013014546129852533, -0.02327713742852211, -0.007162860594689846, 0.014524449594318867, 0.001452661002986133, -0.003469105577096343, -0.004471387714147568, 0.06577043980360031, 0.006385228130966425, -0.05578218027949333, 0.020322132855653763, 0.00960808340460062, -0.06867360323667526, -0.038881633430719376, -0.031122585758566856, -0.03343820199370384, 0.056024111807346344, -0.0015023431042209268, -0.020287571474909782, 0.061553943902254105, 0.02593836933374405, -0.0647335946559906, -0.034319519996643066, -0.013383922167122364, 0.02700977399945259, -0.007115338463336229, -0.008204024285078049, 0.0022464944049715996, -0.05536744371056557, 0.0538121797144413, -0.04928462952375412, -0.002710913773626089, -0.02004564180970192, 0.022585907950997353, 0.010031460784375668, 0.01278773695230484, -0.040644265711307526, -0.056196920573711395, -0.02870328538119793, 0.03283337876200676, -0.02291424199938774, 0.01585506461560726, 0.03210758790373802, 0.03488978371024132, 0.024469507858157158, 0.052567966282367706, 0.033282678574323654, -0.008916853927075863, -0.02507433295249939, 0.058927271515131, 0.024694155901670456, -0.04123181104660034, -0.008281787857413292, 0.01921616680920124, 0.037671979516744614, -0.0039594462141394615, -0.017902830615639687, 0.0011729291873052716, -0.021393537521362305, -0.040540583431720734, 0.040644265711307526, 0.06176131218671799, 0.017954673618078232, -0.04012584313750267 ]
43,183
matplotlib.cm
set_norm
Set the normalization instance. Parameters ---------- norm : `.Normalize` or str or None Notes ----- If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
def set_norm(self, norm): """ Set the normalization instance. Parameters ---------- norm : `.Normalize` or str or None Notes ----- If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default. """ self.norm = norm
(self, norm)
[ 0.01491610985249281, 0.04508810490369797, 0.017218083143234253, 0.006608618423342705, -0.015043525956571102, -0.0010570179438218474, -0.022900816053152084, 0.011433418840169907, 0.04634527117013931, 0.04678697884082794, -0.04053512215614319, 0.005585046950727701, 0.023223601281642914, 0.031717970967292786, -0.016428107395768166, 0.019995741546154022, 0.009386276826262474, 0.028558064252138138, 0.002454872243106365, -0.022102344781160355, 0.025771912187337875, 0.0011775317834690213, 0.008685491047799587, -0.03689953312277794, -0.003860690165311098, -0.019231248646974564, -0.024922475218772888, -0.04033125936985016, 0.0036674432922154665, 0.00444255443289876, -0.0008929704199545085, -0.010575488209724426, 0.023325534537434578, 0.008371199481189251, 0.06707152724266052, -0.08548732101917267, 0.018381811678409576, 0.018874485045671463, -0.027725616469979286, 0.01824590191245079, 0.026332540437579155, -0.013905280269682407, -0.0012115092249587178, 0.01912931725382805, 0.06911017745733261, 0.04209808632731438, 0.006612865254282951, 0.04668504744768143, -0.03876829519867897, -0.043898895382881165, -0.07848796248435974, -0.0010347202187404037, 0.04338923096656799, 0.025737935677170753, 0.01936715841293335, 0.04318536818027496, 0.009955399669706821, 0.06493094563484192, -0.012206406332552433, -0.009131445549428463, -0.011314498260617256, -0.008269267156720161, -0.07950728386640549, -0.07203224301338196, 0.01912931725382805, -0.0476703941822052, -0.012452743016183376, 0.0972435250878334, 0.06180502101778984, 0.022136323153972626, -0.05606282874941826, 0.025822877883911133, -0.03246547281742096, -0.01139944139868021, -0.0163856353610754, 0.018109992146492004, -0.04145251587033272, 0.051204051822423935, 0.014465908519923687, 0.0199617650359869, 0.012750046327710152, 0.05246121808886528, 0.04179229214787483, -0.02806539088487625, -0.04359309747815132, -0.05059245601296425, -0.04281161352992058, 0.027572717517614365, 0.0382586345076561, -0.025652991607785225, -0.046175383031368256, -0.0001751963427523151, 0.031191319227218628, 0.012342317029833794, -0.017838172614574432, 0.0476703941822052, -0.012231890112161636, -0.019299203529953957, 0.04512208327651024, -0.05647055804729462, -0.018670620396733284, 0.0012730933958664536, 0.08358458429574966, 0.016513051465153694, -0.02962835505604744, -0.02188149280846119, -0.011713732965290546, -0.039345912635326385, -0.03696748986840248, 0.07393497973680496, -0.008715221658349037, 0.01445741392672062, -0.0012730933958664536, 0.011509868316352367, -0.006612865254282951, -0.009021018631756306, -0.01229984499514103, -0.055553168058395386, 0.07488634437322617, 0.030256938189268112, -0.0382586345076561, 0.030885521322488785, 0.03744317218661308, -0.05929068848490715, 0.00370354438200593, 0.020709268748760223, -0.020896146073937416, 0.03418133780360222, -0.02040347270667553, 0.0269951019436121, 0.04923335835337639, -0.0462433397769928, -0.02906772680580616, 0.007016347721219063, 0.08242934942245483, -0.059358641505241394, -0.06951791048049927, 0.050048816949129105, -0.03377360850572586, 0.10573789477348328, 0.016241231933236122, 0.043423209339380264, -0.016462085768580437, 0.0070036062970757484, -0.0049309805035591125, 0.05786363407969475, -0.019333181902766228, 0.023529399186372757, -0.002142704324796796, 0.006816730368882418, -0.050082795321941376, 0.030036084353923798, 0.06870244443416595, 0.030053073540329933, -0.02203438989818096, 0.006370775867253542, -0.026060720905661583, -0.058747049421072006, 0.050082795321941376, 0.07495430111885071, -0.01038011722266674, -0.03197279945015907, 0.019333181902766228, -0.09309827536344528, -0.01173921674489975, 0.042505815625190735, -0.0320577435195446, -0.030239950865507126, -0.015977906063199043, 0.009564658626914024, -0.005113609600812197, -0.09099166840314865, -0.04216604307293892, 0.002440007170662284, 0.08168184012174606, 0.029492445290088654, 0.008443402126431465, 0.016742398962378502, -0.06272241473197937, 0.012078991159796715, 0.03768101707100868, -0.01732851006090641, 0.027453796938061714, -0.048417896032333374, 0.0011531104100868106, -0.023206613957881927, 0.009547669440507889, -0.005364193581044674, -0.031191319227218628, 0.0027734111063182354, 0.06693562120199203, 0.002310468116775155, -0.061906952410936356, -0.02670629322528839, 0.0694839283823967, -0.015926940366625786, 0.01587597280740738, -0.07712886482477188, 0.0784200057387352, -0.02983221970498562, -0.028558064252138138, -0.008558075875043869, 0.03090251050889492, 0.030647680163383484, 0.04033125936985016, -0.0031344217713922262, 0.0008584620663896203, 0.029577389359474182, 0.029492445290088654, -0.02267996221780777, -0.013803347945213318, -0.028761930763721466, 0.025143329054117203, 0.007131021935492754, -0.006944146007299423, -0.01694626361131668, 0.01653004065155983, -0.027402831241488457, 0.005351451691240072, 0.039753641933202744, 0.02998511865735054, -0.000007913698027550709, 0.05032063648104668, -0.005198553204536438, -0.08256525546312332, 0.0333658792078495, 0.006192394066601992, -0.023971106857061386, 0.03404542803764343, 0.018636643886566162, -0.030358871445059776, -0.008970052935183048, -0.032754283398389816, 0.03331490978598595, -0.004051813390105963, -0.08541936427354813, 0.043219342827796936, 0.1113101989030838, -0.03608407452702522, -0.003096197033300996, -0.03151410445570946, 0.050932228565216064, -0.019655967131257057, 0.016190266236662865, -0.004083667416125536, -0.009709062986075878, 0.02267996221780777, 0.021660638973116875, -0.012333822436630726, -0.006995112169533968, -0.06000421568751335, -0.03018898330628872, -0.007925244979560375, 0.004353363532572985, 0.0721001923084259, -0.032363541424274445, -0.12401777505874634, 0.030409837141633034, -0.00845614355057478, 0.011611800640821457, -0.038870226591825485, -0.03662771359086037, 0.03226161003112793, 0.041588425636291504, 0.05269905924797058, -0.006183899939060211, 0.01768527366220951, 0.007644931320101023, -0.030053073540329933, 0.04175831377506256, 0.01824590191245079, 0.01575705222785473, -0.021660638973116875, 0.03176893666386604, 0.004132510162889957, 0.02327456884086132, 0.015374805778265, -0.051441892981529236, 0.03125927597284317, 0.02954341098666191, 0.09805898368358612, -0.03628794103860855, -0.03859840705990791, -0.0018613283755257726, 0.026043731719255447, 0.006298573687672615, 0.0023529399186372757, 0.007283920422196388, -0.02939051389694214, 0.01061796024441719, 0.013353146612644196, 0.0005192182143218815, -0.0052580139599740505, 0.005058396141976118, -0.012750046327710152, -0.12401777505874634, -0.008243784308433533, -0.014211077243089676, -0.06241661682724953, -0.022985760122537613, -0.008698232471942902, -0.062314681708812714, 0.005895091220736504, 0.06985767930746078, 0.03482690826058388, 0.013064337894320488, 0.020420460030436516, 0.005092373583465815, 0.0622127503156662, 0.015901457518339157, 0.05925671011209488, 0.07135269045829773, -0.09255463629961014, 0.03937989100813866, 0.036797601729631424, 0.07468248158693314, 0.021066032350063324, -0.044374577701091766, -0.005236777942627668, 0.06289230287075043, -0.05235928297042847, -0.029679320752620697, 0.0007713948143646121, -0.05725203827023506, -0.056640446186065674, -0.026485439389944077, 0.011900609359145164, 0.04807812348008156, 0.014720739796757698, 0.030053073540329933, -0.0026544900611042976, -0.019910799339413643, -0.0012062002206221223, 0.011586317792534828, 0.005623271688818932, -0.05837329849600792, 0.011586317792534828, -0.055315323173999786, 0.004090038128197193, -0.06907620280981064, 0.019452102482318878, 0.06139729171991348, -0.025686968117952347, -0.0330091156065464, -0.017252061516046524, 0.04220002144575119, 0.010269691236317158, -0.024107016623020172, -0.011977058835327625, -0.010371623560786247, -0.018381811678409576, 0.00156933453399688, -0.00504990154877305, 0.024225937202572823, 0.0014482897240668535, 0.04355911910533905, -0.005585046950727701, -0.050490524619817734, -0.01768527366220951, -0.05888295918703079, -0.007700144778937101, 0.0008260773029178381, -0.01730302721261978, -0.05745590478181839, -0.010651937685906887, 0.02475258894264698, -0.017167117446660995, -0.042267974466085434, 0.026842202991247177, 0.01788913831114769, 0.004718621261417866, -0.03453810140490532, 0.0012072620447725058, -0.013174764811992645, -0.012206406332552433, 0.025126339867711067, -0.035676345229148865, 0.006570393685251474, 0.05225735157728195, -0.05562112107872963, 0.06798892468214035, -0.0018071767408400774, 0.003270331770181656, -0.021830525249242783, 0.02463366650044918, -0.04012739285826683, 0.04831596463918686, 0.056436579674482346, 0.0014918233500793576, -0.007636436726897955, -0.0062943268567323685, -0.016003388911485672, 0.04036523774266243, -0.03560839220881462, -0.012996383011341095, 0.013327663764357567, -0.012919933535158634, 0.012367799878120422, -0.021388819441199303, -0.029441479593515396, 0.010830319486558437, 0.00448077917098999, 0.03961773216724396, 0.05103416368365288, -0.02395411767065525, -0.021728593856096268, -0.027419820427894592, 0.030155006796121597, 0.013072832487523556, -0.019384147599339485, -0.02120194211602211, 0.01668293960392475, 0.021100010722875595, -0.0060607315972447395, 0.021830525249242783, -0.014338493347167969, 0.04498617351055145, -0.09989376366138458, 0.0324145071208477, 0.008095133118331432, -0.03883625194430351, 0.016428107395768166, 0.024888498708605766, 0.04974301904439926, 0.08922483772039413, -0.022578030824661255, 0.036797601729631424, -0.06768312305212021, -0.00651942752301693, -0.014041190035641193, -0.05606282874941826, 0.028659997507929802, -0.018823519349098206, -0.028931817039847374, 0.008039919659495354, 0.011977058835327625, 0.001125503797084093, 0.05181564390659332, -0.040229327976703644, -0.01413462869822979, 0.012112968601286411, -0.04627731814980507, -0.017014218494296074, -0.05290292203426361, -0.026638338342308998, 0.029288580641150475, -0.020981088280677795, 0.025296228006482124, 0.015238896012306213, -0.05157780274748802, -0.031038420274853706, 0.01082182489335537, -0.03618600592017174, 0.0013580371160060167, 0.07386702299118042, -0.014338493347167969, -0.039821598678827286, -0.028218289837241173, 0.0036164771299809217, -0.007322145160287619, -0.014262043870985508, -0.01800806075334549, -0.05905284732580185, -0.010626453906297684, -0.027861526235938072, 0.056640446186065674, 0.05602885037660599, 0.035438504070043564, -0.03734124079346657, -0.027317887172102928, -0.00581864221021533, -0.011314498260617256, 0.04970904067158699, 0.010482050478458405, -0.024565711617469788, -0.0007926307152956724, -0.012682091444730759, -0.02203438989818096, -0.03856443241238594, -0.027402831241488457, -0.03368866443634033, 0.007538751699030399, 0.0234784334897995, 0.001773199299350381, 0.004141004290431738, -0.007853043265640736, 0.0019621991086751223, -0.03409639373421669, 0.048214033246040344, 0.03353576362133026, 0.0019239743705838919, 0.026536405086517334, 0.017668284475803375, 0.030358871445059776, 0.006438730750232935, 0.050048816949129105, 0.05011676996946335, -0.020794212818145752, 0.022340187802910805, -0.011136116459965706, 0.01668293960392475, -0.015570176765322685, 0.005746440030634403, -0.01641111820936203, 0.02108302153646946, -0.004383093677461147, -0.08208957314491272, -0.008315986022353172, -0.027759594842791557, -0.025041397660970688, 0.04688891023397446, -0.06846460700035095, 0.01038011722266674, -0.008978546597063541, 0.017014218494296074, -0.029118692502379417, -0.05341258645057678, -0.04535992443561554, -0.0004573686164803803, 0.023308545351028442, -0.026502428576350212, 0.009326815605163574, -0.030732624232769012, -0.05745590478181839, -0.01670842245221138, 0.01469525694847107, -0.0033064326271414757, -0.010422589257359505, 0.056436579674482346, -0.01670842245221138, 0.019859831780195236, -0.01497557107359171, -0.003665319876745343, 0.01952005736529827, 0.03506474941968918, 0.05715010687708855, -0.02120194211602211, -0.03358672931790352, 0.0027882761787623167, -0.0005866423016414046, -0.007797829806804657, -0.031395185738801956, 0.09370986372232437, 0.008859626017510891, 0.07597362995147705, 0.011713732965290546, -0.024412812665104866, -0.03734124079346657, 0.03486088663339615, -0.01824590191245079, -0.013786358758807182, 0.01668293960392475, -0.024090027436614037, -0.048214033246040344, -0.06897427141666412, -0.008817153982818127, -0.015366312116384506, -0.021133987233042717, 0.03243149816989899, 0.019944775849580765, 0.006803988944739103, 0.010507533326745033, 0.05130598321557045, -0.002973028691485524, 0.01641111820936203, 0.011518362909555435, -0.01768527366220951, -0.01506900880485773, -0.0033616460859775543, -0.027759594842791557, -0.014950087293982506, 0.026298563927412033, -0.024259915575385094, 0.023648319765925407, -0.015145458281040192, 0.07393497973680496, 0.06860051304101944, -0.03093648888170719, -0.015145458281040192, -0.05776170268654823, 0.02507537417113781, -0.007700144778937101, -0.018415790051221848, -0.011204071342945099, -0.002020597690716386, -0.027963459491729736, -0.014737728051841259, 0.04943722113966942, -0.007241448853164911, -0.03034188225865364, -0.03282223641872406, 0.02043744921684265, -0.006540663540363312, -0.0554172582924366, 0.02259501814842224, -0.03513270616531372, -0.04607345163822174, -0.033162012696266174, 0.02140580676496029, 0.07318747788667679, 0.01570608653128147, 0.0380207896232605, -0.039549775421619415, 0.06431935727596283, -0.0017349746776744723, -0.0746145248413086, 0.03292417153716087, 0.019740911200642586, -0.01688680425286293, 0.03445315733551979, -0.02623060904443264, 0.019350171089172363, 0.00743681937456131, -0.006230618804693222, 0.03465702012181282, -0.07943932712078094, 0.005308980122208595, -0.02978125400841236, 0.02191546931862831, 0.05833932012319565, 0.013021865859627724, -0.004077296704053879, -0.02368229813873768, -0.006816730368882418, -0.05592691898345947, -0.024769576266407967, 0.012435754761099815, 0.009929915890097618, -0.005334462970495224, -0.06958585977554321, -0.02806539088487625, -0.04067103564739227, -0.01688680425286293, -0.08847733587026596, 0.013624966144561768, 0.013964740559458733, -0.036593738943338394, 0.0037608814891427755, 0.03151410445570946, 0.02339348942041397, 0.06200888752937317, -0.0044000823982059956, 0.0852155014872551, 0.02726692147552967, -0.03740919753909111, 0.0326523520052433, -0.01237629447132349, 0.032873205840587616, 0.007177740801125765, -0.008978546597063541, -0.004599700216203928, 0.016079839318990707, 0.008715221658349037, 0.027878515422344208, -0.011696744710206985, -0.030596712604165077, -0.028116358444094658, -0.0464811809360981, 0.007419830188155174, -0.03333190083503723, -0.07407088577747345, 0.021473761647939682, 0.030155006796121597, 0.025058384984731674, 0.023138659074902534, -0.03734124079346657, -0.0012019530404359102, -0.014542357996106148, -0.05976637452840805, -0.028014425188302994, -0.02962835505604744, -0.00034773818333633244, -0.051883600652217865, -0.04386491701006889, -0.03161603584885597, 0.027606695890426636, 0.0014174976386129856, -0.03034188225865364, 0.0547037310898304, 0.03069864585995674, -0.02164364978671074, 0.027046067640185356, -0.053276676684617996, 0.05100018531084061, 0.034555088728666306, 0.08793369680643082, -0.016215749084949493, 0.03078358992934227, 0.016895297914743423, 0.010014859959483147, -0.028575053438544273, -0.024259915575385094, -0.023529399186372757, -0.029696309939026833, -0.019435113295912743, 0.005912079941481352, -0.06248456984758377, -0.08338071405887604, 0.03598214313387871, 0.04033125936985016, 0.07339134067296982, 0.0036865556612610817, -0.06115945056080818, -0.014644290320575237, 0.013701415620744228, -0.03550645709037781, 0.01517094112932682, 0.018619654700160027, 0.00023319694446399808, 0.0474325492978096, 0.04420468956232071, 0.037952836602926254, 0.05266508087515831, -0.019672956317663193, 0.012860473245382309, 0.03836056590080261, -0.02826925739645958, 0.0331280343234539, 0.007105538621544838, -0.0725758820772171, 0.06778505444526672, -0.03341684490442276, -0.006052237004041672, 0.01620725356042385, 0.06360583007335663, -0.022900816053152084, -0.04746652767062187, 0.028524087741971016, -0.014313009567558765, -0.05378633737564087, -0.0012433631345629692, -0.00174453086219728, -0.02643447369337082, 0.05453384295105934, -0.04209808632731438, 0.008056907914578915, 0.018619654700160027, -0.0004064024251420051, -0.03723930940032005, 0.011068161576986313, -0.008953063748776913, -0.038904204964637756, -0.02539815939962864, -0.017515387386083603, -0.011790182441473007, -0.0019621991086751223, 0.010065825656056404, 0.0005972602521069348, 0.030647680163383484, -0.002900826744735241, 0.03880227357149124, 0.0018676992040127516, -0.012002541683614254, 0.04498617351055145, 0.008201312273740768, -0.02882988564670086, 0.05429600179195404, 0.04964108765125275, 0.018025048077106476, -0.0231216698884964, 0.040025461465120316, -0.033994462341070175, -0.004608194809406996, 0.002456995891407132, 0.06404753774404526, 0.058679092675447464, 0.06302820891141891, -0.011569329537451267 ]
43,184
matplotlib.cm
to_rgba
Return a normalized RGBA array corresponding to *x*. In the normal case, *x* is a 1D or 2D sequence of scalars, and the corresponding `~numpy.ndarray` of RGBA values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already RGB or RGBA, such as might have been read from an image file. If *x* is an `~numpy.ndarray` with 3 dimensions, and the last dimension is either 3 or 4, then it will be treated as an RGB or RGBA array, and no mapping will be done. The array can be `~numpy.uint8`, or it can be floats with values in the 0-1 range; otherwise a ValueError will be raised. If it is a masked array, any masked elements will be set to 0 alpha. If the last dimension is 3, the *alpha* kwarg (defaulting to 1) will be used to fill in the transparency. If the last dimension is 4, the *alpha* kwarg is ignored; it does not replace the preexisting alpha. A ValueError will be raised if the third dimension is other than 3 or 4. In either case, if *bytes* is *False* (default), the RGBA array will be floats in the 0-1 range; if it is *True*, the returned RGBA array will be `~numpy.uint8` in the 0 to 255 range. If norm is False, no normalization of the input data is performed, and it is assumed to be in the range (0-1).
def to_rgba(self, x, alpha=None, bytes=False, norm=True): """ Return a normalized RGBA array corresponding to *x*. In the normal case, *x* is a 1D or 2D sequence of scalars, and the corresponding `~numpy.ndarray` of RGBA values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for handling images that are already RGB or RGBA, such as might have been read from an image file. If *x* is an `~numpy.ndarray` with 3 dimensions, and the last dimension is either 3 or 4, then it will be treated as an RGB or RGBA array, and no mapping will be done. The array can be `~numpy.uint8`, or it can be floats with values in the 0-1 range; otherwise a ValueError will be raised. If it is a masked array, any masked elements will be set to 0 alpha. If the last dimension is 3, the *alpha* kwarg (defaulting to 1) will be used to fill in the transparency. If the last dimension is 4, the *alpha* kwarg is ignored; it does not replace the preexisting alpha. A ValueError will be raised if the third dimension is other than 3 or 4. In either case, if *bytes* is *False* (default), the RGBA array will be floats in the 0-1 range; if it is *True*, the returned RGBA array will be `~numpy.uint8` in the 0 to 255 range. If norm is False, no normalization of the input data is performed, and it is assumed to be in the range (0-1). """ # First check for special case, image input: try: if x.ndim == 3: if x.shape[2] == 3: if alpha is None: alpha = 1 if x.dtype == np.uint8: alpha = np.uint8(alpha * 255) m, n = x.shape[:2] xx = np.empty(shape=(m, n, 4), dtype=x.dtype) xx[:, :, :3] = x xx[:, :, 3] = alpha elif x.shape[2] == 4: xx = x else: raise ValueError("Third dimension must be 3 or 4") if xx.dtype.kind == 'f': if norm and (xx.max() > 1 or xx.min() < 0): raise ValueError("Floating point image RGB values " "must be in the 0..1 range.") if bytes: xx = (xx * 255).astype(np.uint8) elif xx.dtype == np.uint8: if not bytes: xx = xx.astype(np.float32) / 255 else: raise ValueError("Image RGB array must be uint8 or " "floating point; found %s" % xx.dtype) # Account for any masked entries in the original array # If any of R, G, B, or A are masked for an entry, we set alpha to 0 if np.ma.is_masked(x): xx[np.any(np.ma.getmaskarray(x), axis=2), 3] = 0 return xx except AttributeError: # e.g., x is not an ndarray; so try mapping it pass # This is the normal case, mapping a scalar array: x = ma.asarray(x) if norm: x = self.norm(x) rgba = self.cmap(x, alpha=alpha, bytes=bytes) return rgba
(self, x, alpha=None, bytes=False, norm=True)
[ -0.02030014805495739, -0.04521073400974274, -0.029307767748832703, 0.00991650577634573, 0.04971962422132492, 0.010601978749036789, -0.03495403379201889, -0.01979239098727703, 0.06011849641799927, -0.00876389630138874, 0.049597762525081635, -0.04894782975316048, 0.02849535644054413, 0.007844855077564716, 0.01448124647140503, -0.0044530341401696205, 0.022158540785312653, 0.08806547522544861, 0.005575178191065788, 0.025733154267072678, 0.029734283685684204, -0.009434135630726814, 0.029449939727783203, 0.05004458874464035, 0.016542742028832436, 0.014714814722537994, 0.0339791364967823, -0.03617265075445175, -0.02648463472723961, 0.025103535503149033, 0.010612133890390396, -0.014978848397731781, 0.03812243789434433, 0.041047122329473495, -0.002884063171222806, -0.012775180861353874, 0.00103772955480963, -0.007037519942969084, -0.05321299657225609, -0.035949237644672394, -0.006443443708121777, -0.033288586884737015, 0.017954308539628983, -0.004087448585778475, 0.05435037240386009, 0.019893942400813103, -0.015456140972673893, 0.06194642558693886, -0.08400341123342514, -0.021691404283046722, -0.0008022569818422198, -0.012775180861353874, 0.05975291132926941, 0.023234987631440163, 0.014247678220272064, 0.07986011356115341, -0.013902402482926846, 0.08920285105705261, -0.0040290565229952335, -0.010343021713197231, -0.012531457468867302, 0.005580255761742592, 0.02522539719939232, -0.06316504627466202, 0.014410160481929779, -0.009581385180354118, -0.019985338672995567, -0.02981552481651306, -0.011119890958070755, 0.04846038296818733, -0.027540771290659904, 0.026829911395907402, 0.02396615780889988, -0.019457271322607994, 0.006565305404365063, 0.05406602844595909, -0.002828209660947323, 0.03804119676351547, 0.032029349356889725, -0.0007654445362277329, 0.048988450318574905, 0.10073910653591156, 0.02392553724348545, 0.02288971096277237, 0.03280114009976387, -0.07332019507884979, -0.07669170200824738, 0.03611171990633011, -0.03353231027722359, 0.026281531900167465, 0.0014141048304736614, -0.04064091667532921, -0.0024651631247252226, 0.07315771281719208, -0.014450781047344208, -0.005966151598840952, 0.03489310294389725, 0.049313414841890335, 0.041879843920469284, -0.02345840074121952, -0.039178576320409775, 0.022686608135700226, -0.003650777041912079, 0.036700718104839325, -0.013394645415246487, 0.041473638266325, -0.0037320181727409363, -0.013272782787680626, -0.008540482260286808, 0.026890842244029045, 0.0019789852667599916, 0.042407914996147156, -0.017344998195767403, -0.045576319098472595, -0.005565023049712181, -0.07937266677618027, -0.03430410102009773, -0.011851062066853046, -0.01205416489392519, -0.03373541310429573, 0.01121128723025322, 0.04508887231349945, 0.01695910282433033, 0.06292132288217545, 0.021691404283046722, -0.015161641873419285, 0.01135345920920372, 0.0012167141539976, -0.013272782787680626, 0.012998593971133232, -0.06040284037590027, 0.03196841850876808, -0.07571680843830109, -0.04760735109448433, 0.055528368800878525, -0.060727808624506, 0.011455011554062366, 0.023052195087075233, -0.021792955696582794, 0.014328919351100922, 0.01993456296622753, -0.00047665744205005467, 0.033105794340372086, -0.001805078238248825, 0.030932592228055, -0.028800010681152344, 0.12405533343553543, 0.0010656561935320497, -0.019680684432387352, 0.007083218079060316, -0.026383083313703537, 0.014247678220272064, -0.02485981211066246, -0.0053873080760240555, 0.04943527653813362, 0.0032039503566920757, 0.01142454519867897, -0.08384092897176743, 0.050572656095027924, 0.016481811180710793, -0.06572414189577103, 0.03560396283864975, -0.04971962422132492, -0.07295460999011993, -0.0015715097542852163, 0.05540650710463524, -0.038812991231679916, -0.006001694593578577, -0.012450216338038445, -0.03022173047065735, -0.0023001418448984623, -0.01766996458172798, -0.02611904963850975, 0.024189570918679237, -0.00047665744205005467, 0.02831256203353405, -0.036700718104839325, 0.00894668884575367, -0.013770385645329952, 0.03131848946213722, 0.023620883002877235, -0.013242317363619804, -0.004948097746819258, -0.03150128200650215, -0.0006810298655182123, -0.014359384775161743, 0.005829057190567255, 0.012937663123011589, -0.030201420187950134, -0.0065551502630114555, 0.06251511722803116, 0.016512276604771614, 0.023620883002877235, 0.04606376960873604, 0.004930326249450445, -0.03111538477241993, -0.02985614538192749, -0.001938364584930241, 0.05532526597380638, -0.04131115600466728, -0.028393803164362907, -0.09172133356332779, -0.011465166695415974, 0.006773486267775297, -0.046510595828294754, -0.09537718445062637, 0.016400570049881935, -0.032821450382471085, 0.011536252684891224, -0.01953851245343685, -0.029368698596954346, -0.03832554072141647, -0.06292132288217545, -0.018594082444906235, -0.0007927365368232131, -0.06531793624162674, 0.039970677345991135, 0.00351622118614614, 0.019822856411337852, 0.046145010739564896, 0.001589281251654029, -0.031521592289209366, 0.044642046093940735, 0.023113125935196877, 0.011373769491910934, 0.05370044335722923, 0.017253601923584938, 0.04541383683681488, 0.036883510649204254, 0.040762778371572495, 0.0522380992770195, 0.01828942820429802, -0.052725546061992645, 0.014582797884941101, 0.04971962422132492, 0.031562212854623795, 0.10545109212398529, 0.021285198628902435, 0.022970953956246376, 0.022117920219898224, 0.025773774832487106, 0.044317081570625305, 0.04537321627140045, 0.021082095801830292, 0.0467136986553669, -0.04387025535106659, 0.023945847526192665, 0.04846038296818733, -0.05349734053015709, -0.007824544794857502, -0.09172133356332779, 0.02321467734873295, 0.06722710281610489, 0.02536756917834282, -0.0334104485809803, -0.036700718104839325, 0.012104940600693226, 0.021508611738681793, 0.04452018439769745, -0.011383924633264542, -0.0003795487864408642, -0.007037519942969084, 0.06060594692826271, 0.021427370607852936, 0.0051359678618609905, -0.04817603901028633, 0.018309738487005234, 0.040620606392621994, 0.06812075525522232, 0.10090158879756927, -0.046469975262880325, 0.012805646285414696, 0.020310303196310997, -0.04521073400974274, 0.01800508424639702, 0.023620883002877235, 0.05715319514274597, -0.05032893270254135, 0.08343472331762314, 0.04129084572196007, -0.020350923761725426, -0.029774904251098633, -0.04862286522984505, 0.022300712764263153, 0.03237462416291237, -0.021102406084537506, -0.026383083313703537, -0.026951773092150688, -0.005052187945693731, -0.04084401950240135, 0.01070353016257286, -0.0016438651364296675, -0.08042880147695541, -0.040945570915937424, -0.018116790801286697, -0.027175186201930046, -0.0706392377614975, -0.03444627299904823, 0.06925813108682632, -0.03280114009976387, 0.024636397138237953, 0.0011094503570348024, 0.05630015954375267, -0.002192243468016386, -0.021143026649951935, -0.02313343621790409, -0.0651148334145546, -0.0018837805837392807, -0.029978007078170776, 0.013445421122014523, 0.01399379875510931, -0.01191199291497469, -0.019883787259459496, -0.041331466287374496, 0.05654388293623924, -0.010109453462064266, 0.06263697892427444, 0.0032064891420304775, 0.04517011344432831, 0.0372287854552269, -0.017761360853910446, 0.03495403379201889, -0.053944166749715805, 0.008591257967054844, -0.004120452795177698, -0.06007787585258484, 0.03125755861401558, 0.019731460139155388, 0.04387025535106659, 0.03158252313733101, -0.01307983510196209, -0.014237523078918457, -0.02500198408961296, 0.010693375021219254, -0.01667475886642933, -0.08709058165550232, -0.02658618800342083, -0.04171736165881157, 0.007768691051751375, -0.030729489400982857, -0.10252641141414642, 0.027825115248560905, -0.012957973405718803, -0.019883787259459496, -0.022178851068019867, -0.04537321627140045, -0.015760796144604683, -0.030912281945347786, 0.006885192822664976, -0.007225390523672104, 0.03668040782213211, -0.047444868832826614, -0.0011354729067534208, 0.06791765242815018, -0.02260536700487137, -0.026647118851542473, -0.020665733143687248, -0.05288802832365036, 0.06718648225069046, 0.030912281945347786, 0.061052773147821426, 0.011779976077377796, 0.018776874989271164, -0.05780312418937683, 0.0028891407418996096, 0.016786465421319008, -0.033613551408052444, -0.07612301409244537, 0.04508887231349945, -0.0023940769024193287, 0.0635712519288063, 0.03954416140913963, -0.06779579073190689, -0.02934838831424713, -0.006260651163756847, -0.04208294674754143, -0.01760903373360634, 0.05296926945447922, -0.02148830145597458, -0.01315092109143734, 0.018878426402807236, 0.027439219877123833, -0.00760620879009366, -0.010459805838763714, 0.027276737615466118, -0.005255290772765875, 0.05264430493116379, 0.008814672008156776, -0.06661779433488846, 0.007260933518409729, -0.004475883208215237, -0.010373487137258053, 0.03406037762761116, -0.05231934040784836, -0.02841411530971527, -0.0044657280668616295, -0.010231315158307552, 0.05873739719390869, -0.0014102966524660587, -0.029145285487174988, -0.0717766135931015, 0.015324124135077, 0.04248915612697601, -0.039462920278310776, -0.007560510654002428, 0.009850497357547283, -0.004605361260473728, -0.01307983510196209, -0.008626800961792469, 0.051141344010829926, 0.023519331589341164, 0.049313414841890335, 0.005029338877648115, -0.030810730531811714, 0.02414895035326481, 0.0026961928233504295, -0.016735689714550972, -0.09472725540399551, -0.04821665957570076, 0.03728971630334854, -0.028718769550323486, -0.027540771290659904, -0.02485981211066246, 0.0522380992770195, 0.022910023108124733, -0.0305060762912035, -0.031277868896722794, 0.052400581538677216, -0.02841411530971527, -0.017080964520573616, 0.014014109037816525, -0.04391087591648102, 0.0003089387610089034, -0.09797690063714981, -0.0014483785489574075, 0.03139973059296608, 0.01074415072798729, 0.05447223410010338, 0.0043007065542042255, -0.012287733145058155, 0.015588157810270786, 0.024352053180336952, 0.006159099284559488, -0.029084354639053345, 0.006509452126920223, 0.002873908029869199, -0.015933433547616005, 0.05504092201590538, -0.017801981419324875, 0.004871934186667204, -0.017202826216816902, -0.008093656040728092, 0.03812243789434433, -0.030627937987446785, 0.057356297969818115, -0.041757982224226, 0.04732300713658333, -0.029734283685684204, 0.017344998195767403, 0.0034019758459180593, 0.015506916679441929, -0.0024753182660788298, -0.04382963478565216, -0.06430242210626602, 0.007646829355508089, -0.00017771514831110835, 0.04313908517360687, -0.005768126342445612, 0.00415091821923852, 0.0043007065542042255, 0.013110300526022911, -0.013333714567124844, 0.027926666662096977, -0.029267147183418274, 0.01074415072798729, 0.018746409565210342, 0.024555156007409096, 0.024453604593873024, -0.004666292108595371, -0.012531457468867302, -0.0051613557152450085, 0.01315092109143734, 0.010109453462064266, -0.01322200708091259, -0.00759097607806325, 0.035441480576992035, 0.026972083374857903, 0.033247966319322586, 0.01864485815167427, 0.040153469890356064, -0.06162146106362343, -0.012176026590168476, -0.010124686174094677, 0.06332752853631973, -0.03613203018903732, -0.03726940602064133, 0.05374106392264366, -0.020168131217360497, 0.01172920037060976, 0.028373492881655693, 0.028860941529273987, -0.035258688032627106, -0.018949512392282486, -0.011576873250305653, 0.03003893792629242, -0.026890842244029045, -0.03229338303208351, 0.008352612145245075, 0.0010383642511442304, -0.01699972338974476, -0.09058395028114319, 0.03909733518958092, -0.0031937952153384686, -0.05654388293623924, -0.008560792542994022, 0.001125952461734414, -0.015110865235328674, -0.04764797165989876, -0.013516507111489773, -0.016857551410794258, -0.02737828902900219, 0.06775517016649246, -0.019772080704569817, 0.012622853741049767, -0.05126320570707321, 0.06698337942361832, -0.00035352620761841536, -0.03531961888074875, -0.020564181730151176, -0.011160511523485184, -0.03940198943018913, -0.0336947925388813, 0.02831256203353405, 0.004371793009340763, -0.014237523078918457, 0.026200290769338608, -0.002851058728992939, -0.004744994454085827, 0.025590982288122177, -0.019345564767718315, 0.03988943621516228, 0.006154021713882685, 0.04443894326686859, -0.020279837772250175, -0.008093656040728092, -0.005229902919381857, -0.0431797057390213, 0.037492819130420685, 0.02953118085861206, -0.007408183068037033, -0.013293094001710415, 0.0043794093653559685, 0.025915946811437607, 0.0026149514596909285, -0.00907362811267376, 0.007855010218918324, -0.0052756015211343765, -0.022483505308628082, -0.05341609939932823, -0.03014048933982849, -0.010409030131995678, 0.00971848051995039, -0.022361643612384796, 0.011536252684891224, -0.12397409230470657, -0.011373769491910934, 0.02443329431116581, 0.03219183161854744, 0.025022294372320175, -0.02475826069712639, -0.007438648492097855, 0.026504945009946823, -0.05296926945447922, 0.0039681256748735905, -0.00011392810847610235, 0.044357702136039734, -0.030059248208999634, -0.1472090780735016, -0.0007679833215661347, -0.035157136619091034, 0.01257207803428173, -0.05837181210517883, -0.0022379416041076183, -0.05418789014220238, -0.0016743306769058108, -0.036842890083789825, 0.00734725221991539, 0.04521073400974274, -0.0373709574341774, -0.03475092723965645, -0.005115657579153776, 0.04153456911444664, -0.00817489717155695, -0.015588157810270786, -0.007717915344983339, -0.01717236079275608, -0.01886827126145363, 0.020523561164736748, 0.021792955696582794, -0.030648248270154, 0.031704384833574295, 0.007301554083824158, -0.031663764268159866, 0.027764184400439262, 0.053091131150722504, -0.0648304894566536, 0.06470862776041031, -0.06665841490030289, 0.0151819521561265, -0.05357858166098595, -0.046145010739564896, 0.017761360853910446, -0.012917352840304375, -0.030099868774414062, 0.03598985821008682, -0.049922727048397064, -0.06409931927919388, 0.040620606392621994, -0.0011519750114530325, 0.08262231200933456, 0.01018561702221632, 0.031013833358883858, -0.030242042616009712, 0.032455865293741226, 0.012653319165110588, -0.05853429436683655, 0.028393803164362907, 0.02648463472723961, 0.00903300754725933, -0.06125587597489357, 0.027357978746294975, 0.028901562094688416, 0.007824544794857502, -0.037350647151470184, -0.017558258026838303, -0.03785840421915054, 0.011180821806192398, 0.050207071006298065, 0.01051058154553175, 0.025164466351270676, 0.031846556812524796, -0.028860941529273987, 0.022361643612384796, -0.0004344500775914639, 0.05288802832365036, 0.030343594029545784, -0.033796343952417374, -0.016654448583722115, 0.03645699471235275, -0.036192961037158966, 0.017334843054413795, 0.010023134760558605, -0.0014344152295961976, 0.0031074765138328075, -0.018441755324602127, 0.048338521271944046, -0.016085760667920113, 0.0020437242928892374, -0.0426110178232193, 0.01692863740026951, -0.06316504627466202, 0.016806775704026222, -0.011130046099424362, 0.014115660451352596, 0.04269225895404816, -0.029003113508224487, 0.0031455582939088345, -0.006103246007114649, -0.051791273057460785, 0.035908617079257965, -0.07254840433597565, -0.019355719909071922, -0.025245707482099533, 0.013831316493451595, 0.06698337942361832, -0.020350923761725426, 0.03223245218396187, 0.01334386970847845, 0.04951652139425278, 0.009743868373334408, 0.0428953617811203, 0.01782229170203209, -0.043382808566093445, 0.06929875165224075, 0.0207368191331625, -0.03659916669130325, 0.01063244417309761, -0.03966602310538292, -0.010754305869340897, 0.014014109037816525, 0.0029881533700972795, 0.04257039725780487, 0.03523837774991989, -0.02429112233221531, -0.03225276246666908, 0.03613203018903732, -0.057031333446502686, 0.017192671075463295, -0.012886887416243553, 0.024778570979833603, 0.02242257446050644, -0.0700705498456955, -0.08302851766347885, 0.06003725528717041, 0.021549232304096222, 0.008576025255024433, -0.007225390523672104, 0.00935797207057476, 0.009048240259289742, 0.007926096208393574, -0.010937098413705826, 0.05816870927810669, 0.020960232242941856, -0.04996334761381149, -0.020716508850455284, 0.013953178189694881, -0.01760903373360634, -0.011079270392656326, 0.02191481739282608, 0.054269131273031235, 0.004752610810101032, 0.04480452835559845, 0.030363904312253, -0.011312838643789291, -0.05971229076385498, 0.007443726062774658, -0.028231320902705193, -0.0060575478710234165, -0.02648463472723961, 0.0028662916738539934, 0.022138230502605438, 0.032923001796007156, 0.01972130499780178, 0.08538451790809631, -0.01616700179874897, -0.02242257446050644, -0.023661503568291664, -0.021792955696582794, 0.003551764413714409, -0.04395149648189545, 0.011201132088899612, -0.03863019868731499, 0.010774616152048111, 0.010581668466329575, 0.009190412238240242, 0.0032775751315057278, 0.05357858166098595, -0.002264598850160837, -0.013678989373147488, -0.0014179130084812641, 0.01051058154553175, 0.005204515065997839, -0.06198704615235329, 0.040153469890356064, 0.03399944677948952, -0.062027666717767715, -0.005189282353967428, 0.015547537244856358, 0.036883510649204254, -0.003985897172242403, -0.03938167914748192, 0.02144768089056015, -0.04720114544034004, 0.025773774832487106, 0.0026454171165823936, 0.03657885640859604, 0.007870242930948734, 0.04055967554450035 ]
43,185
fast_poisson_solver.solver
Solver
This class represents the main solver used for fast Poisson equation solving. It is a key component of the `fast_poisson_solver` package. Parameters ---------- device : str, optional Specifies the device where the computations will be performed. This should be a valid PyTorch device string such as 'cuda' for GPU processing or 'cpu' for CPU processing. Default is 'cuda'. precision : torch.dtype, optional This determines the precision of the computation. This should be a valid PyTorch data type such as torch.float32 or torch.float64. Default is torch.float32. verbose : bool, optional When set to True, enables the printing of detailed logs during computation. Default is False. use_weights : bool, optional Determines whether the network uses pre-trained weights or random weights. If True, the network uses pre-trained weights. Default is True. compile_model : bool, optional Specifies whether the network model is compiled for faster inference. If False, the model won't be compiled. Default is True. lambdas_pde : list of float, optional A list that weights the influence of the PDE part in the loss term. If None, default weight 1e-12 will be used. Default is None. seed : int, optional This parameter sets the seed for generating random numbers, which helps in achieving deterministic results. Default is 0.
class Solver: """ This class represents the main solver used for fast Poisson equation solving. It is a key component of the `fast_poisson_solver` package. Parameters ---------- device : str, optional Specifies the device where the computations will be performed. This should be a valid PyTorch device string such as 'cuda' for GPU processing or 'cpu' for CPU processing. Default is 'cuda'. precision : torch.dtype, optional This determines the precision of the computation. This should be a valid PyTorch data type such as torch.float32 or torch.float64. Default is torch.float32. verbose : bool, optional When set to True, enables the printing of detailed logs during computation. Default is False. use_weights : bool, optional Determines whether the network uses pre-trained weights or random weights. If True, the network uses pre-trained weights. Default is True. compile_model : bool, optional Specifies whether the network model is compiled for faster inference. If False, the model won't be compiled. Default is True. lambdas_pde : list of float, optional A list that weights the influence of the PDE part in the loss term. If None, default weight 1e-12 will be used. Default is None. seed : int, optional This parameter sets the seed for generating random numbers, which helps in achieving deterministic results. Default is 0. """ def __init__(self, device='cuda', precision=torch.float32, verbose=False, use_weights=True, compile_model=True, lambdas_pde=None, seed=0): if torch.cuda.is_available(): torch.backends.cuda.matmul.allow_tf32 = False torch.backends.cudnn.allow_tf32 = False if lambdas_pde is None: lambdas_pde = [2 ** -12] self.path = os.path.join('resources', 'final.pt') self.verbose = verbose self.precision = precision self.device = device if torch.cuda.is_available() else 'cpu' self.use_weights = use_weights self.compile_model = compile_model self.lambdas_pde = lambdas_pde self.seed = seed random.seed(self.seed) np.random.seed(self.seed) torch.manual_seed(self.seed) self.n_lambdas = len(self.lambdas_pde) # The losses for all the different values of lambda are put in those arrays self.Ls = np.zeros(self.n_lambdas) self.Ls_pde = np.zeros(self.n_lambdas) self.Ls_bc = np.zeros(self.n_lambdas) if self.path.endswith('.pt'): self.weights_input = True self.weights_path = pkg_resources.resource_stream(__name__, self.path) self.path = os.path.join(*os.path.split(self.path)[:1]) else: self.weights_input = False # Path to the where the pre-computed data_utils will be saved. self.precompute_path = 'precomputed-resources' if not os.path.isdir(self.precompute_path): os.makedirs(self.precompute_path) self.precompute_file = os.path.join(self.precompute_path, 'default.pkl') self.load_data() self.build_model() def load_data(self): def tuple_constructor(loader, node): return tuple(loader.construct_sequence(node)) yaml.SafeLoader.add_constructor('tag:yaml.org,2002:python/tuple', tuple_constructor) path = pkg_resources.resource_stream(__name__, os.path.join(self.path, 'infos.yaml')) self.infos = yaml.safe_load(path) if 'out' not in self.infos['model']: self.infos['model']['out'] = self.infos['data_utils']['num_cases'] if 'width' not in self.infos['model']: if 'network_width' in self.infos['model']: self.infos['model']['width'] = self.infos['model']['network_width'] if 'depth' not in self.infos['model']: if 'network_depth' in self.infos['model']: self.infos['model']['depth'] = self.infos['model']['network_depth'] - 1 # self.infos['model']['width'] = 800 # self.infos['model']['depth'] = 8 def build_model(self): self.model = PINN(self.infos['model']).to(self.device) if self.use_weights: state_dict = torch.load(self.weights_path, map_location=self.device) is_data_parallel = any('module' in key for key in state_dict.keys()) is_compiled = any('_orig_mod' in key for key in state_dict.keys()) if is_data_parallel: state_dict = {key.replace("module.", ""): value for key, value in state_dict.items()} if is_compiled: state_dict = {key.replace("_orig_mod.", ""): value for key, value in state_dict.items()} self.model.load_state_dict(state_dict) self.model.to(self.precision) if self.compile_model: try: self.model = torch.compile(self.model) except Exception as e: print(e) print('Compiling did not work but do not worry, it will work without it.') print('You need pytorch 2.0 for compiling and Linux.') def evaluate_network_pde(self): self.x_pde.requires_grad = True self.y_pde.requires_grad = True self.H = self.model.h(self.x_pde, self.y_pde) self.DH = calculate_laplace(self.H, self.x_pde, self.y_pde).detach().to(self.precision) self.DHtDH = torch.matmul(self.DH.t(), self.DH) self.Dht = self.DH.t() self.x_pde.requires_grad = False self.y_pde.requires_grad = False self.H = self.H.detach() def evaluate_network_bc(self): with torch.no_grad(): self.H_bc = self.model.h(self.x_bc, self.y_bc).to(self.precision) self.Ht_bc = self.H_bc.t() ones_Hbc = torch.ones(self.H_bc.shape[0], 1, device=self.device).to(self.precision) self.Ht_bc_ones = (self.Ht_bc @ ones_Hbc).t() def load_precomputed_data(self): with open(self.precompute_file, 'rb') as f: self.LHSs, self.RHSs, self.H, self.DH, self.Dht, self.DHtDH, self.H_bc, self.Ht_bc, self.Ht_bc_ones, self.NdO, self.NO = format_input( pickle.load(f), self.precision, self.device, reshape=False) if self.verbose > 0: print('Pre-Computed data_utils loaded from storage.') def precompute_LHS_RHS(self): self.NO = self.DH.shape[0] self.NdO = self.H_bc.shape[0] M = torch.eye(self.NdO, device=self.device, dtype=self.precision) - \ torch.ones(self.NdO, device=self.device, dtype=self.precision) / self.NdO lambdas = torch.tensor(self.lambdas_pde, device=self.device, dtype=self.precision).view(-1, 1, 1) self.LHSs = lambdas / self.NO * self.DHtDH + \ 1 / self.NdO * torch.matmul(self.Ht_bc, torch.matmul(M, self.H_bc)) self.RHSs = lambdas / self.NO * self.Dht if self.verbose > 0: print('Pre-Computed data_utils calculated.') def save_precomputed_data(self): with open(self.precompute_file, 'wb') as file: pickle.dump( [self.LHSs, self.RHSs, self.H, self.DH, self.Dht, self.DHtDH, self.H_bc, self.Ht_bc, self.Ht_bc_ones, self.NdO, self.NO], file) if self.verbose > 0: print('Pre-Computed stored.') def precompute(self, x_pde, y_pde, x_bc, y_bc, name=None, save=False, load=False): """ This method is used for precomputing of the data based on the given coordinates. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. name : str, optiona
(device='cuda', precision=torch.float32, verbose=False, use_weights=True, compile_model=True, lambdas_pde=None, seed=0)
[ -0.003009050153195858, -0.04636913537979126, -0.0170302651822567, 0.03829791769385338, 0.007516319863498211, -0.01595074124634266, -0.07776616513729095, -0.036441538482904434, -0.020743025466799736, -0.044149551540613174, -0.007551631424576044, -0.014316319487988949, 0.012227891944348812, 0.061744801700115204, -0.037753112614154816, 0.034847475588321686, -0.01466943509876728, 0.028329968452453613, -0.00019184901611879468, -0.012217802926898003, -0.058072399348020554, -0.04786230996251106, -0.004986498039215803, 0.03924628719687462, -0.02532343938946724, -0.013357861898839474, 0.02296260930597782, -0.018805932253599167, -0.007410385180264711, 0.012802965939044952, -0.032143618911504745, 0.04988011345267296, -0.008288130164146423, -0.027543023228645325, 0.045884862542152405, -0.0301258135586977, 0.06719287484884262, 0.047418393194675446, -0.0587584525346756, 0.005765874870121479, -0.011430859565734863, -0.09185043722391129, 0.03710741549730301, 0.005316913593560457, -0.04979940131306648, 0.0014376853359863162, -0.046248067170381546, 0.03724865987896919, 0.026231450960040092, -0.03799524903297424, 0.0019875369034707546, -0.05448070541024208, 0.04035608097910881, 0.02471809834241867, -0.03652225062251091, 0.04669198393821716, 0.04770088568329811, 0.039286643266677856, 0.02935904823243618, -0.059767354279756546, 0.029601184651255608, -0.017020177096128464, 0.016081897541880608, 0.006663797423243523, 0.008106527850031853, 0.00870682392269373, -0.03811631724238396, -0.007385162636637688, 0.02338634803891182, 0.03091275691986084, 0.0015272253658622503, -0.03317269682884216, 0.044351331889629364, 0.01322670467197895, 0.04749910533428192, -0.03628011420369148, -0.03862076625227928, -0.07473945617675781, -0.0053320471197366714, -0.04197032377123833, 0.019724033772945404, -0.01341839600354433, -0.03169970214366913, -0.03674421086907387, 0.010109198279678822, -0.04152640700340271, 0.08539346605539322, 0.023729374632239342, 0.02494005672633648, -0.021348366513848305, -0.04487596079707146, 0.01935073919594288, 0.008136794902384281, 0.0579109750688076, 0.03825756162405014, 0.018513351678848267, -0.016081897541880608, -0.06138159707188606, 0.013075369410216808, -0.05435963720083237, 0.05871809646487236, 0.025545397773385048, -0.0038060827646404505, 0.04979940131306648, 0.005866765044629574, -0.03402017429471016, -0.029318692162632942, 0.034665871411561966, 0.014457565732300282, -0.06489257514476776, -0.09483678638935089, 0.038923438638448715, -0.044714536517858505, -0.026816613972187042, -0.0067243315279483795, -0.045279521495103836, -0.04519880935549736, -0.0037253706250339746, -0.02609020471572876, 0.05565103515982628, -0.004431602079421282, 0.05734599009156227, -0.09370681643486023, 0.0023419137578457594, -0.02055133320391178, -0.005513649433851242, 0.05472284182906151, 0.01033115666359663, 0.04766052961349487, -0.08482848107814789, -0.004209643695503473, 0.014457565732300282, 0.013347772881388664, 0.06715251505374908, -0.014921660535037518, -0.02475845441222191, 0.015577446669340134, -0.004958753474056721, -0.008848070167005062, 0.025262905284762383, 0.0026862015947699547, 0.001962314359843731, 0.0226195827126503, 0.006537684705108404, 0.060009490698575974, -0.01169317401945591, 0.028511570766568184, -0.018240947276353836, -0.015890207141637802, -0.0038691391237080097, 0.0352308563888073, -0.010089020244777203, -0.002741691190749407, 0.004739317111670971, 0.018291393294930458, -0.00008607195195509121, 0.004328189417719841, -0.037773288786411285, -0.008883382193744183, 0.004411424044519663, -0.07187417894601822, -0.028249256312847137, -0.03813649341464043, 0.0009603485814295709, -0.02609020471572876, -0.004971364513039589, 0.014830859377980232, -0.012581007555127144, 0.00831335224211216, 0.04814480245113373, 0.009150740690529346, -0.06900889426469803, -0.04733768105506897, 0.055731747299432755, -0.03954895958304405, 0.0455620139837265, 0.03287002816796303, -0.009766170755028725, -0.02298278734087944, -0.0025827891658991575, 0.014558455906808376, -0.018261125311255455, -0.038358453661203384, -0.0030191391706466675, -0.010744806379079819, 0.07978396862745285, 0.03186112642288208, -0.023285457864403725, 0.018079522997140884, 0.014386942610144615, -0.046248067170381546, -0.02958100661635399, -0.014750147238373756, 0.009564390406012535, 0.012147179804742336, 0.03589673340320587, 0.03355608135461807, 0.021287832409143448, 0.0277851615101099, -0.028047475963830948, -0.019643321633338928, 0.0028425813652575016, 0.046449847519397736, -0.008045993745326996, -0.07849257439374924, -0.04033590108156204, -0.02839050255715847, 0.09959880262613297, -0.0012497773859649897, 0.017534716054797173, 0.010482491925358772, -0.02475845441222191, -0.0044366465881466866, 0.05153471231460571, 0.05698278546333313, -0.06682966649532318, 0.013145992532372475, 0.046086642891168594, -0.0046686939895153046, -0.008081304840743542, 0.012853411026299, -0.009811571799218655, -0.07320592552423477, 0.005902076605707407, 0.00909020658582449, 0.0054278927855193615, -0.00014636960986535996, 0.04168783128261566, 0.02976260893046856, -0.058597028255462646, 0.023285457864403725, -0.02036973088979721, -0.06590148061513901, 0.014820770360529423, 0.07724153250455856, -0.022518692538142204, -0.029096733778715134, 0.043947771191596985, -0.04168783128261566, -0.03143738582730293, -0.03571512922644615, -0.03771275654435158, 0.01409436110407114, -0.05105043947696686, 0.007803856860846281, 0.0004215318476781249, 0.07554657757282257, 0.004953708965331316, -0.047983378171920776, 0.014205340296030045, -0.00734480656683445, -0.053996432572603226, -0.025787534192204475, 0.016475370153784752, -0.04947655275464058, -0.043342430144548416, 0.04709554463624954, 0.01962314359843731, 0.07187417894601822, -0.030085457488894463, 0.0042449552565813065, -0.04612699896097183, -0.008308308199048042, 0.04118337854743004, 0.009402966126799583, -0.004033085890114307, -0.019088424742221832, -0.01247002836316824, 0.007289316970854998, -0.019259938970208168, 0.05565103515982628, 0.06880711764097214, -0.07348842173814774, 0.017232045531272888, -0.013458752073347569, 0.011208901181817055, -0.03537210449576378, 0.05625637620687485, 0.001046735793352127, 0.018846288323402405, 0.049153704196214676, -0.04033590108156204, -0.058798808604478836, -0.043947771191596985, -0.016213055700063705, -0.005190800875425339, -0.03995252028107643, -0.02066231332719326, 0.04503738507628441, -0.016727594658732414, 0.006063500884920359, 0.016969731077551842, 0.03862076625227928, -0.009019583463668823, 0.0646100863814354, -0.016858752816915512, -0.017040355131030083, 0.013660532422363758, 0.02088427171111107, -0.026130560785531998, 0.008616022765636444, -0.009952818043529987, 0.06904925405979156, -0.026352519169449806, -0.03517032414674759, -0.00047103111864998937, 0.002852670382708311, 0.016001185402274132, 0.04657091572880745, -0.031013647094368935, 0.04983975738286972, -0.030811866745352745, 0.0575881265103817, 0.0464094914495945, 0.04584450647234917, -0.041808899492025375, 0.0040860529989004135, 0.018291393294930458, 0.030832044780254364, 0.06779821217060089, -0.03492818772792816, 0.06606290489435196, 0.013690799474716187, 0.06969495117664337, -0.0015234419843181968, -0.06218871846795082, 0.07098634541034698, -0.007773589808493853, -0.014750147238373756, -0.03424213454127312, 0.008267952129244804, 0.008671512827277184, 0.030670620501041412, 0.035856377333402634, -0.0035689908545464277, 0.022498514503240585, 0.02475845441222191, -0.005412759259343147, 0.037006523460149765, -0.03456498309969902, 0.08305281400680542, 0.06545756012201309, -0.054198212921619415, 0.022538870573043823, 0.03111453726887703, -0.08244746923446655, 0.01962314359843731, 0.0012567135272547603, -0.005881898570805788, 0.05000118166208267, -0.01858397386968136, 0.03167952224612236, 0.0022725516464561224, 0.08131749927997589, 0.0742955431342125, -0.013468841090798378, -0.03936735540628433, -0.030993469059467316, 0.017766764387488365, -0.03220415115356445, 0.02318456768989563, -0.002543694106861949, -0.0579109750688076, 0.04689376428723335, 0.04616735503077507, -0.05238218978047371, -0.009367655031383038, 0.0013254450168460608, 0.03222433105111122, -0.019814835861325264, -0.024072401225566864, -0.053835008293390274, -0.016667060554027557, -0.024294359609484673, 0.016081897541880608, -0.02140890061855316, -0.014013648964464664, 0.06335904449224472, -0.009534123353660107, 0.030650442466139793, 0.0384795218706131, 0.0011425814591348171, -0.0305495522916317, 0.0026231452357023954, 0.02510148100554943, -0.027139462530612946, 0.020309196785092354, 0.02530326135456562, 0.052866462618112564, -0.034282490611076355, 0.03557388484477997, 0.019572697579860687, 0.04620771110057831, -0.015113351866602898, 0.008061126805841923, 0.03539228066802025, 0.026130560785531998, 0.06606290489435196, -0.05508604645729065, -0.04943619668483734, -0.02956082858145237, -0.07477981597185135, 0.028551926836371422, 0.07316557317972183, 0.0003550073888618499, -0.03781364485621452, 0.07946112006902695, 0.027886051684617996, 0.0010461052879691124, 0.08741126954555511, -0.017040355131030083, 0.0185234397649765, -0.012974479235708714, 0.006361126899719238, -0.07369019836187363, -0.002039243234321475, 0.023527594283223152, -0.03476676344871521, 0.04600593075156212, 0.024193469434976578, 0.027119284495711327, 0.043382786214351654, 0.07106705754995346, 0.0035816021263599396, -0.009730859659612179, 0.016909196972846985, -0.01874539814889431, 0.027744805440306664, -0.04192996770143509, 0.03416142240166664, -0.05411750078201294, -0.006825221702456474, -0.029802965000271797, -0.043947771191596985, 0.0013632788322865963, -0.006845399737358093, 0.04192996770143509, -0.00833857525140047, 0.02667536772787571, -0.007980414666235447, 0.031982194632291794, 0.015890207141637802, 0.040255188941955566, -0.03981127217411995, -0.06122017279267311, 0.011915132403373718, -0.022316912189126015, -0.01052284799516201, -0.09193114936351776, 0.03436320275068283, 0.008444509468972683, 0.03478693962097168, 0.06267298758029938, -0.00907002855092287, -0.006678930949419737, 0.012116912752389908, -0.017585162073373795, -0.04418990761041641, -0.04301958158612251, -0.004671216011047363, 0.008262907154858112, 0.036582786589860916, 0.0014011126477271318, 0.021146586164832115, 0.0009420622372999787, 0.0005403931136243045, 0.033717505633831024, 0.001819806988351047, -0.038741834461688995, -0.012560829520225525, 0.0017617951380088925, -0.05234183371067047, -0.004310533870011568, -0.022316912189126015, -0.036602962762117386, -0.0015146140940487385, -0.005781008396297693, 0.015496734529733658, -0.00437611248344183, -0.06654717773199081, 0.029217801988124847, -0.05536854267120361, 0.01148130465298891, 0.03220415115356445, 0.020702669396996498, -0.023426704108715057, 0.05912165716290474, 0.006572996266186237, -0.010028486140072346, -0.022094953805208206, -0.06331869214773178, -0.006986646447330713, 0.06638575345277786, -0.005261423997581005, -0.04733768105506897, 0.00889851525425911, -0.0007043397054076195, -0.007491097319871187, 0.048588719218969345, -0.07094598561525345, 0.016263499855995178, 0.01914895884692669, -0.03109435923397541, -0.004466913640499115, 0.05242254585027695, 0.027139462530612946, -0.023023143410682678, 0.008177150972187519, -0.055328186601400375, 0.005200889892876148, -0.019663499668240547, -0.06925103068351746, 0.021590502932667732, -0.02992403320968151, -0.008479821495711803, 0.0006690281443297863, 0.017494359984993935, 0.038923438638448715, -0.03656260669231415, -0.035856377333402634, 0.007708011195063591, 0.04495667293667793, 0.011087832972407341, -0.009236497804522514, 0.005690207239240408, 0.08014717698097229, -0.019835013896226883, -0.02494005672633648, 0.07558693736791611, 0.006421661004424095, -0.016767950728535652, -0.042010679841041565, 0.04136498272418976, 0.030852222815155983, 0.039730560034513474, -0.011340058408677578, 0.011965577490627766, -0.05855667218565941, -0.06799999624490738, -0.029439760372042656, -0.015486645512282848, 0.020420176908373833, -0.00120942119974643, -0.059807710349559784, 0.033919285982847214, 0.021126408129930496, 0.0025764834135770798, 0.08539346605539322, -0.044109195470809937, -0.004207121208310127, -0.021751927211880684, -0.0006173219298943877, 0.05197862908244133, -0.02489970065653324, 0.07247951626777649, 0.03143738582730293, 0.008989316411316395, 0.010210088454186916, 0.02374955266714096, 0.030489018186926842, -0.04979940131306648, -0.07473945617675781, -0.010250444523990154, -0.02201424166560173, -0.03210326284170151, 0.01128961332142353, -0.010164687409996986, -0.016868840903043747, -0.016999999061226845, -0.01905815862119198, 0.024193469434976578, 0.0293792262673378, 0.023305635899305344, -0.006921067833900452, -0.04947655275464058, -0.028834419324994087, -0.01148130465298891, -0.009695547632873058, -0.015113351866602898, -0.051696136593818665, 0.04110266640782356, -0.02124747633934021, -0.007390207145363092, -0.010230266489088535, 0.02046053297817707, -0.007940058596432209, -0.04346349835395813, 0.042777445167303085, 0.042777445167303085, 0.0034983677323907614, -0.024475961923599243, 0.022175665944814682, -0.05774955078959465, -0.005044510122388601, -0.007087536621838808, 0.013014835305511951, -0.05080830305814743, 0.035271212458610535, 0.0614219531416893, 0.014911571517586708, -0.08014717698097229, 0.003632047213613987, 0.01304510235786438, -0.047458749264478683, 0.0062804147601127625, -0.06420652568340302, -0.023083677515387535, 0.03210326284170151, 0.03399999812245369, -0.01883620023727417, 0.02296260930597782, 0.006830266211181879, 0.03460533916950226, -0.026917504146695137, -0.019259938970208168, -0.05561067909002304, -0.03617922589182854, -0.009841838851571083, 0.058839164674282074, 0.009821660816669464, -0.027159640565514565, 0.039508603513240814, -0.0010379079030826688, -0.015991097316145897, -0.002701335120946169, -0.0019055636366829276, 0.04891156777739525, -0.0887833759188652, 0.015103262849152088, -0.03813649341464043, 0.024193469434976578, -0.02475845441222191, 0.0073498510755598545, 0.026957860216498375, 0.0166065264493227, -0.02038990892469883, 0.056498512625694275, 0.02992403320968151, -0.037349551916122437, -0.017454003915190697, 0.004623293410986662, -0.013256971724331379, -0.0005167470080778003, -0.016838574782013893, 0.014356675557792187, -0.0059323436580598354, 0.0022662461269646883, -0.015940651297569275, 0.05661958083510399, 0.03638100624084473, -0.040073588490486145, 0.019865280017256737, -0.03807596117258072, 0.00506468815729022, -0.0030115724075585604, 0.02451631799340248, -0.0005306194070726633, -0.014830859377980232, 0.025706822052598, -0.027280708774924278, -0.01303501334041357, -0.0035336792934685946, -0.006174480076879263, -0.031417205929756165, 0.009645102545619011, -0.02413293533027172, 0.03260771185159683, 0.05040474236011505, -0.03248664364218712, 0.053027886897325516, -0.050889015197753906, -0.03791453689336777, -0.018321659415960312, -0.02469792030751705, 0.048588719218969345, -0.018604151904582977, 0.006532640196382999, -0.045521657913923264, -0.04749910533428192, -0.0043584564700722694, 0.07397269457578659, 0.03512996807694435, -0.008651334792375565, 0.03309198468923569, 0.026029670611023903, 0.03551334887742996, -0.008076260797679424, -0.014124628156423569, 0.012187535874545574, -0.011531749740242958, -0.05528783053159714, 0.05738634616136551, 0.04281780123710632, -0.012328782118856907, 0.02816854417324066, -0.08531275391578674, -0.06586112082004547, -0.03325340896844864, -0.029681896790862083, -0.05080830305814743, -0.003132640616968274, -0.023628484457731247, -0.040436793118715286, -0.013206526637077332, -0.010563204064965248, 0.05932343751192093, -0.04947655275464058, -0.005397625733166933, -0.021529968827962875, 0.003044361714273691, 0.05452106148004532, 0.024637386202812195, 0.014891393482685089, -0.03611868992447853, -0.0028829374350607395, 0.011864687316119671, -0.0010397996520623565, 0.03069079853594303, -0.026998216286301613, 0.016364390030503273, 0.024879522621631622, -0.0067041534930467606, 0.04971868917346001, -0.014558455906808376, -0.04463382437825203, -0.005513649433851242, -0.00795519258826971, -0.10258515179157257, 0.02036973088979721, 0.028471214696764946, 0.035674773156642914, 0.049960825592279434, -0.000042090130591532215, -0.010305933654308319, -0.011158456094563007, -0.05932343751192093, 0.06937210261821747, -0.0017605340108275414, -0.06416616588830948, 0.039670027792453766, 0.0028955487068742514, -0.02066231332719326, -0.02744213305413723, 0.004638426937162876, 0.026937682181596756, 0.04021483287215233, 0.0012264464749023318, -0.008535310626029968, 0.03153827786445618, -0.03696616739034653, 0.05839524790644646, 0.056902073323726654, -0.00005765717287431471, -0.013943025842308998, 0.06412581354379654, -0.024597030133008957, 0.04681305214762688, -0.03343501314520836, -0.06590148061513901, -0.10153589397668839, 0.0038060827646404505, -0.02165103703737259, 0.000984940561465919, 0.05565103515982628, 0.029823143035173416, 0.008207418024539948, 0.016475370153784752, 0.02861246094107628 ]
43,186
fast_poisson_solver.solver
__init__
null
def __init__(self, device='cuda', precision=torch.float32, verbose=False, use_weights=True, compile_model=True, lambdas_pde=None, seed=0): if torch.cuda.is_available(): torch.backends.cuda.matmul.allow_tf32 = False torch.backends.cudnn.allow_tf32 = False if lambdas_pde is None: lambdas_pde = [2 ** -12] self.path = os.path.join('resources', 'final.pt') self.verbose = verbose self.precision = precision self.device = device if torch.cuda.is_available() else 'cpu' self.use_weights = use_weights self.compile_model = compile_model self.lambdas_pde = lambdas_pde self.seed = seed random.seed(self.seed) np.random.seed(self.seed) torch.manual_seed(self.seed) self.n_lambdas = len(self.lambdas_pde) # The losses for all the different values of lambda are put in those arrays self.Ls = np.zeros(self.n_lambdas) self.Ls_pde = np.zeros(self.n_lambdas) self.Ls_bc = np.zeros(self.n_lambdas) if self.path.endswith('.pt'): self.weights_input = True self.weights_path = pkg_resources.resource_stream(__name__, self.path) self.path = os.path.join(*os.path.split(self.path)[:1]) else: self.weights_input = False # Path to the where the pre-computed data_utils will be saved. self.precompute_path = 'precomputed-resources' if not os.path.isdir(self.precompute_path): os.makedirs(self.precompute_path) self.precompute_file = os.path.join(self.precompute_path, 'default.pkl') self.load_data() self.build_model()
(self, device='cuda', precision=torch.float32, verbose=False, use_weights=True, compile_model=True, lambdas_pde=None, seed=0)
[ -0.018980322405695915, -0.04163055866956711, 0.024924814701080322, 0.025421781465411186, 0.004092811141163111, 0.017078468576073647, -0.06701411306858063, -0.03870609775185585, -0.008830724284052849, -0.002432272071018815, -0.002554124454036355, -0.008988415822386742, 0.006274210289120674, 0.0762271136045456, -0.0323028638958931, 0.03824735805392265, -0.007315929979085922, 0.016266116872429848, 0.015864720568060875, -0.024485189467668533, -0.039298634976148605, -0.005017457064241171, -0.020031599327921867, 0.034137822687625885, -0.04633263126015663, 0.015071485191583633, -0.002781104762107134, -0.03922217711806297, 0.005762907676398754, 0.007750776130706072, -0.013246086426079273, 0.05019368231296539, -0.01924792118370533, -0.008978858590126038, 0.05512512847781181, -0.012118353508412838, 0.05588969215750694, 0.04388602450489998, -0.04040725156664848, -0.009834215976297855, 0.011525815352797508, -0.07817675918340683, 0.006188197061419487, 0.0032422328367829323, -0.029301948845386505, 0.02775370515882969, -0.03937508910894394, 0.02796396054327488, 0.014784772880375385, -0.029378404840826988, -0.008864173665642738, -0.02117844671010971, 0.04958203062415123, 0.001007075305096805, -0.054781071841716766, 0.02956954576075077, 0.038878124207258224, 0.0034548775292932987, 0.0007484373054467142, -0.021637186408042908, 0.03624037653207779, -0.009418483823537827, 0.030945762991905212, 0.015864720568060875, 0.023300115019083023, -0.0034811594523489475, -0.028996123000979424, -0.009088764898478985, 0.03222640976309776, 0.0548575296998024, 0.013485012575984001, -0.016313903033733368, 0.023797081783413887, 0.0215033870190382, 0.06418521702289581, -0.02303251624107361, -0.04438298940658569, -0.10291042923927307, -0.01704023964703083, -0.019706659018993378, 0.01838778518140316, -0.007526185363531113, -0.050920020788908005, -0.023491255939006805, 0.007401943672448397, -0.04308323189616203, 0.05367245525121689, -0.00672339228913188, -0.002578017069026828, -0.003980515990406275, -0.040827762335538864, 0.010140041820704937, 0.007650427054613829, 0.03654620051383972, 0.034252505749464035, 0.008047045208513737, -0.005113027524203062, -0.010474538430571556, 0.025307096540927887, -0.03874432295560837, 0.08379630744457245, 0.01263443473726511, 0.027486106380820274, 0.04377133771777153, 0.017355622723698616, 0.011210432276129723, -0.03631683066487312, 0.04151587188243866, -0.00030821521067991853, -0.05164635553956032, -0.06487333029508591, 0.04132473096251488, -0.006188197061419487, -0.011401573196053505, -0.022956060245633125, -0.04281563311815262, -0.019840458407998085, -0.004226610064506531, -0.015702251344919205, 0.03180589899420738, 0.006885862443596125, 0.05313725769519806, -0.0697283148765564, -0.0369667112827301, -0.03364085406064987, -0.03396579250693321, 0.054895758628845215, 0.008615690283477306, 0.021866554394364357, -0.03119424730539322, 0.005500088445842266, 0.003913616295903921, 0.00838154274970293, 0.046638455241918564, -0.00524204783141613, -0.06632599979639053, 0.03163387253880501, 0.03868698328733444, -0.013312986120581627, 0.04208929464221001, 0.015912506729364395, 0.014383376576006413, 0.013035831041634083, 0.013532797805964947, 0.04690605401992798, 0.027046483010053635, 0.020146284252405167, -0.0003781012201216072, -0.02010805532336235, 0.007832011207938194, 0.045759208500385284, -0.0033091322984546423, -0.005504867061972618, 0.040598396211862564, 0.036832913756370544, -0.002227989723905921, 0.00129139784257859, -0.04549160972237587, -0.012701333500444889, 0.0075644138269126415, -0.028690297156572342, 0.009256013669073582, -0.059636060148477554, 0.017451193183660507, -0.030601708218455315, 0.008429327979683876, 0.019955143332481384, -0.010799478739500046, 0.009805544279515743, 0.023510370403528214, 0.010770807974040508, -0.07267189025878906, 0.020777050405740738, 0.075768381357193, 0.021254902705550194, 0.039948515594005585, 0.02635837346315384, -0.009595288895070553, -0.0075644138269126415, -0.03236020728945732, -0.001650982303544879, 0.012806461192667484, -0.000030108474675216712, -0.0016868212260305882, -0.01113397628068924, 0.08035577088594437, 0.015702251344919205, 0.0020607411861419678, -0.003753535682335496, 0.008004038594663143, -0.02549823746085167, 0.0005095108062960207, -0.0341760478913784, 0.028212442994117737, 0.014975914731621742, 0.04453590512275696, 0.02182832732796669, 0.01945817656815052, -0.017288723960518837, -0.02880498208105564, -0.008587019518017769, 0.012491078115999699, 0.036412402987480164, -0.004601724911481142, -0.06506446748971939, -0.048664554953575134, -0.04335082694888115, 0.1422855257987976, -0.01898987963795662, 0.0030534809920936823, 0.0546281598508358, -0.025651151314377785, 0.028747638687491417, 0.07844435423612595, 0.024657217785716057, -0.07037819921970367, -0.005977941676974297, 0.06307660043239594, -0.030353225767612457, 0.0032255081459879875, -0.0033210786059498787, -0.0054331892170012, -0.049620259553194046, 0.0231280867010355, 0.021885668858885765, 0.015549338422715664, 0.02547912485897541, 0.009146107360720634, -0.024255819618701935, -0.05065242201089859, -0.0026688091456890106, -0.03400402143597603, -0.055010441690683365, 0.010570108890533447, 0.06808450073003769, -0.048549868166446686, 0.000012618306755030062, 0.049199748784303665, -0.0795147493481636, -0.03373642638325691, -0.020891735330224037, -0.026836227625608444, 0.04224221035838127, -0.06223557889461517, 0.01856936886906624, 0.026759769767522812, 0.05783933401107788, -0.00008063769928412512, -0.04702074080705643, -0.0035122197587043047, -0.023892652243375778, -0.03031499683856964, -0.018311329185962677, 0.03245577961206436, -0.06609663367271423, -0.034481875598430634, 0.07783270627260208, 0.016466815024614334, 0.057380594313144684, -0.015730923041701317, -0.014048879034817219, -0.059406690299510956, -0.007832011207938194, 0.0634588822722435, 0.01611320488154888, -0.04140118882060051, -0.02278403379023075, -0.006971875671297312, 0.025307096540927887, -0.01317918673157692, 0.10826238244771957, 0.06697588413953781, -0.052105095237493515, -0.005920599214732647, -0.005093913525342941, -0.009480603970587254, -0.04270094633102417, 0.05634843185544014, 0.04201284050941467, 0.015090598724782467, 0.06399407982826233, -0.041248273104429245, -0.05072887986898422, -0.024791015312075615, -0.021751871332526207, -0.003364085452631116, -0.04686782509088516, -0.007922803051769733, 0.04434476047754288, -0.0256893802434206, 0.00554309505969286, 0.02503949962556362, 0.03838115558028221, -0.004917107988148928, 0.10963860154151917, 0.006293324753642082, -0.021694527938961983, 0.025135070085525513, 0.021981239318847656, -0.010197384282946587, -0.02870941162109375, -0.019611088559031487, 0.06196798384189606, 0.0043747443705797195, -0.056501343846321106, -0.0016844319179654121, -0.007253809366375208, -0.01640947349369526, 0.040063198655843735, -0.03926040604710579, 0.07358936965465546, -0.017604105174541473, 0.06728170812129974, 0.05883326753973961, 0.037578362971544266, -0.009031422436237335, 0.007616977673023939, -0.0032852396834641695, 0.04965848848223686, 0.03549492359161377, -0.03465390205383301, 0.05237269401550293, 0.02001248486340046, 0.04992608726024628, 0.004563496448099613, -0.052754975855350494, 0.0569600835442543, -0.022726690396666527, -0.02387353777885437, -0.01957286149263382, 0.016419030725955963, 0.01639035902917385, 0.026262803003191948, 0.03922217711806297, -0.034768588840961456, 0.017776133492588997, 0.013762167654931545, -0.003557615913450718, 0.014182678423821926, -0.06227380782365799, 0.07087516039609909, 0.05271674692630768, -0.044803500175476074, 0.02052856609225273, 0.0086586968973279, -0.07641825824975967, 0.019324377179145813, 0.0016258949181064963, 0.0017358012264594436, -0.004401026293635368, 0.02805953100323677, 0.04331259801983833, -0.006818962749093771, 0.09365919977426529, 0.06712879240512848, -0.009447154588997364, -0.0520668663084507, -0.027696361765265465, 0.020260969176888466, -0.023491255939006805, 0.053710680454969406, -0.0006612291326746345, -0.030467910692095757, 0.04797644540667534, 0.0855548083782196, -0.03237932175397873, -0.015587566420435905, -0.030353225767612457, 0.028308013454079628, -0.009442375972867012, -0.011544929817318916, -0.032551348209381104, 0.013685710728168488, -0.005724679213017225, 0.028862323611974716, -0.07882663607597351, -0.0402161106467247, 0.038859009742736816, -0.015405981801450253, 0.03880166634917259, -0.004279173910617828, -0.021235790103673935, 0.0076790982857346535, -0.016724856570363045, -0.010875935666263103, -0.012605763040482998, 0.00007298458513105288, 0.018655382096767426, 0.0364888571202755, -0.013618811964988708, 0.01710713841021061, 0.01183164119720459, 0.03411870822310448, -0.0025445674546062946, 0.005614773370325565, 0.0460268035531044, -0.034042250365018845, 0.04572097957134247, -0.03819001466035843, -0.039528004825115204, -0.02947397530078888, -0.04063662141561508, -0.0029292390681803226, 0.043924253433942795, -0.0025087285321205854, -0.031098676845431328, 0.04656200110912323, 0.021274017170071602, -0.0002529634512029588, 0.10313980281352997, -0.0055717662908136845, 0.03731076419353485, -0.008386320434510708, -0.012032339349389076, -0.05512512847781181, -0.010761250741779804, 0.02117844671010971, -0.051034703850746155, 0.05852743983268738, 0.02526886947453022, 0.012710890732705593, 0.04377133771777153, 0.04820581525564194, -0.0028288899920880795, 0.02912992052733898, 0.027027368545532227, 0.019859572872519493, 0.026186347007751465, -0.018999436870217323, 0.002520674839615822, -0.08280237764120102, 0.028002187609672546, -0.015587566420435905, -0.030467910692095757, 0.01989779993891716, 0.002948353299871087, 0.050805334001779556, -0.008343313820660114, 0.020394768565893173, -0.001973533071577549, 0.01664840057492256, -0.00048322888324037194, 0.01882741041481495, -0.02968423068523407, -0.09327691048383713, 0.02859472669661045, -0.036087460815906525, 0.0023378960322588682, -0.08677811175584793, 0.03891635313630104, 0.018492912873625755, 0.051034703850746155, 0.06185329705476761, -0.025020385161042213, 0.04606503248214722, 0.008501005358994007, -0.03228375315666199, -0.07573015242815018, -0.02979891560971737, 0.0016904051881283522, 0.019706659018993378, 0.039719145745038986, 0.019008994102478027, -0.020260969176888466, -0.000008348428309545852, -0.014784772880375385, 0.05107293277978897, 0.02217238023877144, -0.016189660876989365, -0.008395877666771412, 0.03302920237183571, -0.02654951438307762, 0.021675413474440575, -0.0191810205578804, -0.042318664491176605, -0.024714559316635132, -0.04824404418468475, -0.015090598724782467, 0.007459286134690046, -0.05046128109097481, 0.02182832732796669, -0.0546281598508358, 0.02528798207640648, 0.04805290326476097, -0.013857738114893436, -0.010474538430571556, 0.04396247863769531, 0.013188743963837624, 0.016591057181358337, 0.0016091701108962297, -0.05814515799283981, 0.01824442856013775, 0.060056570917367935, -0.006699499674141407, -0.06261786073446274, -0.010321625508368015, 0.05699831247329712, 0.022000353783369064, 0.04969671741127968, -0.015396424569189548, 0.03151918575167656, 0.023930881172418594, -0.03373642638325691, -0.03044879622757435, 0.059521373361349106, 0.026931798085570335, -0.017508534714579582, -0.04017788544297218, -0.08777204900979996, 0.01575959287583828, 0.013150515966117382, -0.06938426196575165, 0.012051453813910484, -0.04384779557585716, -0.029397519305348396, 0.00852967705577612, 0.024485189467668533, 0.05191395431756973, -0.01606541872024536, -0.02698913961648941, 0.007726883515715599, 0.04809112846851349, 0.006145189981907606, -0.024064678698778152, -0.005858478136360645, 0.05283143371343613, -0.011936768889427185, -0.0045539396815001965, 0.06919311732053757, 0.03620214760303497, -0.02085350640118122, -0.04637086018919945, -0.00342859560623765, 0.004023522604256868, 0.009514054283499718, 0.02805953100323677, -0.021675413474440575, -0.05004077032208443, -0.05390182137489319, -0.06097404658794403, -0.010875935666263103, -0.00011072750930907205, 0.03755924850702286, -0.05072887986898422, 0.021675413474440575, 0.024351391941308975, -0.0068571912124753, 0.07943829149007797, -0.036527086049318314, -0.0018648215336725116, -0.0025421781465411186, -0.014966357499361038, 0.00008295230509247631, -0.02582317776978016, 0.05615729093551636, 0.007000546902418137, 0.019353048875927925, 0.01198455411940813, 0.01747986488044262, 0.03786507621407509, -0.058756809681653976, -0.04442121833562851, -0.017957717180252075, -0.008305085822939873, -0.013160073198378086, 0.008047045208513737, -0.016237447038292885, -0.028308013454079628, -0.042624492198228836, -0.03874432295560837, 0.02194301225244999, 0.006818962749093771, 0.014612746424973011, -0.014173121191561222, -0.06330597400665283, -0.027983075007796288, -0.004185992758721113, 0.010149599052965641, -0.02700825408101082, -0.0546281598508358, 0.004171656910330057, -0.015348639339208603, -0.011028848588466644, -0.016371244564652443, -0.001877962495200336, -0.02591874822974205, -0.03922217711806297, 0.02752433530986309, 0.03012385591864586, -0.012949817813932896, -0.024007337167859077, 0.020031599327921867, -0.10184004157781601, -0.01759454980492592, -0.015128827653825283, -0.025937862694263458, -0.06013302505016327, 0.04541515186429024, 0.03776950389146805, 0.05325194448232651, -0.09029511362314224, 0.025727607309818268, 0.0051894839853048325, -0.022115038707852364, 0.011210432276129723, -0.07852081209421158, -0.04040725156664848, 0.04017788544297218, 0.021254902705550194, -0.006728170905262232, -0.0004494805180002004, 0.006766398902982473, 0.022631119936704636, -0.026109891012310982, 0.002496782224625349, -0.06613486260175705, -0.040904220193624496, -0.03409959375858307, 0.07141035795211792, -0.006398452445864677, -0.0406748503446579, 0.02526886947453022, -0.008964522741734982, -0.02654951438307762, -0.011028848588466644, -0.017384294420480728, 0.03373642638325691, -0.08884243667125702, 0.004611281678080559, -0.022306179627776146, 0.013695267960429192, -0.032838061451911926, 0.026836227625608444, -0.0032900182995945215, 0.027486106380820274, -0.010818593204021454, 0.031136903911828995, 0.027180280536413193, 0.007726883515715599, -0.01689688302576542, -0.0014311698032543063, 0.00898363720625639, 0.012022782117128372, -0.0464855432510376, 0.03379376605153084, -0.02635837346315384, 0.00452048983424902, 0.011325117200613022, 0.05260206386446953, 0.02752433530986309, -0.0383620411157608, -0.0019496404565870762, -0.003074984299018979, 0.027715476229786873, -0.007153459824621677, 0.006121297366917133, -0.01791948825120926, -0.011057519353926182, 0.04503287002444267, -0.061662156134843826, -0.035017069429159164, -0.021025534719228745, -0.02215326763689518, -0.015912506729364395, -0.0057055652141571045, -0.05860389769077301, 0.021751871332526207, 0.03106044791638851, -0.06257963180541992, 0.03432896360754967, -0.062312036752700806, -0.004608892370015383, -0.025632036849856377, -0.018836967647075653, 0.04606503248214722, -0.018636269494891167, 0.0002873091434594244, -0.0548575296998024, -0.03754013404250145, -0.0137143824249506, 0.050614193081855774, 0.03086930699646473, -0.011009734123945236, 0.0022506879176944494, -0.006928869057446718, 0.0385914109647274, -0.015683136880397797, -0.004639952909201384, 0.023204544559121132, -0.010206940583884716, -0.07569192349910736, 0.07897955179214478, 0.041018906980752945, -0.009566618129611015, -0.016495486721396446, -0.0683520957827568, -0.05760996416211128, -0.05829806998372078, -0.05214332416653633, -0.024695444852113724, -0.0023402853403240442, -0.0018528752261772752, -0.04063662141561508, -0.025727607309818268, -0.02203858271241188, 0.04128650203347206, -0.029607774689793587, -0.005758129060268402, -0.0316147580742836, 0.018894309177994728, 0.07634180039167404, 0.012290379963815212, 0.014326034113764763, -0.03796064481139183, -0.02914903499186039, -0.016428587958216667, -0.035533152520656586, 0.00922734197229147, -0.015960291028022766, 0.012405064888298512, 0.017346065491437912, -0.03289540484547615, 0.043733108788728714, -0.006962318904697895, -0.03912660852074623, -0.031767670065164566, -0.03107956238090992, -0.05806870013475418, 0.03960445895791054, -0.009408926591277122, 0.027658134698867798, 0.052640292793512344, 0.011745627969503403, -0.008481891825795174, -0.009676524437963963, -0.04549160972237587, 0.056501343846321106, -0.023319227620959282, -0.05944491922855377, 0.021981239318847656, -0.012357279658317566, 0.01892298087477684, -0.004522879142314196, 0.014278248883783817, 0.023682396858930588, 0.025249755010008812, -0.024982156231999397, -0.031652987003326416, 0.08226718008518219, -0.034252505749464035, 0.016256559640169144, 0.05527804046869278, -0.01553978119045496, -0.01989779993891716, 0.0569600835442543, -0.056386660784482956, 0.05829806998372078, -0.03408047929406166, -0.08609000593423843, -0.12347722798585892, -0.02364416792988777, -0.03010474145412445, 0.009050536900758743, 0.044153619557619095, 0.06777867674827576, 0.014641417190432549, 0.028957894071936607, 0.027658134698867798 ]
43,187
fast_poisson_solver.solver
build_model
null
def build_model(self): self.model = PINN(self.infos['model']).to(self.device) if self.use_weights: state_dict = torch.load(self.weights_path, map_location=self.device) is_data_parallel = any('module' in key for key in state_dict.keys()) is_compiled = any('_orig_mod' in key for key in state_dict.keys()) if is_data_parallel: state_dict = {key.replace("module.", ""): value for key, value in state_dict.items()} if is_compiled: state_dict = {key.replace("_orig_mod.", ""): value for key, value in state_dict.items()} self.model.load_state_dict(state_dict) self.model.to(self.precision) if self.compile_model: try: self.model = torch.compile(self.model) except Exception as e: print(e) print('Compiling did not work but do not worry, it will work without it.') print('You need pytorch 2.0 for compiling and Linux.')
(self)
[ -0.010949633084237576, -0.04534826800227165, 0.01628146693110466, 0.012019690126180649, -0.005451754666864872, -0.005645472090691328, -0.06626972556114197, 0.0209399051964283, -0.039481405168771744, -0.054831184446811676, -0.007568806875497103, 0.07073444128036499, -0.035570163279771805, 0.0613253228366375, 0.009962597861886024, 0.013246565125882626, 0.002951880916953087, -0.0019867541268467903, -0.021973062306642532, 0.012434798292815685, -0.03081025555729866, -0.026308637112379074, -0.014233600348234177, 0.0631333515048027, 0.033817484974861145, 0.023928683251142502, -0.004319431725889444, -0.001902579446323216, 0.04309745877981186, -0.04202740266919136, -0.0300722848623991, 0.0397396944463253, 0.028946882113814354, 0.021862367168068886, 0.05770926922559738, 0.018799791112542152, 0.03370678797364235, 0.032728977501392365, -0.07246867567300797, -0.03951830416917801, 0.03830065205693245, -0.12405279278755188, 0.009953373111784458, 0.04855844005942345, -0.041252534836530685, -0.047672875225543976, -0.00017757408204488456, 0.023061567917466164, 0.023430554196238518, -0.007748687174171209, -0.0459386445581913, 0.0347214974462986, 0.0004773744731210172, 0.004545435309410095, -0.04154772311449051, -0.02824581041932106, -0.01594015583395958, 0.002129735890775919, 0.023836437612771988, -0.009196953848004341, -0.05235898494720459, 0.00024315541668329388, 0.035441018640995026, 0.012859131209552288, 0.005627022590488195, 0.03486909344792366, -0.007116800174117088, -0.017185481265187263, 0.02466665394604206, 0.03243378922343254, 0.022877076640725136, -0.05269107222557068, 0.03892792761325836, 0.07586333900690079, 0.04073595628142357, -0.04154772311449051, -0.05756167694926262, -0.03289502114057541, 0.002589814132079482, -0.011715277098119259, -0.027212651446461678, -0.018273986876010895, -0.05058785900473595, -0.020829208195209503, -0.05306005850434303, -0.018836690112948418, 0.0398503914475441, -0.01771128550171852, 0.00011127207108074799, -0.028467200696468353, -0.05080924928188324, 0.048816729336977005, 0.0025944265071302652, 0.04250708222389221, 0.0406990572810173, 0.01723160408437252, 0.017351524904370308, -0.00979655422270298, -0.011171024292707443, -0.03132683411240578, -0.01634603925049305, 0.02451905980706215, -0.08361202478408813, -0.01615232229232788, -0.014086006209254265, -0.01175217516720295, -0.015026918612420559, 0.0388910286128521, 0.003092556493356824, -0.03743353858590126, -0.03822685778141022, 0.02771078050136566, -0.024961842224001884, -0.015580396167933941, -0.014076781459152699, -0.03918621689081192, 0.003676014021039009, -0.020958352833986282, -0.01770205982029438, 0.04641832411289215, -0.03708300366997719, 0.043281953781843185, -0.08671149611473083, -0.033282455056905746, -0.018873587250709534, 0.05398251861333847, 0.04331884905695915, -0.06464619189500809, 0.07486707717180252, -0.09172969311475754, -0.05210069566965103, 0.0031755780801177025, 0.026271739974617958, 0.02141958475112915, -0.03180651739239693, -0.030441271141171455, -0.044905487447977066, -0.02992469258606434, 0.019224124029278755, 0.08021736145019531, 0.0069692060351371765, 0.024832697585225105, 0.057598575949668884, -0.02979554608464241, 0.03243378922343254, 0.01918722502887249, 0.02606879733502865, -0.017997248098254204, 0.008565066382288933, -0.0332271084189415, 0.0529862605035305, -0.030570415779948235, 0.034352511167526245, 0.0026751419063657522, 0.0038443636149168015, 0.039961084723472595, -0.001055066823028028, -0.0406990572810173, -0.002460669493302703, 0.004220267292112112, -0.04438890889286995, 0.01293292734771967, -0.0021931552328169346, -0.02141958475112915, -0.03896482661366463, -0.011604581028223038, -0.0015947074862197042, -0.020017441362142563, -0.0034292552154511213, 0.010488401167094707, -0.031658921390771866, -0.034887541085481644, 0.018698319792747498, 0.022821728140115738, -0.06114083155989647, 0.014787077903747559, 0.0036737078335136175, -0.008574291132390499, -0.008458983153104782, 0.011484661139547825, 0.021640976890921593, 0.018892036750912666, -0.03713835030794144, 0.023485900834202766, 0.0024583633057773113, 0.048078760504722595, -0.0034108059480786324, -0.013228115625679493, 0.023356756195425987, -0.018347784876823425, 0.03830065205693245, 0.02189926616847515, 0.0008498188108205795, -0.01953776180744171, -0.040846649557352066, 0.030385922640562057, 0.031382184475660324, -0.001361785689368844, -0.008500494062900543, 0.02378108911216259, 0.04106804355978966, -0.013440282084047794, 0.00038858744665049016, 0.01911342889070511, -0.0714724138379097, -0.022397395223379135, -0.042802270501852036, 0.05099374055862427, 0.053355246782302856, -0.011816747486591339, 0.0448685884475708, -0.017812754958868027, 0.03822685778141022, 0.06424030661582947, 0.041178736835718155, -0.004819867666810751, -0.03647417575120926, 0.07217348366975784, -0.017111683264374733, -0.041252534836530685, -0.003749811090528965, 0.054499100893735886, -0.05431460589170456, 0.000995106645859778, -0.06202639639377594, -0.015921706333756447, 0.011733726598322392, 0.010949633084237576, -0.03224929794669151, -0.04339264705777168, -0.003786709625273943, -0.05689750239253044, -0.052801769226789474, 0.04900122061371803, 0.02892843261361122, 0.02189926616847515, -0.01588480919599533, 0.02924206852912903, -0.035570163279771805, -0.0371752493083477, -0.006540260743349791, -0.04235948994755745, -0.035902250558137894, -0.05855793505907059, 0.01985139772295952, 0.0012280285591259599, 0.049554698169231415, -0.022415844723582268, -0.02606879733502865, -0.00939067080616951, 0.02189926616847515, -0.009621286764740944, -0.000043672844185493886, 0.05700819939374924, -0.014722505584359169, -0.044425807893276215, 0.055163271725177765, -0.07748687267303467, 0.042064301669597626, -0.031160792335867882, -0.030976299196481705, -0.053687334060668945, -0.00831138901412487, 0.023891786113381386, 0.053207650780677795, -0.022268250584602356, -0.049296408891677856, 0.04007178172469139, 0.056380923837423325, -0.03505358472466469, 0.1260453164577484, 0.04944400489330292, -0.06412961333990097, 0.026253290474414825, 0.012997500598430634, -0.06254297494888306, -0.03241534158587456, 0.04852154105901718, -0.023393655195832253, 0.028577895835042, -0.0038213019724935293, -0.03403887525200844, -0.0065679349936544895, -0.004852154292166233, -0.046787310391664505, -0.03643728047609329, -0.012351776473224163, -0.0127668846398592, 0.033872831612825394, -0.0005407938151620328, 0.016456736251711845, 0.06767186522483826, 0.004665355198085308, -0.014325846917927265, 0.023190714418888092, -0.08553074300289154, -0.024076277390122414, 0.0693323016166687, 0.03756268322467804, -0.045643456280231476, -0.006715528666973114, 0.012444022111594677, 0.024611305445432663, -0.027212651446461678, 0.009178504347801208, 0.007181372493505478, -0.00820530578494072, -0.01010096725076437, 0.0023615045938640833, -0.02309846691787243, 0.017277726903557777, -0.0026105695869773626, 0.11261425167322159, 0.03911241888999939, 0.06254297494888306, -0.034887541085481644, 0.012167283333837986, -0.001497848890721798, 0.0489274226129055, 0.0479680635035038, -0.021807018667459488, 0.06863123178482056, -0.008094610646367073, 0.028540996834635735, -0.01588480919599533, -0.05114133656024933, 0.060107674449682236, 0.021069049835205078, -0.042138099670410156, -0.024334566667675972, -0.003228619694709778, 0.04981298744678497, 0.0701809674501419, 0.03669556975364685, -0.06999647617340088, 0.035570163279771805, 0.03616053983569145, -0.025109436362981796, -0.024758899584412575, -0.00979655422270298, 0.06903710961341858, 0.007914730347692966, -0.0468980073928833, 0.046787310391664505, 0.04531136900186539, -0.023209162056446075, 0.01469483133405447, -0.012610065750777721, -0.018606074154376984, -0.019094979390501976, -0.04863223806023598, 0.041584622114896774, 0.014722505584359169, 0.0818408951163292, 0.02167787402868271, -0.011770624667406082, -0.06401891261339188, 0.0031340671703219414, -0.025699812918901443, -0.03121613897383213, -0.01580178737640381, 0.01517451275140047, -0.049148816615343094, 0.03385438397526741, 0.03317176178097725, -0.02073696255683899, -0.0000659056386211887, -0.004005794413387775, 0.06870502233505249, 0.049960583448410034, 0.005880699958652258, -0.06966438889503479, -0.012748435139656067, 0.04933330789208412, 0.03409422188997269, 0.017665160819888115, -0.051252029836177826, 0.012776109389960766, 0.000533875310793519, -0.002134348265826702, -0.028079766780138016, -0.005696207284927368, 0.05490498244762421, -0.00601445697247982, 0.04088354855775833, -0.019076529890298843, 0.053465940058231354, 0.024482160806655884, 0.010525300167500973, -0.04520067572593689, -0.026031898334622383, 0.03114234283566475, -0.023024670779705048, 0.024906493723392487, 0.01594938151538372, 0.021438034251332283, 0.016438286751508713, 0.0372859463095665, -0.035238076001405716, -0.05195310339331627, -0.03855894133448601, -0.0906965360045433, 0.025828957557678223, 0.07449809461832047, -0.03534877300262451, -0.024205422028899193, 0.0357915535569191, 0.03033057600259781, -0.00021360778191592544, -0.04317125678062439, -0.013052848167717457, 0.055310867726802826, -0.04948090389370918, 0.01239789929240942, -0.021105946972966194, 0.03903862461447716, 0.10139710456132889, -0.04870603233575821, 0.023836437612771988, -0.008763396181166172, 0.03545947000384331, 0.04863223806023598, 0.09350082278251648, -0.021105946972966194, -0.017120908945798874, 0.0479680635035038, 0.020312629640102386, 0.06999647617340088, 0.008795682340860367, 0.049702294170856476, -0.05032956600189209, 0.05291246250271797, -0.010008720681071281, -0.0045984769240021706, 0.015073041431605816, -0.025035638362169266, 0.05062475427985191, -0.024002481251955032, -0.011438538320362568, 0.009233851917088032, -0.01226875465363264, -0.01702866330742836, -0.00398734537884593, 0.0007990833837538958, -0.01568186655640602, 0.01044227834790945, -0.0026197941042482853, 0.01675192452967167, -0.05900071933865547, 0.016788821667432785, 0.022323599085211754, -0.004709172528237104, 0.07645371556282043, -0.01944551430642605, 0.03778407350182533, -0.012914478778839111, 0.0014171333750709891, -0.031455978751182556, 0.02121664397418499, 0.002612875774502754, -0.023190714418888092, 0.03735974058508873, 0.0377102792263031, 0.023338308557868004, 0.008196081966161728, -0.007112187799066305, 0.03811616078019142, -0.015700316056609154, -0.06379752606153488, 0.007495009806007147, 0.032858122140169144, -0.029371213167905807, 0.03796856850385666, 0.000957055133767426, -0.052395883947610855, -0.02809821628034115, 0.0023707293439656496, 0.003376213600859046, 0.006341931410133839, -0.07925800234079361, -0.001429817290045321, -0.026400884613394737, -0.009621286764740944, 0.0947553738951683, -0.05560605600476265, 0.018024921417236328, 0.04586484655737877, 0.011973566375672817, 0.03068111091852188, -0.05032956600189209, -0.034629251807928085, 0.039629001170396805, 0.06055045500397682, -0.0003877226263284683, -0.006111315917223692, 0.046049341559410095, -0.014436542056500912, 0.012776109389960766, 0.007776360958814621, -0.017111683264374733, 0.022009961307048798, -0.015774112194776535, -0.044278211891651154, -0.030644211918115616, -0.027618534862995148, 0.07977458089590073, -0.036584872752428055, 0.000417126138927415, -0.02256343886256218, 0.005585512146353722, -0.013126645237207413, -0.007070676889270544, -0.05018197372555733, -0.047266989946365356, -0.01959310844540596, 0.01568186655640602, 0.0016304529272019863, 0.025109436362981796, -0.0754205584526062, -0.02162252739071846, 0.04217499867081642, 0.006438789889216423, 0.001338724046945572, -0.029352765530347824, -0.007232108153402805, 0.06579004228115082, -0.00032920390367507935, 0.007139861583709717, 0.0631333515048027, 0.031234588474035263, 0.010866611264646053, -0.0398503914475441, 0.019021181389689445, 0.0529862605035305, 0.0224896427243948, -0.09172969311475754, 0.023744191974401474, -0.0008423238177783787, -0.0320463553071022, -0.06073494628071785, -0.028688590973615646, -0.053687334060668945, -0.024039380252361298, -0.01608774997293949, 0.02831960655748844, 0.02372574247419834, -0.0011398179922252893, 0.05114133656024933, -0.0773392766714096, -0.011447763070464134, -0.05778306722640991, 0.019814500585198402, 0.004104959312826395, -0.0015451251529157162, 0.08331683278083801, 0.0175729151815176, 0.013763144612312317, -0.01985139772295952, 0.017176255583763123, 0.03918621689081192, -0.033614542335271835, -0.05634402483701706, -0.005115055944770575, 0.019094979390501976, -0.029980039224028587, 0.06471998989582062, -0.032193951308727264, -0.03101319819688797, -0.03903862461447716, -0.01892893575131893, 0.04959159716963768, -0.002074388088658452, 0.003263212041929364, 0.03413112089037895, -0.009898025542497635, -0.010866611264646053, 0.006466463673859835, 0.046934906393289566, 0.011429313570261002, -0.0048752157017588615, 0.033872831612825394, 0.023135365918278694, -0.01892893575131893, 0.03575465455651283, 0.015525048598647118, -0.06549485772848129, -0.04697180166840553, 0.013015949167311192, 0.056860603392124176, -0.036787815392017365, 0.02431611903011799, 0.014132129028439522, -0.03335625305771828, 0.007628766819834709, 0.01385539025068283, -0.007891668938100338, -0.1011757180094719, 0.00027818017406389117, 0.04789426550269127, 0.02108749933540821, -0.09232006967067719, -0.013633999042212963, 0.02331985905766487, -0.04708249866962433, -0.008329838514328003, -0.026050347834825516, -0.055310867726802826, 0.0341864712536335, 0.0012741517275571823, 0.023615047335624695, 0.018698319792747498, -0.01702866330742836, -0.032876573503017426, -0.017074786126613617, -0.04195360466837883, -0.05383492633700371, -0.0035699307918548584, 0.00019487025565467775, 0.07674890011548996, -0.014067556709051132, 0.02269258350133896, 0.015543497167527676, 0.003558400087058544, -0.0028296546079218388, -0.019371718168258667, 0.015506599098443985, 0.027581635862588882, -0.0479680635035038, 0.02309846691787243, 0.009058584459125996, 0.018218640238046646, -0.018135618418455124, 0.03304261714220047, 0.02012813650071621, 0.008057712577283382, -0.006401891354471445, 0.05243278294801712, 0.008279102854430676, 0.03372523933649063, 0.0023891786113381386, 0.0036160540767014027, -0.04601244255900383, 0.008874091319739819, -0.0510675385594368, -0.005742330569773912, -0.03331935405731201, 0.016512082889676094, 0.0033739074133336544, -0.024832697585225105, -0.010008720681071281, -0.01771128550171852, -0.021843917667865753, -0.01748989336192608, 0.007495009806007147, 0.058004457503557205, -0.000656678166706115, 0.0036783202085644007, 0.010755916126072407, 0.048816729336977005, -0.04254398122429848, -0.006710916757583618, -0.0008596199913881719, 0.05438840389251709, -0.012905254028737545, -0.005096606910228729, 0.020035890862345695, -0.025312377139925957, 0.006351156160235405, -0.02771078050136566, -0.0021135928109288216, -0.025238581001758575, -0.008689599111676216, -0.02614259533584118, -0.0072090462781488895, 0.018061820417642593, 0.010672894306480885, 0.022268250584602356, -0.016235344111919403, -0.04431511089205742, 0.015202186070382595, 0.010045619681477547, 0.025496870279312134, 0.028116663917899132, 0.013846165500581264, 0.06018146872520447, 0.02974019944667816, -0.009713532403111458, 0.028430301696062088, 0.008366737514734268, -0.035717759281396866, -0.055569157004356384, 0.03593914955854416, 0.024758899584412575, -0.016834944486618042, 0.02012813650071621, -0.06483068317174911, -0.06497827917337418, -0.02289552614092827, -0.05966489017009735, -0.022397395223379135, 0.05032956600189209, -0.04372473433613777, -0.03413112089037895, -0.04933330789208412, 0.015589620918035507, 0.012840681709349155, -0.05269107222557068, -0.0050274222157895565, -0.06571624428033829, -0.034555453807115555, 0.047931164503097534, 0.06099323555827141, -0.012508595362305641, -0.04114183783531189, 0.024685103446245193, 0.011088002473115921, -0.027600085362792015, 0.04951779916882515, -0.04162152111530304, -0.013135869987308979, 0.03160357475280762, -0.00814073346555233, 0.029555706307291985, -0.005603961180895567, -0.024094726890325546, -0.014704056084156036, -0.04154772311449051, -0.03704610466957092, 0.016096975654363632, 0.01810794323682785, 0.018606074154376984, -0.02695436216890812, -0.035238076001405716, -0.050440263003110886, 0.0006186265964061022, -0.036511074751615524, 0.05339214578270912, 0.020829208195209503, -0.03182496502995491, -0.0002951880742330104, 0.004298676270991564, 0.028688590973615646, -0.02555221877992153, 0.0320463553071022, 0.01580178737640381, 0.06508897244930267, 0.030791806057095528, -0.06210019439458847, 0.016668902710080147, -0.013929187320172787, 0.046861108392477036, 0.0510675385594368, 0.04302366450428963, -0.02073696255683899, 0.06575314700603485, -0.04560655727982521, 0.005742330569773912, -0.02918672189116478, -0.06162051111459732, -0.08752326667308807, 0.023891786113381386, -0.042248792946338654, -0.00041827920358628035, 0.023633494973182678, -0.0028296546079218388, 0.005216526798903942, 0.025441523641347885, -0.033282455056905746 ]
43,188
fast_poisson_solver.solver
evaluate_network_bc
null
def evaluate_network_bc(self): with torch.no_grad(): self.H_bc = self.model.h(self.x_bc, self.y_bc).to(self.precision) self.Ht_bc = self.H_bc.t() ones_Hbc = torch.ones(self.H_bc.shape[0], 1, device=self.device).to(self.precision) self.Ht_bc_ones = (self.Ht_bc @ ones_Hbc).t()
(self)
[ -0.030918844044208527, -0.04466830566525459, 0.018443124368786812, 0.03625810146331787, -0.0029662547167390585, -0.009378599934279919, -0.06906139105558395, -0.034914564341306686, -0.011507323943078518, -0.05217118561267853, 0.011716706678271294, 0.036746662110090256, 0.047809045761823654, 0.044528719037771225, -0.03587423264980316, -0.016166089102625847, 0.002014217898249626, -0.05140345171093941, 0.026643946766853333, -0.038456618785858154, -0.03978271037340164, -0.06619982421398163, 0.02571917325258255, 0.07405167818069458, -0.044144850224256516, -0.02687077783048153, 0.01640164479613304, -0.03435621038079262, -0.01368839293718338, 0.05224098265171051, -0.05203159898519516, -0.021618762984871864, -0.0030404110439121723, -0.03957332670688629, 0.04787884280085564, -0.041004110127687454, 0.07010830193758011, -0.002102551283314824, -0.10036410391330719, -0.030500078573822975, 0.0023424688261002302, -0.07391209155321121, 0.011289216578006744, 0.050182051956653595, -0.05105447769165039, -0.0344434529542923, 0.01407226175069809, 0.02797003835439682, -0.03549036756157875, -0.05402073264122009, -0.0023468309082090855, -0.03950353339314461, 0.005788559094071388, 0.057231269776821136, 0.0072018918581306934, -0.0017503084382042289, 0.05224098265171051, 0.03524608537554741, -0.03765398636460304, 0.012973002158105373, -0.0488908588886261, -0.020432259887456894, -0.020397363230586052, -0.01398501917719841, 0.04739028215408325, 0.024079009890556335, -0.07837892323732376, 0.03013365902006626, 0.028894811868667603, -0.0026739914901554585, 0.02193283662199974, 0.012842138297855854, 0.03967801854014397, 0.03022090159356594, -0.03289053216576576, -0.05576558783650398, -0.018547816202044487, 0.02193283662199974, -0.03056987188756466, -0.001667427713982761, 0.008536706678569317, 0.018129050731658936, -0.00023391972354147583, -0.06773529946804047, 0.010870451107621193, -0.06138402596116066, 0.003103662049397826, 0.051961805671453476, -0.02580641582608223, 0.018722301349043846, -0.0038735796697437763, -0.009055801667273045, -0.002270493423566222, 0.05342748388648033, 0.05377645418047905, 0.05977875739336014, -0.05011225864291191, 0.015188969671726227, -0.018704853951931, 0.0020916457287967205, 0.00413312716409564, 0.05053102225065231, -0.03643258661031723, 0.04156246408820152, -0.018565265461802483, -0.020641643553972244, 0.016689544543623924, -0.024707157164812088, -0.03048262931406498, -0.06312888115644455, -0.01654123328626156, 0.01708213798701763, -0.05457908660173416, -0.03629299998283386, 0.02116510085761547, -0.029470613226294518, -0.046482957899570465, -0.009858435019850731, 0.002900822786614299, 0.08431143313646317, -0.015564112924039364, 0.010530204512178898, -0.02453267201781273, 0.017972014844417572, -0.04156246408820152, 0.042365096509456635, 0.04477299749851227, -0.01853036880493164, -0.0028244853019714355, -0.06808426976203918, 0.04089941829442978, -0.03898007795214653, -0.0038757608272135258, 0.09666500985622406, -0.023241478949785233, 0.01832098513841629, -0.004863785579800606, 0.0029509873129427433, 0.07879768311977386, 0.038456618785858154, 0.004951028153300285, -0.006717694457620382, 0.029086744412779808, 0.015965430065989494, 0.05325299873948097, -0.014997035264968872, -0.00042230961844325066, 0.0031254729256033897, -0.005958682391792536, -0.02414880320429802, 0.01955983228981495, 0.009317529387772083, 0.038317032158374786, -0.03664197027683258, -0.017605595290660858, 0.011803949251770973, 0.007681727409362793, 0.024899091571569443, 0.017867323011159897, 0.007912920787930489, -0.08766154944896698, 0.016017775982618332, 0.008759175427258015, -0.026033246889710426, 0.005199670325964689, 0.002983703278005123, -0.02228180691599846, -0.008213908411562443, -0.005618435330688953, 0.0046805753372609615, -0.01475275494158268, -0.07705283164978027, -0.05297382175922394, 0.048821061849594116, -0.004015349317342043, -0.014491027221083641, 0.01558156218379736, -0.02456756867468357, -0.026940573006868362, -0.0005043723504059017, 0.02482929639518261, -0.016811685636639595, -0.014656788669526577, -0.0021777981892228127, 0.007795142941176891, 0.020973166450858116, 0.06853793561458588, -0.02784789726138115, 0.006416706833988428, -0.00979736540466547, 0.00992822926491499, 0.016515059396624565, -0.024253495037555695, -0.006608641240745783, 0.03336164355278015, 0.0026630861684679985, 0.06113974377512932, 0.02601579949259758, 0.01861761137843132, -0.005422139074653387, -0.026120491325855255, -0.08479999005794525, 0.022805264219641685, 0.0014602261362597346, 0.0006488682120107114, -0.04836739972233772, -0.04815801978111267, 0.06305908411741257, -0.011978434398770332, -0.03974781557917595, -0.03498435765504837, 0.03842172399163246, -0.0167855117470026, 0.031040983274579048, 0.012100574560463428, -0.017719009891152382, -0.0007900925120338798, 0.025300407782197, -0.019141066819429398, -0.033518679440021515, 0.0006057920982129872, -0.06002303585410118, -0.00848436076194048, -0.008833331987261772, -0.02261332981288433, -0.008868229575455189, 0.005278188735246658, 0.0744006484746933, 0.02222946286201477, -0.052310775965452194, 0.03404213488101959, 0.04051554948091507, -0.03166913241147995, 0.005042633041739464, 0.013592426665127277, 0.03180871903896332, -0.02725464664399624, 0.03678156062960625, -0.006133168004453182, 0.008274978026747704, -0.04020147770643234, -0.01900147832930088, -0.0076075708493590355, -0.0029139090329408646, 0.00031952670542523265, -0.0420859195291996, 0.023607898503541946, 0.0037667073775082827, -0.029557855799794197, 0.024602465331554413, -0.03180871903896332, -0.06124443560838699, 0.0199785977602005, -0.03051752783358097, -0.007638106122612953, -0.02053695172071457, -0.015590285882353783, 0.0029640737920999527, 0.05293892323970795, -0.006691521964967251, 0.0075072417967021465, -0.008855142630636692, -0.009919504635035992, -0.021060409024357796, 0.001786296023055911, 0.038700900971889496, -0.04690172150731087, 0.05161283165216446, -0.005487571470439434, 0.026504358276724815, 0.07747159153223038, 0.012449545785784721, -0.015363454818725586, -0.0010954422177746892, -0.021060409024357796, -0.035944029688835144, 0.03435621038079262, 0.0578245185315609, -0.007372015621513128, 0.005753661971539259, 0.008218270726501942, -0.07935603708028793, -0.06407110393047333, -0.022927405312657356, -0.015188969671726227, -0.030657116323709488, -0.018565265461802483, -0.0227354709059, 0.030203452333807945, -0.05478847026824951, -0.023363618180155754, 0.008580327965319157, 0.057789623737335205, 0.0023402876686304808, 0.0075072417967021465, -0.061104848980903625, -0.015965430065989494, 0.004392674192786217, 0.023991767317056656, 0.10315587371587753, -0.011228146962821484, 0.0026543617714196444, -0.032750941812992096, 0.005897612310945988, -0.008104855194687843, -0.002394814509898424, 0.03474007919430733, 0.04365628957748413, 0.027306992560625076, 0.0005948867765255272, -0.0044013988226652145, -0.016611026600003242, 0.06469924747943878, 0.03250666335225105, 0.026469461619853973, -0.028633082285523415, 0.011777776293456554, 0.04285365715622902, 0.004279258660972118, 0.0650133267045021, 0.01462189108133316, 0.027568720281124115, -0.008253167383372784, 0.13826237618923187, -0.04641316458582878, -0.0369909405708313, 0.062430936843156815, -0.0017939298413693905, -0.016427816823124886, -0.028039831668138504, -0.012545512989163399, -0.013950121589004993, 0.021863043308258057, 0.020379915833473206, -0.001649979269132018, 0.02992427535355091, 0.006547571159899235, 0.018268639221787453, -0.030151106417179108, -0.07321414351463318, 0.03142485022544861, 0.06623472273349762, -0.01007654145359993, 0.012728722766041756, 0.02894715592265129, -0.03838682547211647, -0.053706660866737366, 0.010730862617492676, -0.0433771125972271, 0.014386335387825966, -0.07073645293712616, 0.01955983228981495, 0.02036246657371521, 0.05258995294570923, 0.0522758774459362, 0.0467621348798275, -0.017239173874258995, -0.04114369675517082, -0.0053348965011537075, -0.0025082300417125225, 0.027149954810738564, 0.04226040467619896, -0.016122467815876007, 0.00899473112076521, 0.017841149121522903, -0.0231716837733984, 0.03761909157037735, 0.034844771027565, 0.01593925803899765, -0.01607012189924717, -0.04390057176351547, -0.03166913241147995, -0.03503670170903206, 0.011577118188142776, -0.019996047019958496, 0.0015191150596365333, -0.06337316334247589, 0.016855306923389435, 0.04864657670259476, 0.021112754940986633, 0.01713448390364647, -0.004427571315318346, -0.052136290818452835, -0.0035333328414708376, 0.03132016211748123, 0.015389627777040005, 0.021531520411372185, 0.01730024442076683, 0.01725662313401699, -0.0497283898293972, 0.05618435516953468, -0.04773925244808197, -0.036956045776605606, 0.005343620665371418, -0.03536822646856308, 0.00285283918492496, 0.09980574995279312, 0.047076206654310226, -0.046273574233055115, -0.025003783404827118, -0.026260079815983772, -0.04096921160817146, 0.01950748637318611, 0.03433876112103462, -0.06326846778392792, -0.03030814416706562, 0.010634895414113998, 0.05789431184530258, 0.004287982825189829, -0.0076075708493590355, -0.04906534403562546, 0.014944689348340034, -0.028336457908153534, 0.01790221966803074, -0.046866826713085175, -0.0015485595213249326, 0.06277991086244583, -0.0684332400560379, 0.00788674782961607, 0.013636047951877117, 0.03447834774851799, 0.01345283817499876, 0.06236114352941513, -0.027062712237238884, 0.039643123745918274, -0.014403783716261387, 0.007031768560409546, -0.017867323011159897, -0.011289216578006744, 0.007703538052737713, -0.039259254932403564, -0.03306501731276512, -0.036153409630060196, -0.016131190583109856, 0.05168262869119644, -0.02516081929206848, 0.06783998757600784, 0.0016368927899748087, 0.005949958227574825, 0.039957195520401, -0.03472262993454933, 0.004658764693886042, 0.04913513734936714, -0.035054150968790054, -0.072237029671669, -0.02095571719110012, -0.02622518129646778, -0.07265578955411911, -0.08591669797897339, 0.025317857041954994, 0.03303011879324913, 0.014063537120819092, 0.08514896035194397, -0.03282073512673378, -0.011193249374628067, 0.0013620780082419515, -0.03807275369763374, -0.031512096524238586, 0.0026652670931071043, 0.009893331676721573, -0.026504358276724815, 0.03081415221095085, -0.06176789477467537, 0.04194633290171623, -0.00875481404364109, -0.039643123745918274, 0.054265014827251434, 0.03898007795214653, -0.01513662375509739, 0.048402298241853714, -0.015293660573661327, -0.022683124989271164, 0.010093990713357925, 0.012362303212285042, 0.015311108902096748, 0.0004302159941289574, -0.03013365902006626, 0.004320699255913496, -0.014909792691469193, -0.06305908411741257, -0.07502879947423935, 0.004619505722075701, -0.02983703278005123, 0.012868311256170273, 0.0467621348798275, 0.022543536499142647, 0.002233415376394987, 0.00873300340026617, 0.04358649626374245, -0.060302212834358215, -0.07363291084766388, 0.03894517943263054, 0.015503043308854103, 0.007075389847159386, -0.07454023510217667, 0.03332674503326416, 0.0115858418866992, 0.0038866661489009857, 0.01798946224153042, -0.010050369426608086, -0.013243455439805984, 0.050007566809654236, -0.009169217199087143, 0.0022006994113326073, -0.02142682857811451, 0.0165761299431324, -0.009422221221029758, 0.014674236997961998, -0.007734072860330343, 0.030587321147322655, 0.0034024687483906746, -0.03999209403991699, -0.009195390157401562, 0.0012355759972706437, -0.03423406928777695, 0.002573662204667926, -0.008091768249869347, -0.02359044924378395, -0.005849628709256649, -0.003568229964002967, 0.02367769181728363, 0.059359993785619736, 0.017649216577410698, 0.005461398512125015, 0.01047785859555006, 0.09024393558502197, -0.02414880320429802, -0.003910657949745655, 0.010599998757243156, 0.03932904824614525, -0.004205102566629648, -0.024968884885311127, 0.027097608894109726, 0.051892008632421494, -0.04020147770643234, -0.02175835147500038, 0.008131028153002262, -0.029191436246037483, -0.08731257915496826, -0.02899950183928013, -0.021199997514486313, -0.0518571138381958, 0.057370856404304504, -0.0007028497057035565, -0.03248921409249306, 0.05887143313884735, 0.001786296023055911, 0.08947620540857315, -0.06065118685364723, 0.012405924499034882, -0.009003455750644207, -0.002855020109564066, 0.015712425112724304, -0.06047670170664787, 0.08773134648799896, 0.042958348989486694, 0.0034875303972512484, 0.047250691801309586, -0.003718723775818944, 0.0437958799302578, -0.002014217898249626, -0.1016203984618187, 0.05129875987768173, 0.025370202958583832, -0.03720032423734665, 0.023450860753655434, 0.02622518129646778, 0.01853036880493164, -0.016419092193245888, 0.007193167693912983, -0.03454814478754997, 0.04798353463411331, 0.046657443046569824, 0.0022105141542851925, 0.002732880413532257, -0.02542254887521267, -0.01819884590804577, 0.0006145163788460195, 0.00016944184608291835, -0.02290995605289936, 0.006316377781331539, -0.008876953274011612, -0.014735306613147259, 0.03650238364934921, 0.02797003835439682, 0.0034569953568279743, -0.05238056927919388, 0.0058234562166035175, 0.01985645852982998, -0.02418369986116886, -0.008789710700511932, 0.02741168439388275, 0.004019711632281542, 0.02533530630171299, 0.006669710855931044, -0.010713414289057255, -0.07879768311977386, 0.029749790206551552, 0.03128526359796524, 0.03960822522640228, 0.022369051352143288, -0.002109094290062785, 0.07558715343475342, -0.0033413986675441265, 0.009081973694264889, -0.0395384319126606, -0.017448557540774345, 0.0031167485285550356, -0.022560983896255493, -0.05318320170044899, 0.04170205071568489, 0.022752918303012848, -0.005243291612714529, 0.019141066819429398, -0.02788279391825199, -0.0794956311583519, -0.02270057238638401, 0.019612178206443787, -0.02779555134475231, 0.03132016211748123, 0.001853909227065742, 0.04637826606631279, -0.03901497274637222, 0.060720980167388916, 0.002514773281291127, 0.013147488236427307, 0.0340072400867939, -0.05457908660173416, 0.040829624980688095, 0.04749497398734093, 0.03119802102446556, -0.007760245818644762, -0.023363618180155754, 0.010992591269314289, 0.004004443995654583, -0.06016262620687485, 0.03161678463220596, 0.05021694675087929, 0.0008211727254092693, -0.00017830244905781, -0.016698269173502922, 0.020135635510087013, 0.01644526608288288, 0.0020861930679529905, -0.007563949562609196, -0.011280491948127747, -0.03727011755108833, -0.044528719037771225, 0.022595882415771484, -0.011472426354885101, -0.02657415345311165, 0.0446334108710289, 0.039643123745918274, 0.02160131372511387, -0.021740902215242386, 0.007241151295602322, -0.0178498737514019, 0.03765398636460304, 0.012292508967220783, -0.059499580413103104, -0.052694644778966904, -0.010791933164000511, 0.0012846500612795353, -0.0227354709059, 0.04498238116502762, 0.03814254701137543, -0.0008686109795235097, -0.02015308290719986, -0.06777019798755646, -0.0420859195291996, -0.020938269793987274, -0.018704853951931, -0.06284970045089722, -0.02838880382478237, -0.03306501731276512, -0.032838184386491776, -0.03512394428253174, 0.0008942385902628303, -0.027237197384238243, -0.013758187182247639, 0.08026336133480072, 0.009282632730901241, -0.02542254887521267, -0.015633907169103622, 0.07558715343475342, -0.03077925555408001, -0.029645098373293877, 0.019455142319202423, -0.0025714810471981764, -0.04055044800043106, -0.03522863611578941, 0.009273908101022243, 0.02725464664399624, 0.027010366320610046, 0.05224098265171051, -0.01861761137843132, 0.0035813164431601763, 0.0008882406400516629, -0.0023620985448360443, 0.003805966582149267, -0.03545546904206276, -0.013243455439805984, -0.07698303461074829, 0.011559668928384781, 0.06442007422447205, 0.05042633041739464, -0.003945555072277784, -0.005788559094071388, -0.040620241314172745, -0.0282666627317667, 0.01798946224153042, 0.025352753698825836, -0.020257774740457535, -0.014848722144961357, -0.021583866328001022, 0.058557357639074326, -0.04599439725279808, 0.021269790828227997, -0.04913513734936714, 0.0425046868622303, -0.02503868006169796, 0.02160131372511387, 0.07551735639572144, 0.014744031243026257, -0.03323950245976448, 0.04048065468668938, 0.03852641582489014, -0.06825875490903854, 0.014168228954076767, 0.0178498737514019, 0.02048460580408573, 0.0022159668151289225, 0.025474892929196358, 0.035350777208805084, -0.007511604111641645, -0.007105925120413303, -0.008898763917386532, -0.06881710886955261, -0.009736294858157635, 0.0029444440733641386, 0.04212081804871559, -0.05217118561267853, 0.06222155690193176, -0.02202007919549942, -0.04362139478325844, 0.04285365715622902, 0.004837612621486187, -0.009631603956222534, 0.05649843066930771, -0.0531483069062233, 0.03814254701137543, 0.06606023758649826, 0.03077925555408001, -0.0006226953701116145, 0.14600953459739685, 0.019071273505687714, 0.03341398760676384, -0.014246746897697449, -0.07593612372875214, -0.07851850986480713, 0.024288391694426537, 0.017186829820275307, -0.007437447551637888, 0.050007566809654236, -0.07370270788669586, -0.003629300044849515, 0.0565333254635334, 0.03386764973402023 ]
43,189
fast_poisson_solver.solver
evaluate_network_pde
null
def evaluate_network_pde(self): self.x_pde.requires_grad = True self.y_pde.requires_grad = True self.H = self.model.h(self.x_pde, self.y_pde) self.DH = calculate_laplace(self.H, self.x_pde, self.y_pde).detach().to(self.precision) self.DHtDH = torch.matmul(self.DH.t(), self.DH) self.Dht = self.DH.t() self.x_pde.requires_grad = False self.y_pde.requires_grad = False self.H = self.H.detach()
(self)
[ 0.0018581795739009976, 0.021431075409054756, -0.005129136145114899, 0.026849238201975822, -0.0055260080844163895, 0.02420917898416519, -0.013286576606333256, -0.05007486417889595, -0.009335114620625973, 0.008420583792030811, -0.01416659727692604, -0.023311903700232506, 0.005271492525935173, 0.07440482825040817, 0.0031577188055962324, -0.029730873182415962, -0.017945505678653717, 0.009214327670633793, -0.025365283712744713, -0.055216941982507706, -0.036201607435941696, -0.0775798037648201, 0.0004869228578172624, 0.005789151415228844, -0.035407863557338715, -0.03302663564682007, 0.03678828850388527, -0.02344994619488716, -0.033958420157432556, 0.052214521914720535, -0.011431632563471794, 0.034924715757369995, -0.05414711311459541, 0.0037832234520465136, 0.051938436925411224, 0.016030168160796165, 0.052663158625364304, 0.0005931507330387831, -0.06056608259677887, 0.0046330466866493225, -0.04586457461118698, -0.060186468064785004, 0.013174417428672314, 0.03233642131090164, -0.03026578761637211, -0.020482035353779793, -0.03509726747870445, 0.034683141857385635, -0.017626283690333366, -0.03578748181462288, -0.01804903894662857, -0.0475555919110775, 0.036408670246601105, 0.046416740864515305, 0.004870306700468063, -0.0006055529811419547, 0.05787425860762596, 0.05915115028619766, -0.003981659188866615, -0.02077537402510643, 0.00389322591945529, -0.03357880190014839, -0.0094041358679533, -0.01741059310734272, -0.0036991038359701633, -0.003819890785962343, -0.034924715757369995, 0.021672649309039116, -0.0010682105785235763, 0.032681528478860855, -0.005327572114765644, 0.003356154775246978, 0.0027500626165419817, -0.010439453646540642, 0.07585427165031433, -0.027125323191285133, 0.03727143630385399, -0.02641785517334938, -0.003052030224353075, -0.026952769607305527, -0.007605270948261023, -0.0041283294558525085, -0.02101694978773594, 0.007756255101412535, 0.020309481769800186, -0.01692744344472885, 0.0564248152077198, 0.031922295689582825, -0.006060922052711248, 0.0022949541453272104, 0.051731374114751816, -0.022328350692987442, -0.0287473201751709, 0.00882608350366354, 0.03803066909313202, 0.03982521966099739, -0.028988894075155258, 0.0019444560166448355, -0.009447273798286915, -0.01190615352243185, 0.048936016857624054, 0.08158303052186966, 0.005055801477283239, 0.02769474871456623, 0.015581531450152397, -0.026193536818027496, 0.011716345325112343, 0.023070329800248146, -0.02305307425558567, -0.04158525913953781, -0.024122901260852814, 0.005146391689777374, -0.03872087970376015, 0.015943892300128937, 0.01428738422691822, -0.054423198103904724, -0.013545406050980091, -0.007717430591583252, -0.005249923560768366, 0.0425860658288002, -0.03482118621468544, 0.06405165046453476, -0.07716567814350128, -0.047210484743118286, -0.05732208862900734, -0.010715537704527378, 0.043966490775346756, -0.00453382870182395, 0.007924494333565235, -0.08241128921508789, 0.0262970682233572, 0.0401013046503067, 0.00988728366792202, 0.06184297427535057, -0.054216135293245316, -0.04579555243253708, 0.0244162417948246, -0.02301856316626072, 0.0676407516002655, 0.01689293421804905, -0.005513066425919533, 0.004840109962970018, 0.02225933037698269, 0.03551139682531357, 0.039687179028987885, 0.019964376464486122, -0.04106760025024414, 0.02750493958592415, 0.004095975775271654, 0.022345606237649918, 0.004507945850491524, -0.004404413979500532, 0.0550098791718483, -0.031922295689582825, 0.05456124246120453, -0.052456095814704895, -0.03473490849137306, 0.01458935160189867, -0.003727143630385399, -0.00633269315585494, -0.08213520050048828, -0.0212585236877203, 0.010905345901846886, 0.042448025196790695, -0.00035750813549384475, -0.03276780620217323, 0.038824412971735, -0.036926329135894775, 0.007833903655409813, 0.038686372339725494, 0.02029222622513771, -0.06729564815759659, -0.04865993186831474, 0.029230469837784767, -0.03042108379304409, -0.013554033823311329, 0.04510534182190895, -0.01865297369658947, 0.0046632434241473675, -0.018066292628645897, 0.002603392582386732, -0.0010757597628980875, 0.04023934528231621, -0.0050212908536195755, -0.00784253142774105, 0.03433803468942642, 0.02657315321266651, -0.045174360275268555, -0.00982689019292593, 0.0038824412040412426, -0.06864156574010849, -0.013200300745666027, -0.04852188751101494, 0.01464974507689476, 0.03678828850388527, 0.043966490775346756, 0.0376165434718132, 0.026831982657313347, 0.0009242367232218385, 0.004973838571459055, -0.015823105350136757, -0.009982188232243061, -0.01401129923760891, -0.0040787202306091785, -0.035925522446632385, -0.02405388094484806, -0.05476830527186394, 0.06632935255765915, 0.017030976712703705, 0.002855751197785139, 0.017583144828677177, 0.019343186169862747, 0.03554590791463852, 0.007488797884434462, 0.016099190339446068, -0.05176588520407677, 0.009076285175979137, 0.02557234652340412, 0.014088948257267475, -0.011802621185779572, -0.05928919091820717, -0.03487294912338257, 0.005297375377267599, 0.021845202893018723, -0.004451865795999765, -0.028126129880547523, -0.025917451828718185, 0.07309342920780182, -0.015831733122467995, -0.10656870156526566, 0.04979877918958664, 0.01364893838763237, -0.06605327129364014, 0.003304388839751482, 0.10118504613637924, -0.0040830341167747974, -0.08040967583656311, 0.021845202893018723, -0.0701945349574089, 0.03699535131454468, -0.034407056868076324, -0.051972948014736176, -0.01665135845541954, -0.03661573678255081, 0.014451309107244015, -0.0012402243446558714, 0.05335336923599243, -0.007812334690243006, -0.001101103494875133, 0.0401013046503067, -0.026970025151968002, -0.0463477224111557, -0.006923687178641558, 0.002851437544450164, -0.043655894696712494, -0.024468008428812027, 0.017160391435027122, 0.027763769030570984, 0.06460382044315338, -0.013381481170654297, 0.026590408757328987, -0.082618348300457, 0.004197350237518549, 0.03961815685033798, 0.020878907293081284, 0.010896718129515648, 0.006582894828170538, -0.0040787202306091785, -0.008662157692015171, -0.04189585521817207, 0.045657508075237274, 0.0023531909100711346, -0.02921321429312229, -0.03782360628247261, 0.017479613423347473, 0.013045002706348896, -0.006725251208990812, 0.05611421912908554, 0.02929949015378952, 0.02150009758770466, 0.04327628016471863, -0.09400684386491776, -0.0636720359325409, -0.004171467386186123, -0.07833904027938843, 0.008515488356351852, -0.007544877473264933, 0.0038026354741305113, 0.047935210168361664, 0.002948498586192727, -0.029920680448412895, 0.019998885691165924, 0.028108874335885048, 0.01956750452518463, 0.054733794182538986, -0.01929141953587532, 0.032163869589567184, -0.02317386120557785, 0.014330522157251835, 0.033440761268138885, 0.024761347100138664, -0.0086060781031847, 0.016841167584061623, -0.00943001825362444, -0.04206840693950653, -0.008601764217019081, 0.022449137642979622, 0.022190308198332787, 0.05335336923599243, -0.05532047525048256, 0.005219726823270321, -0.0022518159821629524, -0.02702179178595543, 0.05335336923599243, 0.021103225648403168, -0.019360439851880074, -0.012881077826023102, 0.005202471278607845, 0.004369903355836868, 0.028126129880547523, -0.0012186551466584206, 0.04058445245027542, 0.004637360572814941, 0.10083994269371033, -0.03675377741456032, -0.02602098509669304, 0.061014723032712936, 0.009688847698271275, 0.024191923439502716, 0.013226183131337166, -0.049971334636211395, -0.00029253115644678473, 0.014839553274214268, 0.02329464815557003, -0.004788344260305166, 0.0030628147069364786, 0.026245303452014923, -0.021431075409054756, 0.017341570928692818, -0.018187081441283226, 0.022966796532273293, 0.06422420591115952, -0.053940050303936005, -0.004477749112993479, 0.051696863025426865, -0.028126129880547523, -0.0009161483030766249, 0.023035818710923195, 0.02289777621626854, 0.02854025736451149, -0.05549302697181702, 0.04727950692176819, -0.0032720351591706276, 0.0652250126004219, 0.05214549973607063, 0.012346163392066956, -0.03823773190379143, -0.027332386001944542, 0.006052294746041298, 0.014201107434928417, 0.040446411818265915, -0.004326764959841967, -0.0488324835896492, 0.03789262846112251, -0.0287473201751709, -0.061739444732666016, 0.006889176554977894, 0.014399543404579163, 0.04534691572189331, 0.009982188232243061, -0.05390553921461105, -0.04189585521817207, -0.023674264550209045, -0.0100080706179142, -0.012294397689402103, -0.008601764217019081, 0.02005065232515335, 0.05166235193610191, 0.06846901029348373, 0.04189585521817207, -0.00575464079156518, -0.013683448545634747, -0.033216442912817, -0.01773844286799431, 0.020792629569768906, -0.00964570976793766, 0.025951962918043137, 0.03290584683418274, 0.04931563138961792, -0.04534691572189331, 0.05183490365743637, -0.024088392034173012, 0.01974005624651909, -0.00031598759233020246, 0.013614427298307419, 0.0337858684360981, 0.027712002396583557, 0.043448831886053085, -0.07654448598623276, -0.021638140082359314, -0.009136678650975227, -0.0306971687823534, 0.0005190069205127656, 0.06957335025072098, -0.018877292051911354, -0.09138403832912445, 0.045450445264577866, 0.04662380740046501, 0.032198380678892136, 0.023070329800248146, 0.020240461453795433, 0.04203389957547188, -0.01458935160189867, 0.022638946771621704, -0.011026132851839066, -0.0212930329144001, 0.027090812101960182, -0.008226461708545685, 0.03685731068253517, 0.03923853859305382, 0.02281150035560131, -0.012975981459021568, -0.008468035608530045, -0.028005342930555344, -0.021448330953717232, -0.019394950941205025, -0.035200800746679306, 0.035649437457323074, -0.02365700900554657, 0.026072749868035316, -0.030006958171725273, 0.002437310293316841, 0.016590965911746025, -0.011716345325112343, 0.027366897091269493, 0.015132893808186054, 0.05704600363969803, 0.014727394096553326, 0.025762155652046204, -0.04189585521817207, -0.013398736715316772, 0.00744565948843956, 0.018963567912578583, -0.031646210700273514, -0.03599454462528229, 0.005832289811223745, -0.020102418959140778, -0.07029806822538376, -0.06701956689357758, 0.0019131808076053858, 0.040480922907590866, 0.03114580735564232, 0.0949731394648552, -0.00016311646322719753, -0.04106760025024414, 0.024519773200154305, -0.03785811737179756, -0.021431075409054756, -0.016314880922436714, 0.035287078469991684, 0.007833903655409813, 0.009499039500951767, -0.06467284262180328, 0.059703320264816284, -0.029592830687761307, 0.00575464079156518, 0.02862653322517872, 0.0009474235121160746, -0.020326737314462662, 0.002370445989072323, 0.0006157983443699777, -0.05901310592889786, -0.015434861183166504, -0.024951156228780746, -0.044173553586006165, 0.015961147844791412, 0.0043008821085095406, 0.028160640969872475, 0.032526228576898575, -0.034924715757369995, -0.033440761268138885, -0.07695861160755157, -0.024675071239471436, -0.003584787482395768, 0.042206451296806335, 0.0041649965569376945, -0.024278199300169945, 0.04275862127542496, 0.01050847489386797, -0.0376165434718132, -0.03454510122537613, -0.07060866802930832, 0.03318193182349205, -0.02156911790370941, -0.02653864398598671, -0.014960340224206448, 0.03323369845747948, -0.05525145307183266, 0.06563913822174072, -0.050972141325473785, 0.010197878815233707, 0.03702986240386963, 0.032957613468170166, -0.014563468284904957, 0.030507361516356468, 0.02420917898416519, 0.021793436259031296, 0.06135982647538185, -0.02645236626267433, 0.08047869056463242, 0.02453702874481678, -0.03796164691448212, 0.042724110186100006, 0.026521388441324234, 0.009507667273283005, 0.03017950989305973, 0.022518159821629524, 0.03789262846112251, -0.004982466343790293, -0.0015874870587140322, 0.003800478531047702, 0.06984943151473999, 0.03451059013605118, 0.011474770493805408, -0.04382845014333725, 0.1425977498292923, -0.04631321132183075, 0.006177395582199097, -0.006259358022361994, 0.007743313442915678, 0.02726336568593979, -0.03254348412156105, 0.04434610903263092, 0.023553477600216866, -0.024243688210844994, 0.0074327182956039906, -0.018842780962586403, -0.044898275285959244, -0.11947566270828247, -0.04054994136095047, 0.02177618257701397, -0.03354429453611374, -0.011310845613479614, -0.013881884515285492, 0.002253972925245762, 0.012622248381376266, 0.020326737314462662, 0.05304277688264847, -0.03014500066637993, 0.011026132851839066, 0.01801452785730362, 0.008778630755841732, -0.01006846409291029, -0.0374784991145134, 0.10332470387220383, 0.03758203238248825, -0.013036374934017658, 0.01018925104290247, -0.0019412206020206213, 0.021103225648403168, -0.05390553921461105, -0.12410008162260056, 0.01633213646709919, 0.03927304968237877, -0.009619826450943947, -0.016358019784092903, -0.02350171096622944, 0.0003176052705384791, -0.03709888458251953, -0.027556706219911575, -0.00004728355270344764, 0.02645236626267433, 0.014615234918892384, 0.003334585577249527, 0.023967605084180832, -0.03376861289143562, 0.006337007042020559, -0.03789262846112251, 0.0013167946599423885, -0.026883749291300774, 0.003854401409626007, -0.0489015057682991, 0.004067935515195131, -0.0021633824799209833, -0.011768111027777195, 0.03451059013605118, -0.016720380634069443, 0.019636524841189384, 0.08234226703643799, -0.040411900728940964, -0.06111825257539749, -0.016953326761722565, -0.0015141521580517292, 0.013364225625991821, -0.02662491984665394, 0.052421584725379944, -0.018031783401966095, 0.05404358357191086, 0.039963264018297195, 0.05111018195748329, -0.04237900301814079, 0.013571289367973804, 0.04161977022886276, -0.0487634614109993, -0.007682919967919588, -0.08834710717201233, -0.021327544003725052, 0.027073556557297707, -0.02156911790370941, -0.07109181582927704, 0.07240321487188339, -0.013364225625991821, 0.006168767809867859, -0.022431883960962296, 0.0037163591478019953, -0.062498677521944046, 0.008593136444687843, -0.0313011035323143, 0.017505496740341187, 0.03934207186102867, 0.016478806734085083, 0.02469232678413391, 0.022587180137634277, 0.008757062256336212, 0.026918260380625725, -0.010197878815233707, 0.017186272889375687, -0.10857031494379044, 0.023156605660915375, 0.026366090402007103, 0.006707995664328337, -0.013303832150995731, -0.07709665596485138, 0.004913445096462965, 0.01741921901702881, -0.02657315321266651, 0.06978040933609009, -0.01613369956612587, -0.01190615352243185, -0.06453479826450348, -0.07002198696136475, 0.026210792362689972, -0.003209484741091728, -0.025313517078757286, 0.0004410884575918317, 0.0166082214564085, 0.008998636156320572, -0.03482118621468544, 0.03965266793966293, 0.01163006853312254, -0.013881884515285492, 0.012130471877753735, 0.032577995210886, 0.004443238489329815, -0.01956750452518463, -0.0212930329144001, -0.019602015614509583, 0.03433803468942642, 0.01974005624651909, -0.0489015057682991, -0.0000344768886861857, -0.004818540997803211, 0.004464807454496622, -0.041412707418203354, 0.013096768409013748, 0.0044108848087489605, 0.007122122682631016, 0.03221563622355461, -0.061221785843372345, 0.01319167297333479, -0.05752915143966675, -0.02080988511443138, -0.007777824066579342, -0.010232389904558659, 0.012121844105422497, -0.08461996167898178, -0.0313701257109642, -0.05625225976109505, -0.018307868391275406, 0.01804903894662857, 0.06163591146469116, 0.040653474628925323, -0.02854025736451149, -0.011457515880465508, 0.039721690118312836, 0.039963264018297195, 0.028039854019880295, -0.024243688210844994, 0.007639781571924686, -0.004417355637997389, -0.03437254577875137, -0.02477860264480114, 0.03865186125040054, -0.02826417237520218, 0.03989424183964729, -0.07281734049320221, 0.016867050901055336, -0.021707160398364067, -0.04079151526093483, -0.012242631986737251, -0.0538020096719265, 0.008614705875515938, -0.04603712633252144, 0.009438646025955677, -0.006811527535319328, 0.0676407516002655, -0.014563468284904957, 0.03102502040565014, -0.037443988025188446, -0.031525421887636185, -0.013864628970623016, -0.0306971687823534, 0.00016379049338866025, -0.047452058643102646, 0.05086860805749893, 0.052214521914720535, -0.022362861782312393, -0.005607970990240574, -0.007260165177285671, 0.006173081696033478, 0.005664050579071045, 0.0375475212931633, 0.04741755127906799, 0.007178202737122774, -0.03254348412156105, -0.0072472235187888145, -0.021034203469753265, -0.08834710717201233, 0.0046934401616454124, 0.0054095350205898285, -0.023122094571590424, 0.07585427165031433, 0.03578748181462288, 0.031111296266317368, -0.02717708982527256, -0.022880520671606064, 0.037202414125204086, 0.049212101846933365, -0.03872087970376015, 0.007441345602273941, -0.013157161884009838, -0.026003729552030563, 0.029351256787776947, -0.03999777138233185, 0.05815034359693527, 0.05742562189698219, -0.027867300435900688, -0.039204031229019165, 0.0016360175795853138, -0.05953076481819153, 0.04282763972878456, 0.06591522693634033, 0.020223205909132957, -0.017099997028708458, 0.06460382044315338, -0.03105952963232994, 0.020085163414478302, -0.023846816271543503, -0.0613943375647068, -0.11885447055101395, -0.03299212455749512, 0.012881077826023102, -0.006151512730866671, 0.04990231245756149, -0.024675071239471436, 0.01358854491263628, 0.03699535131454468, 0.030610892921686172 ]
43,190
fast_poisson_solver.solver
load_data
null
def load_data(self): def tuple_constructor(loader, node): return tuple(loader.construct_sequence(node)) yaml.SafeLoader.add_constructor('tag:yaml.org,2002:python/tuple', tuple_constructor) path = pkg_resources.resource_stream(__name__, os.path.join(self.path, 'infos.yaml')) self.infos = yaml.safe_load(path) if 'out' not in self.infos['model']: self.infos['model']['out'] = self.infos['data_utils']['num_cases'] if 'width' not in self.infos['model']: if 'network_width' in self.infos['model']: self.infos['model']['width'] = self.infos['model']['network_width'] if 'depth' not in self.infos['model']: if 'network_depth' in self.infos['model']: self.infos['model']['depth'] = self.infos['model']['network_depth'] - 1 # self.infos['model']['width'] = 800 # self.infos['model']['depth'] = 8
(self)
[ 0.017218517139554024, -0.0011490490287542343, 0.0003891384694725275, -0.0013637065421789885, 0.016621608287096024, 0.004490589257329702, 0.018752112984657288, -0.011506560258567333, -0.03250855952501297, 0.020276525989174843, -0.013949294574558735, -0.011322896927595139, -0.010312743484973907, 0.03555738553404808, 0.00910056009888649, 0.020992815494537354, -0.02543748915195465, 0.02933116815984249, -0.02214989997446537, 0.01247998047620058, -0.04731189087033272, -0.025823183357715607, -0.03148004040122032, 0.03030458837747574, 0.005601757206022739, 0.0020398201886564493, -0.00653844466432929, -0.01658487506210804, 0.044042669236660004, -0.02034999057650566, -0.10351312905550003, 0.013802362605929375, -0.023802876472473145, 0.003801848506554961, -0.017457280308008194, -0.010496407747268677, -0.016557324677705765, -0.026319077238440514, -0.0600949190557003, 0.03219633176922798, 0.04150810465216637, -0.04698129743337631, -0.015427790582180023, -0.006970055401325226, -0.0035860431380569935, 0.002605735557153821, 0.035116590559482574, -0.010514774359762669, -0.026300709694623947, -0.04988319054245949, -0.007603697013109922, -0.0020512992050498724, -0.011662675067782402, 0.049001600593328476, -0.011065766215324402, 0.029129138216376305, -0.011726957745850086, 0.06784554570913315, 0.06413552910089493, 0.028357747942209244, 0.03790828585624695, 0.025970114395022392, 0.01247998047620058, -0.026319077238440514, -0.02268252521753311, 0.01451865304261446, -0.0037214953918009996, -0.03287588804960251, 0.003891384694725275, 0.00326233496889472, 0.012131018564105034, -0.0004660478443838656, 0.01992756314575672, 0.04881793633103371, 0.05568697676062584, -0.054989054799079895, -0.06233562156558037, -0.03335341438651085, 0.037871554493904114, 0.012415698729455471, -0.03956126421689987, -0.03754095733165741, -0.022664159536361694, 0.014132958836853504, 0.00778276938945055, -0.02251722849905491, 0.06854347139596939, -0.0058129713870584965, 0.0061252000741660595, 0.04698129743337631, -0.058882735669612885, 0.039597995579242706, -0.019248005002737045, 0.039671462029218674, 0.018182752653956413, 0.022260097786784172, -0.011883072555065155, -0.01910107396543026, 0.02047855593264103, -0.0019089595880359411, -0.011965720914304256, -0.05491558834910393, -0.03436356782913208, -0.013379935175180435, -0.05689916014671326, -0.05263815447688103, 0.030984146520495415, 0.040920376777648926, -0.03805521875619888, -0.017383813858032227, -0.05116884037852287, 0.000719734001904726, -0.013829912059009075, 0.07357586920261383, -0.000939557037781924, -0.0693148598074913, 0.013315652497112751, -0.02729249745607376, -0.0368797667324543, 0.02484976314008236, -0.049479130655527115, 0.04657723382115364, -0.062115225940942764, 0.011322896927595139, -0.008797514252364635, 0.0207724180072546, 0.011185148730874062, -0.04125097393989563, 0.024574266746640205, -0.06545791029930115, 0.06553138047456741, -0.03410643711686134, 0.008783739060163498, 0.0022326677571982145, 0.02964339777827263, -0.09006891399621964, 0.0940360575914383, 0.008939853869378567, -0.01963370107114315, 0.04327128082513809, -0.016502225771546364, 0.007612880319356918, 0.007121578324586153, -0.004270192235708237, -0.0097342012450099, -0.030212756246328354, 0.017402181401848793, -0.0206622201949358, -0.02956993319094181, 0.003124586772173643, 0.056972626596689224, -0.03478599339723587, -0.02472119778394699, 0.0057716467417776585, 0.02275599166750908, -0.042536623775959015, -0.0025322698056697845, -0.04018572345376015, 0.017989905551075935, -0.02922097034752369, -0.05050764977931976, 0.002511607715860009, -0.00906841829419136, 0.022058067843317986, -0.05050764977931976, 0.022535594180226326, -0.021984601393342018, -0.05980105698108673, 0.028339382261037827, 0.005183921195566654, -0.022058067843317986, -0.06189482659101486, -0.052711617201566696, 0.05598084256052971, 0.0015932867536321282, -0.004940566141158342, -0.00026774793514050543, -0.015666553750634193, 0.06472325325012207, 0.02909240499138832, -0.04018572345376015, 0.01867864653468132, -0.03456559777259827, 0.01580430194735527, -0.02023979276418686, -0.0006359372055158019, 0.031039245426654816, 0.013278920203447342, 0.04734862595796585, -0.0002400548110017553, 0.04150810465216637, 0.016667524352669716, -0.03041478805243969, 0.0310759786516428, 0.041655033826828, 0.0195235013961792, 0.001229402027092874, -0.002966176485642791, 0.031167810782790184, -0.008163872174918652, 0.02339881658554077, -0.04933219775557518, 0.0835304707288742, -0.019064340740442276, -0.03867967426776886, 0.004743127152323723, -0.03258202597498894, 0.03755932301282883, -0.06880059838294983, 0.02132341079413891, 0.02365594543516636, -0.013912561349570751, 0.015620638616383076, -0.020037760958075523, 0.048340409994125366, -0.07453092187643051, -0.03693486750125885, -0.00955053698271513, -0.036971598863601685, -0.03384930640459061, 0.08668949455022812, 0.016557324677705765, -0.028963841497898102, -0.015133928507566452, -0.04066324979066849, -0.016199180856347084, 0.03513495624065399, -0.02525382488965988, -0.027329228818416595, 0.028890375047922134, 0.009008727967739105, -0.033077917993068695, -0.022480495274066925, -0.02293965592980385, 0.010083163157105446, 0.024170204997062683, -0.0077644032426178455, 0.025161992758512497, -0.0019296217942610383, -0.023986540734767914, -0.0030717833433300257, -0.04727515950798988, -0.02251722849905491, -0.09829706698656082, -0.00017735072469804436, -0.06696395576000214, 0.014683950692415237, -0.03059845231473446, -0.015877768397331238, -0.018421517685055733, 0.06468652188777924, -0.005459417589008808, -0.003400083165615797, 0.04400593787431717, -0.005849704146385193, -0.0665966272354126, 0.024978328496217728, -0.07199635356664658, 0.08367739617824554, -0.09036277234554291, 0.023490648716688156, -0.015730837360024452, -0.011276980862021446, 0.10681908577680588, -0.007948067039251328, 0.015005363151431084, -0.01659405790269375, -0.03989185765385628, 0.005418093409389257, -0.05160963535308838, 0.022425396367907524, 0.07184942811727524, -0.0016300195129588246, -0.010909652337431908, -0.014463554136455059, -0.01302179042249918, 0.033794209361076355, -0.04764248803257942, 0.06266621500253677, 0.04793635010719299, 0.03722872957587242, -0.03252692520618439, -0.01777869276702404, -0.05539311468601227, 0.05539311468601227, -0.06938832253217697, -0.053740136325359344, 0.026025213301181793, -0.0390470027923584, -0.01591450162231922, -0.00015338828961830586, 0.014573751948773861, -0.04874447360634804, -0.029588298872113228, 0.011809606105089188, -0.015528806485235691, -0.06971891969442368, 0.08632216602563858, 0.04466712847352028, -0.015960417687892914, -0.002163793658837676, -0.07691855728626251, 0.08470591902732849, -0.0028307242318987846, -0.017383813858032227, 0.012911591678857803, 0.014325805939733982, -0.022370297461748123, -0.028302649036049843, -0.0017838382627815008, 0.05873580276966095, 0.007158311083912849, 0.10512937605381012, 0.07361260056495667, -0.027641458436846733, -0.023013120517134666, 0.0005598887801170349, 0.05844194069504738, 0.02453753352165222, 0.03574104979634285, -0.025823183357715607, 0.0057716467417776585, -0.012654461897909641, -0.017264433205127716, 0.08110610395669937, 0.010606606490910053, 0.1243039146065712, -0.02352738007903099, 0.03875314071774483, 0.0027388921007514, -0.03401460498571396, -0.03443703427910805, 0.024041641503572464, 0.054511528462171555, 0.016961386427283287, 0.05858887359499931, -0.05396053567528725, -0.009890316054224968, 0.041104041039943695, -0.03566758334636688, 0.033445246517658234, -0.030010726302862167, -0.034749262034893036, -0.03173717111349106, 0.06990258395671844, -0.04418960213661194, 0.027439428493380547, -0.04305088147521019, -0.019431669265031815, 0.06534771621227264, -0.04418960213661194, 0.009279632940888405, 0.003900568000972271, 0.034455399960279465, -0.0014130662893876433, -0.035961445420980453, -0.002112138085067272, -0.02593338117003441, 0.030378054827451706, -0.013701347634196281, 0.05598084256052971, 0.018155204132199287, -0.03945106640458107, 0.055356383323669434, -0.007695529144257307, -0.04646703600883484, -0.017337897792458534, 0.03728382661938667, 0.05153616890311241, 0.03812868148088455, 0.019909197464585304, -0.023306984454393387, -0.018880676478147507, -0.009688285179436207, 0.08051837235689163, 0.006896589882671833, -0.012700377963483334, 0.03706343099474907, -0.046062976121902466, -0.04980972409248352, -0.041104041039943695, 0.05440133064985275, 0.004570942372083664, -0.0155379893258214, 0.042352959513664246, -0.026484373956918716, -0.013352385722100735, 0.024629365652799606, -0.04058978334069252, -0.015253310091793537, 0.021819304674863815, 0.02622724510729313, 0.0004459595656953752, 0.012737110257148743, -0.0008580560679547489, -0.0010623824782669544, 0.02461099997162819, 0.03153513744473457, 0.023215152323246002, -0.0035952262114733458, -0.0030143882613629103, -0.08617523312568665, -0.007300651166588068, 0.01472986675798893, -0.009431155398488045, -0.01766849309206009, 0.015391058288514614, -0.002226928249001503, -0.019725533202290535, 0.011130048893392086, 0.08250194787979126, 0.02591501548886299, 0.03436356782913208, -0.00398321682587266, 0.0025483404751867056, 0.00906841829419136, 0.0414346382021904, 0.042169295251369476, 0.022241732105612755, -0.024390602484345436, 0.01430743932723999, 0.030322955921292305, 0.045401785522699356, 0.023251885548233986, 0.0026585389859974384, 0.027072099968791008, -0.04242642596364021, -0.008990361355245113, -0.02101118117570877, 0.007401666138321161, -0.05991125479340553, -0.006253765430301428, 0.01968879997730255, -0.06005818396806717, 0.028284283354878426, -0.0482669472694397, -0.024445701390504837, -0.044520195573568344, 0.014188057743012905, 0.021341776475310326, 0.014913531020283699, 0.016033882275223732, 0.09609309583902359, 0.005973677150905132, -0.07515537738800049, 0.000588873284868896, -0.06160096451640129, 0.03563085198402405, -0.007305242586880922, -0.01742054708302021, -0.03689813241362572, -0.0009665327379480004, 0.05197696015238762, -0.047679219394922256, -0.011515744030475616, -0.043675340712070465, 0.040442850440740585, -0.054805390536785126, 0.016125714406371117, -0.005748688708990812, -0.0074980901554226875, -0.09183208644390106, 0.01633692905306816, -0.028890375047922134, 0.02861487865447998, -0.06439266353845596, 0.034822728484869, 0.007185861002653837, -0.05443806201219559, -0.04308761656284332, -0.00221544923260808, 0.029055673629045486, 0.03311464935541153, 0.005698181223124266, -0.029202604666352272, -0.004531913436949253, 0.03454723209142685, -0.0031865735072642565, -0.024684464558959007, -0.07511864602565765, 0.0783144012093544, -0.03138820827007294, 0.03197593241930008, 0.017457280308008194, -0.04297741875052452, -0.013793179765343666, 0.0015875472454354167, -0.027090465649962425, -0.004949749447405338, -0.015556355938315392, -0.05006685480475426, 0.019854096695780754, -0.032784055918455124, -0.0194684024900198, 0.010138262994587421, 0.02293965592980385, 0.03094741329550743, 0.0015071941306814551, -0.004417123273015022, -0.04161830246448517, -0.0015416311798617244, -0.02747615985572338, 0.034143172204494476, -0.06593544036149979, -0.002977655502036214, 0.08095917105674744, 0.01970716565847397, -0.02681496925652027, 0.029110772535204887, -0.01879802905023098, -0.035061489790678024, -0.024684464558959007, 0.0218560378998518, -0.0008752745925448835, 0.027329228818416595, 0.010432125069200993, -0.005711955949664116, 0.07328200340270996, -0.04701802879571915, 0.027035366743803024, 0.02980869635939598, -0.041471369564533234, 0.050140321254730225, 0.024978328496217728, -0.009343914687633514, 0.0031314741354435682, -0.04011225700378418, -0.027567991986870766, -0.030249489471316338, 0.04639356955885887, 0.008154689334332943, -0.08073877543210983, 0.020698953419923782, 0.007218002341687679, 0.01813683658838272, -0.007856234908103943, 0.05675223097205162, 0.005468600895255804, -0.024464068934321404, -0.040920376777648926, 0.016364477574825287, -0.05825827643275261, 0.024280404672026634, 0.0040888236835598946, 0.04422633349895477, -0.019266372546553612, -0.025235457345843315, 0.0963134914636612, 0.009412788785994053, 0.0039694420993328094, -0.035226788371801376, -0.025455854833126068, -0.0161073487251997, -0.03390440717339516, 0.040920376777648926, -0.0160522498190403, 0.023876342922449112, -0.027990421280264854, 0.030488252639770508, 0.027623092755675316, -0.005399726796895266, -0.025657884776592255, -0.05598084256052971, 0.03234326094388962, 0.03287588804960251, 0.012323866598308086, -0.058515407145023346, 0.018825577571988106, -0.07633083313703537, -0.003753636498004198, 0.03772462159395218, 0.006487937178462744, 0.04407940059900284, -0.002612622920423746, -0.0027664415538311005, 0.008246521465480328, -0.010560690425336361, 0.09410952031612396, 0.027825122699141502, -0.02866997756063938, 0.014087042771279812, 0.053483009338378906, 0.05506252124905586, 0.029863795265555382, 0.028596512973308563, -0.03566758334636688, -0.03574104979634285, 0.037320561707019806, 0.040810178965330124, 0.035226788371801376, 0.02424367144703865, -0.011772873811423779, -0.027274129912257195, 0.03381257504224777, 0.02479466423392296, -0.04088364541530609, 0.0218560378998518, -0.05620123818516731, 0.027457794174551964, -0.016979753971099854, -0.04749555513262749, 0.0054777842015028, -0.03507985919713974, -0.0020880321972072124, -0.03276569023728371, -0.004547984339296818, 0.020496921613812447, 0.04569564759731293, -0.03406970575451851, 0.04297741875052452, 0.044924259185791016, -0.037798088043928146, 0.01604306511580944, -0.05932353064417839, 0.008150097914040089, -0.03089231438934803, 0.007475132122635841, -0.020405089482665062, 0.025768084451556206, -0.04378553852438927, 0.017448097467422485, -0.008806697092950344, 0.01843988336622715, 0.02317841909825802, -0.037155263125896454, 0.03963473066687584, -0.01766849309206009, -0.029827062040567398, -0.014665584079921246, -0.05256468802690506, 0.0625927522778511, -0.05113210529088974, 0.03574104979634285, 0.01652059331536293, -0.01304933987557888, 0.015189027413725853, 0.062225423753261566, 0.038642942905426025, 0.04437326639890671, 0.005684406030923128, 0.03849601000547409, -0.037871554493904114, -0.016511408612132072, 0.0004904407542198896, -0.0016277238028123975, 0.008370494470000267, -0.009780117310583591, -0.00204211613163352, 0.005500742234289646, 0.029349535703659058, 0.002608031267300248, -0.006846082396805286, -0.016731806099414825, 0.025455854833126068, 0.013159538619220257, 0.01783379167318344, 0.04856080934405327, -0.0016988936113193631, -0.04209582880139351, -0.022241732105612755, -0.07511864602565765, 0.0319942981004715, -0.0010267975740134716, -0.00006969911919441074, 0.0785348042845726, 0.008085815235972404, -0.015069645829498768, 0.03941433131694794, 0.03124127723276615, 0.002264808863401413, -0.03357381001114845, 0.015400241129100323, 0.041104041039943695, -0.0068277157843112946, 0.03028622269630432, -0.04951586201786995, -0.02453753352165222, -0.008636808022856712, -0.00652466993778944, 0.02281109057366848, 0.03395950794219971, 0.05506252124905586, 0.02789858914911747, -0.031112711876630783, -0.013554416596889496, 0.04676089808344841, -0.00453420914709568, -0.007057296112179756, 0.023325350135564804, 0.011295346543192863, -0.02161727286875248, 0.05230755731463432, 0.025180358439683914, -0.020552020519971848, -0.024574266746640205, -0.08191422373056412, 0.007181269116699696, -0.027145564556121826, 0.027641458436846733, -0.04646703600883484, 0.00856334250420332, -0.057266488671302795, -0.024445701390504837, -0.01825621910393238, -0.008572525344789028, 0.00034867494832724333, -0.047091495245695114, 0.023270251229405403, -0.015069645829498768, -0.013278920203447342, 0.06685376167297363, 0.08375086635351181, -0.02754962630569935, -0.06358453631401062, -0.016538958996534348, 0.026484373956918716, -0.012773843482136726, 0.03941433131694794, -0.055466581135988235, -0.006235398817807436, -0.008104181848466396, 0.020864250138401985, 0.030249489471316338, 0.011286163702607155, -0.026686403900384903, 0.07941638678312302, 0.010606606490910053, -0.0693148598074913, 0.03733892738819122, 0.00019284737936686724, 0.013159538619220257, -0.0030189799144864082, -0.031112711876630783, 0.021470341831445694, -0.010560690425336361, -0.018843945115804672, 0.008760781027376652, 0.022058067843317986, 0.03495129197835922, -0.015574722550809383, 0.010661705397069454, -0.0020180102437734604, 0.0010044134687632322, 0.0686536654829979, -0.05961739271879196, -0.026539472863078117, 0.0665966272354126, 0.00921535026282072, -0.011414728127419949, 0.022609060630202293, -0.010018880479037762, 0.049552593380212784, -0.021819304674863815, 0.014233973808586597, -0.02394980937242508, -0.03695323318243027, 0.08272234350442886, -0.054621726274490356, 0.026484373956918716, -0.06718435883522034, 0.025731351226568222, -0.05344627425074577, 0.012819759547710419, 0.05234428867697716, 0.045401785522699356, 0.032435093075037, 0.021654006093740463, 0.04944239556789398 ]
43,191
fast_poisson_solver.solver
load_precomputed_data
null
def load_precomputed_data(self): with open(self.precompute_file, 'rb') as f: self.LHSs, self.RHSs, self.H, self.DH, self.Dht, self.DHtDH, self.H_bc, self.Ht_bc, self.Ht_bc_ones, self.NdO, self.NO = format_input( pickle.load(f), self.precision, self.device, reshape=False) if self.verbose > 0: print('Pre-Computed data_utils loaded from storage.')
(self)
[ -0.021582433953881264, 0.02844635583460331, -0.018805021420121193, 0.0053115785121917725, 0.02160012349486351, -0.0005343089578673244, -0.02420063130557537, -0.04893197491765022, 0.025032084435224533, -0.026889588683843613, 0.025474347174167633, -0.00691257044672966, 0.0008187393541447818, 0.023245342075824738, -0.037610042840242386, -0.01882271282374859, -0.04712754487991333, 0.03467341884970665, -0.048436641693115234, -0.038706857711076736, -0.0366547554731369, -0.013612854294478893, -0.0027132832910865545, 0.03506260737776756, 0.01850428245961666, -0.04995802789926529, 0.018398139625787735, -0.029083212837576866, -0.007018713746219873, 0.029543166980147362, 0.010915050283074379, 0.08675430715084076, -0.05392070114612579, -0.006156300660222769, 0.003102474845945835, -0.02650039829313755, 0.07606923580169678, -0.008221669122576714, -0.051833219826221466, 0.02924242801964283, -0.0005414957413449883, -0.08540982753038406, 0.0379992350935936, 0.00453761825338006, -0.050736408680677414, -0.015169620513916016, -0.0017944819992408156, -0.023510700091719627, 0.04500468075275421, -0.01620451547205448, 0.005798067897558212, -0.005837871227413416, 0.010083596222102642, 0.03113531321287155, -0.024837488308548927, -0.00790766254067421, 0.04334177076816559, 0.037786949425935745, -0.007792673539370298, 0.0005157892010174692, 0.011233479715883732, -0.012277220375835896, -0.007814787328243256, -0.015603037551045418, 0.015125393867492676, -0.05155017226934433, -0.008097834885120392, 0.0022234772332012653, -0.00619610445573926, -0.0015302299289032817, -0.030852265655994415, -0.015125393867492676, 0.031029170379042625, 0.00014843451208435, 0.02963162027299404, 0.010101286694407463, -0.03263900801539421, -0.08307468146085739, -0.01696520857512951, 0.027614900842308998, 0.0019172100583091378, -0.0209809560328722, -0.045959968119859695, -0.01283447165042162, -0.011180408298969269, -0.08385305851697922, 0.0817302018404007, 0.03246210142970085, 0.010216275230050087, 0.018840402364730835, -0.03021540679037571, 0.04691525548696518, -0.03923757001757622, 0.022679245099425316, 0.05013493075966835, -0.009216760285198689, -0.0019990287255495787, 0.006965641863644123, 0.008433954790234566, -0.006434926297515631, 0.017416317015886307, -0.011817267164587975, 0.018079711124300957, 0.017416317015886307, 0.003856533206999302, -0.02526206150650978, 0.04309410601854324, 0.017062505707144737, -0.008495871908962727, -0.05604356527328491, -0.026394255459308624, -0.013568628579378128, -0.03923757001757622, 0.028464045375585556, 0.027685662731528282, -0.08640049397945404, -0.0099420715123415, 0.021493980661034584, 0.007872280664741993, 0.036371707916259766, -0.05151479318737984, 0.05416836962103844, -0.06322591751813889, 0.04733983054757118, -0.0503472164273262, -0.05494675412774086, 0.07203579694032669, -0.003838842734694481, 0.01921190321445465, -0.12998993694782257, 0.08378230035305023, -0.014293939806520939, -0.03700856491923332, 0.013135210610926151, -0.024059105664491653, -0.048790451139211655, 0.09602414071559906, 0.008938134647905827, 0.044014010578393936, -0.015028095804154873, 0.06283672153949738, -0.005077179055660963, -0.012038398534059525, 0.021900862455368042, 0.009667868725955486, 0.0013013588031753898, 0.04627839848399162, 0.0018221235368400812, -0.037610042840242386, 0.020220262929797173, 0.036548614501953125, -0.03729161620140076, -0.03228519856929779, -0.05399146303534508, 0.014939643442630768, -0.05452217906713486, -0.027455685660243034, -0.07238960266113281, -0.0025208990555256605, -0.006337628699839115, -0.021847791969776154, 0.02375836670398712, 0.01708904094994068, -0.013108674436807632, -0.04603073000907898, 0.028021782636642456, -0.01820354349911213, -0.0728849396109581, 0.007266380824148655, 0.015293453820049763, 0.059440143406391144, -0.07100974768400192, -0.06421658396720886, 0.05689271166920662, 0.004205920733511448, -0.04900273680686951, -0.009897845797240734, -0.04334177076816559, -0.043129485100507736, 0.02963162027299404, 0.022024696692824364, -0.006036889739334583, -0.015090012922883034, 0.024129867553710938, -0.010118977166712284, 0.02124631404876709, 0.04358943924307823, -0.04217419773340225, 0.04320024698972702, 0.0050506433472037315, 0.05275312811136246, -0.002251118654385209, -0.07267265021800995, 0.042386483401060104, 0.04118352755904198, -0.03736237809062004, 0.03285129368305206, -0.021830100566148758, -0.0022278998512774706, -0.009172534570097923, -0.021706266328692436, -0.024943633005023003, 0.06262443959712982, -0.025545109063386917, -0.056432757526636124, -0.020680217072367668, -0.03644246980547905, 0.03393041715025902, -0.046844493597745895, 0.043271008878946304, 0.029490096494555473, -0.0371147096157074, -0.004542040638625622, 0.028552498668432236, 0.02752644754946232, -0.03193138912320137, 0.02372298575937748, 0.028287140652537346, -0.00781920924782753, -0.01333865150809288, 0.04779978469014168, 0.05055950582027435, -0.042917199432849884, 0.00901331938803196, 0.0040113250724971294, -0.010410870425403118, -0.013011377304792404, 0.05508827790617943, 0.005590204149484634, 0.010897359810769558, 0.031789861619472504, -0.02496132254600525, -0.07373408228158951, -0.04408477246761322, 0.07797981053590775, 0.03994519263505936, -0.00808456726372242, 0.03874223679304123, 0.020467931404709816, 0.01850428245961666, -0.027614900842308998, -0.007690953090786934, 0.013772069476544857, -0.09354746341705322, -0.00644819438457489, -0.023705296218395233, 0.0468091145157814, 0.005864406935870647, -0.039591383188962936, 0.03789309412240982, 0.06718859076499939, 0.012162231840193272, 0.01044625137001276, 0.029383951798081398, -0.011613826267421246, 0.015090012922883034, 0.019636476412415504, -0.032267507165670395, 0.046313781291246414, -0.0002630082599353045, -0.01075583603233099, -0.053248461335897446, 0.056468136608600616, -0.011030038818717003, 0.006085538771003485, 0.0005738362087868154, -0.03792847320437431, 0.009163688868284225, 0.013170591555535793, -0.03704394772648811, 0.03676090016961098, 0.03467341884970665, -0.011551909148693085, 0.01585954986512661, 0.013842831365764141, -0.0481535941362381, 0.01563841849565506, 0.007797096390277147, 0.05852023884654045, 0.08767421543598175, 0.037963856011629105, -0.019353428855538368, -0.01525807287544012, -0.06970064342021942, 0.0066825938411056995, -0.022166220471262932, -0.03877761960029602, -0.055583611130714417, -0.009968607686460018, -0.042032673954963684, 0.005130250472575426, 0.018398139625787735, 0.013135210610926151, -0.019601095467805862, 0.03347046300768852, -0.03934371471405029, -0.022909222170710564, -0.03007388301193714, 0.053956083953380585, 0.0384238064289093, -0.014293939806520939, -0.03771618753671646, 0.04567692056298256, -0.031064551323652267, -0.0437309630215168, -0.03906066715717316, 0.01775243692100048, 0.009393665939569473, -0.03782232850790024, -0.024943633005023003, 0.04093586280941963, 0.011047729291021824, 0.024766726419329643, 0.019353428855538368, 0.040192861109972, -0.03201983869075775, 0.005130250472575426, 0.05561899393796921, 0.02464289404451847, -0.012197612784802914, -0.02151167206466198, 0.0578479990363121, -0.028835546225309372, 0.028287140652537346, -0.02248465083539486, -0.04337715357542038, 0.05002878978848457, -0.03433729708194733, 0.035310275852680206, -0.018274307250976562, -0.008650664240121841, -0.014718512073159218, -0.012887543067336082, 0.038317665457725525, 0.02310381829738617, 0.011817267164587975, 0.010950431227684021, -0.007359256036579609, -0.004422629717737436, -0.021370146423578262, 0.056255850940942764, 0.013082139194011688, 0.019229594618082047, 0.009420201182365417, 0.0007031981367617846, -0.050205692648887634, 0.005453102756291628, -0.04231572151184082, -0.009375975467264652, 0.03329355642199516, -0.05650351941585541, 0.03417808189988136, 0.00006468096398748457, 0.029383951798081398, 0.07486627995967865, -0.05993548035621643, -0.025297442451119423, -0.019884143024683, 0.022060077637434006, -0.022060077637434006, 0.07345103472471237, -0.009331748820841312, -0.000497269444167614, 0.02561587281525135, 0.008624128066003323, -0.05186860263347626, -0.015355370938777924, -0.015673799440264702, -0.022077767178416252, 0.01168458815664053, -0.052010126411914825, -0.05777723714709282, -0.01064969226717949, -0.03647785261273384, 0.03891914337873459, 0.0026955928187817335, 0.006479152478277683, 0.04833049699664116, -0.036902423948049545, 0.022944603115320206, 0.017389779910445213, 0.03286898508667946, -0.022679245099425316, -0.0026425214018672705, -0.0008463807753287256, 0.04465087130665779, -0.002547434763982892, 0.047056782990694046, 0.06779006868600845, -0.007102743722498417, 0.028021782636642456, 0.0024877293035387993, 0.030852265655994415, -0.028870927169919014, 0.03582330048084259, 0.040122099220752716, 0.016974052414298058, 0.02676575630903244, -0.00945558212697506, -0.007991692051291466, -0.008509139530360699, -0.06687016040086746, 0.024182939901947975, 0.08045648038387299, -0.025456657633185387, -0.04174962639808655, 0.033983487635850906, -0.03157757595181465, 0.004550885874778032, 0.05409760773181915, -0.000726416939869523, 0.05363765358924866, 0.06021852791309357, 0.015134239569306374, -0.02080405130982399, 0.015090012922883034, 0.007788251154124737, -0.05459294095635414, 0.022997675463557243, 0.024749036878347397, -0.01218876801431179, 0.027632590383291245, 0.011808421462774277, 0.020485620945692062, 0.04397863149642944, 0.027774116024374962, -0.020344097167253494, 0.009314058348536491, -0.00998629815876484, 0.04376634582877159, -0.03299281746149063, 0.025810467079281807, -0.009110617451369762, -0.025916609913110733, -0.002299767453223467, 0.004201498348265886, 0.004630493465811014, 0.046986017376184464, -0.011808421462774277, -0.00998629815876484, 0.030533837154507637, 0.0006534435669891536, 0.08675430715084076, -0.06234138831496239, -0.058767903596162796, 0.014957333914935589, -0.056291233748197556, 0.06308439373970032, -0.08717887848615646, 0.014895416796207428, 0.016673315316438675, 0.024147558957338333, 0.016637932509183884, 0.005019684787839651, 0.010057060047984123, 0.011755350045859814, 0.014506225474178791, -0.025916609913110733, -0.01991952396929264, -0.012091469950973988, -0.029843905940651894, 0.031294528394937515, 0.025828158482909203, 0.0020089796744287014, 0.0476936399936676, -0.03824690356850624, -0.00854452047497034, 0.048790451139211655, -0.056114327162504196, -0.01917652226984501, -0.019760310649871826, -0.04320024698972702, 0.00287028681486845, 0.0005390080041252077, -0.035044919699430466, 0.03203753009438515, 0.013144055381417274, 0.005395608488470316, 0.013409413397312164, -0.051090218126773834, 0.07108050584793091, -0.038140758872032166, -0.007920930162072182, 0.008004959672689438, 0.043447915464639664, -0.011180408298969269, -0.024979013949632645, 0.030586907640099525, 0.0021084886975586414, -0.049674976617097855, -0.011392693966627121, 0.07691837847232819, 0.00013993476750329137, 0.005767109338194132, -0.0013079927302896976, 0.04111276566982269, 0.023422246798872948, -0.01661139726638794, 0.050417978316545486, 0.005231970921158791, -0.0028481734916567802, -0.02283846028149128, -0.002790679456666112, 0.019353428855538368, 0.004705678205937147, 0.038848381489515305, 0.0016009920509532094, 0.04174962639808655, 0.020574074238538742, -0.02685420773923397, -0.051479410380125046, -0.06874535977840424, 0.02734954282641411, 0.05480523034930229, -0.008217246271669865, 0.018097400665283203, -0.024943633005023003, 0.053460750728845596, -0.10628464072942734, 0.05809566378593445, -0.006855076178908348, 0.01267525739967823, -0.0013842831831425428, -0.05151479318737984, -0.042386483401060104, 0.04022824019193649, -0.06099690869450569, -0.06202296167612076, 0.038671474903821945, 0.00836761575192213, -0.0015656109899282455, -0.07210655510425568, 0.06032467260956764, 0.014957333914935589, -0.020308716222643852, 0.03189600631594658, 0.055725134909152985, -0.030710741877555847, 0.005634430330246687, -0.057671092450618744, 0.013692461885511875, 0.01409049890935421, 0.0680377408862114, -0.006722397170960903, 0.07210655510425568, 0.01686790958046913, -0.011764195747673512, 0.12425820529460907, -0.04164348170161247, 0.000969661574345082, -0.013665925711393356, -0.07911200076341629, 0.0016441126354038715, -0.06099690869450569, 0.047375209629535675, -0.03502722829580307, 0.0662686824798584, 0.03186062350869179, 0.0024014879018068314, 0.02848173677921295, -0.012604494579136372, -0.07054979354143143, 0.01674407720565796, 0.04535849019885063, -0.057352662086486816, -0.02085712179541588, -0.06382739543914795, -0.004152849316596985, -0.05480523034930229, -0.011649207212030888, 0.057671092450618744, 0.033718131482601166, 0.041148148477077484, 0.009694404900074005, -0.02411217801272869, -0.0017790028359740973, -0.029702382162213326, -0.0005721777561120689, -0.014789273962378502, -0.0490381196141243, 0.05091331526637077, -0.01917652226984501, 0.017602067440748215, 0.017602067440748215, 0.023493008688092232, -0.00932290405035019, -0.044686250388622284, 0.058591000735759735, 0.023864511400461197, -0.01974261924624443, -0.031117623671889305, 0.014063962735235691, 0.01780550740659237, 0.030180025845766068, 0.019778000190854073, 0.003513779491186142, -0.00011132588406326249, 0.00405112886801362, -0.01563841849565506, -0.01903499849140644, -0.03838842734694481, 0.010375489480793476, -0.015549966134130955, 0.014099343679845333, 0.005373495165258646, -0.08647125959396362, 0.007611345965415239, 0.05427451431751251, 0.0008867372525855899, -0.049710359424352646, 0.046844493597745895, 0.01882271282374859, -0.0031533350702375174, -0.059652432799339294, 0.02655346877872944, -0.03251517564058304, 0.006235908251255751, -0.09567032754421234, -0.003953831270337105, -0.026624230667948723, -0.0028968225233256817, -0.011817267164587975, 0.0053469594568014145, 0.04394324868917465, -0.011941100470721722, 0.014320475049316883, 0.024855179712176323, -0.03382427245378494, 0.006089961156249046, -0.06460577994585037, 0.04182038828730583, -0.030852265655994415, 0.032656699419021606, 0.042563389986753464, -0.009482118301093578, 0.010393179953098297, 0.052505459636449814, 0.02809254452586174, -0.025951992720365524, -0.04351867735385895, -0.01868118904531002, -0.00885852798819542, -0.002299767453223467, -0.01726594753563404, -0.001752467011101544, -0.016664469614624977, -0.04783516377210617, -0.057317283004522324, 0.07338027656078339, 0.028428664430975914, -0.02968469075858593, -0.03140067309141159, -0.0021239679772406816, 0.03189600631594658, -0.013126364909112453, 0.0053071556612849236, 0.0468091145157814, -0.048082832247018814, -0.00015271893062163144, -0.05367303639650345, -0.059829335659742355, 0.0027840454131364822, 0.006815272383391857, -0.0181150920689106, 0.06301362812519073, -0.010614311322569847, -0.051267124712467194, 0.03640708699822426, 0.02487286925315857, -0.006877189502120018, -0.07981961965560913, 0.0021593489218503237, -0.01625758782029152, -0.012418744154274464, 0.048472024500370026, -0.04082971811294556, 0.0009680031216703355, -0.06290748715400696, 0.019282665103673935, 0.01761975698173046, 0.048790451139211655, 0.04220958054065704, 0.032179053872823715, -0.014355855993926525, -0.023298414424061775, 0.013285580091178417, -0.03125914931297302, 0.001505905413068831, 0.0027641437482088804, 0.04762287810444832, -0.007788251154124737, 0.09864233434200287, 0.04620763659477234, -0.032886676490306854, -0.013480175286531448, -0.06025390699505806, -0.0011001292150467634, -0.015116549097001553, -0.009145998395979404, -0.0021958358120173216, -0.02602275460958481, -0.010242810472846031, -0.010605466552078724, -0.022095458582043648, -0.024713655933737755, 0.03370044007897377, -0.044155534356832504, -0.008562210947275162, -0.09963300824165344, -0.016797147691249847, 0.05384993925690651, 0.02980852499604225, -0.02460751309990883, -0.02036178857088089, 0.012480661273002625, 0.029047831892967224, -0.01838045008480549, 0.007770560681819916, -0.033240485936403275, -0.0013699096161872149, 0.02566894330084324, 0.007381369359791279, 0.012250684201717377, 0.037397757172584534, -0.03852995112538338, 0.0300385020673275, -0.03260362520813942, -0.13501404225826263, 0.017911650240421295, 0.026093516498804092, 0.0583079531788826, 0.04309410601854324, -0.002963162027299404, 0.0067002843134105206, 0.029879286885261536, -0.0455000139772892, 0.041325051337480545, 0.00903100986033678, 0.00451550493016839, 0.039768286049366, -0.0035270473454147577, -0.03605327755212784, -0.005484060849994421, 0.0516916960477829, -0.04355406016111374, 0.02154705300927162, 0.06520725041627884, -0.01745169796049595, 0.004287739749997854, 0.04033438488841057, -0.012418744154274464, 0.034744180738925934, 0.026005063205957413, -0.011136181652545929, 0.025509728118777275, 0.004104200284928083, 0.015753407031297684, -0.030109263956546783, 0.008394150994718075, -0.08342848718166351, -0.014621214009821415, -0.045641541481018066, -0.03370044007897377, 0.04733983054757118, 0.03845918923616409, -0.033771201968193054, 0.01382514089345932, 0.00830569863319397 ]
43,192
fast_poisson_solver.solver
precompute
This method is used for precomputing of the data based on the given coordinates. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. name : str, optional Name used for saving or loading the precomputed data. If no name is provided, the default name will be used. Default is None. save : bool, optional Specifies whether the precomputed data should be saved. If True, the data will be saved using the provided `name`. Default is True. load : bool, optional Specifies whether the precomputed data with the provided `name` should be loaded. If True, the method will attempt to load the data with the given name. Default is True.
def precompute(self, x_pde, y_pde, x_bc, y_bc, name=None, save=False, load=False): """ This method is used for precomputing of the data based on the given coordinates. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the partial differential equation (PDE). x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. name : str, optional Name used for saving or loading the precomputed data. If no name is provided, the default name will be used. Default is None. save : bool, optional Specifies whether the precomputed data should be saved. If True, the data will be saved using the provided `name`. Default is True. load : bool, optional Specifies whether the precomputed data with the provided `name` should be loaded. If True, the method will attempt to load the data with the given name. Default is True. """ t0 = time.perf_counter() if name is not None: self.precompute_file = os.path.join(self.precompute_path, name + f'.pkl') self.x_pde, self.y_pde, self.x_bc, self.y_bc = format_input([x_pde, y_pde, x_bc, y_bc], self.precision, self.device) self.x_tot = torch.cat([self.x_pde, self.x_bc], dim=0) self.y_tot = torch.cat([self.y_pde, self.y_bc], dim=0) assert torch.min(self.x_tot) >= 0 and torch.max( self.x_tot) <= 1, 'x coordinates should be in [0, 1]. Please rescale.' assert torch.min(self.y_tot) >= 0 and torch.max( self.y_tot) <= 1, 'y coordinates should be in [0, 1]. Please rescale.' if load and os.path.isfile(self.precompute_file): self.load_precomputed_data() else: self.evaluate_network_pde() self.evaluate_network_bc() self.precompute_LHS_RHS() if save: self.save_precomputed_data() # First time running torch.linalg.solve() is very slow, so we run it once here to get rid of the delay torch.linalg.solve( torch.rand(self.LHSs[0].shape).to(self.device).to(self.precision), torch.rand(self.LHSs[0].shape[0], 1).to(self.device).to(self.precision)) t3 = time.perf_counter() if self.verbose > 0: print('\nPre-Computing Successful:', t3 - t0, 'seconds')
(self, x_pde, y_pde, x_bc, y_bc, name=None, save=False, load=False)
[ -0.023675618693232536, -0.02553732320666313, -0.031498540192842484, 0.07416730374097824, 0.008960628882050514, 0.011546329595148563, -0.04013007879257202, -0.06288424879312515, -0.009332030080258846, -0.05904800817370415, 0.03702723607420921, -0.02361920289695263, -0.029975324869155884, 0.0447937436401844, -0.02760588377714157, -0.022472091019153595, -0.015504802577197552, 0.016228798776865005, -0.012966115027666092, -0.041860148310661316, -0.01970774307847023, -0.02685367874801159, 0.017272481694817543, 0.04039334878325462, 0.009035849012434483, -0.029486393555998802, 0.025800593197345734, -0.03394320234656334, -0.029354756698012352, 0.049720678478479385, 0.008805487304925919, 0.07958317548036575, 0.0013316359836608171, -0.012580609880387783, 0.033059362322092056, -0.019594911485910416, 0.07172264158725739, 0.03262684494256973, -0.0662691667675972, -0.007658375892788172, -0.01430127676576376, -0.08733087033033371, 0.06137983873486519, -0.0011300687910988927, -0.014865430071949959, -0.015692854300141335, -0.04547072574496269, 0.019989818334579468, 0.020497556775808334, -0.003481293795630336, 0.013257593847811222, -0.07822920382022858, 0.025161219760775566, 0.016510875895619392, -0.04317650571465492, 0.02721097692847252, 0.06137983873486519, 0.04565877839922905, -0.010248778387904167, -0.022378066554665565, 0.04595965892076492, -0.027737518772482872, -0.012251521460711956, -0.0027455443050712347, 0.005561607424169779, -0.012740453705191612, -0.034544963389635086, -0.027041729539632797, -0.008076789788901806, 0.023863669484853745, -0.008885408751666546, -0.02886582538485527, 0.050209611654281616, -0.007912244647741318, 0.05464761331677437, -0.002921842038631439, -0.017498143017292023, -0.04238668829202652, -0.014583352953195572, -0.0029124394059181213, 0.0020662101451307535, -0.03986680880188942, -0.030407842248678207, -0.03552282974123955, -0.00012061707093380392, -0.026026254519820213, 0.054835665971040726, -0.00406190101057291, 0.0437406562268734, -0.012251521460711956, -0.0023529878817498684, 0.027869155630469322, 0.004964545834809542, 0.057618819177150726, 0.06040197238326073, -0.013755928725004196, -0.01133947353810072, -0.02747424691915512, 0.008664448745548725, -0.02401410974562168, 0.07807876914739609, 0.06562978774309158, 0.03398081287741661, 0.006389032118022442, 0.05005916953086853, -0.019463276490569115, 0.00011723802890628576, 0.019989818334579468, -0.008264840580523014, -0.061793550848960876, -0.05536220595240593, -0.023111464455723763, -0.060439582914114, 0.00509618129581213, -0.02096768468618393, -0.06995496153831482, -0.05983782187104225, 0.023826058954000473, -0.02546210214495659, 0.018739279359579086, -0.007968660444021225, 0.05333125591278076, -0.08131324499845505, -0.012731051072478294, -0.059687379747629166, -0.026195501908659935, 0.09808739274740219, 0.027361417189240456, -0.016275811940431595, -0.1029767170548439, 0.02540568634867668, 0.012354949489235878, -0.007348091807216406, 0.02905387617647648, -0.004240549635142088, -0.02446543239057064, 0.08289287239313126, 0.0014385899994522333, 0.015128700993955135, 0.00801567267626524, 0.03407483547925949, 0.011057397350668907, 0.03345426917076111, 0.04058140143752098, 0.035485219210386276, 0.0050303637981414795, 0.0377042219042778, -0.012467780150473118, -0.009957299567759037, 0.03490225970745087, 0.009369639679789543, 0.02119334414601326, -0.017159651964902878, -0.05415868014097214, 0.0056838407181203365, -0.04362782835960388, -0.008655046112835407, -0.03700843080878258, -0.03249520808458328, 0.006487758830189705, -0.07221157848834991, -0.00031292857602238655, -0.02527405135333538, -0.010587270371615887, -0.00846229400485754, -0.0015337907243520021, -0.01070950273424387, -0.030877970159053802, -0.0033143984619528055, 0.037516169250011444, 0.035898931324481964, -0.031310487538576126, -0.04614770784974098, 0.037234093993902206, -0.03375514969229698, -0.006929678376764059, 0.003377865767106414, -0.043214116245508194, -0.042311470955610275, -0.001637218869291246, 0.02598864585161209, -0.003316749120131135, -0.008377671241760254, -0.01606895588338375, -0.01944447122514248, 0.06423821300268173, 0.01925642043352127, -0.028809409588575363, 0.022754168137907982, 0.0175921693444252, -0.02258492261171341, -0.028564943000674248, -0.050623323768377304, 0.02563134767115116, 0.021437810733914375, 0.014338887296617031, 0.05186446011066437, 0.004094810225069523, 0.03941548615694046, -0.018428996205329895, -0.018617046996951103, -0.010624879971146584, 0.06664526462554932, -0.014000395312905312, -0.030106961727142334, -0.00600352743640542, -0.005213713273406029, 0.07341510057449341, -0.010117142461240292, 0.049269355833530426, 0.008518708869814873, -0.04238668829202652, -0.010023117065429688, 0.03808032348752022, 0.04633576050400734, -0.04720079526305199, 0.029166705906391144, 0.031272877007722855, 0.002425857586786151, 0.0188521109521389, 0.011066799983382225, 0.0250483900308609, -0.03070872463285923, 0.025123611092567444, 0.03362351283431053, -0.01383114978671074, -0.009524782188236713, 0.035673271864652634, 0.0001236288226209581, -0.04889325425028801, -0.008175516501069069, -0.00983506627380848, -0.06405016034841537, -0.04197297617793083, 0.08725565671920776, 0.016943393275141716, -0.0049316370859742165, 0.02316788025200367, -0.025292856618762016, -0.0040995110757648945, -0.03540999814867973, -0.002290695905685425, -0.0011970619671046734, -0.07322704792022705, -0.0015737515641376376, -0.022284040227532387, 0.06183116137981415, 0.003551812842488289, -0.02290460839867592, 0.03855045139789581, -0.00032526941504329443, -0.013708916492760181, -0.023957693949341774, 0.01701861247420311, -0.01989579387009144, -0.02029070071876049, 0.04422958940267563, 0.008711461909115314, 0.06924036890268326, 0.02841450273990631, -0.013229385949671268, -0.04998394846916199, 0.026515187695622444, 0.015457790344953537, -0.0059424107894301414, -0.028038401156663895, -0.04058140143752098, 0.022434482350945473, 0.0013492658035829663, 0.0014597456902265549, 0.011142020113766193, 0.045997269451618195, -0.025838203728199005, -0.007042509038001299, 0.017949465662240982, -0.012016457505524158, -0.028903435915708542, 0.04565877839922905, 0.02540568634867668, 0.048065830022096634, 0.049006085842847824, -0.057355549186468124, -0.050172001123428345, -0.035541635006666183, -0.03255162388086319, -0.05882234498858452, -0.04058140143752098, -0.044831354171037674, 0.02747424691915512, -0.027756324037909508, -0.0321379117667675, 0.01792125776410103, 0.030953191220760345, -0.02811362035572529, 0.024089330807328224, -0.041145551949739456, -0.012599415145814419, -0.057806871831417084, -0.0015326155116781592, 0.013304607011377811, 0.02487914450466633, 0.0017982374411076307, 0.005114986561238766, -0.021701082587242126, 0.006055241450667381, -0.028094815090298653, -0.013257593847811222, 0.019002551212906837, 0.030877970159053802, -0.05532459914684296, 0.015194518491625786, -0.01980176754295826, 0.0010289914207533002, 0.03877611085772514, 0.02326190657913685, -0.01229853369295597, 0.023355931043624878, 0.013680708594620228, 0.02051636204123497, 0.027511857450008392, -0.015072286128997803, 0.06194399297237396, -0.018287956714630127, 0.11290580779314041, -0.02478511817753315, -0.03781704977154732, 0.05397063121199608, -0.0015537712024524808, 0.00245876656845212, -0.029035070911049843, -0.017084430903196335, 0.0016830562381073833, -0.02375083789229393, 0.0467870831489563, -0.026251915842294693, -0.032438792288303375, 0.02281058393418789, -0.03597415238618851, 0.05649051442742348, 0.00003764692519325763, 0.06540413200855255, 0.05152596905827522, -0.033736344426870346, -0.010051324963569641, -0.006671108305454254, -0.04189775884151459, 0.0607028566300869, -0.009712832979857922, 0.03546641394495964, 0.06720942258834839, -0.06386211514472961, 0.019105978310108185, -0.008946524932980537, 0.037516169250011444, 0.08364507555961609, -0.02455945685505867, -0.03146092966198921, -0.022077184170484543, 0.011988249607384205, -0.03275848180055618, 0.04915652424097061, -0.023092659190297127, -0.025838203728199005, 0.029204316437244415, 0.019745351746678352, -0.0626961961388588, -0.034319303929805756, 0.012223313562572002, -0.00635142158716917, -0.0062903049401938915, -0.04686230421066284, -0.05908561497926712, -0.012806271202862263, -0.016200590878725052, 0.018513618037104607, -0.01804349198937416, -0.007982764393091202, 0.034187667071819305, 0.007846427150070667, 0.04381587728857994, 0.020102649927139282, -0.00203212583437562, -0.039265044033527374, -0.011160825379192829, -0.008617435581982136, 0.001224681967869401, 0.006473654881119728, 0.027229782193899155, 0.0986139327287674, -0.05114986374974251, 0.06431343406438828, 0.016125371679663658, 0.03745975345373154, -0.019914599135518074, 0.003105191746726632, 0.023920083418488503, 0.03571087867021561, 0.029035070911049843, -0.028038401156663895, -0.024032915011048317, -0.023732032626867294, -0.03354829549789429, 0.026722043752670288, 0.08168934285640717, 0.0006446622428484261, -0.02941117249429226, 0.06777357310056686, 0.011217241175472736, 0.011800198815762997, 0.11621550470590591, -0.01452693808823824, 0.04144643619656563, 0.04641098156571388, -0.0006981392507441342, -0.06920275837182999, 0.008311852812767029, 0.0018182179192081094, -0.04216102883219719, 0.02824525721371174, 0.02909148670732975, 0.0074280137196183205, 0.03196866437792778, 0.05449717119336128, 0.012148093432188034, 0.008636240847408772, -0.007719492539763451, -0.014677378349006176, 0.011207838542759418, -0.037647806107997894, 0.02698531560599804, -0.05163879692554474, -0.043477386236190796, -0.0369144082069397, -0.002405877225100994, -0.00010886388918152079, 0.03168658912181854, 0.0703686773777008, 0.02019667439162731, -0.006657004356384277, -0.013022529892623425, 0.015448387712240219, 0.016557889059185982, 0.034413330256938934, -0.06897709518671036, -0.05043527111411095, 0.011029189452528954, -0.05269188433885574, -0.026722043752670288, -0.05833341181278229, 0.03537238761782646, 0.040656622499227524, 0.07710090279579163, 0.05336886644363403, -0.001011361600831151, 0.005368855316191912, 0.01692458800971508, -0.0346577949821949, -0.04795299842953682, -0.04163448512554169, 0.007987464778125286, -0.013285801745951176, 0.05822058394551277, -0.005425270646810532, 0.021964354440569878, 0.054798055440187454, -0.011189033277332783, -0.01786484196782112, 0.0392274335026741, -0.024446627125144005, -0.04814105108380318, -0.002369442256167531, -0.05374496802687645, 0.009101667441427708, 0.00020700298773590475, -0.032250743359327316, 0.013840551488101482, -0.022829389199614525, 0.04355260729789734, 0.029618028551340103, -0.0581829734146595, 0.015344959683716297, -0.046711862087249756, -0.013755928725004196, 0.04107033461332321, 0.05588874965906143, -0.0520901195704937, 0.011433498933911324, 0.05581352859735489, -0.030200986191630363, -0.023374736309051514, -0.032250743359327316, -0.003269736422225833, 0.056678563356399536, 0.0073715983889997005, -0.06893948465585709, -0.008904214017093182, 0.014085018076002598, -0.03653830289840698, 0.04987112060189247, -0.04272518306970596, 0.03153614699840546, -0.013530267402529716, 0.005016259849071503, 0.014611560851335526, 0.01229853369295597, 0.042537130415439606, -0.02123095467686653, 0.05649051442742348, -0.03332263231277466, 0.016868172213435173, -0.042762793600559235, -0.0812380239367485, 0.05220295116305351, 0.0032532818149775267, 0.01778022013604641, 0.04013007879257202, 0.006760432384908199, 0.043891098350286484, -0.05705466493964195, -0.0223968718200922, -0.023355931043624878, 0.039302654564380646, 0.029486393555998802, 0.012448974885046482, -0.002468168968334794, 0.10568464547395706, -0.027192171663045883, -0.06623155623674393, 0.05043527111411095, 0.017253676429390907, -0.02348756603896618, -0.039302654564380646, 0.06882666051387787, 0.020347116515040398, 0.022998634725809097, 0.001031929743476212, -0.019463276490569115, -0.042762793600559235, -0.03821195662021637, -0.047840166836977005, 0.030633503571152687, 0.01957610622048378, 0.05607680231332779, -0.040468569844961166, 0.032081495970487595, 0.006807445548474789, -0.004311068449169397, 0.10372892022132874, -0.02123095467686653, 0.028433308005332947, -0.0024094032123684883, -0.02640235796570778, 0.033698733896017075, -0.03493987023830414, 0.05197729170322418, -0.001083643757738173, 0.01477140374481678, 0.013116555288434029, -0.01142409723252058, 0.022434482350945473, -0.026552798226475716, -0.05833341181278229, 0.05972499027848244, 0.021306175738573074, -0.04780256003141403, 0.011527525261044502, -0.029298342764377594, -0.009214498102664948, 0.0039326162077486515, -0.03621861711144447, 0.03941548615694046, 0.019011953845620155, 0.018607644364237785, -0.0013457398163154721, -0.05099942535161972, 0.003692850936204195, 0.010248778387904167, -0.06119178608059883, -0.04840432107448578, -0.050623323768377304, 0.028000790625810623, -0.07066955417394638, 0.034319303929805756, 0.008777279406785965, -0.007672479841858149, 0.019858183339238167, -0.035767294466495514, 0.039039384573698044, 0.05980021134018898, 0.0009678748901933432, -0.0662691667675972, 0.03556044027209282, -0.0023635656107217073, 0.013511463068425655, 0.006798042915761471, 0.019519692286849022, -0.009252107702195644, 0.03497748076915741, 0.033190999180078506, -0.022472091019153595, -0.058070141822099686, -0.012853284366428852, 0.017563961446285248, -0.008161412551999092, -0.018212737515568733, -0.09801217168569565, -0.036970820277929306, 0.03783585503697395, 0.02811362035572529, -0.03132929280400276, 0.06168071925640106, 0.003645838238298893, 0.02860255353152752, -0.003279138822108507, 0.007009600289165974, -0.04723840579390526, -0.027869155630469322, -0.05220295116305351, 0.07194830477237701, 0.019011953845620155, -0.021268565207719803, 0.025255246087908745, 0.020234284922480583, 0.00635142158716917, -0.01344564463943243, -0.00469187181442976, 0.03990441560745239, -0.10718905925750732, 0.00007268611079780385, -0.05096181482076645, 0.02627072110772133, -0.014837222173810005, -0.03200627490878105, 0.015796281397342682, 0.017808428034186363, -0.03307816758751869, 0.049683067947626114, 0.015391972847282887, -0.04257474094629288, -0.055023714900016785, -0.005086779128760099, 0.027944374829530716, -0.017714401707053185, -0.024258576333522797, -0.006953184958547354, -0.016003137454390526, -0.007813517935574055, -0.03375514969229698, 0.082441546022892, 0.05092420428991318, -0.04212341830134392, 0.00994789693504572, 0.022998634725809097, 0.022923413664102554, 0.004832909908145666, 0.051789239048957825, -0.0022953972220420837, -0.026458771899342537, 0.03497748076915741, -0.048742812126874924, -0.0118942242115736, -0.006906172260642052, -0.02527405135333538, -0.037102457135915756, -0.0004627816961146891, -0.038813721388578415, 0.0045907944440841675, 0.02779393456876278, -0.046034879982471466, 0.021042903885245323, -0.06164310872554779, -0.012091677635908127, -0.04140882566571236, -0.0361810065805912, 0.077928327023983, -0.03753497451543808, -0.01035220641642809, -0.09033969044685364, -0.039528314024209976, 0.0020673854742199183, 0.06796162575483322, 0.025612542405724525, 0.007587857078760862, 0.022961024194955826, 0.02025309018790722, 0.016595499590039253, 0.014000395312905312, -0.022923413664102554, -0.007183547131717205, -0.0043416270054876804, -0.014912442304193974, 0.06254575401544571, 0.03336024284362793, -0.01598433218896389, 0.028339281678199768, -0.05656573548913002, -0.034056030213832855, 0.008683254010975361, -0.025123611092567444, -0.009289718233048916, -0.0341312512755394, 0.001853477442637086, -0.04584682732820511, 0.00044720873120240867, -0.04490657150745392, 0.08274243026971817, -0.03478943184018135, -0.008184919133782387, -0.05957454815506935, 0.0016195890493690968, 0.033379048109054565, 0.014667975716292858, 0.030200986191630363, -0.036293838173151016, -0.015241531655192375, 0.022058378905057907, 0.015044078230857849, 0.0035071508027613163, 0.014273068867623806, 0.014395302161574364, -0.0011647407663986087, 0.01333281397819519, 0.015203921124339104, -0.017770817503333092, -0.05840863287448883, -0.012373753823339939, -0.010634282603859901, -0.1297551691532135, 0.015269739553332329, 0.02361920289695263, 0.035898931324481964, 0.06367406249046326, 0.02766229957342148, -0.0028160633519291878, 0.013436242006719112, -0.04727601632475853, 0.055738311260938644, -0.022509701550006866, -0.056941837072372437, 0.02766229957342148, 0.017620377242565155, -0.011583940126001835, -0.007536143064498901, 0.008772578090429306, 0.007000197656452656, 0.05359452962875366, 0.011320669203996658, -0.011593342758715153, 0.01297551766037941, 0.01310715265572071, 0.034996286034584045, 0.03840000927448273, -0.010624879971146584, -0.006360824219882488, 0.0437406562268734, -0.023130269721150398, 0.02967444434762001, -0.026026254519820213, -0.05957454815506935, -0.07770266383886337, -0.01751694828271866, -0.02482272870838642, -0.013473852537572384, 0.06438865512609482, 0.023280709981918335, -0.013408035039901733, 0.022114794701337814, 0.03855045139789581 ]
43,193
fast_poisson_solver.solver
precompute_LHS_RHS
null
def precompute_LHS_RHS(self): self.NO = self.DH.shape[0] self.NdO = self.H_bc.shape[0] M = torch.eye(self.NdO, device=self.device, dtype=self.precision) - \ torch.ones(self.NdO, device=self.device, dtype=self.precision) / self.NdO lambdas = torch.tensor(self.lambdas_pde, device=self.device, dtype=self.precision).view(-1, 1, 1) self.LHSs = lambdas / self.NO * self.DHtDH + \ 1 / self.NdO * torch.matmul(self.Ht_bc, torch.matmul(M, self.H_bc)) self.RHSs = lambdas / self.NO * self.Dht if self.verbose > 0: print('Pre-Computed data_utils calculated.')
(self)
[ -0.043761007487773895, 0.010012518614530563, 0.015097547322511673, 0.013224576599895954, 0.014817477203905582, -0.006861725822091103, -0.01489624660462141, -0.06802210956811905, 0.04383102431893349, -0.0293548833578825, 0.03766947612166405, 0.0003670454316306859, 0.05034266412258148, 0.045056331902742386, -0.021425388753414154, 0.0024856252130120993, -0.043445926159620285, 0.015097547322511673, 0.0014955324586480856, -0.04180051386356354, -0.05394857004284859, -0.032103072851896286, 0.01045888103544712, 0.02700929343700409, -0.014476140961050987, -0.020742718130350113, -0.010450128465890884, -0.05730941519141197, -0.010318845510482788, 0.06186055764555931, 0.008909741416573524, 0.055418938398361206, -0.03492128476500511, -0.07295835018157959, 0.052828285843133926, -0.030370138585567474, 0.053318411111831665, 0.009023519232869148, -0.04680677130818367, 0.02114531770348549, -0.03108781948685646, -0.06784706562757492, 0.04229063540697098, 0.021670451387763023, -0.07026267051696777, -0.04379601404070854, -0.04379601404070854, -0.03675924614071846, 0.06984256953001022, -0.022090556100010872, 0.0046342904679477215, -0.04722687974572182, 0.023648448288440704, 0.011342853307723999, -0.012900744564831257, 0.04103032127022743, 0.05863974988460541, 0.008157052099704742, -0.043761007487773895, -0.04243067279458046, 0.04439116641879082, -0.027166832238435745, -0.029319874942302704, 0.012576913461089134, 0.005277577321976423, -0.023543421179056168, -0.04495130479335785, 0.01310204528272152, 0.016734208911657333, 0.027289364486932755, -0.0744987353682518, -0.010030022822320461, 0.05716937780380249, -0.029950033873319626, 0.02917983941733837, -0.0038400283083319664, -0.03478124737739563, -0.0761091411113739, 0.036479175090789795, -0.011342853307723999, 0.01261192187666893, -0.004551144782453775, -0.06756699830293655, -0.02534637600183487, 0.0010710506467148662, -0.07117290049791336, 0.0038312762044370174, 0.026239098981022835, 0.04488128796219826, -0.060285162180662155, 0.005058772396296263, 0.03028261661529541, -0.008467755280435085, 0.04257070645689964, 0.021390380337834358, 0.060600243508815765, -0.045231375843286514, -0.023210838437080383, 0.025188835337758064, -0.0036693604197353125, 0.0716630220413208, 0.0514279343187809, 0.022493157535791397, 0.06322590261697769, 0.036479175090789795, 0.007351849228143692, 0.007815715856850147, -0.012244329787790775, -0.010380110703408718, -0.06742695719003677, -0.013180815614759922, -0.02163544110953808, -0.05888481065630913, 0.010248827748000622, -0.016454137861728668, -0.06161549687385559, -0.045056331902742386, -0.021180327981710434, 0.021722963079810143, 0.04194054752588272, -0.02823460102081299, 0.022423140704631805, -0.03868472948670387, -0.002958244178444147, -0.033836010843515396, -0.06494133174419403, 0.08703189343214035, 0.008148299530148506, -0.03028261661529541, -0.11952006071805954, 0.04796206206083298, 0.005772077012807131, -0.0281295757740736, 0.06833718717098236, -0.021320361644029617, -0.04985253885388374, 0.07869979739189148, 0.010922747664153576, 0.07568904012441635, -0.030930278822779655, -0.007006137166172266, 0.023665953427553177, -0.017198076471686363, 0.04383102431893349, 0.009076032787561417, -0.006152797490358353, 0.050412680953741074, 0.03243565931916237, 0.028812246397137642, 0.02781449630856514, 0.016970518976449966, -0.005015011411160231, 0.018222082406282425, -0.008940373547375202, -0.006209686864167452, -0.024138571694493294, -0.010537650436162949, -0.03464121371507645, 0.010721446946263313, 0.005868351086974144, -0.0404701791703701, -0.06375103443861008, -0.03135038539767265, -0.02504879981279373, 0.0027875760570168495, -0.025118818506598473, 0.010257580317556858, -0.035621460527181625, 0.05139292776584625, 0.02448865957558155, 0.0441461019217968, -0.0692824274301529, -0.06924741715192795, 0.0252938624471426, -0.03451868146657944, -0.052898306399583817, -0.003446179209277034, -0.029337378218770027, -0.0550338439643383, 0.0024112313985824585, 0.041485436260700226, -0.0003684129915200174, -0.003783138934522867, -0.03626912087202072, -0.016244085505604744, 0.04316585883498192, 0.03269822522997856, -0.012436877936124802, 0.02497878298163414, 0.0011673248372972012, -0.05538393184542656, -0.07589908689260483, -0.10068532824516296, 0.018974771723151207, 0.027656955644488335, 0.0166904479265213, 0.05997008457779884, 0.020585177466273308, 0.00223618745803833, -0.02016507275402546, -0.036864273250103, -0.00017900987586472183, -0.0007368259830400348, 0.053318411111831665, -0.02959994599223137, -0.007938246242702007, -0.03523636236786842, 0.09102289378643036, -0.05447370186448097, -0.003343340940773487, -0.011185313574969769, 0.0027678837068378925, -0.045056331902742386, 0.020007532089948654, 0.027464408427476883, -0.031175341457128525, 0.01986749656498432, 0.03717935085296631, -0.010038775391876698, -0.03219059854745865, -0.027044301852583885, -0.05174301564693451, -0.05118287354707718, 0.016699200496077538, 0.01720682717859745, -0.027779487892985344, -0.005531391128897667, 0.045861534774303436, 0.036304131150245667, -0.0011509144678711891, 0.00452051218599081, 0.028217097744345665, -0.035919032990932465, -0.04988754913210869, 0.05135791748762131, 0.0603201724588871, -0.020620185881853104, 0.015377617441117764, -0.047016825526952744, 0.02398103103041649, -0.06613163650035858, -0.020025037229061127, 0.019902506843209267, -0.013644682243466377, -0.012970762327313423, -0.030195094645023346, 0.025643950328230858, 0.024331120774149895, -0.038089580833911896, 0.043515946716070175, -0.0075093889608979225, -0.012253082357347012, 0.01618282124400139, 0.02478623390197754, -0.02417358011007309, 0.021757973358035088, 0.035008806735277176, 0.009863730520009995, 0.029809998348355293, -0.031858012080192566, 0.020375125110149384, -0.03504381328821182, 0.011526648886501789, -0.03535889461636543, -0.02275572344660759, 0.031105324625968933, -0.029267361387610435, 0.050412680953741074, -0.017635686323046684, -0.007894485257565975, 0.040855277329683304, 0.017758216708898544, -0.010730198584496975, -0.004778701812028885, 0.017093049362301826, 0.024698711931705475, -0.006358474493026733, 0.022843245416879654, 0.04439116641879082, 0.019097303971648216, 0.030440157279372215, -0.05118287354707718, -0.08276081830263138, -0.04337590932846069, 0.019167320802807808, -0.029950033873319626, -0.00798200722783804, -0.060460206121206284, 0.043936051428318024, -0.04211559146642685, -0.008905365131795406, 0.009697439149022102, 0.009128546342253685, 0.01291824970394373, 0.05758948624134064, -0.015298848040401936, -0.01781948283314705, 0.0012800093973055482, 0.05545394867658615, 0.0647662878036499, -0.048697248101234436, 0.02800704352557659, 0.0234909076243639, -0.014108548872172832, -0.05198807641863823, -0.02473372034728527, 0.01316331047564745, 0.01786324381828308, 0.029652457684278488, -0.05034266412258148, 0.017031783238053322, -0.00408727815374732, 0.020637691020965576, 0.020882751792669296, 0.012498143129050732, -0.0056801787577569485, 0.0024571805261075497, 0.06854724138975143, 0.03560395538806915, 0.0413103923201561, 0.011973011307418346, 0.03355593979358673, -0.011456632055342197, 0.06630668044090271, 0.033188346773386, -0.020497655496001244, 0.012375612743198872, -0.03362595662474632, 0.04722687974572182, -0.01412605307996273, -0.029319874942302704, 0.002151947468519211, -0.006358474493026733, 0.027849504724144936, -0.004236065316945314, -0.016366615891456604, 0.05237317457795143, 0.01402977854013443, 0.017731960862874985, -0.03798455372452736, 0.03415108844637871, 0.04568649083375931, 0.005360723473131657, 0.02336837723851204, 0.06095033138990402, -0.05310835689306259, -0.022790731862187386, -0.005299457814544439, -0.023210838437080383, 0.013242080807685852, -0.05359848216176033, 0.00834522396326065, 0.01874721609055996, -0.014038531109690666, 0.09788461774587631, 0.010135049000382423, -0.050167620182037354, -0.0514279343187809, 0.00003196604666300118, 0.020130062475800514, 0.07757951319217682, -0.010275084525346756, -0.03626912087202072, 0.032225605100393295, 0.04176550358533859, -0.034501176327466965, -0.010966508649289608, 0.013767212629318237, -0.015578918159008026, -0.03812458738684654, -0.06095033138990402, -0.020637691020965576, 0.021792981773614883, -0.04183552414178848, -0.014476140961050987, 0.020637691020965576, 0.0071636768989264965, 0.0034877522848546505, -0.0071111638098955154, -0.0011213758261874318, 0.01886974647641182, 0.008393361233174801, -0.0676020011305809, -0.002557830885052681, -0.003203305648639798, 0.020252594724297523, -0.004787454381585121, 0.005076276604086161, 0.06812713295221329, 0.005211935844272375, 0.06179054081439972, -0.02231811359524727, 0.0485922209918499, -0.0700526162981987, -0.0016847987426444888, 0.022248096764087677, -0.010616419836878777, 0.01794201321899891, -0.03156043961644173, -0.004347655922174454, -0.03520135581493378, -0.05730941519141197, 0.06581655144691467, 0.052513208240270615, -0.022913264110684395, -0.07145297527313232, 0.05475377291440964, 0.06417114287614822, 0.017294349148869514, 0.07330843806266785, -0.06119539216160774, 0.022930767387151718, -0.010222570970654488, 0.0029188592452555895, -0.025241348892450333, 0.00441767368465662, 0.08969256281852722, -0.045616474002599716, 0.037774499505758286, 0.03714434430003166, 0.004551144782453775, 0.006266576237976551, 0.035814009606838226, -0.012533152475953102, 0.003931926563382149, -0.003500880440697074, -0.015946511179208755, 0.02177547663450241, -0.06287581473588943, -0.0014123865403234959, -0.018484650179743767, 0.015158812515437603, -0.005562024191021919, -0.019639939069747925, -0.0009873576927930117, 0.017854491248726845, 0.04722687974572182, 0.06403110176324844, 0.02041013352572918, -0.019377373158931732, 0.01757442019879818, 0.02972247637808323, 0.04229063540697098, -0.04435615614056587, -0.1036260649561882, -0.003741566091775894, -0.0281295757740736, -0.00046031110105104744, -0.09529396891593933, 0.01772320829331875, 0.018642188981175423, 0.08955252170562744, 0.03411608189344406, 0.027534425258636475, 0.007610039319843054, 0.012734453193843365, -0.026676710695028305, -0.07246822863817215, -0.03273323178291321, -0.018467145040631294, -0.016777969896793365, 0.034868769347667694, 0.011570409871637821, 0.06385605782270432, 0.004577401094138622, -0.019692452624440193, 0.009977509267628193, 0.002472496824339032, -0.021390380337834358, 0.003214245894923806, 0.012244329787790775, -0.04834716022014618, 0.02615157701075077, 0.011990515515208244, 0.03787952661514282, -0.0139685133472085, -0.024453651160001755, -0.014467389322817326, 0.030510174110531807, -0.011614170856773853, -0.021968025714159012, 0.002603780012577772, -0.007561902049928904, 0.01960493065416813, 0.0809403583407402, -0.01573645882308483, -0.023823492228984833, 0.01248939149081707, -0.018589675426483154, 0.006927367299795151, 0.023228341713547707, 0.03341590613126755, 0.0021672637667506933, 0.006739194970577955, -0.05443869158625603, 0.018712205812335014, 0.036234114319086075, -0.03903481736779213, 0.032418154180049896, -0.00031453222618438303, -0.010984012857079506, -0.036724235862493515, -0.053003329783678055, 0.0413103923201561, 0.019289851188659668, 0.0022241531405597925, -0.025573931634426117, 0.005636417772620916, -0.03458869829773903, 0.018729710951447487, 0.007531269453465939, -0.08640173077583313, 0.011666684411466122, 0.024313615635037422, -0.005015011411160231, 0.03135038539767265, 0.0046255383640527725, 0.06630668044090271, -0.018974771723151207, 0.011421622708439827, -0.03416859358549118, -0.03163045644760132, -0.012130551040172577, -0.06112537533044815, -0.01610404998064041, 0.06861726194620132, -0.020270098000764847, -0.01825709268450737, 0.02972247637808323, -0.03322335705161095, -0.08003012835979462, -0.06830217689275742, 0.028829751536250114, 0.019779974594712257, -0.05174301564693451, 0.03415108844637871, 0.022860750555992126, -0.0384746789932251, -0.04876726493239403, -0.013662186451256275, 0.019464895129203796, 0.013609672896564007, 0.0570993609726429, -0.015946511179208755, 0.03189302235841751, 0.01418731827288866, -0.021600432693958282, 0.09669432044029236, -0.04439116641879082, 0.013802221976220608, -0.03675924614071846, -0.058429695665836334, 0.005662674084305763, -0.03966497629880905, 0.02436612918972969, 0.03570898249745369, 0.030667712911963463, 0.01844963990151882, -0.0138722388073802, 0.07386858016252518, -0.00666042510420084, -0.0866117849946022, 0.05030765384435654, 0.0014747459208592772, -0.05352846533060074, -0.008240197785198689, 0.03147291764616966, -0.0035621458664536476, -0.02128535322844982, 0.018852241337299347, -0.026851754635572433, 0.06427616626024246, 0.0550338439643383, -0.01598151959478855, -0.04621162265539169, -0.02035761997103691, 0.004168235696852207, -0.05314336717128754, -0.033153340220451355, -0.03815959766507149, 0.03201555088162422, -0.02035761997103691, 0.003870661137625575, 0.03201555088162422, 0.02233561873435974, -0.0011257518781349063, -0.04379601404070854, 0.07253824174404144, 0.007470003794878721, 0.00441767368465662, -0.05223313719034195, 0.027271859347820282, -0.05191805958747864, 0.0037350018974393606, 0.03612908720970154, 0.00900601502507925, -0.006004010327160358, 0.01930735632777214, -0.0007412020349875093, -0.01593775860965252, -0.02751692198216915, -0.0007723817834630609, 0.011421622708439827, -0.008021392859518528, 0.011806719936430454, -0.083390973508358, 0.01850215345621109, 0.02312331646680832, -0.026484161615371704, -0.05983004719018936, 0.059304915368556976, 0.02942490018904209, 0.05650421231985092, -0.021477902308106422, 0.04257070645689964, -0.03455369174480438, -0.005098157096654177, -0.050657741725444794, 0.010012518614530563, -0.01150039304047823, -0.001337992842309177, 0.022160574793815613, -0.005531391128897667, 0.007588158827275038, 0.019044790416955948, 0.01935986988246441, 0.06546646356582642, -0.07393860071897507, 0.027586938813328743, -0.04915236309170723, 0.021792981773614883, -0.0006372696370817721, 0.035989053547382355, 0.009907491505146027, 0.010730198584496975, 0.014940007589757442, 0.0550338439643383, 0.04337590932846069, -0.02097027376294136, -0.051848042756319046, -0.03738940507173538, -0.0019364245235919952, 0.007636295631527901, 0.018904754891991615, 0.021477902308106422, -0.0033717856276780367, -0.03003755584359169, -0.032103072851896286, 0.019587427377700806, 0.009706191718578339, -0.012034276500344276, -0.013863487169146538, 0.0036803006660193205, 0.06949248164892197, -0.00818768423050642, 0.01960493065416813, 0.02170545980334282, -0.05853472277522087, 0.04064522311091423, -0.045476436614990234, -0.000521850015502423, -0.026256604120135307, -0.004643043037503958, -0.035376399755477905, 0.07253824174404144, -0.014598672278225422, 0.00408727815374732, 0.0429207943379879, -0.006196558475494385, 0.001316112233325839, -0.040610212832689285, -0.04551144689321518, -0.05370350927114487, -0.026921771466732025, 0.03654919192194939, -0.060285162180662155, 0.017854491248726845, -0.044251129031181335, 0.009679934941232204, -0.01723308488726616, 0.02375347539782524, 0.006292833015322685, 0.01030134130269289, -0.019762471318244934, 0.026659205555915833, -0.043025821447372437, 0.010257580317556858, -0.007316840346902609, 0.005391356069594622, 0.03187551721930504, -0.02818208932876587, 0.02762194722890854, 0.04873225837945938, -0.032593198120594025, 0.02751692198216915, -0.06977254897356033, -0.01881723292171955, -0.010905242525041103, 0.005400108173489571, 0.0068092127330601215, -0.019762471318244934, 0.00022427516523748636, -0.021320361644029617, -0.0333808958530426, -0.010397614911198616, 0.041590459644794464, -0.0030982792377471924, -0.01637536846101284, -0.013863487169146538, -0.00005753888763138093, 0.010161305777728558, -0.005562024191021919, 0.010730198584496975, 0.029389891773462296, 0.032908275723457336, -0.037039317190647125, -0.01761818118393421, 0.0018478084821254015, -0.00430827122181654, 0.03612908720970154, 0.021687954664230347, -0.02263319306075573, 0.06396108865737915, -0.006704186089336872, -0.031858012080192566, 0.029074812307953835, 0.06224565580487251, -0.10180560499429703, -0.0042295013554394245, 0.006883606314659119, 0.03836965188384056, 0.05391355976462364, 0.038754746317863464, 0.008034520782530308, 0.008791586384177208, -0.007925118319690228, 0.030370138585567474, -0.03980501368641853, -0.042780760675668716, 0.05212811008095741, 0.04211559146642685, -0.02385850064456463, 0.048627231270074844, -0.04852220416069031, -0.021267849951982498, 0.03920986130833626, -0.004888104274868965, 0.0005139183485880494, 0.03180550038814545, -0.02805955708026886, 0.03233063220977783, 0.049677494913339615, 0.02448865957558155, -0.05034266412258148, 0.042465679347515106, 0.013023275882005692, 0.060530222952365875, -0.050902802497148514, -0.04645668342709541, -0.0583246685564518, 0.01258566603064537, 0.00256658298894763, 0.003102655289694667, 0.07778956741094589, -0.014222327619791031, -0.02202053926885128, 0.022493157535791397, 0.047016825526952744 ]
43,194
fast_poisson_solver.solver
save_precomputed_data
null
def save_precomputed_data(self): with open(self.precompute_file, 'wb') as file: pickle.dump( [self.LHSs, self.RHSs, self.H, self.DH, self.Dht, self.DHtDH, self.H_bc, self.Ht_bc, self.Ht_bc_ones, self.NdO, self.NO], file) if self.verbose > 0: print('Pre-Computed stored.')
(self)
[ -0.006414828356355429, 0.029344797134399414, -0.02671976014971733, 0.01356849167495966, 0.03475133329629898, -0.030353089794516563, -0.07033711671829224, -0.05841144546866417, 0.017123593017458916, -0.03438626229763031, 0.0254159327596426, -0.01773204654455185, 0.008666102774441242, 0.012664505280554295, -0.029953250661492348, -0.011708365753293037, -0.02047877386212349, -0.014220405369997025, -0.04530363902449608, 0.0015363426646217704, -0.008305377326905727, -0.029501257464289665, 0.00254246243275702, 0.025103013962507248, 0.025676697492599487, -0.054030586034059525, 0.03452533856034279, -0.02937956713140011, -0.005415227729827166, 0.04450395703315735, 0.01371625903993845, 0.012464585714042187, -0.012534122914075851, -0.02837127447128296, 0.025520239025354385, -0.006814668886363506, 0.07885545492172241, 0.032891206443309784, -0.039914488792419434, 0.01591538079082966, -0.008174994960427284, -0.040053561329841614, 0.008787793107330799, 0.008553104475140572, -0.034716565161943436, -0.02259966731071472, -0.01136067882180214, 0.024355486035346985, 0.10041205585002899, -0.07127587497234344, -0.002644595690071583, -0.002018758561462164, 0.008096764795482159, 0.016323912888765335, 0.009900392033159733, -0.029866328462958336, 0.0876867026090622, 0.0048067751340568066, -0.016193529590964317, -0.010109004564583302, 0.032317522913217545, -0.027675898745656013, 0.028614655137062073, -0.03468179702758789, 0.032891206443309784, -0.024355486035346985, -0.030822468921542168, 0.010873916558921337, -0.019661709666252136, 0.011708365753293037, -0.015054854564368725, -0.07113679498434067, 0.04443442076444626, 0.008952944539487362, -0.014889703132212162, -0.006736439187079668, -0.02795404940843582, -0.08177602291107178, -0.035064250230789185, 0.02178260125219822, -0.029692484065890312, -0.06877252459526062, -0.041444312781095505, -0.024494562298059464, -0.0291014164686203, -0.054691191762685776, 0.0903291255235672, 0.01947048120200634, 0.002955341013148427, 0.020148472860455513, 0.010578382760286331, 0.08601780980825424, -0.017853736877441406, 0.028545117005705833, 0.07058049738407135, -0.03928865119814873, -0.011769210919737816, 0.007318815216422081, 0.013099114410579205, 0.010004698298871517, 0.01107383705675602, 0.02802358567714691, 0.016167454421520233, 0.018340498208999634, 0.00017112727800849825, -0.014559400267899036, 0.048328518867492676, 0.014246482402086258, -0.008518335409462452, -0.04631193354725838, -0.005028425715863705, 0.011430216021835804, -0.04728545621037483, -0.02047877386212349, 0.04200061038136482, -0.06446120142936707, -0.031952451914548874, 0.022530129179358482, 0.020965537056326866, 0.022095520049333572, -0.034716565161943436, 0.03068339265882969, -0.0716235563158989, 0.06129724904894829, -0.08379261195659637, -0.01743651181459427, 0.09123311191797256, 0.03249136731028557, -0.015115699730813503, -0.11084267497062683, 0.0602194182574749, -0.010543613694608212, -0.025242088362574577, 0.03834989666938782, -0.011630136519670486, -0.04300890490412712, 0.07996805012226105, -0.02845819480717182, 0.04971926659345627, -0.024807479232549667, 0.04610332101583481, -0.019887706264853477, -0.031743839383125305, 0.03987972065806389, 0.021313223987817764, -0.003898442490026355, 0.017532125115394592, 0.008227148093283176, 0.0007181913242675364, -0.014168252237141132, 0.06376583129167557, -0.024355486035346985, -0.06713839620351791, -0.058376677334308624, 0.01198651548475027, -0.058168064802885056, -0.0001764240732882172, -0.03527286276221275, -0.011525830253958702, -0.013872718438506126, -0.029431719332933426, 0.007640425581485033, 0.01744520477950573, -0.012473277747631073, -0.03388211503624916, 0.015828458592295647, 0.01512439176440239, -0.025155168026685715, 0.0016167453723028302, 0.0016602062387391925, 0.03495994582772255, -0.07642164081335068, -0.08386214822530746, 0.06644301861524582, -0.036368079483509064, -0.030579086393117905, 0.015550308860838413, -0.05775083974003792, -0.040366481989622116, 0.016332605853676796, 0.02800620160996914, -0.0315873809158802, -0.04905866086483002, 0.052813682705163956, 0.010482768528163433, -0.033621348440647125, 0.00029444758547469974, -0.029866328462958336, 0.048328518867492676, 0.004102708771824837, 0.039566799998283386, -0.010743534192442894, -0.07273615896701813, 0.02093076892197132, 0.035568397492170334, -0.04756360501050949, 0.05104047805070877, -0.044921182096004486, -0.008396645076572895, -0.014715859666466713, -0.02605915442109108, -0.028632039204239845, 0.06772946566343307, -0.04394765943288803, -0.0066277869045734406, -0.004580778535455465, -0.02685883454978466, 0.007831653580069542, -0.01429863553494215, 0.04794606193900108, 0.033343199640512466, -0.009639627300202847, -0.013203420676290989, -0.0051457700319588184, 0.04738976061344147, -0.04047078639268875, 0.038558509200811386, 0.042174454778432846, -0.01752343401312828, -0.025155168026685715, -0.01248196978121996, 0.040296945720911026, -0.04186153784394264, 0.04429534822702408, 0.0014331231359392405, -0.03482086956501007, -0.008674794808030128, 0.020722156390547752, -0.005176193080842495, -0.013446801342070103, 0.01386402640491724, 0.02699790894985199, -0.09853454679250717, -0.07802100479602814, 0.02953602559864521, 0.07287523150444031, -0.03489040955901146, 0.021452298387885094, -0.0021208918187767267, 0.02569408155977726, -0.017558202147483826, -0.008492259308695793, 0.021313223987817764, -0.06856390833854675, -0.006245330907404423, -0.025659313425421715, 0.07774285227060318, -0.00017234962433576584, -0.019592171534895897, 0.03908003866672516, 0.08469659835100174, -0.023833956569433212, -0.00879213958978653, 0.021904291585087776, 0.036368079483509064, 0.024355486035346985, -0.002751074731349945, -0.006927667185664177, 0.03807174414396286, 0.01802757941186428, -0.018357882276177406, -0.015941457822918892, 0.05868959426879883, -0.03365612030029297, 0.02713698334991932, 0.008522681891918182, -0.04944111779332161, 0.013064345344901085, -0.016010994091629982, -0.006918974686414003, 0.05973265692591667, 0.02317335084080696, -0.032821670174598694, 0.0054586888290941715, 0.0029922828543931246, -0.045790400356054306, 0.002342542400583625, 0.036959145218133926, 0.0003707757859956473, 0.07663025707006454, 0.05312659963965416, -0.021174149587750435, 0.01593276485800743, -0.07117156684398651, 0.0388018898665905, 0.0008127187611535192, -0.027171753346920013, -0.022408438846468925, 0.04175722971558571, -0.07134541124105453, -0.0024381563998758793, 0.0658867210149765, 0.05350905656814575, -0.011847440153360367, 0.07391829043626785, -0.027484672144055367, -0.014098715037107468, -0.04526887089014053, 0.05225738137960434, 0.06428735703229904, -0.008635680191218853, -0.01564592309296131, 0.03422980383038521, -0.027015293017029762, -0.03925388306379318, 0.002181736985221505, 0.01515916083008051, 0.023642728105187416, -0.021104611456394196, -0.013038269244134426, 0.00803591962903738, 0.019296638667583466, 0.02990109659731388, 0.06835529953241348, 0.02315596677362919, -0.036368079483509064, 0.008440106175839901, 0.001902500749565661, 0.01285573374480009, 0.017697276547551155, -0.013064345344901085, 0.030579086393117905, -0.03139615058898926, 0.018444804474711418, 0.001511352718807757, -0.06640825420618057, 0.02786712720990181, -0.01428994257003069, 0.05010172352194786, -0.06174924224615097, -0.01969647780060768, -0.02997063472867012, 0.012786195613443851, 0.04707684367895126, 0.02621561288833618, 0.023121196776628494, 0.013698874972760677, -0.020583080127835274, -0.0057759531773626804, -0.015367773361504078, 0.04193107411265373, 0.001493968302384019, 0.024511946365237236, 0.006814668886363506, -0.0026728452648967505, -0.00984823890030384, -0.032473981380462646, -0.04095754772424698, -0.04102708771824837, 0.04015786945819855, -0.0474940687417984, 0.04147908091545105, -0.010587074793875217, 0.02882326766848564, 0.07273615896701813, -0.06088002398610115, 0.004937157966196537, -0.041652925312519073, -0.00481546763330698, -0.043912891298532486, 0.05611671134829521, 0.00734923779964447, -0.0005419030785560608, -0.0015450349310413003, 0.020948152989149094, -0.033291045576334, -0.017558202147483826, 0.006966781802475452, -0.016393451020121574, -0.030579086393117905, -0.041583385318517685, -0.0474940687417984, 0.01983555406332016, -0.026545915752649307, 0.04161815345287323, 0.021365376189351082, -0.011812672019004822, 0.042383067309856415, -0.005406535696238279, -0.007488312665373087, 0.0012538469163700938, -0.011743134818971157, -0.014307327568531036, -0.00875737052410841, 0.03118753992021084, 0.05726407840847969, 0.018131885677576065, 0.04561655595898628, 0.07934221625328064, 0.015811074525117874, 0.01422909740358591, 0.018653417006134987, -0.005671646911650896, -0.04255691170692444, 0.0528484508395195, 0.053682900965213776, 0.024338101968169212, 0.027050063014030457, -0.034281954169273376, 0.03751544654369354, 0.004993657115846872, -0.07343152910470963, -0.00608017947524786, 0.07245800644159317, -0.010004698298871517, -0.060045573860406876, 0.016489064320921898, -0.02851034887135029, 0.04154861718416214, 0.039705876260995865, -0.028545117005705833, 0.032613057643175125, 0.05935019999742508, -0.0014831031439825892, 0.002857554005458951, 0.00033899498521350324, 0.02857988514006138, -0.0890079140663147, 0.019852938130497932, 0.00959616620093584, -0.0011462811380624771, 0.05695116147398949, 0.049475885927677155, 0.035881318151950836, 0.03040524385869503, 0.004963234532624483, -0.020739540457725525, 0.017036670818924904, -0.03322150930762291, 0.07878591120243073, 0.005289191380143166, -0.02887541987001896, -0.02127845585346222, 0.023486269637942314, -0.011378062888979912, 0.010369770228862762, 0.038906194269657135, 0.017940659075975418, -0.036437615752220154, 0.04040125012397766, 0.020722156390547752, 0.006206216290593147, 0.04433011636137962, -0.05076232925057411, -0.018879413604736328, 0.022495361045002937, -0.018010195344686508, 0.015889303758740425, -0.034055959433317184, 0.04422580823302269, 0.040436018258333206, 0.02628515101969242, 0.008127187378704548, -0.004320013336837292, -0.0024142528418451548, 0.02230413258075714, 0.0006367021705955267, -0.05507364869117737, -0.03761975094676018, -0.026615453884005547, -0.004285244271159172, 0.019227100536227226, 0.03459487482905388, 0.037376370280981064, 0.04655531421303749, -0.07364014536142349, -0.05493457242846489, 0.04864143580198288, -0.045999012887477875, -0.03339535370469093, -0.017036670818924904, -0.023503653705120087, -0.004117920063436031, -0.01730612851679325, -0.029205722734332085, 0.021799985319375992, -0.025172552093863487, 0.0010436048032715917, 0.00481112115085125, -0.03563793748617172, 0.01795804314315319, 0.0037224257830530405, -0.0321262963116169, 0.02468578889966011, 0.08177602291107178, -0.025954848155379295, -0.026458993554115295, 0.016141377389431, 0.01773204654455185, -0.012925270944833755, 0.010682688094675541, 0.02353842183947563, -0.01577630639076233, -0.00977000966668129, -0.04471256956458092, 0.04971926659345627, 0.005015387665480375, 0.0002835823397617787, 0.016914980486035347, -0.027780205011367798, -0.026545915752649307, -0.03219583258032799, -0.0038875772152096033, 0.023260273039340973, -0.020235393196344376, 0.010378462262451649, -0.008944252505898476, 0.026737144216895103, -0.0004006551462225616, 0.0028988418634980917, -0.03765452280640602, -0.11390232294797897, 0.010856532491743565, 0.06477411836385727, 0.0007154750055633485, 0.03263043984770775, -0.017280053347349167, 0.03921911492943764, -0.09005098044872284, 0.03800220787525177, -0.04186153784394264, 0.011569290421903133, 0.02178260125219822, -0.05357859283685684, -0.04234829917550087, 0.05336998030543327, -0.052813682705163956, -0.044260576367378235, 0.03699391707777977, 0.0013744508614763618, -0.004159207921475172, -0.04992787912487984, 0.06599102914333344, 0.03734160214662552, -0.023920876905322075, 0.05062325298786163, 0.07231893390417099, -0.04902389273047447, 0.036889608949422836, -0.0742659792304039, 0.0029792445711791515, 0.004567740485072136, 0.04321751743555069, -0.03939295560121536, 0.05350905656814575, 0.023034274578094482, -0.007240585517138243, 0.06307045370340347, -0.042174454778432846, -0.007240585517138243, -0.022425822913646698, -0.04481687769293785, 0.019557403400540352, -0.09019005298614502, 0.047737449407577515, -0.0013885756488889456, 0.08956421911716461, 0.048954352736473083, 0.022843047976493835, 0.046937767416238785, -0.012438508681952953, -0.06348767876625061, 0.040644630789756775, 0.014342095702886581, -0.027449902147054672, 0.0007736039697192609, -0.03316935524344444, 0.0006296397768892348, -0.04725068807601929, -0.02214767411351204, 0.07169309258460999, 0.0495106540620327, 0.07336199283599854, -0.03807174414396286, 0.003576831892132759, -0.005002349149435759, -0.006393097806721926, 0.0071884323842823505, -0.017045363783836365, -0.036889608949422836, 0.024859633296728134, -0.012577584013342857, -0.02047877386212349, 0.017610356211662292, 0.010726149193942547, 0.0010935848113149405, -0.03692437708377838, 0.05072755739092827, -0.004676392767578363, -0.003978845197707415, -0.05156200751662254, 0.04898912459611893, 0.01429863553494215, -0.01621960662305355, 0.033847346901893616, -0.02134799212217331, 0.013950947672128677, 0.02917095459997654, -0.018496958538889885, -0.024146875366568565, -0.043912891298532486, -0.019522635266184807, -0.024598868563771248, 0.027554208412766457, 0.00551953399553895, -0.07475274056196213, 0.0008768236148171127, 0.06995466351509094, 0.0027706322725862265, -0.0200615506619215, 0.019122794270515442, 0.038036976009607315, 0.008496605791151524, -0.04742453247308731, -0.002909707138314843, -0.017905889078974724, 0.025242088362574577, -0.06380059570074081, -0.042243991047143936, 0.03450795263051987, 0.005141424015164375, -0.02308642864227295, 0.0026315574068576097, 0.031013695523142815, -0.03443841636180878, 0.0003528481465764344, 0.030822468921542168, -0.027919281274080276, 0.013446801342070103, -0.07259707897901535, -0.007849037647247314, -0.005449996329843998, 0.023642728105187416, 0.029779406264424324, -0.006267061457037926, 0.013559799641370773, 0.029848944395780563, 0.021747833117842674, -0.015037470497190952, -0.05441304296255112, -0.03932341933250427, 0.029848944395780563, 0.002916226163506508, -0.02983156032860279, -0.02757159247994423, 0.012490661814808846, -0.047598373144865036, -0.0655738040804863, 0.03866281360387802, -0.035012099891901016, -0.03263043984770775, -0.04433011636137962, 0.002008979907259345, 0.03294336050748825, -0.006419174373149872, 0.015115699730813503, 0.07037188112735748, -0.036089930683374405, -0.0011680115712806582, -0.058967746794223785, -0.03974064439535141, -0.01693236641585827, 0.009839546866714954, -0.06279230117797852, 0.09916038066148758, 0.03339535370469093, -0.05764653533697128, 0.05243122577667236, -0.0007138452492654324, -0.04450395703315735, -0.05131862685084343, -0.005037118215113878, -0.03276951611042023, -0.03106584958732128, 0.024737942963838577, -0.04930204153060913, -0.006393097806721926, -0.035359784960746765, 0.005941104609519243, -0.014672398567199707, 0.023990415036678314, 0.01919233240187168, 0.0592111274600029, -0.02976202219724655, -0.0027575939893722534, 0.02322550304234028, -0.027189137414097786, 0.007340545766055584, -0.020461389794945717, 0.02106984332203865, -0.01983555406332016, 0.042383067309856415, 0.04898912459611893, -0.03831512853503227, 0.011864825151860714, -0.035290248692035675, 0.024929171428084373, 0.003844116348773241, 0.0005057762027718127, -0.03734160214662552, -0.029362183064222336, 0.04958019033074379, 0.02512039802968502, -0.026163460686802864, -0.031465690582990646, 0.028475580736994743, -0.001675417530350387, -0.02468578889966011, -0.09512721002101898, -0.040296945720911026, 0.03661146014928818, 0.03807174414396286, -0.029918482527136803, -0.009674395434558392, -0.02244320698082447, 0.011717057786881924, -0.008574835024774075, -0.013125190511345863, -0.020739540457725525, -0.017280053347349167, 0.012768811546266079, 0.006349637173116207, -0.01527215912938118, -0.00847052875906229, -0.05312659963965416, -0.008635680191218853, -0.018653417006134987, -0.11591890454292297, 0.037028685212135315, 0.018062349408864975, 0.026615453884005547, 0.01035238616168499, 0.019557403400540352, 0.0093701696023345, 0.026545915752649307, -0.020600466057658195, 0.033986423164606094, -0.014159560203552246, 0.0008534633670933545, 0.04095754772424698, 0.043982427567243576, -0.0004297196283005178, 0.027119599282741547, 0.013125190511345863, -0.010952145792543888, 0.030231399461627007, 0.046068549156188965, -0.006449596956372261, 0.0010935848113149405, 0.035950854420661926, 0.013377264142036438, 0.05875913426280022, 0.038036976009607315, -0.0050458102487027645, 0.033273663371801376, 0.03831512853503227, 0.045929476618766785, -0.024285949766635895, -0.0001795478310668841, -0.05072755739092827, 0.018688185140490532, -0.061053868383169174, -0.04186153784394264, 0.0252594742923975, 0.02844081073999405, -0.022338900715112686, 0.004711161367595196, -0.01715836301445961 ]
43,195
fast_poisson_solver.solver
solve
This method is used to solve the PDE with the provided source function and boundary condition. Parameters ---------- f : tensor/array/list The source function for the PDE. bc : tensor/array/list The boundary condition for the PDE. Returns ------- tuple The tuple contains the following elements: u_pred : tensor The complete solution of the PDE. u_pde_pred : tensor The solution of the PDE inside the domain. u_bc_pred : tensor The solution for the boundary condition. f_pred : tensor The predicted source function. runtime : float The time it took the method to run in seconds.
def solve(self, f, bc): """ This method is used to solve the PDE with the provided source function and boundary condition. Parameters ---------- f : tensor/array/list The source function for the PDE. bc : tensor/array/list The boundary condition for the PDE. Returns ------- tuple The tuple contains the following elements: u_pred : tensor The complete solution of the PDE. u_pde_pred : tensor The solution of the PDE inside the domain. u_bc_pred : tensor The solution for the boundary condition. f_pred : tensor The predicted source function. runtime : float The time it took the method to run in seconds. """ self.f, self.bc = format_input([f, bc], self.precision, self.device) w_outs = [] biases = np.empty(len(self.lambdas_pde)) t0 = time.perf_counter() RHSs = torch.matmul(self.RHSs, self.f) self.bct_ones = torch.sum(self.bc).reshape(1, 1) for i, l in enumerate(self.lambdas_pde): self.w_out = torch.linalg.solve(self.LHSs[i], RHSs[i]) self.bias = - 1 / self.NdO * (self.Ht_bc_ones @ self.w_out - self.bct_ones) # Just calculates the loss if multiple lambdas are provided to find the best one. if self.n_lambdas > 1: u_pred_bc = torch.matmul(self.H_bc, self.w_out) + self.bias f_pred = torch.matmul(self.DH, self.w_out) self.Ls_pde[i] = torch.mean((f_pred - self.f) ** 2).item() self.Ls_bc[i] = torch.mean((u_pred_bc - self.bc) ** 2).item() self.Ls[i] = self.Ls_pde[i] + self.Ls_bc[i] w_outs.append(self.w_out) biases[i] = self.bias if self.n_lambdas > 1: minimum = np.argmin(self.Ls) self.lambda_pde = self.lambdas_pde[minimum] self.w_out = w_outs[minimum] self.bias = biases[minimum] else: self.lambda_pde = self.lambdas_pde[0] self.u_pde_pred = torch.add(torch.matmul(self.H, self.w_out), self.bias) self.f_pred = torch.matmul(self.DH, self.w_out) self.u_bc_pred = torch.matmul(self.H_bc, self.w_out) + self.bias self.u_pred = torch.cat([self.u_pde_pred, self.u_bc_pred]) t1 = time.perf_counter() if self.verbose > 0: print('\nRun Successful:', t1 - t0, 'seconds\n') return self.u_pred, self.u_pde_pred, self.u_bc_pred, self.f_pred, t1 - t0
(self, f, bc)
[ -0.0470854789018631, -0.055424340069293976, -0.013943351805210114, 0.044952280819416046, -0.003960959147661924, 0.012081652879714966, -0.035314109176397324, -0.056626684963703156, -0.03321969509124756, -0.04305179417133331, -0.02342638187110424, 0.015514160506427288, -0.02579229138791561, 0.036458276212215424, -0.03298698365688324, 0.04502985253930092, -0.012750701047480106, 0.032599128782749176, 0.01406940445303917, -0.04402143135666847, -0.036652203649282455, -0.02930237166583538, 0.012440417893230915, 0.07365347445011139, -0.03372390568256378, -0.029884152114391327, 0.026257716119289398, -0.05433834716677666, -0.026412859559059143, 0.033995404839515686, 0.006026281975209713, 0.03636131435632706, -0.0005093613872304559, -0.051235515624284744, 0.01479663047939539, 0.003381602233275771, 0.062250569462776184, 0.025986218824982643, -0.03940596804022789, -0.04181066155433655, -0.016755294054746628, -0.09106812626123428, 0.05453227460384369, -0.001084173214621842, -0.03552742674946785, -0.008673385716974735, -0.059768304228782654, 0.045068636536598206, 0.019392700865864754, 0.003078591311350465, 0.02633528783917427, -0.0844746083021164, 0.03182342275977135, -0.004050650633871555, -0.02839091420173645, 0.055114056915044785, 0.055424340069293976, -0.02160346880555153, 0.012634344398975372, -0.029709618538618088, 0.03546924889087677, -0.02160346880555153, 0.0036530999932438135, 0.04130645468831062, -0.007422556169331074, 0.017395252361893654, -0.03512018173933029, -0.018927276134490967, 0.007839499041438103, 0.046038273721933365, 0.027886703610420227, -0.03226945549249649, 0.028003059327602386, -0.018267923966050148, 0.027498850598931313, -0.023271240293979645, -0.005614187102764845, -0.08152691274881363, -0.00245681288652122, -0.040763456374406815, 0.0169783104211092, -0.03638070821762085, -0.03601224720478058, -0.04278029873967171, 0.032114312052726746, -0.03711763024330139, 0.027014032006263733, 0.0020628985948860645, 0.014922683127224445, -0.05026588216423988, -0.02784791775047779, -0.017075272276997566, 0.013177339918911457, 0.07171420753002167, 0.011974993161857128, 0.009618779644370079, -0.024919619783759117, -0.04243122786283493, 0.0043488130904734135, -0.019732072949409485, 0.10262617468833923, 0.07404132932424545, 0.014699667692184448, 0.060388870537281036, 0.03684613108634949, -0.009647868573665619, -0.03159071132540703, 0.024803264066576958, -0.01131564099341631, -0.0738861933350563, -0.04871446639299393, -0.014205153100192547, -0.026858890429139137, -0.012867056764662266, -0.030175043269991875, -0.014563918113708496, -0.04801632836461067, 0.023465167731046677, -0.013051287271082401, 0.04049196094274521, 0.03496503829956055, 0.03830058500170708, -0.07369226217269897, -0.055307984352111816, -0.013119162060320377, -0.009512119926512241, 0.055773407220840454, -0.0013344602193683386, 0.02619953826069832, -0.030252613127231598, -0.00025892286794260144, 0.0370982363820076, 0.006288083270192146, 0.06578004360198975, -0.018335798755288124, -0.02693646214902401, -0.0038058175705373287, 0.0048821126110851765, 0.011276855133473873, 0.005943862721323967, -0.025831077247858047, 0.00034725054865702987, 0.0192569512873888, 0.013254910707473755, 0.04056952893733978, 0.021041080355644226, 0.04739576205611229, 0.018452154472470284, 0.0333748385310173, 0.022922173142433167, 0.013458534143865108, 0.01791885495185852, -0.021758610382676125, 0.005580249708145857, 0.02203010767698288, -0.01476754155009985, 0.022786423563957214, -0.009293952025473118, -0.04130645468831062, 0.009027302265167236, -0.02373666502535343, -0.046464912593364716, -0.0553467683494091, -0.006322020664811134, -0.021836182102560997, -0.0023840900976210833, 0.05212758108973503, 0.05988465994596481, 0.004940290469676256, 0.04413778707385063, -0.020614441484212875, -0.03062107414007187, -0.043672364205121994, 0.047667257487773895, -0.0179770328104496, 0.028235772624611855, 0.006515947636216879, -0.0176861435174942, -0.03626435250043869, -0.0659351795911789, 0.008023729547858238, -0.022960957139730453, -0.024551158770918846, -0.06085429713129997, -0.0003539167810231447, 0.08424188941717148, 0.02773156203329563, -0.002129561034962535, -0.014719059690833092, 0.0416555218398571, -0.10991782695055008, -0.06089308112859726, -0.016900738701224327, 0.003602194134145975, 0.012993109412491322, 0.05988465994596481, 0.02579229138791561, 0.05740239471197128, 0.0353722870349884, -0.06422862410545349, 0.020304158329963684, 0.006835927255451679, 0.04483592510223389, 0.023251848295331, -0.03717580810189247, -0.03201735019683838, -0.019189078360795975, 0.09890277683734894, -0.005459045525640249, -0.0020532021299004555, -0.006995916832238436, -0.04060831665992737, -0.01338096335530281, 0.04704669117927551, 0.04320693761110306, -0.054144419729709625, 0.010908394120633602, 0.039250828325748444, 0.017511608079075813, -0.004314876161515713, -0.016406225040555, -0.0536402091383934, -0.05030466616153717, 0.02542383037507534, 0.050033167004585266, -0.0008793377783149481, 0.02166164666414261, 0.04999438300728798, 0.028041845187544823, -0.05864352732896805, -0.032114312052726746, -0.00006617001781705767, -0.012498595751821995, 0.0004978469805791974, 0.06958100944757462, 0.007747383788228035, -0.02699464000761509, 0.0022980349604040384, -0.03626435250043869, -0.0393671840429306, -0.029224799945950508, -0.04099617153406143, 0.010093900375068188, 0.0047996933571994305, -0.007296503521502018, 0.007747383788228035, 0.07411890476942062, 0.00010734162788139656, -0.03948353976011276, 0.030310790985822678, -0.04762847349047661, -0.04111252725124359, 0.001481117564253509, -0.01055932603776455, -0.05332992598414421, -0.033917833119630814, 0.08269047737121582, 0.024706300348043442, 0.048636894673109055, -0.036341920495033264, 0.023038528859615326, -0.06205664202570915, -0.01398213766515255, 0.03257973864674568, -0.03133860602974892, -0.01510691363364458, 0.01820974610745907, -0.017957640811800957, -0.00006120821490185335, 0.005531767848879099, 0.03279305621981621, 0.04584434628486633, -0.06011737138032913, -0.033743299543857574, -0.012721612118184566, 0.0162607803940773, -0.004617887083441019, 0.05689818412065506, 0.004023985471576452, -0.004639703780412674, 0.0493738166987896, -0.059419237077236176, -0.0664781779050827, 0.0039149015210568905, -0.026354679837822914, 0.02245674841105938, -0.03438325971364975, -0.06197907030582428, 0.06911558657884598, -0.024299053475260735, 0.02559836581349373, -0.024260269477963448, 0.06387955695390701, 0.00954605732113123, 0.09060269594192505, 0.03915386274456978, 0.01746312715113163, -0.01104414276778698, 0.01603776402771473, -0.019809644669294357, -0.005119672976434231, -0.002668920438736677, 0.036283742636442184, -0.024861441925168037, -0.021273793652653694, -0.04406021535396576, -0.006918346043676138, -0.007117121014744043, 0.04359479248523712, -0.07951007038354874, 0.02288338728249073, -0.027130387723445892, 0.0430905818939209, 0.02862362563610077, 0.019130898639559746, 0.010181168094277382, -0.03777698054909706, 0.003960959147661924, 0.022262820973992348, 0.05418320745229721, 0.000008167092346411664, 0.048210255801677704, 0.03248277306556702, 0.08478488773107529, 0.021409541368484497, -0.07982035726308823, 0.046464912593364716, -0.04150037840008736, -0.016086244955658913, -0.05224393680691719, 0.01624138653278351, -0.01304159127175808, 0.03219188377261162, 0.023096706718206406, -0.0322500616312027, 0.01207195594906807, 0.04987802729010582, -0.0001722617307677865, 0.03857208043336868, -0.04219851642847061, 0.07008522003889084, 0.0787343680858612, -0.037447307258844376, 0.045495275408029556, 0.031939778476953506, -0.05585097894072533, 0.03013625741004944, 0.019450878724455833, 0.002668920438736677, 0.040336817502975464, -0.011800458654761314, 0.0022216762881726027, 0.01092778705060482, 0.06027251482009888, 0.07206327468156815, 0.025016583502292633, -0.04673640802502632, -0.022049501538276672, 0.00410155626013875, -0.02844909206032753, 0.020788975059986115, -0.025268688797950745, -0.03087317943572998, 0.037990301847457886, 0.06744781136512756, -0.04491349682211876, 0.0001810490502975881, 0.00495725916698575, 0.008057666942477226, -0.029554476961493492, -0.02887573093175888, -0.040220461785793304, 0.022650673985481262, 0.022670067846775055, -0.01686195284128189, -0.017967337742447853, -0.017026791349053383, 0.03684613108634949, -0.0013320361031219363, 0.04716304689645767, 0.034538399428129196, -0.027324315160512924, -0.04704669117927551, -0.007771624717861414, 0.026063790544867516, -0.030718037858605385, -0.0014532405184581876, -0.01571778394281864, 0.06356927007436752, -0.0316682793200016, 0.031745851039886475, 0.01225618738681078, 0.03244398906826973, -0.003437356324866414, -0.03641949221491814, 0.017676446586847305, 0.012527684681117535, 0.06837866455316544, -0.03463536500930786, -0.031125284731388092, -0.027324315160512924, -0.037932123988866806, 0.02234039083123207, 0.04514620825648308, -0.01465118583291769, -0.02282520942389965, 0.04115131124854088, 0.08905128389596939, 0.00549298245459795, 0.09541209042072296, -0.04848175123333931, -0.007306199986487627, 0.006263842340558767, -0.02930237166583538, -0.06756416708230972, 0.00428821099922061, 0.007975248619914055, -0.006632303819060326, 0.014447562396526337, 0.016784382984042168, 0.03321969509124756, -0.0028046693187206984, 0.07043428719043732, -0.007296503521502018, -0.016958916559815407, -0.015678998082876205, -0.0336657278239727, 0.015843836590647697, -0.034111760556697845, 0.0037476394791156054, -0.03740851953625679, -0.02530747465789318, -0.036051031202077866, -0.027983667328953743, -0.02009083889424801, 0.0057693286798894405, 0.05561826750636101, 0.013691246509552002, 0.05224393680691719, -0.004617887083441019, 0.02402755618095398, 0.040336817502975464, -0.0009805434383451939, -0.01620260253548622, -0.042353659868240356, -0.0061717270873487, -0.003968231379985809, -0.043245721608400345, -0.05561826750636101, 0.020245980471372604, 0.003808241570368409, 0.06252206861972809, 0.05891502648591995, 0.015252359211444855, 0.03209491819143295, 0.02730492316186428, -0.024725694209337234, -0.05061494931578636, -0.05627761781215668, 0.023290634155273438, 0.023290634155273438, 0.04580555856227875, 0.023523345589637756, 0.03626435250043869, -0.007349833846092224, -0.0036215868312865496, 0.041190095245838165, -0.014146975241601467, -0.020556263625621796, -0.006792293395847082, 0.0017126179300248623, -0.028953302651643753, -0.002841030713170767, -0.005817810073494911, -0.005895380862057209, -0.020265372470021248, -0.005439652595669031, -0.006035977974534035, 0.027886703610420227, -0.04025924578309059, 0.004103980492800474, -0.04115131124854088, -0.019392700865864754, 0.043982647359371185, 0.014428169466555119, -0.028584841638803482, 0.03748609125614166, 0.019644806161522865, 0.0008284319192171097, -0.018781831488013268, -0.04084102809429169, -0.04731819033622742, 0.08734472841024399, 0.009798161685466766, -0.076484814286232, -0.03572135418653488, 0.012547077611088753, -0.03620617091655731, 0.0684950202703476, -0.04018167778849602, 0.026975246146321297, 0.021390149369835854, -0.06143607571721077, 0.0010072083678096533, 0.06256085634231567, -0.0002066534652840346, -0.016823168843984604, 0.0003808847686741501, -0.07629088312387466, 0.011121713556349277, -0.027014032006263733, -0.046464912593364716, 0.013875477947294712, -0.028798161074519157, -0.017996426671743393, 0.021933143958449364, 0.0439438596367836, 0.03572135418653488, 0.01652258075773716, -0.053834136575460434, -0.004186399281024933, 0.04867567867040634, 0.0017271623946726322, -0.0018410945776849985, 0.011810154654085636, 0.07237356156110764, -0.015514160506427288, -0.02821638062596321, 0.04693033546209335, 0.0047609079629182816, -0.0433620810508728, -0.029612654820084572, 0.018413368612527847, -0.01201377809047699, 0.006181423552334309, 0.015223270282149315, -0.031513139605522156, -0.05352385342121124, -0.10270374268293381, -0.016086244955658913, 0.030543504282832146, -0.0005772358854301274, 0.020052053034305573, -0.045727990567684174, 0.012236794456839561, 0.031319212168455124, -0.021525897085666656, 0.07582546025514603, -0.019334523007273674, 0.020420514047145844, 0.003849451197311282, 0.021933143958449364, 0.05860474333167076, 0.007315896451473236, 0.04976167157292366, 0.019479967653751373, -0.004998468793928623, 0.0365164540708065, 0.005371778272092342, 0.026684356853365898, -0.03608981519937515, -0.07470068335533142, 0.0004517893248703331, -0.018675170838832855, -0.057169683277606964, 0.0279642753303051, 0.05115794390439987, 0.00037906671059317887, 0.010578718036413193, -0.007689205929636955, -0.03498443216085434, 0.03797090798616409, 0.020245980471372604, -0.02311609871685505, -0.03814544156193733, -0.04134523868560791, 0.024706300348043442, -0.07629088312387466, -0.007344985380768776, -0.05879867076873779, 0.01974176988005638, -0.05007195472717285, 0.022049501538276672, 0.016706811264157295, 0.011606531217694283, 0.017821891233325005, -0.05104158818721771, 0.016735900193452835, 0.034771110862493515, 0.03436386585235596, -0.046697624027729034, 0.012120437808334827, -0.0544934906065464, -0.007340137381106615, 0.004397294949740171, 0.006540188565850258, -0.0553467683494091, 0.06756416708230972, 0.04332329332828522, 0.02656800113618374, -0.06911558657884598, -0.00783465150743723, -0.01128655206412077, -0.029612654820084572, 0.019237559288740158, -0.03512018173933029, -0.02065322734415531, 0.0015889893984422088, 0.032172489911317825, -0.04343964904546738, 0.03161010146141052, -0.0027658839244395494, 0.05557947978377342, 0.0015380835393443704, -0.01646440289914608, -0.04142281040549278, -0.013565193861722946, 0.006874712649732828, 0.06830108910799026, 0.014641488902270794, -0.011131410486996174, 0.06996886432170868, 0.010753252543509007, -0.007306199986487627, 0.014757845550775528, 0.006816534325480461, 0.048520538955926895, -0.08214747905731201, -0.0007084396202117205, -0.0037936971057206392, 0.011441693641245365, 0.0026664964389055967, -0.0005166336777620018, 0.013662157580256462, 0.011509568430483341, 0.014263331890106201, 0.06546975672245026, 0.023251848295331, -0.04607705771923065, -0.027149781584739685, -0.026354679837822914, 0.024008164182305336, -0.0036991576198488474, -0.0393865741789341, 0.05077009275555611, -0.006215360481292009, -0.03087317943572998, 0.0015295993071049452, 0.05212758108973503, 0.043245721608400345, -0.026742534711956978, 0.02282520942389965, -0.009269710630178452, 0.01948966458439827, 0.014612399972975254, 0.01262464839965105, -0.016503188759088516, 0.0021659221965819597, 0.042935438454151154, -0.02844909206032753, 0.0048021175898611546, -0.03469354286789894, -0.025986218824982643, -0.03496503829956055, -0.025947432965040207, -0.03312273323535919, 0.02214646525681019, 0.02493901364505291, -0.04049196094274521, 0.015310537070035934, -0.03067925199866295, -0.04654248058795929, -0.04289665445685387, -0.009473334066569805, 0.059419237077236176, -0.018044907599687576, 0.005095432046800852, -0.037932123988866806, -0.029282977804541588, -0.035255931317806244, 0.09479152411222458, 0.01731768250465393, -0.008896401152014732, 0.010665985755622387, 0.014273027889430523, 0.012517988681793213, -0.010976268909871578, -0.016047459095716476, 0.0206920113414526, -0.0226894598454237, -0.06717631965875626, -0.007669812999665737, 0.008804285898804665, 0.008387343026697636, 0.030795609578490257, -0.0456504188477993, -0.022127071395516396, -0.019072720780968666, -0.0006520795868709683, -0.0439438596367836, -0.0024604490026831627, -0.022359784692525864, -0.026742534711956978, -0.0018774558557197452, -0.007752232253551483, 0.06353048980236053, -0.03001990169286728, -0.00885761622339487, -0.01371063943952322, 0.01637713611125946, 0.014282723888754845, -0.03857208043336868, 0.019189078360795975, 0.004678489174693823, 0.018423065543174744, -0.03283184394240379, -0.018355190753936768, 0.023620309308171272, 0.005206940229982138, 0.027460064738988876, 0.005371778272092342, -0.0071219694800674915, 0.04134523868560791, 0.010093900375068188, -0.03806787356734276, -0.022902779281139374, 0.02028476446866989, -0.0870344415307045, -0.02616075426340103, 0.024299053475260735, 0.016280172392725945, 0.07353711873292923, 0.018704259768128395, -0.042043376713991165, -0.013468231074512005, -0.0359540656208992, 0.06837866455316544, -0.0288175530731678, -0.05181729793548584, 0.013894869945943356, 0.034480221569538116, 0.002501658396795392, 0.00047784828348085284, 0.004777876660227776, 0.04534013569355011, 0.05433834716677666, -0.032114312052726746, -0.019247256219387054, 0.030776215717196465, -0.05561826750636101, 0.04890839010477066, 0.030795609578490257, -0.037195201963186264, 0.007117121014744043, 0.05030466616153717, -0.03667159751057625, 0.06337534636259079, -0.06356927007436752, -0.1075907051563263, -0.08369889855384827, -0.007199540268629789, 0.03436386585235596, 0.04150037840008736, 0.06725388765335083, -0.00511482497677207, 0.017560090869665146, -0.004930594004690647, 0.05042102187871933 ]
43,196
fast_poisson_solver.analyze
analyze
Analyze the performance of a Poisson equation solver by comparing predictions with true or numerical values. This function calculates various error metrics including Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Relative Mean Absolute Error (rMSE), Structural Similarity Index (SSIM), Peak Signal-to-Noise Ratio (PSNR), and R-Squared (R2) for each of the source term (f), solution (u), and boundary condition (bc) predictions. The predicted source term 'f_pred' and boundary condition 'u_bc_pred' are compared with the true source term 'f' and true boundary condition 'u_bc'. If provided, the predicted solution 'u_pred' is compared with the numerical solution 'u_num'. Parameters ---------- f_pred : array-like The predicted source term by the solver. Can be a list, numpy array or PyTorch tensor. f : array-like The true source term of the Poisson equation. Can be a list, numpy array or PyTorch tensor. u_bc_pred : array-like The predicted solution for the boundary condition. Can be a list, numpy array or PyTorch tensor. u_bc : array-like The true boundary condition. Can be a list, numpy array or PyTorch tensor. u_pred : array-like, optional The predicted solution of the Poisson equation. Can be a list, numpy array or PyTorch tensor (default is None). u_num : array-like, optional The numerical solution of the Poisson equation. Can be a list, numpy array or PyTorch tensor (default is None). normalize : bool, optional If True, normalize the input arrays before calculating the error metrics (default is True). Returns ------- dict A dictionary containing the calculated error metrics for the corresponding part of the Poisson equation. 'u' A dictionary containing the error metrics for the predicted solution 'u_pred' compared to the numerical solution 'u_num' (only if 'u_num' and 'u_pred' are provided). 'f' A dictionary containing the error metrics for the predicted source term 'f_pred' compared to the true source term 'f'. 'bc' A dictionary containing the error metrics for the predicted boundary condition 'u_bc_pred' compared to the true boundary condition 'u_bc'.
def analyze(f_pred, f, u_bc_pred, u_bc, u_pred=None, u_num=None, normalize=True): """ Analyze the performance of a Poisson equation solver by comparing predictions with true or numerical values. This function calculates various error metrics including Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), Relative Mean Absolute Error (rMSE), Structural Similarity Index (SSIM), Peak Signal-to-Noise Ratio (PSNR), and R-Squared (R2) for each of the source term (f), solution (u), and boundary condition (bc) predictions. The predicted source term 'f_pred' and boundary condition 'u_bc_pred' are compared with the true source term 'f' and true boundary condition 'u_bc'. If provided, the predicted solution 'u_pred' is compared with the numerical solution 'u_num'. Parameters ---------- f_pred : array-like The predicted source term by the solver. Can be a list, numpy array or PyTorch tensor. f : array-like The true source term of the Poisson equation. Can be a list, numpy array or PyTorch tensor. u_bc_pred : array-like The predicted solution for the boundary condition. Can be a list, numpy array or PyTorch tensor. u_bc : array-like The true boundary condition. Can be a list, numpy array or PyTorch tensor. u_pred : array-like, optional The predicted solution of the Poisson equation. Can be a list, numpy array or PyTorch tensor (default is None). u_num : array-like, optional The numerical solution of the Poisson equation. Can be a list, numpy array or PyTorch tensor (default is None). normalize : bool, optional If True, normalize the input arrays before calculating the error metrics (default is True). Returns ------- dict A dictionary containing the calculated error metrics for the corresponding part of the Poisson equation. 'u' A dictionary containing the error metrics for the predicted solution 'u_pred' compared to the numerical solution 'u_num' (only if 'u_num' and 'u_pred' are provided). 'f' A dictionary containing the error metrics for the predicted source term 'f_pred' compared to the true source term 'f'. 'bc' A dictionary containing the error metrics for the predicted boundary condition 'u_bc_pred' compared to the true boundary condition 'u_bc'. """ if u_num is None or u_pred is None: u_num = [0] u_pred = [0] u_comparison = False else: u_comparison = True f, f_pred, u_pred, u_bc_pred, u_num, u_bc = format_input([f, f_pred, u_pred, u_bc_pred, u_num, u_bc], as_array=True) f, f_pred, u_pred, u_bc_pred, u_num, u_bc = [v.reshape(-1) for v in [f, f_pred, u_pred, u_bc_pred, u_num, u_bc]] if normalize: bv = u_bc[0] else: bv = 0 def analyze_struct(image1, image2, bv): image1_ = image1 - bv image2_ = image2 - bv maximum = np.max(image1_) minimum = np.min(image1_) if len(np.unique(image1_)) != 1 and normalize: image1_ = (image1_ - minimum) / (maximum - minimum) image2_ = (image2_ - minimum) / (maximum - minimum) range = 1 else: range = np.min((maximum - minimum, 1e-8)) ssim_value = ssim(image1_, image2_, data_range=range + 1e-8, multichannel=False, gaussian_weights=True) psnr_value = psnr(image1_, image2_, data_range=range) r2 = r2_score(image1_.reshape(-1), image2_.reshape(-1)) return ssim_value, psnr_value, r2 def analyze_standard(image1, image2, bv): image1_ = image1 - bv image2_ = image2 - bv maximum = np.max(image1_) minimum = np.min(image1_) if len(np.unique(image1_)) != 1 and normalize: image1_ = (image1_ - minimum) / (maximum - minimum) image2_ = (image2_ - minimum) / (maximum - minimum) mse = np.mean((image1_ - image2_) ** 2) rmse = np.sqrt(mse) mae = np.mean(np.abs(image1_ - image2_)) mae_r = np.mean(np.abs(image1_ - image2_)) / np.max((np.mean(np.abs(image1_)), 1e-6)) return mse, rmse, mae, mae_r res = {} if u_comparison: ssim_value_u, psnr_value_u, r2_u = analyze_struct(u_num, u_pred, bv) mse_u, rmse_u, mae_u, mae_r_u = analyze_standard(u_num, u_pred, bv) res['u'] = { 'MSE': mse_u, 'RMSE': rmse_u, 'MAE': mae_u, 'rMAE': mae_r_u, 'SSIM': ssim_value_u, 'PSNR': psnr_value_u, 'R2': r2_u } ssim_value_f, psnr_valuie_f, r2_f = analyze_struct(f, f_pred, 0) mse_f, rmse_f, mae_f, mae_r_f = analyze_standard(f, f_pred, 0) res['f'] = { 'MSE': mse_f, 'RMSE': rmse_f, 'MAE': mae_f, 'rMAE': mae_r_f, 'SSIM': ssim_value_f, 'PSNR': psnr_valuie_f, 'R2': r2_f } mse_u_bc, rmse_u_bc, mae_u_bc, mae_r_bc = analyze_standard(u_bc, u_bc_pred, bv) res['bc'] = { 'MSE': mse_u_bc, 'RMSE': rmse_u_bc, 'MAE': mae_u_bc, 'rMAE': mae_r_bc } return res
(f_pred, f, u_bc_pred, u_bc, u_pred=None, u_num=None, normalize=True)
[ 0.02791520021855831, -0.060453854501247406, -0.03201524540781975, 0.04531858116388321, -0.006722547113895416, -0.019824152812361717, -0.06254749000072479, -0.09046269208192825, -0.01971510984003544, 0.029529046267271042, 0.002794245956465602, 0.0038247094489634037, 0.027631685137748718, 0.053911227732896805, -0.016869068145751953, 0.06935182213783264, 0.01915898732841015, 0.0018373870989307761, 0.0071750786155462265, -0.01809035800397396, -0.0801689624786377, -0.03467591106891632, -0.008870708756148815, 0.08496689051389694, 0.014873567037284374, -0.010539078153669834, 0.029049254953861237, -0.04824095219373703, 0.00821644626557827, 0.021307148039340973, -0.0017651456873863935, -0.02490559220314026, 0.03572273254394531, -0.023466214537620544, -0.024120476096868515, -0.029463620856404305, 0.036725934594869614, 0.017250720411539078, -0.13015462458133698, 0.03770732879638672, -0.028896592557430267, -0.04531858116388321, 0.041611094027757645, 0.015789534896612167, -0.0317535400390625, 0.029092872515320778, -0.040455229580402374, -0.020576555281877518, 0.013979408890008926, -0.006422676611691713, -0.017915887758135796, -0.04558028653264046, 0.007453140337020159, 0.02933276817202568, -0.013532329350709915, 0.03170992061495781, 0.00013621948892250657, 0.022768335416913033, 0.006777069065719843, -0.09203292429447174, 0.02076192945241928, 0.016760023310780525, 0.011084296740591526, 0.01648741401731968, -0.01647651009261608, 0.00521774310618639, -0.008298229426145554, -0.013575946912169456, -0.0024902864824980497, 0.024818357080221176, -0.007295026909559965, -0.02233215980231762, 0.04640901833772659, -0.007458592299371958, 0.015964005142450333, 0.03151364251971245, 0.00869078654795885, -0.018940899521112442, 0.0008716684533283114, -0.06616774946451187, 0.08034343272447586, 0.04575475677847862, 0.016171187162399292, -0.06869756430387497, 0.009257813915610313, -0.003284942824393511, 0.025472618639469147, 0.03809988498687744, 0.04915692284703255, 0.023073656484484673, -0.06341984122991562, -0.013913982547819614, 0.03770732879638672, 0.04139300808310509, -0.0071205566637218, 0.06935182213783264, -0.026693910360336304, -0.06922096759080887, 0.005026916973292828, -0.04863351210951805, 0.037118490785360336, 0.06965714693069458, -0.011040679179131985, 0.04701966419816017, 0.009279622696340084, 0.0010079731000587344, -0.015200698748230934, 0.05347505211830139, 0.05212290957570076, -0.005790222901850939, -0.05578678101301193, 0.023466214537620544, -0.06529539823532104, -0.022114071995019913, -0.02586517669260502, -0.04950585961341858, -0.0599740594625473, 0.05373675748705864, -0.05033459514379501, 0.033083874732255936, -0.032887592911720276, 0.02227763831615448, -0.06246025860309601, 0.02575613372027874, -0.01159135065972805, -0.04363930597901344, 0.037380196154117584, 0.03205886110663414, 0.055568695068359375, -0.023400789126753807, -0.046190932393074036, -0.04448984935879707, 0.014710001647472382, 0.0383179746568203, -0.0071042003110051155, -0.035657305270433426, 0.004705237690359354, -0.006362702697515488, 0.039342984557151794, -0.035417407751083374, 0.03347643092274666, 0.013750416226685047, -0.04259248822927475, -0.03205886110663414, 0.0028160547371953726, -0.017272530123591423, 0.05705168843269348, 0.031164703890681267, 0.008210994303226471, -0.018003122881054878, 0.0008764390950091183, 0.017207102850079536, 0.04298504441976547, -0.023662492632865906, 0.007725749630481005, -0.06027938425540924, 0.10825863480567932, -0.06765074282884598, -0.006466294173151255, 0.03685678541660309, 0.0005217061843723059, -0.03755466639995575, 0.004797924775630236, -0.024731121957302094, -0.013521424494683743, -0.010364607907831669, 0.006150067318230867, 0.035766348242759705, 0.02212497591972351, 0.02913649007678032, -0.026781143620610237, -0.047455839812755585, -0.0781189426779747, 0.01305253617465496, -0.049113303422927856, 0.027304554358124733, 0.013739512301981449, -0.03785998746752739, -0.0463654026389122, 0.01426292210817337, 0.023858772590756416, -0.024382181465625763, -0.03432697057723999, -0.014622766524553299, -0.04270153120160103, 0.054914429783821106, 0.03663869947195053, -0.007191434968262911, 0.004882433917373419, 0.0048115551471710205, 0.02041298896074295, -0.028089668601751328, -0.02802424319088459, 0.01895180344581604, 0.03432697057723999, 0.008003811351954937, 0.015811342746019363, 0.02191779389977455, 0.02852584421634674, -0.05351867154240608, -0.03129555657505989, -0.002108633518218994, -0.05177397280931473, 0.02062017284333706, -0.07288484275341034, -0.04898245260119438, -0.03860148787498474, 0.029049254953861237, 0.027697112411260605, -0.0022313077934086323, -0.022059550508856773, 0.010201042518019676, -0.017010824754834175, 0.028918402269482613, 0.05500166490674019, 0.009961145929992199, 0.07493486255407333, 0.027958817780017853, -0.0069351824931800365, 0.008772569708526134, 0.01199481263756752, -0.08248069137334824, -0.043377604335546494, -0.012998014688491821, -0.0041109491139650345, 0.03648603707551956, 0.015898577868938446, 0.042265355587005615, 0.07951469719409943, -0.029877986758947372, 0.020827356725931168, -0.00783479306846857, 0.0010720363352447748, 0.0035711827222257853, 0.02020580694079399, 0.009726702235639095, -0.014731810428202152, 0.01653103157877922, -0.022506630048155785, -0.015538734383881092, -0.007938385009765625, -0.05535060539841652, -0.01549511682242155, 0.01156954187899828, -0.021536139771342278, -0.07707212120294571, 0.06568795442581177, 0.04006267338991165, -0.06494645774364471, -0.025276340544223785, 0.04128396138548851, -0.029420003294944763, 0.011733107268810272, 0.01945340447127819, -0.03266950696706772, -0.05578678101301193, 0.0249492097645998, 0.03242960944771767, 0.10093089193105698, -0.03862329572439194, 0.031230129301548004, -0.025996029376983643, 0.0017228912329301238, -0.015898577868938446, -0.03733658045530319, -0.0010883929207921028, -0.019671492278575897, 0.03812169283628464, -0.014023025520145893, 0.008325490169227123, -0.0006184825324453413, 0.039037663489580154, -0.050988856703042984, 0.001005247002467513, -0.0007483127410523593, 0.010800783522427082, 0.004320858512073755, 0.010086546652019024, 0.04366111755371094, 0.022103168070316315, 0.05378037691116333, -0.030881188809871674, -0.01325972005724907, 0.012725405395030975, 0.06014852970838547, 0.019889580085873604, -0.01028282567858696, -0.03441420570015907, 0.04832818731665611, -0.04767392575740814, 0.006215493660420179, -0.0347849540412426, -0.026017839089035988, -0.030161499977111816, -0.015015323646366596, 0.04217812046408653, -0.020500224083662033, -0.022593865171074867, 0.014622766524553299, -0.016923589631915092, -0.03018330968916416, 0.028656696900725365, 0.07598168402910233, -0.01506984606385231, -0.04867712780833244, -0.0040073576383292675, 0.043377604335546494, -0.006253658793866634, 0.007164174225181341, -0.06817415356636047, -0.004776115994900465, 0.04202546179294586, 0.03975734859704971, 0.049375008791685104, 0.008423629216849804, -0.0544346384704113, 0.01793769560754299, 0.014404678717255592, 0.03214609622955322, 0.03663869947195053, 0.0023962364066392183, -0.00008054755016928539, 0.02686837874352932, 0.013085249811410904, 0.03064129315316677, -0.07070396840572357, -0.009601302444934845, -0.014066643081605434, 0.004961490631103516, 0.020140379667282104, 0.010648122057318687, -0.028264138847589493, 0.042876001447439194, 0.04523134604096413, -0.023880580440163612, -0.01383765134960413, -0.007643966935575008, -0.00728412251919508, 0.03079395368695259, -0.023858772590756416, -0.0020541115663945675, 0.011416880413889885, -0.04124034568667412, 0.024774739518761635, -0.012594552710652351, -0.05805489048361778, 0.009519519284367561, -0.05578678101301193, -0.026584865525364876, 0.017708703875541687, -0.0388195738196373, 0.06695286184549332, 0.02137257531285286, 0.06608051061630249, 0.0468888096511364, 0.02429494634270668, -0.060104914009571075, -0.06922096759080887, 0.04366111755371094, -0.03055405803024769, -0.016574649140238762, 0.0483718067407608, -0.023771537467837334, -0.02606145478785038, 0.011700394563376904, -0.00939957145601511, -0.011209697462618351, 0.01758875697851181, 0.06176237761974335, -0.04442442208528519, -0.009939337149262428, -0.01996590942144394, -0.019039038568735123, -0.007256861310452223, 0.001994137419387698, 0.026846570894122124, 0.004410819616168737, 0.004031892400234938, -0.046452637761831284, -0.0023539818357676268, 0.02294280380010605, 0.03389079496264458, -0.11436508595943451, 0.008876160718500614, 0.08405092358589172, -0.0322551392018795, -0.013270623981952667, 0.01612756960093975, 0.014786331914365292, -0.023531639948487282, -0.013739512301981449, 0.016421988606452942, 0.02686837874352932, -0.011515019461512566, 0.015462403185665607, 0.02651944011449814, 0.01086075697094202, 0.06363793462514877, -0.08832543343305588, -0.02232125587761402, -0.03624614328145981, -0.06337622553110123, -0.01111701037734747, 0.0036775004118680954, -0.018330253660678864, -0.04701966419816017, 0.014917184598743916, 0.009803032502532005, -0.004059153608977795, 0.08727861195802689, -0.003028690116479993, -0.040607891976833344, -0.03683497756719589, -0.04963671416044235, -0.11131186038255692, 0.0514250323176384, -0.020183997228741646, -0.01799221895635128, 0.006346346344798803, 0.005310430657118559, 0.03554826229810715, -0.021808749064803123, 0.014655479229986668, 0.048720747232437134, -0.008990656584501266, 0.013739512301981449, -0.025690706446766853, 0.012223804369568825, -0.019998623058199883, 0.02212497591972351, -0.009748511016368866, 0.019682396203279495, -0.020173093304038048, -0.05029097571969032, -0.027958817780017853, -0.04246163368225098, -0.003819257253780961, -0.012540031224489212, 0.015702299773693085, 0.014655479229986668, 0.06158790737390518, 0.031077468767762184, 0.04640901833772659, 0.004757033661007881, -0.02425132878124714, 0.021198105067014694, -0.03652965649962425, -0.010479103773832321, -0.08854352682828903, -0.030379587784409523, 0.022135881707072258, -0.0014039382804185152, 0.022157689556479454, 0.002291281707584858, 0.04610369727015495, 0.010828044265508652, -0.02287737838923931, -0.037423815578222275, -0.003898313967511058, 0.023204509168863297, -0.043224941939115524, 0.03666050732135773, -0.0383179746568203, 0.04331217706203461, -0.01763237453997135, 0.046496253460645676, 0.053605906665325165, -0.03184077516198158, -0.013532329350709915, 0.011329645290970802, -0.010484556667506695, -0.04510049521923065, -0.0021399834658950567, 0.03402164950966835, -0.04442442208528519, 0.005937431938946247, -0.005239551886916161, -0.008848899975419044, -0.010648122057318687, -0.005209565162658691, 0.025319958105683327, -0.02222311496734619, -0.04108768329024315, 0.015582351945340633, 0.04985480010509491, -0.028809357434511185, 0.0388195738196373, -0.03755466639995575, -0.02525453269481659, -0.03609348088502884, -0.0710965245962143, -0.04464251175522804, 0.049069687724113464, 0.04963671416044235, -0.09063716232776642, -0.010097450576722622, 0.025276340544223785, 0.0018591958796605468, 0.035919010639190674, -0.08431262522935867, 0.02706465870141983, 0.005373130552470684, -0.0761125385761261, -0.013630468398332596, 0.042570680379867554, 0.006090093404054642, -0.007698488421738148, -0.0016656432999297976, -0.02702104113996029, 0.014252018183469772, -0.0453622005879879, -0.02223402075469494, 0.054958049207925797, -0.0095740407705307, -0.03559187799692154, -0.009557684883475304, 0.02449122630059719, -0.011384167708456516, -0.05700807273387909, -0.000890069582965225, 0.015636872500181198, -0.012300134636461735, 0.00411912752315402, -0.001442103530280292, 0.0284822266548872, 0.06276558339595795, 0.0005377219640649855, -0.0013207923620939255, 0.03986639529466629, -0.05452187359333038, -0.0630272850394249, -0.03639880195260048, 0.0025025540962815285, -0.02449122630059719, 0.008559933863580227, 0.0023008231073617935, 0.06490284204483032, -0.03718391805887222, -0.03149183467030525, 0.004836090374737978, 0.014393774792551994, 0.04885159805417061, 0.009939337149262428, -0.03905947133898735, 0.062067702412605286, 0.0004470793646760285, -0.003012333530932665, 0.014132069423794746, -0.03205886110663414, -0.04078236222267151, 0.014917184598743916, -0.027762537822127342, 0.06747627258300781, 0.008080141618847847, 0.05578678101301193, 0.08553391695022583, 0.028569461777806282, 0.007540374994277954, 0.03633337840437889, 0.007115104701370001, -0.03685678541660309, -0.06538262963294983, 0.01658555492758751, -0.032385993748903275, -0.07497847825288773, 0.03297482803463936, 0.022190403193235397, 0.01295439712703228, -0.030968423932790756, -0.019573353230953217, -0.0024889234919101, 0.0559612512588501, 0.010119259357452393, -0.0004153885238338262, -0.02514548785984516, -0.03502485156059265, 0.03162268549203873, -0.04124034568667412, -0.008990656584501266, -0.023618875071406364, 0.03055405803024769, -0.021143583580851555, 0.06115173548460007, -0.012038430199027061, 0.007404070347547531, 0.026890188455581665, -0.05753147974610329, 0.019824152812361717, -0.02525453269481659, 0.051686737686395645, -0.019933197647333145, -0.024076860398054123, -0.030684910714626312, -0.00430722814053297, -0.033083874732255936, 0.014764523133635521, 0.0033639995381236076, -0.02060926891863346, 0.03766370937228203, -0.0003293461923021823, -0.052340999245643616, -0.021339861676096916, 0.0032658602576702833, -0.08854352682828903, 0.030466822907328606, -0.03064129315316677, 0.011078844778239727, 0.005931979976594448, 0.027479024603962898, 0.00814011599868536, 0.04108768329024315, 0.020751025527715683, 0.00012761526159010828, -0.023073656484484673, 0.03489400073885918, -0.004015536047518253, 0.020936399698257446, 0.03766370937228203, 0.04566752165555954, 0.011678585782647133, 0.008783473633229733, 0.06699647754430771, -0.0209145899862051, 0.016454702243208885, -0.009154222905635834, 0.0008225987548939884, 0.018384775146842003, -0.057138923555612564, 0.007235052529722452, -0.021350765600800514, -0.015865866094827652, 0.012420082464814186, 0.05535060539841652, -0.021394383162260056, 0.00559394434094429, 0.022920995950698853, 0.07489124685525894, 0.04606007784605026, -0.04444622993469238, 0.06080279499292374, 0.03557007014751434, -0.04078236222267151, 0.030074264854192734, 0.02579975128173828, 0.01803583651781082, 0.06464113295078278, 0.009841198101639748, -0.008941587060689926, 0.11532466858625412, 0.06477198749780655, -0.01028282567858696, 0.03140459954738617, -0.04479517042636871, -0.024403991177678108, -0.021394383162260056, 0.018210306763648987, -0.03232056647539139, -0.002662030514329672, -0.018123071640729904, -0.0031050206162035465, -0.043377604335546494, -0.01245279610157013, 0.012005716562271118, 0.011438689194619656, 0.006537172477692366, 0.01743609458208084, 0.02913649007678032, 0.019671492278575897, -0.013532329350709915, 0.04981118440628052, -0.012769022956490517, 0.0020541115663945675, 0.02403324283659458, 0.01303072739392519, 0.0514250323176384, 0.02112177386879921, 0.013913982547819614, 0.010419130325317383, -0.07423698157072067, -0.022103168070316315, 0.051294177770614624, 0.07096567004919052, 0.0027588068041950464, -0.016814546659588814, 0.03663869947195053, -0.02898382768034935, -0.025080062448978424, -0.019039038568735123, 0.004290871322154999, 0.02287737838923931, -0.03925574943423271, 0.031121086329221725, 0.009999311529099941, -0.020990921184420586, -0.00182103062979877, 0.01749061793088913, -0.024076860398054123, 0.021710610017180443, -0.0142411133274436, 0.0002852175384759903, -0.007000608369708061, -0.04370473325252533, -0.014829949475824833, 0.01910446397960186, -0.009105153381824493, 0.07323378324508667, -0.045536670833826065, -0.0037810918875038624, 0.0025652542244642973, -0.08662435412406921, -0.009394118562340736, 0.01295439712703228, 0.025647088885307312, -0.0008566749165765941, -0.023051848635077477, 0.05125056207180023, 0.011035227216780186, 0.057138923555612564, 0.0008110128692351282, 0.009372309781610966, 0.05011650547385216, -0.0008253248524852097, 0.06285281479358673, 0.013957600109279156, -0.08509773761034012, 0.003151364391669631, 0.02252843789756298, -0.09046269208192825, 0.039539262652397156, 0.030030647292733192, 0.0191480815410614, 0.057182542979717255, -0.08034343272447586, 0.0007312746602110565, -0.03947383537888527, -0.05805489048361778, 0.017883174121379852, -0.048459041863679886, -0.02837318368256092, 0.031273745000362396, 0.058185745030641556, -0.0438355877995491, -0.04771754518151283, -0.04086959734559059, -0.01653103157877922, 0.07576359808444977, 0.0002373405295656994, 0.013663182035088539, -0.01658555492758751, -0.0056375619024038315, 0.05866553634405136, -0.023204509168863297, -0.005735700950026512, 0.040149908512830734, 0.02817690372467041, 0.022353967651724815, 0.0705731138586998, -0.021612470969557762, -0.015113463625311852, -0.013684989884495735, 0.020903686061501503, 0.014557340182363987, 0.017850462347269058, 0.05705168843269348, -0.003601169679313898, 0.028002433478832245, -0.05338782072067261, 0.006160971708595753 ]
43,197
fast_poisson_solver.utils
bicubic_interpolate
Performs bicubic interpolation of a two-dimensional field. The function performs bicubic interpolation of a field, which is defined by its values `v_base` at points `(x_pde_base, y_pde_base)` for the domain and `(x_bc_base, y_bc_base)` for the boundary. Interpolation is done at new points `(x_pde_new, y_pde_new)` for the domain and `(x_bc_new, y_bc_new)` for the boundary. Interpolation can be done only inside the domain, excluding the boundary, depending on the `domain` parameter. Parameters ---------- x_pde_base : tensor/array/list x-coordinates of the PDE base points. y_pde_base : tensor/array/list y-coordinates of the PDE base points. x_bc_base : tensor/array/list x-coordinates of the boundary base points. y_bc_base : tensor/array/list y-coordinates of the boundary base points. v_base : tensor/array/list Values of the field at the base points. x_pde_new : tensor/array/list x-coordinates of the new PDE points for interpolation. y_pde_new : tensor/array/list y-coordinates of the new PDE points for interpolation. x_bc_new : tensor/array/list x-coordinates of the new boundary points for interpolation. y_bc_new : tensor/array/list y-coordinates of the new boundary points for interpolation. domain : bool, optional If True, the interpolation is done only inside the domain, not on the boundary. Defaults to False. Returns ------- tensor/array/list The interpolated field values at the new points.
def bicubic_interpolate(x_pde_base, y_pde_base, x_bc_base, y_bc_base, v_base, x_pde_new, y_pde_new, x_bc_new, y_bc_new, domain=False): """ Performs bicubic interpolation of a two-dimensional field. The function performs bicubic interpolation of a field, which is defined by its values `v_base` at points `(x_pde_base, y_pde_base)` for the domain and `(x_bc_base, y_bc_base)` for the boundary. Interpolation is done at new points `(x_pde_new, y_pde_new)` for the domain and `(x_bc_new, y_bc_new)` for the boundary. Interpolation can be done only inside the domain, excluding the boundary, depending on the `domain` parameter. Parameters ---------- x_pde_base : tensor/array/list x-coordinates of the PDE base points. y_pde_base : tensor/array/list y-coordinates of the PDE base points. x_bc_base : tensor/array/list x-coordinates of the boundary base points. y_bc_base : tensor/array/list y-coordinates of the boundary base points. v_base : tensor/array/list Values of the field at the base points. x_pde_new : tensor/array/list x-coordinates of the new PDE points for interpolation. y_pde_new : tensor/array/list y-coordinates of the new PDE points for interpolation. x_bc_new : tensor/array/list x-coordinates of the new boundary points for interpolation. y_bc_new : tensor/array/list y-coordinates of the new boundary points for interpolation. domain : bool, optional If True, the interpolation is done only inside the domain, not on the boundary. Defaults to False. Returns ------- tensor/array/list The interpolated field values at the new points. """ x_pde_base, y_pde_base, x_bc_base, y_bc_base, v_base, x_pde_new, y_pde_new, x_bc_new, y_bc_new = format_input( [x_pde_base, y_pde_base, x_bc_base, y_bc_base, v_base, x_pde_new, y_pde_new, x_bc_new, y_bc_new], precision=v_base.dtype, device='cpu', as_array=True, reshape=True) if domain: x_base = x_pde_base.reshape(-1) y_base = y_pde_base.reshape(-1) x_new = x_pde_new.reshape(-1) y_new = y_pde_new.reshape(-1) else: x_base = np.concatenate([x_pde_base, x_bc_base]).reshape(-1) y_base = np.concatenate([y_pde_base, y_bc_base]).reshape(-1) x_new = np.concatenate([x_pde_new, x_bc_new]).reshape(-1) y_new = np.concatenate([y_pde_new, y_bc_new]).reshape(-1) coordinates_base = np.array([x_base, y_base]).T coordinates_new = np.array([x_new, y_new]).T v_new = griddata(coordinates_base, v_base.reshape(-1), coordinates_new, method='cubic') return v_new
(x_pde_base, y_pde_base, x_bc_base, y_bc_base, v_base, x_pde_new, y_pde_new, x_bc_new, y_bc_new, domain=False)
[ 0.004314132500439882, -0.0876605436205864, -0.064789317548275, 0.02765168994665146, -0.04124319925904274, -0.010282679460942745, -0.024839652702212334, -0.04720471426844597, -0.012269851751625538, -0.026751838624477386, 0.010751351714134216, -0.04394275322556496, -0.041768111288547516, 0.04334285110235214, -0.029095200821757317, 0.004375059623271227, 0.003198691178113222, -0.0039602844044566154, -0.023564863950014114, -0.07918693870306015, -0.015363091602921486, -0.06711392849683762, 0.03301330655813217, 0.03861863166093826, 0.056953106075525284, 0.0068145012483000755, 0.03567536547780037, -0.017772069200873375, -0.03417561203241348, -0.031682275235652924, 0.013900832273066044, 0.02052786387503147, 0.000585840898565948, 0.012701030820608139, 0.04720471426844597, -0.022365061566233635, 0.03595656901597977, 0.002448814921081066, -0.04278044402599335, 0.03749381750822067, -0.009954608045518398, -0.05249134451150894, 0.014847551472485065, -0.015634922310709953, 0.06598911434412003, 0.03989342227578163, -0.03918103873729706, 0.017706455662846565, -0.01435075793415308, 0.07390031218528748, 0.004897629842162132, -0.09095999598503113, -0.009598417207598686, 0.017837682738900185, -0.0413556806743145, 0.05931521952152252, 0.03676268830895424, 0.06163983419537544, 0.010676364414393902, -0.03541291132569313, -0.010038969106972218, -0.02757670171558857, -0.04690476506948471, -0.036144040524959564, 0.005516277626156807, 0.022365061566233635, -0.030032547190785408, -0.046417344361543655, 0.0037001711316406727, 0.03910605236887932, -0.003233841620385647, 0.04709223285317421, 0.01496940664947033, -0.06186479702591896, 0.018634427338838577, 0.07753721624612808, 0.015738029032945633, 0.010948194190859795, 0.006575478240847588, -0.061114922165870667, 0.01827823556959629, -0.024445967748761177, 0.032750848680734634, -0.016656627878546715, 0.011726191267371178, -0.0057646743953228, -0.030557461082935333, 0.013760230503976345, -0.021540198475122452, -0.04259297624230385, 0.018775029107928276, -0.037043891847133636, -0.005535024683922529, 0.05035419389605522, 0.06328956037759781, -0.05020422115921974, -0.031176108866930008, -0.04772963002324104, 0.004447704181075096, 0.00963591132313013, 0.04203056916594505, 0.022271327674388885, -0.06280214339494705, -0.047504667192697525, 0.04675478860735893, -0.020246660336852074, 0.007770593278110027, 0.0370626375079155, -0.016656627878546715, -0.05826539173722267, -0.03083866462111473, 0.024464715272188187, -0.06081496924161911, 0.008281446993350983, -0.06921358406543732, -0.008712626062333584, -0.02180265448987484, 0.07003845274448395, 0.012391705997288227, -0.017659587785601616, -0.015597427263855934, 0.03693141043186188, -0.022308820858597755, 0.004363343119621277, 0.014791310764849186, -0.020302901044487953, 0.035019226372241974, 0.03543165698647499, -0.03891858085989952, -0.0600275993347168, -0.025589529424905777, 0.0252520851790905, -0.05635320767760277, 0.028176603838801384, -0.012447946704924107, -0.007887762039899826, -0.0216339323669672, 0.01204488892108202, -0.0021418342366814613, 0.010029596276581287, 0.017659587785601616, -0.023321153596043587, 0.05650318041443825, 0.053428687155246735, 0.029526380822062492, 0.023714838549494743, 0.0865357294678688, 0.02197137661278248, -0.018681293353438377, 0.042967915534973145, -0.05380362644791603, 0.07303795218467712, 0.01555056031793356, -0.015063140541315079, 0.03895607590675354, -0.0526038259267807, 0.02050911821424961, -0.004468794446438551, 0.00008699737372808158, 0.029038960114121437, -0.024352233856916428, 0.014182035811245441, 0.017528358846902847, 0.031476058065891266, 0.0034658347722142935, 0.017593974247574806, 0.02167142555117607, -0.04023086652159691, -0.016375424340367317, 0.0013650092296302319, 0.012935366481542587, -0.034850504249334335, -0.05882779881358147, 0.019721748307347298, -0.01482880488038063, 0.013872711919248104, -0.023208672180771828, -0.037193864583969116, 0.010854460299015045, -0.0003084452182520181, 0.006866055075079203, 0.001500924350693822, 0.03310703858733177, -0.01496940664947033, -0.025477048009634018, 0.037156373262405396, 0.01942179724574089, 0.009682778269052505, -0.001239639357663691, -0.015841137617826462, -0.011332506313920021, 0.0000035974292131868424, 0.00545066362246871, 0.017865803092718124, 0.029301417991518974, 0.02532707341015339, 0.008806359954178333, 0.017659587785601616, 0.017434624955058098, 0.05822789669036865, 0.0021523793693631887, -0.06902612000703812, 0.07221309095621109, -0.02515835128724575, -0.0024230380076915026, -0.02622692473232746, -0.02528958022594452, -0.019103098660707474, 0.03445681929588318, 0.01492253877222538, 0.024445967748761177, 0.010367040522396564, -0.04892943054437637, -0.015316223725676537, -0.006627032067626715, 0.020771574229002, -0.0032244683243334293, -0.009682778269052505, 0.00906413048505783, 0.006828561425209045, 0.03775627166032791, -0.013094715774059296, -0.00027168370434083045, -0.005914649460464716, 0.04218054190278053, 0.004911690019071102, 0.01552243996411562, 0.02307744324207306, -0.030238762497901917, -0.09673404693603516, -0.004883569665253162, -0.03404438495635986, -0.06621407717466354, -0.013000980950891972, 0.050804123282432556, -0.04847950488328934, -0.016525398939847946, -0.0388810895383358, 0.006734826602041721, 0.0569906011223793, -0.032525885850191116, 0.000548347074072808, -0.03548789769411087, -0.0034494311548769474, -0.00007121628004824743, -0.047692134976387024, -0.013722737319767475, 0.03312578797340393, 0.013788350857794285, 0.048891935497522354, -0.030107535421848297, -0.028045374900102615, -0.0263956468552351, 0.020190419629216194, 0.007672172039747238, 0.02060285210609436, 0.005605325568467379, -0.02738923393189907, 0.04019337147474289, -0.001292365021072328, -0.006505177356302738, -0.03471927344799042, -0.046417344361543655, 0.08496098965406418, 0.006458309944719076, -0.026620609685778618, 0.009373454377055168, 0.02877650409936905, 0.03798123449087143, 0.012063635513186455, -0.04600491374731064, 0.07487515360116959, -0.03899357095360756, -0.038356173783540726, 0.03198222443461418, 0.030220016837120056, 0.028888985514640808, 0.021109018474817276, 0.04829203709959984, -0.06317707896232605, 0.025477048009634018, -0.0592777244746685, -0.010198318399488926, -0.018634427338838577, -0.0010978658683598042, -0.016806602478027344, -0.019703000783920288, -0.06891363859176636, 0.010160824283957481, -0.02508336305618286, -0.04577995091676712, 0.007864328101277351, -0.02963886223733425, 0.05042918398976326, 0.0032643054146319628, 0.0064161294139921665, -0.03584408760070801, -0.030070040374994278, -0.0113887470215559, -0.03651897609233856, 0.031157361343503, 0.005024171434342861, 0.014050807803869247, 0.024558449164032936, -0.010460774414241314, -0.06546420603990555, 0.008262699469923973, -0.017565853893756866, -0.01599111221730709, -0.047392185777425766, -0.011782431975007057, -0.00852047000080347, -0.022215086966753006, -0.02288997545838356, 0.05661566182971001, -0.05350367724895477, 0.0016649598255753517, 0.02290872111916542, 0.032582126557826996, 0.019946711137890816, 0.0020445846021175385, 0.005272567737847567, 0.008436108939349651, 0.09448441863059998, -0.035000476986169815, -0.0035103585105389357, 0.024633437395095825, 0.018887510523200035, -0.0030416857916861773, 0.04705474153161049, 0.026151936501264572, 0.026958053931593895, -0.015100634656846523, 0.019703000783920288, -0.03166352957487106, -0.0689886212348938, 0.01712530106306076, -0.050954096019268036, 0.0392560251057148, -0.01201676856726408, -0.010404533706605434, 0.06216474622488022, -0.017893923446536064, -0.016319183632731438, -0.02536456659436226, -0.020396636798977852, 0.04907940700650215, -0.015728656202554703, 0.007301920559257269, 0.052003923803567886, -0.061452366411685944, -0.05815291032195091, -0.003355696564540267, 0.007925255224108696, -0.022140098735690117, 0.003625183366239071, -0.008239266462624073, -0.014556974172592163, 0.0369689017534256, 0.007662798743695021, 0.024952134117484093, -0.003482238156720996, 0.012532307766377926, 0.030276257544755936, -0.007540944032371044, -0.0027534521650522947, -0.02995755895972252, -0.0049819909036159515, -0.03451306000351906, 0.027876652777194977, -0.0028940539341419935, -0.04214305058121681, 0.012766644358634949, 0.019234327599406242, -0.021258994936943054, -0.021240247413516045, -0.033763181418180466, -0.005938083399087191, 0.004719533957540989, 0.032582126557826996, 0.04829203709959984, -0.04341784119606018, -0.016506653279066086, 0.012035515159368515, 0.013619628734886646, 0.020396636798977852, 0.0701509341597557, 0.005633445922285318, 0.020340396091341972, -0.03708138316869736, -0.02641439437866211, -0.007822147570550442, 0.038299933075904846, 0.030576206743717194, -0.0478421114385128, -0.037118878215551376, 0.05372864007949829, -0.004145409911870956, 0.027220509946346283, -0.04120570421218872, -0.022665012627840042, -0.0008647011709399521, -0.03096989169716835, 0.03361320495605469, 0.029507633298635483, -0.08578585088253021, 0.0705258697271347, 0.028139108791947365, 0.01836259663105011, 0.01268228329718113, 0.019187461584806442, 0.07476267218589783, -0.0007240993436425924, -0.018999991938471794, -0.047392185777425766, 0.010741978883743286, -0.08533592522144318, -0.022365061566233635, -0.021090270951390266, 0.04371779039502144, 0.0004663293366320431, 0.026133190840482712, 0.010385787114501, 0.002157066250219941, -0.023189924657344818, -0.041993074119091034, -0.008712626062333584, 0.004466450773179531, 0.02056535892188549, -0.0033369497396051884, -0.002697211457416415, -0.046454839408397675, -0.036875169724226, -0.0004499258066061884, -0.02654562145471573, -0.03695015609264374, 0.0872856080532074, 0.03228217735886574, 0.061114922165870667, 0.023433635011315346, 0.012560428120195866, 0.009420321322977543, 0.020096685737371445, -0.09260972589254379, -0.05365364998579025, 0.02517709694802761, -0.06501428037881851, -0.041880592703819275, -0.0716506838798523, -0.009982728399336338, 0.03130733594298363, 0.01838134415447712, 0.044205211102962494, 0.0194405447691679, 0.04019337147474289, -0.024877147749066353, -0.01491316594183445, -0.06493929028511047, -0.02298370935022831, 0.0148662980645895, 0.03104487992823124, 0.06985098123550415, 0.0023761705961078405, 0.04660481587052345, 0.009195358492434025, -0.009860874153673649, 0.03993091359734535, -0.03548789769411087, -0.0015559933381155133, 0.004679697100073099, 0.019037485122680664, -0.030669942498207092, -0.018793774768710136, 0.011257518082857132, -0.007428462617099285, 0.05016672611236572, 0.029620114713907242, 0.06763884425163269, 0.046492334455251694, -0.04697975143790245, -0.024952134117484093, -0.06167732924222946, -0.044130221009254456, 0.024352233856916428, 0.012194863520562649, 0.0017891580937430263, 0.0150068998336792, 0.08391115814447403, -0.008665758185088634, -0.02412727102637291, -0.03798123449087143, -0.00966403167694807, -0.010554509237408638, 0.07003845274448395, -0.09440942853689194, -0.04244299978017807, 0.0008266214863397181, -0.059240229427814484, 0.09343459457159042, -0.01821262203156948, 0.07075083255767822, 0.020134178921580315, -0.02624567225575447, 0.020902803167700768, 0.052003923803567886, -0.016319183632731438, 0.023396141827106476, 0.09335960447788239, -0.04015587642788887, -0.004977304022759199, -0.04562997445464134, -0.006434876471757889, 0.03826243802905083, 0.009645284153521061, -0.02528958022594452, 0.0019051545532420278, -0.031457312405109406, 0.03820619732141495, -0.030276257544755936, -0.040718283504247665, -0.005516277626156807, 0.07836207747459412, 0.0286827702075243, 0.004363343119621277, -0.012532307766377926, 0.0794868916273117, -0.0320197194814682, -0.06850120425224304, -0.001974283717572689, 0.024389727041125298, -0.027051787823438644, -0.03426934778690338, 0.08601081371307373, -0.006041191052645445, -0.007817461155354977, 0.061377376317977905, -0.013666496612131596, -0.037156373262405396, -0.07708729058504105, -0.05312873795628548, -0.00810335110872984, 0.033688195049762726, 0.005675626453012228, -0.012972860597074032, 0.002276577753946185, 0.05072913318872452, 0.016666000708937645, 0.01615983434021473, 0.004178217146545649, 0.004719533957540989, 0.023752333596348763, -0.0063692620024085045, 0.03089490532875061, 0.024464715272188187, 0.023414889350533485, -0.004382089711725712, -0.05474097281694412, 0.0029104575514793396, -0.03766253963112831, 0.008286133408546448, -0.00547878397628665, 0.010470148175954819, 0.08826044201850891, 0.040830764919519424, -0.035094212740659714, 0.060065094381570816, -0.016975324600934982, 0.052153900265693665, 0.03284458443522453, -0.0069410428404808044, 0.023696092888712883, 0.0363127626478672, 0.02283373475074768, -0.023564863950014114, 0.0015700535150244832, 0.0009484763722866774, -0.00919067207723856, -0.09095999598503113, -0.02521459199488163, -0.07806212455034256, -0.028139108791947365, -0.018662547692656517, 0.0529787614941597, -0.03989342227578163, 0.019149966537952423, -0.003346323035657406, -0.06040253862738609, 0.05849035456776619, 0.08848540484905243, 0.022215086966753006, -0.017865803092718124, 0.06088995933532715, 0.00457893218845129, 0.03186974301934242, -0.0319259837269783, -0.003409594064578414, -0.029376406222581863, 0.008234579116106033, 0.006833248306065798, -0.05144151672720909, -0.0364064946770668, 0.012532307766377926, -0.007559690624475479, 0.023546116426587105, -0.015653667971491814, -0.06775132566690445, 0.01148248091340065, -0.03809371590614319, 0.0063692620024085045, -0.03475676849484444, 0.08781051635742188, 0.0015372465131804347, 0.01437887828797102, -0.018634427338838577, -0.009888994507491589, -0.013469653204083443, -0.0615648478269577, 0.004752341192215681, 0.06220224127173424, 0.009767139330506325, -0.006547357887029648, 0.0015501349698752165, 0.01262604258954525, -0.007142572198063135, -0.034962985664606094, 0.01382584497332573, 0.04919188842177391, -0.08488599956035614, -0.02408977784216404, 0.0055069043301045895, 0.004068078938871622, -0.04731719568371773, -0.03179475665092468, 0.0066551524214446545, -0.014360131695866585, 0.01439762581139803, 0.04113071784377098, 0.017912670969963074, -0.021202754229307175, 0.04596741870045662, 0.009645284153521061, -0.0016684748698025942, 0.011191904544830322, 0.007128512021154165, 0.031607288867235184, -0.061452366411685944, -0.006275527644902468, -0.031157361343503, 0.015110008418560028, 0.045255035161972046, -0.04600491374731064, 0.07273800671100616, -0.0018371969927102327, -0.023227419704198837, 0.009059443138539791, 0.05166647955775261, -0.030051294714212418, 0.0160098597407341, 0.023171178996562958, -0.00231172819621861, -0.0018571156542748213, 0.0216339323669672, -0.01957177184522152, 0.005989637225866318, -0.031569793820381165, 0.00460705254226923, 0.05639069899916649, -0.0016380110755562782, -0.06051502004265785, 0.021296488121151924, 0.01603798009455204, -0.0777621790766716, -0.032882075756788254, -0.016684748232364655, 0.03353821858763695, -0.04469262808561325, -0.005628759041428566, -0.00855796318501234, -0.027839159592986107, 0.011848046444356441, 0.09500933438539505, -0.009795259684324265, 0.0021664395462721586, 0.03996840864419937, 0.064789317548275, 0.011754311621189117, -0.009945235215127468, -0.00921410508453846, -0.012588548474013805, 0.027970386669039726, 0.06958852708339691, 0.05496593564748764, -0.0026550309266895056, -0.02073408104479313, 0.027033042162656784, -0.014744443818926811, 0.013994567096233368, -0.04026835784316063, -0.05114156752824783, 0.0045906491577625275, -0.012963486835360527, -0.043005406856536865, -0.04465513676404953, 0.02767043747007847, 0.012897873297333717, 0.07926192879676819, 0.005038231611251831, -0.011979274451732635, -0.03340699151158333, -0.02169017307460308, 0.05369114503264427, -0.011463734321296215, 0.011782431975007057, -0.07142572104930878, 0.005703746806830168, 0.023283660411834717, -0.015081888064742088, 0.015363091602921486, 0.0077377865090966225, 0.024333486333489418, -0.01540995854884386, 0.02532707341015339, 0.027989134192466736, -0.028888985514640808, 0.028195349499583244, 0.016319183632731438, 0.02073408104479313, -0.052228886634111404, -0.07753721624612808, 0.015110008418560028, 0.021446462720632553, 0.10573256015777588, -0.016675375401973724, -0.028270337730646133, 0.029170189052820206, -0.02082781493663788, -0.009059443138539791, -0.03119485452771187, -0.04450516030192375, 0.02538331411778927, 0.005305374972522259, -0.05530337989330292, 0.01927182264626026, -0.019946711137890816, -0.04023086652159691, 0.04131818562746048, 0.01148248091340065, -0.04221803694963455, -0.045292530208826065, 0.01027330569922924, 0.01589737832546234, 0.04952933266758919, -0.06756385415792465, -0.013675869442522526, 0.03657521679997444, -0.056690651923418045, 0.04772963002324104, 0.025795746594667435, -0.04034334793686867, -0.03216969594359398, -0.04458014667034149, 0.02643314003944397, 0.05076662823557854, 0.11570591479539871, 0.017715828493237495, 0.054366033524274826, 0.010704484768211842, 0.0701509341597557 ]
43,202
fast_poisson_solver.utils
format_input
null
def format_input(v, precision=torch.float32, device='cpu', as_array=False, reshape=True): if isinstance(device, str): device = torch.device(device) for i in range(len(v)): if isinstance(v[i], list): v[i] = torch.tensor(v[i], dtype=precision, device=device) elif isinstance(v[i], np.ndarray): v[i] = torch.tensor(v[i], dtype=precision, device=device) elif isinstance(v[i], int) or isinstance(v[i], float): continue else: v[i] = v[i].to(precision).to(device) if reshape: v = [v_i.reshape(-1, 1) for v_i in v] if as_array: v = [v_i.detach().cpu().numpy() for v_i in v] return v
(v, precision=torch.float32, device='cpu', as_array=False, reshape=True)
[ -0.009825856424868107, 0.0023393845185637474, -0.02854093164205551, -0.022461624816060066, -0.006746440194547176, 0.009035016410052776, -0.016285119578242302, -0.030785327777266502, 0.034302134066820145, 0.051356006413698196, -0.02101248875260353, -0.024493951350450516, -0.028452569618821144, -0.03246420621871948, 0.03030817210674286, 0.04591290280222893, 0.037924978882074356, -0.05683445185422897, 0.03142153471708298, 0.03834911435842514, 0.055067211389541626, -0.007356137968599796, -0.01416443195194006, 0.0032185865566134453, -0.000562203349545598, -0.022143522277474403, 0.028753001242876053, -0.006353229284286499, -0.04354480281472206, -0.005690514110028744, -0.0061544147320091724, 0.035221099853515625, 0.03166894614696503, 0.05683445185422897, 0.01662973128259182, -0.01820257492363453, -0.044887904077768326, 0.01860904134809971, -0.06542323529720306, 0.019457316026091576, -0.0223732627928257, -0.06178272143006325, -0.016965506598353386, 0.027144812047481537, -0.02044697105884552, 0.049518074840307236, 0.049765489995479584, 0.003231840906664729, -0.05202755704522133, -0.03778360038995743, 0.019969815388321877, -0.00733846565708518, 0.0019428598461672664, 0.016921326518058777, -0.0824240893125534, -0.00366923282854259, 0.05570341646671295, 0.013431026600301266, 0.0005787712289020419, -0.02700343355536461, -0.04517066478729248, 0.022567659616470337, 0.04174221679568291, 0.003989545162767172, -0.0026729509700089693, 0.0005914732464589179, -0.014729948714375496, 0.011248485185205936, -0.029071103781461716, -0.0016678330721333623, -0.03926808014512062, -0.0058672381564974785, -0.006883401423692703, -0.012494388967752457, 0.01723942905664444, 0.08786719292402267, 0.003945364151149988, 0.04368618130683899, -0.004983617924153805, -0.021436626091599464, 0.03739480674266815, 0.021578004583716393, 0.015339646488428116, 0.022390935570001602, 0.038879286497831345, -0.04276721552014351, -0.047998249530792236, 0.05814220756292343, -0.03442584350705147, -0.017486844211816788, -0.012494388967752457, -0.03175731003284454, -0.0010040134657174349, 0.05976806953549385, -0.055562037974596024, 0.05050772801041603, -0.024741364642977715, -0.06524651497602463, -0.08998788148164749, 0.03416075557470322, 0.0015386036830022931, 0.027551276609301567, -0.0305202417075634, -0.018591368570923805, -0.031050413846969604, -0.042802561074495316, 0.003921064548194408, 0.03845515102148056, 0.052204281091690063, 0.06149996444582939, -0.028664639219641685, 0.0559508316218853, -0.02309783175587654, -0.044251699000597, 0.005120579153299332, -0.022567659616470337, 0.03594566881656647, 0.013201285153627396, -0.0401870459318161, -0.02751593291759491, 0.037147391587495804, -0.007201504427939653, 0.028063777834177017, 0.012671113014221191, -0.04958876594901085, -0.023274555802345276, -0.011098269373178482, 0.023256883025169373, 0.013307319954037666, -0.040010321885347366, -0.038879286497831345, -0.011328010819852352, -0.05142669379711151, 0.026791363954544067, 0.0656353086233139, -0.008323702029883862, 0.014332319609820843, -0.04354480281472206, 0.013077578507363796, 0.02182541787624359, -0.00935753807425499, -0.01179632917046547, 0.013572406023740768, -0.00828835740685463, 0.016161413863301277, -0.05824824050068855, 0.06842754781246185, 0.04467583820223808, -0.04506462812423706, -0.028753001242876053, -0.03534480556845665, 0.063090480864048, 0.10009649395942688, -0.024140503257513046, 0.06418617069721222, -0.001566216815263033, -0.010205812752246857, -0.15169991552829742, 0.06987668573856354, -0.0040337261743843555, -0.022390935570001602, 0.041636183857917786, -0.020871108397841454, 0.07415340840816498, -0.037147391587495804, 0.06729651242494583, 0.0035852889996021986, 0.014349991455674171, -0.011743311770260334, 0.030078431591391563, 0.05888444930315018, -0.049058593809604645, 0.028293518349528313, 0.04927065968513489, -0.009189649485051632, 0.01998748816549778, -0.031191792339086533, -0.0065918066538870335, 0.02274438366293907, -0.0006621628999710083, -0.020924126729369164, 0.007917236536741257, 0.043509457260370255, 0.004378337878733873, -0.013068742118775845, -0.008376719430088997, -0.020588349550962448, -0.015640078112483025, -0.0062869577668607235, -0.022320246323943138, 0.03767756372690201, 0.00022559927310794592, 0.0024807637091726065, -0.029071103781461716, 0.003147896844893694, -0.004599242936819792, -0.03523877263069153, -0.0014579732669517398, -0.0036228427197784185, -0.009445900097489357, -0.008959908969700336, -0.038525838404893875, 0.011248485185205936, -0.007325211074203253, -0.037924978882074356, 0.014005379751324654, 0.010356028564274311, 0.013307319954037666, -0.012079088017344475, -0.045135319232940674, 0.022196538746356964, 0.012202794663608074, -0.026049122214317322, 0.01988145336508751, 0.027356881648302078, -0.004846656695008278, -0.04011635482311249, 0.0033290390856564045, -0.029159465804696083, 0.001410478726029396, 0.020022833719849586, -0.01993447169661522, -0.04160083830356598, -0.0021206883247941732, 0.002011340344324708, 0.034814633429050446, 0.01406723354011774, -0.00003365350130479783, 0.013775638304650784, 0.020835764706134796, 0.04541807621717453, -0.033542223274707794, -0.06991203129291534, 0.026420243084430695, 0.017884472385048866, 0.03750083968043327, 0.020482316613197327, -0.046725835651159286, 0.03615773841738701, 0.04008101299405098, 0.010364864952862263, -0.025112485513091087, -0.012167450040578842, -0.05464307218790054, -0.0014877954963594675, 0.0005329333944246173, -0.00996723584830761, -0.013068742118775845, -0.03294136002659798, 0.0071440692991018295, -0.06938185542821884, -0.009905382059514523, 0.058460310101509094, 0.019704729318618774, -0.0034417007118463516, -0.03488532453775406, 0.032322827726602554, 0.013439862988889217, 0.019192229956388474, -0.010267666541039944, -0.04739738628268242, 0.004771548788994551, 0.009180814027786255, 0.03831377252936363, 0.007793529890477657, -0.08101029694080353, -0.038737908005714417, 0.0028850198723375797, 0.054855141788721085, 0.00595118198543787, -0.06149996444582939, 0.0686396136879921, -0.04810428246855736, -0.042449112981557846, 0.06160599738359451, 0.002843047957867384, 0.0376422181725502, 0.06959392875432968, 0.00816465076059103, 0.023009469732642174, -0.01289201807230711, -0.036034032702445984, -0.016187921166419983, 0.0019218738889321685, 0.015578223392367363, -0.03589265048503876, 0.0034880905877798796, 0.03753618523478508, -0.0034748364705592394, -0.01648835279047489, 0.03488532453775406, 0.06450427323579788, 0.003284858074039221, -0.01192887220531702, -0.0889982283115387, 0.002445418853312731, -0.03117411956191063, 0.014659258536994457, 0.03087368980050087, -0.034761618822813034, -0.0054475185461342335, 0.01709805056452751, 0.03136851638555527, 0.032022394239902496, -0.03810170292854309, -0.02095947042107582, -0.021383607760071754, -0.034514203667640686, -0.015251284465193748, -0.025554295629262924, -0.0071440692991018295, 0.003428446361795068, -0.05481979623436928, 0.027144812047481537, 0.05803617462515831, 0.01596701703965664, 0.0160200335085392, 0.012812492437660694, 0.05598617345094681, -0.006702259182929993, 0.0056154062040150166, 0.05329997092485428, 0.030643947422504425, 0.04591290280222893, -0.012644604779779911, -0.03368360176682472, 0.0036029613111168146, -0.005474027246236801, -0.010090942494571209, 0.050684452056884766, 0.03131549805402756, -0.0015518579166382551, 0.017168739810585976, 0.04973014444112778, -0.0396568737924099, 0.001422628527507186, -0.004230331629514694, 0.0478215254843235, -0.04683186858892441, 0.007214758545160294, 0.028912052512168884, 0.051956865936517715, -0.023486623540520668, 0.00826626643538475, 0.0017595087410882115, 0.029459897428750992, 0.010294174775481224, 0.021277574822306633, 0.012989216484129429, 0.05884910374879837, -0.021083177998661995, -0.03993963077664375, 0.04389825090765953, 0.06284306943416595, -0.018573695793747902, -0.024281881749629974, -0.017619386315345764, -0.04156549274921417, -0.02792239747941494, 0.023539641872048378, 0.03322411701083183, 0.02191377989947796, 0.08489822596311569, -0.02649093233048916, 0.0335598960518837, 0.0017528815660625696, 0.00047135615022853017, -0.07825340330600739, 0.03181032836437225, 0.08157581835985184, -0.02150731533765793, 0.01482714619487524, 0.02976032719016075, -0.01248555351048708, 0.009198485873639584, 0.03721808269619942, -0.0671197921037674, 0.009719821624457836, -0.013775638304650784, -0.008442990481853485, 0.002982218051329255, 0.007219176739454269, 0.05248703807592392, 0.025925416499376297, 0.037359461188316345, -0.001998086227104068, -0.013908181339502335, 0.017716584727168083, -0.04262583702802658, -0.0041883597150444984, -0.08588787913322449, 0.048599109053611755, 0.0002646718639880419, -0.02518317475914955, -0.0437568724155426, 0.0009294579504057765, -0.021542660892009735, 0.03285299986600876, -0.038843944668769836, -0.05001290142536163, -0.05213358998298645, -0.023468952625989914, -0.06503444164991379, -0.006817129906266928, -0.05683445185422897, -0.03062627464532852, -0.015648912638425827, 0.015339646488428116, -0.017221758142113686, 0.012715294025838375, 0.06047496572136879, 0.0462663508951664, 0.014844818972051144, -0.003516808385029435, 0.04347411170601845, -0.0055005354806780815, -0.04237842559814453, 0.0022885762155056, -0.0747896134853363, 0.053229279816150665, 0.005792130250483751, 0.09338098019361496, -0.011867019347846508, 0.06135858595371246, 0.03310041129589081, 0.0028761837165802717, -0.005005708429962397, 0.0493413507938385, 0.060298241674900055, -0.019757747650146484, -0.018025850877165794, 0.020181884989142418, 0.037147391587495804, -0.05609221011400223, 0.0068392204120755196, 0.009313357062637806, 0.049765489995479584, 0.025501279160380363, -0.010462063364684582, 0.025059469044208527, 0.03264093026518822, -0.01571960374712944, 0.005699350032955408, -0.006799457129091024, 0.014270465821027756, 0.0032981124240905046, -0.03743015229701996, 0.034302134066820145, -0.10151028633117676, -0.03545084223151207, 0.018697403371334076, -0.02756894938647747, 0.08115167915821075, -0.019368954002857208, 0.06581202894449234, -0.03000774048268795, 0.007329629268497229, -0.02191377989947796, 0.0503663495182991, -0.006136741954833269, 0.0564456582069397, -0.0035808708053082228, 0.0069143278524279594, -0.04439307749271393, 0.04693790525197983, -0.0047406223602592945, 0.0636206567287445, -0.00895549077540636, -0.002730386331677437, 0.0040536075830459595, 0.07938443869352341, -0.00703361677005887, 0.03536247834563255, 0.005641914904117584, 0.007930491119623184, 0.030272826552391052, 0.04428704455494881, 0.02502412348985672, -0.040363769978284836, -0.000508357712533325, -0.018944816663861275, -0.08680684864521027, -0.028152139857411385, 0.028876706957817078, -0.009622624143958092, 0.06390341371297836, 0.02426421083509922, 0.016152577474713326, 0.015065724030137062, 0.015949344262480736, -0.039197392761707306, 0.050331003963947296, -0.015127577818930149, -0.01032952032983303, 0.027498260140419006, -0.054042208939790726, 0.004943855106830597, -0.0010470899287611246, -0.0006842534057796001, 0.029459897428750992, 0.024988777935504913, 0.020924126729369164, -0.03672325611114502, -0.057541344314813614, 0.033948685973882675, 0.03993963077664375, 0.040363769978284836, 0.07860685139894485, -0.06312582641839981, 0.004396010190248489, -0.0717146173119545, 0.0386672206223011, -0.013970035128295422, 0.011964216828346252, -0.03158058598637581, -0.016011197119951248, -0.04287325218319893, -0.011822838336229324, -0.01871507614850998, -0.010797838680446148, 0.016461843624711037, 0.044428423047065735, -0.06114651635289192, -0.02120688371360302, -0.03166894614696503, 0.022921107709407806, -0.02732153609395027, 0.00884945597499609, 0.030431879684329033, 0.033188775181770325, 0.005968854296952486, 0.00018100407032761723, 0.027798691764473915, 0.03636980801820755, -0.04520600661635399, 0.017663568258285522, 0.027392225340008736, 0.02786938101053238, 0.0024962269235402346, -0.023716365918517113, -0.015454516746103764, 0.05432496964931488, -0.057753413915634155, -0.03520342707633972, -0.002975590992718935, 0.03566291183233261, 0.014597405679523945, 0.027038777247071266, -0.001400538021698594, -0.05050772801041603, -0.04923531785607338, -0.017504515126347542, 0.05655169114470482, 0.06058099865913391, -0.022408608347177505, 0.004239168018102646, 0.01518059428781271, -0.014782965183258057, 0.01968705840408802, -0.015728440135717392, 0.009631459601223469, -0.040151700377464294, 0.05538531392812729, 0.04138876870274544, -0.03926808014512062, 0.02009352296590805, -0.03647584095597267, 0.032163772732019424, -0.012361845932900906, -0.008871546946465969, 0.038525838404893875, -0.07726375013589859, -0.00935753807425499, 0.017177576199173927, -0.027286190539598465, 0.010135123506188393, 0.0007378228474408388, 0.0011106000747531652, 0.022161195054650307, 0.012441372498869896, -0.054749105125665665, 0.008659477345645428, -0.043262045830488205, -0.05888444930315018, 0.0584956556558609, 0.009684477001428604, 0.03799566626548767, 0.02543058805167675, -0.023981451988220215, 0.019050851464271545, 0.004446818493306637, 0.02843489684164524, -0.03940945863723755, 0.048033591359853745, 0.037147391587495804, -0.0971275269985199, -0.03495601564645767, 0.03447885811328888, 0.016081886366009712, -0.004798057489097118, -0.05132066085934639, -0.013996543362736702, 0.01431464683264494, -0.023274555802345276, 0.001413792255334556, -0.10518614947795868, -0.025112485513091087, -0.019846109673380852, 0.021118521690368652, -0.034302134066820145, 0.0037509675603359938, 0.052098244428634644, -0.04927065968513489, -0.020022833719849586, -0.008283939212560654, 0.006490190047770739, -0.0818585753440857, 0.004842238500714302, 0.02583705447614193, -0.01739848218858242, 0.05071979761123657, 0.030962051823735237, -0.027533605694770813, -0.0701947882771492, -0.036140065640211105, -0.035521529614925385, -0.017151067033410072, -0.028876706957817078, -0.00512499688193202, -0.04449911415576935, 0.08440340310335159, -0.028399553149938583, 0.0066094789654016495, 0.009419390931725502, -0.07266892492771149, -0.06312582641839981, -0.03930342569947243, 0.016417663544416428, -0.015348482877016068, 0.019139213487505913, 0.019793091341853142, -0.04114135727286339, 0.016603223979473114, -0.02664998546242714, 0.09133098274469376, -0.07107840478420258, -0.01060344185680151, -0.04467583820223808, -0.002558080479502678, 0.07705167680978775, -0.03143920749425888, 0.06793271750211716, -0.014818310737609863, 0.013625423423945904, 0.01408490538597107, 0.055208589881658554, 0.015357318334281445, 0.010002580471336842, -0.039232734590768814, 0.0381370484828949, -0.02730386331677437, 0.04856376349925995, -0.03778360038995743, 0.009657968766987324, 0.005553552880883217, 0.006503444630652666, -0.037253428250551224, 0.031156446784734726, -0.030149120837450027, 0.01289201807230711, -0.042555149644613266, -0.005739112850278616, -0.01251206174492836, 0.029565930366516113, 0.05110859125852585, -0.06135858595371246, 0.05418359115719795, 0.034302134066820145, -0.008001180365681648, -0.026968088001012802, 0.03596334159374237, -0.03366592898964882, 0.044640492647886276, -0.00624277675524354, -0.04114135727286339, -0.09005856513977051, -0.037112046033144, 0.031085757538676262, -0.015092232264578342, -0.02878834493458271, 0.012918527238070965, 0.03414308279752731, -0.008407645858824253, -0.06902840733528137, -0.032022394239902496, -0.006605060771107674, -0.0016004570061340928, -0.008270684629678726, -0.028611620888113976, 0.059591345489025116, 0.030909033492207527, -0.040151700377464294, -0.038631875067949295, 0.03143920749425888, 0.03163360431790352, 0.005306139122694731, -0.013775638304650784, -0.008359046652913094, -0.01167262252420187, -0.033065065741539, 0.06595341116189957, 0.08044478297233582, -0.0012050369987264276, -0.05142669379711151, 0.016903653740882874, 0.04206031933426857, -0.04082325100898743, 0.027551276609301567, 0.007457754109054804, 0.051356006413698196, -0.005699350032955408, -0.005995362997055054, 0.024299554526805878, -0.004482163581997156, -0.05050772801041603, 0.024759037420153618, -0.036034032702445984, 0.006940836552530527, 0.02894739620387554, -0.015905164182186127, -0.01607305184006691, 0.03181032836437225, -0.01332499273121357, -0.0493413507938385, -0.008535770699381828, 0.03870256245136261, -0.03297670558094978, -0.0366172194480896, 0.008063034154474735, -0.022249557077884674, -0.04771548882126808, 0.0065741343423724174, 0.01179632917046547, 0.03325946256518364, 0.0020985978189855814, -0.021118521690368652, 0.042943939566612244, -0.010735984891653061, -0.018087705597281456, -0.008199995383620262, 0.008792020380496979, 0.011460553854703903, -0.06552927196025848, -0.048033591359853745, 0.1408137083053589, -0.021118521690368652, 0.009313357062637806, -0.011336847208440304, -0.033065065741539, -0.08461546897888184, -0.03345385938882828, -0.0014877954963594675, -0.012105596251785755, 0.043509457260370255, -0.0762740969657898, -0.0037752671632915735, 0.018556023016572, -0.0028783928137272596 ]
43,203
fast_poisson_solver.utils
minmax
null
def minmax(v1, v2=None): if v2 is None: v2 = v1 vmin = min((np.min(v1), np.min(v2))) vmax = max((np.max(v1), np.max(v2))) return vmin, vmax
(v1, v2=None)
[ 0.057979244738817215, -0.03532944247126579, 0.061343953013420105, -0.01790379174053669, -0.03619718179106712, -0.005361397750675678, 0.0008190409280359745, -0.021339336410164833, 0.001328174490481615, 0.029361510649323463, -0.0032473865430802107, 0.004128409083932638, -0.016956361010670662, 0.013326017186045647, 0.02103828452527523, 0.059502217918634415, 0.006685144733637571, -0.07522780448198318, 0.024987388402223587, 0.05078939348459244, 0.016956361010670662, 0.0010968507267534733, -0.002508036093786359, -0.029485473409295082, -0.00021430649212561548, 0.017956918105483055, 0.006640872452408075, -0.010457160882651806, -0.03761390224099159, -0.019355928525328636, -0.006844525691121817, -0.02571345865726471, 0.04165155068039894, -0.021658098325133324, 0.0347096249461174, 0.014671901240944862, 0.036834705621004105, 0.07799040526151657, -0.16844794154167175, 0.030193833634257317, -0.0372951403260231, -0.048876821994781494, 0.019037168473005295, 0.027696864679455757, 0.006879943888634443, -0.01019152533262968, 0.020684104412794113, -0.06488575041294098, 0.0021616038866341114, 0.02018825151026249, 0.04862889647483826, 0.03155742585659027, -0.0015993434935808182, -0.011369173415005207, -0.09747029840946198, 0.09329097718000412, 0.001993368612602353, 0.06442531943321228, -0.057766735553741455, -0.014379702508449554, -0.014415120705962181, -0.028706278651952744, -0.03299185261130333, -0.06488575041294098, -0.01523858867585659, 0.03874727711081505, -0.047778863459825516, 0.016726143658161163, -0.03223036602139473, 0.08429480344057083, -0.05294989049434662, 0.014583355747163296, -0.0319647341966629, -0.02571345865726471, 0.010855612345039845, 0.06003348529338837, 0.019586145877838135, 0.06127311661839485, 0.015362551435828209, -0.02982194349169731, 0.038357678800821304, 0.0006701747188344598, 0.03244287520647049, -0.0774945542216301, 0.01898404024541378, -0.019072584807872772, -0.0867740660905838, 0.06346902996301651, 0.017407940700650215, -0.04381204769015312, -0.02376546896994114, 0.04696425050497055, 0.00816827267408371, 0.08698657155036926, -0.01898404024541378, 0.03603780269622803, -0.021976860240101814, 0.02461550012230873, -0.04158071428537369, -0.023676924407482147, -0.0036148482467979193, 0.018417352810502052, -0.04972685128450394, -0.025465531274676323, -0.009120131842792034, -0.018293390050530434, 0.004998363088816404, 0.005405670031905174, -0.0037808699999004602, 0.05422493815422058, -0.03493984416127205, -0.07572365552186966, -0.0035063805989921093, 0.022100823000073433, -0.03701179474592209, 0.06077726557850838, -0.013361435383558273, 0.05280821770429611, 0.02537698671221733, 0.021215373650193214, -0.03504609689116478, 0.04423706606030464, 0.04859347641468048, 0.005091335624456406, 0.010085271671414375, -0.02615618333220482, 0.06137936934828758, 0.029467765241861343, -0.04274950921535492, -0.007362513802945614, 0.02486342564225197, -0.025660330429673195, -0.05032895877957344, 0.07791957259178162, -0.03256683796644211, -0.054508280009031296, -0.013122363947331905, 0.04742468520998955, 0.07416526228189468, 0.023305034264922142, -0.005330407060682774, 0.042147401720285416, -0.010102980770170689, -0.0009629264823161066, -0.07019844651222229, -0.03697637841105461, 0.07260686904191971, 0.005356970243155956, 0.0014897690853103995, 0.03789724409580231, -0.019922617822885513, -0.0002838973014149815, 0.06173355132341385, -0.016982924193143845, 0.03722430393099785, -0.03474504500627518, 0.041368208825588226, -0.03640969097614288, 0.026616616174578667, 0.016788125038146973, 0.0000010376363661634969, 0.06357528269290924, 0.04954976215958595, 0.0031300645787268877, 0.0018207058310508728, -0.011192083358764648, 0.0260322205722332, -0.006109602749347687, 0.012546821497380733, 0.005870531313121319, 0.025022806599736214, -0.029768817126750946, -0.0408015213906765, -0.027307268232107162, 0.037153467535972595, -0.00227560568600893, -0.020028870552778244, -0.031167827546596527, 0.013246326707303524, 0.07122556865215302, 0.0028799250721931458, 0.006680717691779137, -0.013175491243600845, -0.007154433056712151, 0.03513464331626892, 0.048133041709661484, 0.02840522490441799, -0.01295412890613079, -0.060706429183483124, -0.033346034586429596, 0.017877228558063507, -0.015761004760861397, -0.03299185261130333, -0.046822577714920044, -0.002669630805030465, 0.016327692195773125, -0.0012617657193914056, 0.0018251331057399511, -0.026315564289689064, -0.021640390157699585, 0.0023995686788111925, 0.017390230670571327, 0.005219725891947746, 0.032124113291502, 0.07494445890188217, 0.03591383621096611, 0.0008378567290492356, -0.02201227843761444, 0.00363477086648345, -0.050824809819459915, 0.000905925699044019, 0.031734514981508255, -0.04958518221974373, -0.0058306860737502575, 0.0032916590571403503, 0.0033558541908860207, 0.010350906290113926, 0.012608802877366543, -0.0444495715200901, 0.02093202993273735, 0.06846296787261963, -0.06523992866277695, 0.050506047904491425, 0.032177239656448364, 0.058439675718545914, 0.009465456940233707, -0.05911261960864067, -0.06191064044833183, 0.017407940700650215, 0.03407210111618042, 0.03306268900632858, -0.03637427091598511, -0.005272852722555399, -0.01843506097793579, -0.07409442961215973, 0.05436660721898079, 0.030636558309197426, -0.032070986926555634, -0.02268522046506405, -0.012759329751133919, -0.012139515019953251, -0.0041439044289290905, 0.012502549216151237, 0.01295412890613079, -0.04023483395576477, -0.03332832455635071, -0.024650918319821358, -0.002733825705945492, 0.009677964262664318, 0.04023483395576477, -0.05805008113384247, 0.02082577534019947, -0.008137281984090805, 0.03648052737116814, -0.009217530488967896, 0.03153971582651138, -0.03224807605147362, -0.01589382067322731, 0.023021690547466278, -0.010058708488941193, 0.029219837859272957, -0.005051490385085344, -0.05684586614370346, 0.037365976721048355, 0.03138033673167229, 0.01898404024541378, 0.0035595076624304056, 0.004035437013953924, -0.024456119164824486, 0.018488189205527306, 0.05217069387435913, -0.0072783962823450565, 0.0037609473802149296, -0.034231483936309814, 0.06293775886297226, 0.02670516073703766, 0.012068678624927998, -0.09173258394002914, 0.04515793174505234, -0.007455485872924328, -0.021091410890221596, -0.008137281984090805, -0.04218282178044319, 0.004376335069537163, 0.05401242896914482, -0.032070986926555634, 0.036303434520959854, -0.11503762006759644, -0.021339336410164833, -0.028476061299443245, -0.007884928956627846, 0.02495197206735611, -0.04147446155548096, 0.030884483829140663, 0.00471501937136054, 0.01896633207798004, 0.056633360683918, -0.020808067172765732, 0.0012130660470575094, -0.054827041923999786, -0.02385401353240013, -0.034656498581171036, -0.013131218031048775, 0.007641430478543043, 0.00878366082906723, -0.04048275947570801, -0.021215373650193214, -0.01447710208594799, 0.024792591109871864, 0.006990625057369471, -0.07685703039169312, -0.023269616067409515, -0.026740578934550285, -0.05132066085934639, 0.008062019012868404, 0.03980981558561325, 0.050612300634384155, 0.058404259383678436, 0.00028777113766409457, -0.03387730196118355, 0.016858961433172226, -0.00161373196169734, -0.022632094100117683, 0.0020243593025952578, -0.02757290191948414, 0.030016742646694183, -0.06191064044833183, 0.022384166717529297, 0.03871185705065727, 0.07296105474233627, -0.04501625895500183, 0.03485129773616791, 0.026209309697151184, 0.07317356020212173, 0.017602739855647087, -0.008947468362748623, 0.05383533984422684, 0.07898210734128952, -0.014787008985877037, -0.01171449851244688, 0.032584547996520996, 0.012015552259981632, 0.008075300604104996, -0.014087503775954247, 0.04884140193462372, 0.029963616281747818, 0.03860560432076454, -0.05022270604968071, -0.018417352810502052, -0.04133278876543045, -0.025146769359707832, 0.02137475460767746, -0.032584547996520996, -0.05737713724374771, -0.030300086364150047, -0.0013182131806388497, -0.010235797613859177, -0.07239436358213425, 0.054295774549245834, 0.006844525691121817, -0.04728301241993904, 0.04802678897976875, -0.016965216025710106, -0.05411868169903755, 0.01653134450316429, 0.05936054512858391, -0.0010713940719142556, -0.027289558202028275, -0.018151717260479927, -0.008854496292769909, -0.009934744797647, 0.021746642887592316, 0.01680583506822586, -0.030069870874285698, -0.03208869695663452, -0.004794709850102663, -0.04675174131989479, -0.01258223969489336, -0.04303285479545593, 0.017177723348140717, 0.006871089339256287, 0.01182075310498476, 0.014432829804718494, -0.038003500550985336, 0.014902117662131786, 0.046255890280008316, 0.008354217745363712, -0.031096991151571274, -0.06410655379295349, 0.050187285989522934, 0.012989546172320843, 0.009359203279018402, -0.017974628135561943, 0.0035085943527519703, 0.02952089160680771, 0.006162729579955339, 0.02994590811431408, 0.023039400577545166, 0.06786086410284042, -0.05305614322423935, -0.012307750061154366, 0.039101455360651016, 0.018718406558036804, -0.02626243606209755, 0.008841214701533318, -0.03187618777155876, 0.04916016384959221, 0.026280146092176437, 0.03178764134645462, 0.01563704013824463, -0.008243536576628685, -0.011493136174976826, -0.011785334907472134, -0.052029021084308624, 0.00401551416143775, -0.02332274429500103, -0.014583355747163296, 0.04250158369541168, 0.03159284219145775, -0.01518546137958765, -0.025748876854777336, -0.026528071612119675, -0.021516427397727966, -0.05132066085934639, 0.0008002251270227134, -0.04675174131989479, 0.0388181135058403, -0.021445591002702713, -0.031504299491643906, -0.015442241914570332, 0.048664312809705734, 0.04466208070516586, -0.01004099939018488, -0.05284363403916359, -0.002895420417189598, -0.0019623776897788048, 0.032070986926555634, 0.015805276110768318, 0.05833342298865318, 0.006423937156796455, 0.03416064754128456, -0.05178109556436539, 0.013697906397283077, 0.05231236666440964, -0.06003348529338837, -0.05025812238454819, -0.06031683087348938, 0.01972781866788864, -0.009018304757773876, -0.06215856596827507, -0.029591728001832962, -0.009208676405251026, 0.004852264188230038, -0.019656982272863388, 0.08960750699043274, -0.04002232477068901, -0.10575810819864273, 0.000025525852834107354, 0.009288366883993149, -0.024155067279934883, 0.006003348622471094, 0.018700696527957916, -0.018001191318035126, -0.030317796394228935, -0.062335655093193054, 0.021764352917671204, 0.04331619665026665, -0.03221265971660614, -0.0023486551363021135, -0.005308270454406738, 0.0017753265565261245, -0.055074967443943024, -0.0213924627751112, -0.058652184903621674, 0.03895978629589081, 0.019780945032835007, 0.007110160775482655, -0.008469325490295887, 0.07685703039169312, 0.009633691981434822, -0.027803119271993637, 0.0074422042816877365, 0.01307809166610241, 0.03610863536596298, 0.022065404802560806, 0.03373563289642334, -0.03644510731101036, -0.01963927410542965, -0.07296105474233627, 0.027413520961999893, 0.06382320821285248, 0.030211541801691055, -0.04328078031539917, 0.02558949589729309, -0.08450731635093689, -0.05139149725437164, 0.05139149725437164, -0.03419606387615204, 0.07253603637218475, 0.04650381579995155, -0.024774881079792976, -0.0008943041320890188, -0.019780945032835007, -0.02311023510992527, 0.038676440715789795, 0.009713382460176945, -0.019444474950432777, -0.02181747928261757, -0.056350015103816986, 0.012511403299868107, -0.026864541694521904, 0.004500297829508781, -0.02569574862718582, 0.05323323234915733, 0.018736114725470543, 0.0347096249461174, 0.003156627994030714, -0.0033890586346387863, 0.05518122389912605, -0.052772797644138336, -0.030087579041719437, 0.037153467535972595, 0.035949256271123886, -0.054508280009031296, -0.02309252694249153, -0.06265442073345184, -0.018895495682954788, -0.016248000785708427, -0.013697906397283077, 0.01886007748544216, -0.009943599812686443, -0.04632672667503357, -0.0084117716178298, -0.006578891072422266, -0.06141478940844536, 0.0267937071621418, -0.04784969985485077, 0.03408981114625931, -0.03679928928613663, 0.011218647472560406, 0.00981078203767538, -0.02851147949695587, 0.03017612360417843, 0.06268983334302902, -0.014397411607205868, 0.023588377982378006, -0.013857287354767323, 0.06371695548295975, 0.0077078393660485744, -0.010262361727654934, 0.017762120813131332, -0.021303918212652206, 0.008717251941561699, 0.020772648975253105, -0.08854496479034424, -0.03640969097614288, -0.057979244738817215, -0.0059944940730929375, 0.004006659612059593, 0.035223186016082764, 0.004918672610074282, 0.043245360255241394, 0.022153951227664948, 0.01686781644821167, -0.11957111954689026, 0.026404108852148056, -0.013981250114738941, 0.07235894352197647, 0.01625685580074787, 0.04505167901515961, -0.01854131557047367, 0.003778656478971243, -0.054083265364170074, -0.048310134559869766, 0.014530228450894356, 0.09711612015962601, 0.034869007766246796, -0.008004465140402317, -0.08882831037044525, 0.004852264188230038, -0.04296201840043068, 0.015761004760861397, 0.013600506819784641, -0.06973801553249359, -0.028918785974383354, 0.04352870583534241, -0.027643738314509392, -0.0018849009647965431, -0.0015262938104569912, 0.055712491273880005, 0.014131776057183743, 0.02192373387515545, 0.02149871736764908, 0.006499200593680143, -0.0366930328309536, 0.03913687542080879, -0.03178764134645462, 0.03267309069633484, 0.0024438409600406885, 0.020754940807819366, -0.030441759154200554, -0.019922617822885513, -0.014530228450894356, -0.004057573154568672, -0.0009883831953629851, -0.029237547889351845, 0.03221265971660614, -0.058970946818590164, -0.0392785482108593, -0.03648052737116814, 0.015344842337071896, -0.013086945749819279, -0.027254140004515648, 0.004697310272604227, -0.00821254588663578, 0.04558294638991356, -0.01764701120555401, -0.007504185661673546, 0.006034339312463999, 0.0005998921697027981, -0.013379144482314587, 0.0042169541120529175, 0.029892779886722565, -0.07122556865215302, 0.04175780713558197, 0.010616540908813477, 0.03895978629589081, 0.007548458408564329, 0.014787008985877037, 0.024013394489884377, -0.004816845990717411, -0.012759329751133919, 0.07359857857227325, -0.035843003541231155, -0.025731166824698448, -0.0021881675347685814, 0.006596599705517292, -0.014202612452208996, -0.01080248598009348, 0.04101402685046196, -0.01866527833044529, 0.009027158841490746, 0.03839309886097908, -0.0012772611808031797, 0.002609862945973873, -0.011094683781266212, -0.03143346309661865, 0.05333948880434036, 0.012989546172320843, -0.025518659502267838, 0.009394620545208454, -0.0037365974858403206, 0.0073448047041893005, 0.015344842337071896, -0.027413520961999893, 0.001227454631589353, 0.008097437210381031, -0.03761390224099159, 0.0019358142744749784, -0.023482125252485275, -0.018736114725470543, 0.011581681668758392, 0.03956189006567001, 0.031203245744109154, 0.020453887060284615, 0.027856245636940002, -0.019763236865401268, 0.005308270454406738, 0.0021173313725739717, -0.016646454110741615, 0.05383533984422684, 0.001656897715292871, -0.007960192859172821, 0.03614405542612076, 0.0058041224256157875, -0.004037650302052498, 0.00949202012270689, -0.017894936725497246, -0.052454035729169846, 0.015203170478343964, 0.048451803624629974, -0.013928122818470001, -0.026988506317138672, 0.01855902560055256, -0.014609918929636478, -0.04671632498502731, -0.05496871471405029, -0.003572789253666997, 0.0648503303527832, 0.10271216183900833, 0.044732917100191116, -0.047566354274749756, -0.01383957825601101, -0.043776631355285645, -0.02776770107448101, 0.03233662247657776, -0.021870605647563934, 0.0025877265725284815, -0.03991607204079628, 0.03786182776093483, -0.02410193905234337, -0.03655136004090309, -0.11638350039720535, 0.05156858637928963, -0.0074156406335532665, -0.012015552259981632, 0.056562524288892746, -0.0058793858624994755, 0.05188734829425812, -0.019922617822885513, 0.01866527833044529, 0.01074935868382454, 0.06924216449260712, -0.025678040459752083, 0.030530303716659546, 0.015778712928295135, -0.06385862827301025, -0.004595483653247356, 0.02431444823741913, 0.03435544669628143, -0.039668142795562744, 0.0075174677185714245, -0.01688552461564541, -0.04618505388498306, 0.03017612360417843, 0.035205479711294174, 0.040730684995651245, -0.05132066085934639, 0.008053164929151535, -0.0000020752727323269937, -0.029981324449181557, -0.000666854262817651, -0.01731054112315178, 0.02518218755722046, -0.004595483653247356, -0.005511924158781767, 0.035223186016082764, -0.022702928632497787, -0.014388556592166424, 0.008703970350325108, 0.005383533891290426, -0.03393043205142021, 0.04763719066977501, -0.01701834239065647, 0.003811860689893365, -0.035843003541231155, 0.029361510649323463, 0.04165155068039894, -0.04806220903992653, 0.017682429403066635, -0.001442176173441112, 0.0004042631189804524, 0.04119111970067024, -0.004754864610731602, 0.02778540924191475, -0.02029450610280037, 0.016292273998260498, -0.006999479606747627, 0.014238030649721622, -0.03233662247657776, 0.001993368612602353, 0.042253658175468445, -0.006180438678711653, 0.00013890491391066462, -0.03373563289642334, 0.03341687098145485, -0.010014435276389122, 0.03322207182645798 ]
43,206
fast_poisson_solver.numeric_solver
numeric_solve
This function numerically solves the partial differential equation (PDE) using the provided source function, PDE coordinates, boundary condition, and boundary condition coordinates. It uses the precision specified, measures the time taken for the operation if requested, and controls the verbosity of the output. Parameters ---------- f : tensor/array/list The source function for the PDE. x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. u_bc : tensor/array/list The boundary condition for the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. precision : torch.dtype, optional The precision to be used for the numeric solver. Default is torch.float32. verbose : int, optional Controls the verbosity of the output. If 0, only the solution 'u' is returned. If greater than 0, both the solution 'u' and runtime 'delta t' are returned. Default is 1. Returns ------- tuple u : tensor The complete numeric solution of the PDE. t : float The runtime, i.e., the time it took the method to run in seconds. References ---------- Zaman, M.A. "Numerical Solution of the Poisson Equation Using Finite Difference Matrix Operators", Electronics 2022, 11, 2365. https://doi.org/10.3390/electronics11152365 See also: https://github.com/zaman13/Poisson-solver-2D
def numeric_solve(f, x_pde, y_pde, u_bc, x_bc, y_bc, precision=torch.float32, verbose=0): """ This function numerically solves the partial differential equation (PDE) using the provided source function, PDE coordinates, boundary condition, and boundary condition coordinates. It uses the precision specified, measures the time taken for the operation if requested, and controls the verbosity of the output. Parameters ---------- f : tensor/array/list The source function for the PDE. x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. u_bc : tensor/array/list The boundary condition for the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. precision : torch.dtype, optional The precision to be used for the numeric solver. Default is torch.float32. verbose : int, optional Controls the verbosity of the output. If 0, only the solution 'u' is returned. If greater than 0, both the solution 'u' and runtime 'delta t' are returned. Default is 1. Returns ------- tuple u : tensor The complete numeric solution of the PDE. t : float The runtime, i.e., the time it took the method to run in seconds. References ---------- Zaman, M.A. "Numerical Solution of the Poisson Equation Using Finite Difference Matrix Operators", Electronics 2022, 11, 2365. https://doi.org/10.3390/electronics11152365 See also: https://github.com/zaman13/Poisson-solver-2D """ f, x_pde, y_pde, u_bc, x_bc, y_bc = format_input([f, x_pde, y_pde, u_bc, x_bc, y_bc], precision=precision, device="cpu", as_array=True) dtype_map = { torch.float32: np.float32, torch.float64: np.float64, # add more mappings as needed } precision = dtype_map.get(precision, None) x = np.concatenate([x_pde, x_bc], axis=0) y = np.concatenate([y_pde, y_bc], axis=0) x_unique = np.unique(x) y_unique = np.unique(y) Nx = len(x_unique) Ny = len(y_unique) dx = x_unique[1] - x_unique[0] dy = y_unique[1] - y_unique[0] Dx_2d, Dy_2d, D2x_2d, D2y_2d = Diff_mat_2D(Nx, Ny) Dx_2d = Dx_2d.astype(precision) Dy_2d = Dy_2d.astype(precision) D2x_2d = D2x_2d.astype(precision) D2y_2d = D2y_2d.astype(precision) # Construction of the system matrix and adjust the right hand vector for boundary conditions I_sp = sp.eye(Nx * Ny).tocsr().astype(precision) L_sys = D2x_2d / dx ** 2 + D2y_2d / dy ** 2 BD = I_sp # .tolil() # Dirichlet boundary operator BNx = Dx_2d # .tolil() # Neumann boundary operator for x component BNy = Dy_2d # .tolil() # Neumann boundary operator for y component t0_run = time.perf_counter() xy = np.concatenate([x.reshape(-1, 1), y.reshape(-1, 1)], 1) ind = np.lexsort((xy[:, 0], xy[:, 1])) reverse_ind = np.argsort(ind) b_ind = [np.argwhere(ind >= len(x_pde)).reshape(-1)] f = np.concatenate([f, u_bc], axis=0) f = f[ind] b_type = [0] b_val = [u_bc[0]] N_B = len(b_val) # Selectively replace the rows of the system matrix that correspond to # boundary value points. We replace these rows with # those of the boundary operator for m in range(N_B): # print(f[b_ind[m]], b_val[m] ) # f[b_ind[m]] = b_val[m] # Insert boundary values at the outer boundary points if b_type[m] == 0: L_sys[b_ind[m], :] = BD[b_ind[m], :] elif b_type[m] == 1: L_sys[b_ind[m], :] = BNx[b_ind[m], :] elif b_type[m] == 2: L_sys[b_ind[m], :] = BNy[b_ind[m], :] u = spsolve(L_sys, f) u = u[reverse_ind] # reorder the solution to the original order u = u.astype(precision) end = time.perf_counter() dt = end - t0_run if verbose > 0: print(f"Time Numeric Solver: {dt:.6f} s") return u, dt
(f, x_pde, y_pde, u_bc, x_bc, y_bc, precision=torch.float32, verbose=0)
[ 0.001945963711477816, -0.029225779697299004, -0.01921055279672146, 0.09490075707435608, -0.019324716180562973, 0.009890684857964516, -0.05824398994445801, -0.05434168502688408, -0.05193387717008591, -0.04049680009484291, -0.011198372580111027, -0.019750233739614487, -0.08016332238912582, 0.025053633376955986, -0.055587101727724075, 0.04363109916448593, -0.016574421897530556, 0.009226462803781033, -0.03979106619954109, -0.04653707146644592, -0.05064694955945015, -0.028333231806755066, 0.03703039139509201, 0.08560164272785187, -0.014270400628447533, -0.05733068287372589, 0.04840519651770592, -0.03335641324520111, -0.05998757481575012, -0.005370859522372484, 0.028042633086442947, 0.03821353614330292, -0.02349686250090599, -0.034830156713724136, -0.0049401530995965, 0.014156237244606018, 0.03622087091207504, 0.025780126452445984, -0.05110359936952591, -0.010253931395709515, -0.01900298334658146, -0.0825711339712143, 0.05019029602408409, 0.008733484894037247, -0.011395563371479511, 0.0028514855075627565, -0.04653707146644592, 0.03007681481540203, -0.016595177352428436, 0.04745037853717804, 0.026091480627655983, -0.10303747653961182, 0.007763097528368235, -0.022355230525135994, -0.049110934138298035, 0.06007060036063194, 0.03096936270594597, 0.03269219025969505, 0.02036256343126297, -0.056126780807971954, -0.005025775637477636, 0.010897396132349968, -0.022043876349925995, 0.019636070355772972, -0.009034460410475731, 0.006932819727808237, -0.0049297744408249855, -0.051684796810150146, 0.0366775244474411, 0.0684979185461998, -0.001153307850472629, 0.007031415589153767, 0.03136374428868294, -0.04001939296722412, 0.08294475823640823, 0.03962501138448715, 0.008603754453361034, -0.009267976507544518, -0.034975454211235046, -0.049193963408470154, 0.02692175842821598, -0.0012830387568101287, 0.016034740954637527, 0.0067200614139437675, 0.010669070295989513, 0.003344462951645255, 0.0668373629450798, 0.05757976695895195, 0.012765522114932537, -0.035909514874219894, -0.02320626564323902, -0.05077148973941803, -0.000011260237442911603, 0.02752370946109295, 0.010565285570919514, -0.003673979314044118, -0.021078677847981453, -0.02420259825885296, -0.026423592120409012, -0.01921055279672146, 0.09938425570726395, 0.07156994938850403, -0.029661675915122032, 0.02310248091816902, 0.028333231806755066, -0.021379653364419937, -0.007290877401828766, 0.013128768652677536, 0.02654813416302204, -0.031239204108715057, -0.06920365989208221, 0.022542042657732964, -0.02652737684547901, -0.005666646175086498, -0.0725247710943222, -0.028270959854125977, -0.052598100155591965, 0.06007060036063194, 0.008832080289721489, 0.026257537305355072, -0.018515195697546005, 0.04383866861462593, -0.07426834851503372, -0.016657449305057526, -0.00826126430183649, -0.03694736212491989, 0.03989484906196594, 0.014135479927062988, 0.04433683678507805, -0.05816096067428589, 0.00020221805607434362, 0.01635647378861904, 0.04973364248871803, 0.07493257522583008, -0.024887578561902046, -0.01552619505673647, -0.026091480627655983, -0.007809801027178764, 0.013076876290142536, -0.005796377081423998, 0.00017902866238728166, -0.010679448954761028, 0.003847818821668625, 0.015515817329287529, 0.02746143937110901, 0.056168295443058014, 0.05994606018066406, 0.04176297411322594, -0.021130571141839027, 0.03458107262849808, -0.045333169400691986, 0.02717084251344204, 0.0366775244474411, -0.022106146439909935, 0.025281960144639015, -0.04354807361960411, 0.05367746204137802, -0.015578087419271469, -0.013035361655056477, 0.0368850938975811, -0.038358837366104126, -0.021774036809802055, -0.025717856362462044, 0.013450500555336475, -0.012557952664792538, -0.010399229824543, -0.00468328595161438, -0.005568050779402256, 0.010342148132622242, 0.0542171411216259, -0.00910711009055376, 0.009683115407824516, -0.05081300437450409, 0.010191660374403, 0.002784025389701128, 0.012672115117311478, 0.01531862560659647, -0.03144677355885506, -0.004358958452939987, -0.017259400337934494, 0.010752097703516483, 0.013149525038897991, -0.02721235528588295, -0.02328929305076599, -0.009771332144737244, 0.10204114764928818, 0.027855820953845978, -0.058742158114910126, -0.017093345522880554, 0.0005818431382067502, -0.05824398994445801, -0.022521285340189934, 0.009122678078711033, 0.007233795709908009, 0.01168616022914648, 0.08037089556455612, 0.026506619527935982, 0.038338080048561096, 0.03038816899061203, -0.021078677847981453, 0.025323474779725075, -0.02696327306330204, 0.03373003751039505, 0.00015429870109073818, -0.04425380751490593, -0.03968727961182594, -0.028789883479475975, 0.022106146439909935, 0.024410167708992958, 0.030263626947999, 0.021649494767189026, -0.04271779581904411, -0.05728917196393013, 0.021130571141839027, 0.0338338203728199, -0.007015847600996494, 0.04392169788479805, -0.010855882428586483, 0.024389412254095078, -0.00023011020675767213, 0.04504257068037987, -0.03348095342516899, -0.02978621795773506, -0.03281673043966293, 0.036096327006816864, 0.01677161268889904, 0.019314337521791458, 0.07704978436231613, 0.02081921696662903, -0.0756383091211319, 0.010938910767436028, -0.02324777841567993, -0.06496924161911011, 0.008448077365756035, 0.09257597476243973, -0.07318899035453796, -0.025634828954935074, -0.005739295389503241, -0.004057982936501503, -0.011250264942646027, -0.04271779581904411, -0.032339323312044144, 0.002569969277828932, -0.006045460235327482, -0.01633571647107601, -0.02712932787835598, 0.03418669104576111, 0.01998893916606903, -0.0036298709455877542, 0.03509999439120293, -0.010093064978718758, -0.041804488748311996, -0.005282642785459757, 0.007379094138741493, -0.024659251794219017, -0.05770431086421013, 0.052639614790678024, 0.01520446315407753, 0.05998757481575012, -0.010082686319947243, 0.009485924616456032, -0.0462464764714241, -0.03366776555776596, 0.022106146439909935, -0.032152507454156876, -0.03493393957614899, -0.025925425812602043, -0.014093966223299503, 0.008266453631222248, 0.01850481703877449, 0.016138525679707527, 0.02341383509337902, -0.07136237621307373, -0.02677646093070507, 0.007181903347373009, 0.019137904047966003, 0.04041377454996109, 0.0377153716981411, 0.055545587092638016, 0.026070723310112953, 0.007846125401556492, -0.06293506175279617, -0.017923623323440552, 0.012568330392241478, -0.0538020022213459, 0.013647692278027534, -0.04973364248871803, -0.042385682463645935, 0.035224538296461105, -0.03783991187810898, -0.02050786279141903, -0.0024584007915109396, 0.04408775269985199, 0.035494375973939896, 0.04192902892827988, 0.021732522174715996, -0.03437350317835808, -0.03049195371568203, 0.02717084251344204, -0.031156174838542938, 0.013014605268836021, 0.019874775782227516, 0.03287900239229202, 0.006330868694931269, -0.000058824858570005745, -0.05479833856225014, 0.017695296555757523, -0.032048724591732025, 0.031218446791172028, -0.05861761420965195, 0.008749052882194519, -0.01729053631424904, -0.0043900939635932446, 0.031944938004016876, 0.042385682463645935, -0.016304580494761467, -0.040559072047472, 0.016200795769691467, 0.02416108548641205, 0.028644585981965065, 0.01693766750395298, 0.02997303009033203, 0.042510226368904114, 0.0800803005695343, -0.01499689370393753, -0.025157418102025986, 0.01520446315407753, -0.005443509202450514, 0.0031913805287331343, -0.0033522467128932476, 0.020383320748806, -0.0031654343474656343, 0.015650738030672073, 0.05496439337730408, 0.002789214486256242, -0.04107799753546715, 0.03379230946302414, -0.04940153285861015, 0.0472843237221241, -0.031509045511484146, 0.025842398405075073, 0.08327686786651611, -0.06106693297624588, -0.0026646729093044996, 0.010679448954761028, -0.04176297411322594, 0.032775215804576874, -0.009148623794317245, 0.03966652229428291, 0.060527253895998, -0.031924184411764145, 0.006336057558655739, 0.0025193742476403713, 0.019200174137949944, 0.027876578271389008, 0.031944938004016876, -0.041181780397892, -0.010617177933454514, 0.019864397123456, 0.013834504410624504, -0.009906252846121788, -0.007949910126626492, -0.024721521884202957, 0.012557952664792538, 0.017238643020391464, -0.03748704493045807, -0.022106146439909935, -0.006953577045351267, 0.008287210948765278, 0.01366844866424799, -0.004600258078426123, -0.0462464764714241, -0.010176092386245728, 0.01566111482679844, -0.0368850938975811, 0.042219627648591995, -0.014062831178307533, 0.03725871816277504, -0.025551799684762955, -0.009807656519114971, 0.052681129425764084, -0.0533868633210659, -0.05459076911211014, 0.004060577601194382, 0.02430638298392296, -0.009714250452816486, 0.017809459939599037, 0.014675160869956017, 0.055338017642498016, -0.04271779581904411, 0.0021898578852415085, -0.0150799211114645, 0.04794854298233986, 0.029744703322649002, 0.003033108776435256, -0.014260021969676018, 0.05014878138899803, 0.05126965790987015, -0.020393699407577515, -0.01848405972123146, -0.03038816899061203, -0.016138525679707527, 0.016781991347670555, 0.04653707146644592, -0.011540861800312996, -0.04491803050041199, 0.062187809497117996, 0.022625070065259933, -0.0025076984893530607, 0.0924929529428482, 0.002807376906275749, 0.02057013288140297, 0.010793611407279968, -0.04977515712380409, -0.08967000246047974, 0.03736250102519989, -0.06472015380859375, -0.00239353533834219, 0.010700205340981483, 0.0010514690075069666, 0.035120751708745956, -0.01542241033166647, 0.01168616022914648, 0.031218446791172028, -0.031114662066102028, -0.002272885525599122, -0.028478529304265976, 0.016781991347670555, -0.021161707118153572, 0.031612828373909, -0.024887578561902046, -0.003642844036221504, -0.021628737449645996, -0.010336958803236485, -0.010279877111315727, -0.018452925607562065, 0.05085451900959015, -0.01683388277888298, 0.024887578561902046, 0.014623268507421017, 0.02773127891123295, 0.05110359936952591, 0.028582314029335976, -0.03989484906196594, -0.005126965697854757, 0.004800043534487486, -0.024970605969429016, -0.04724280908703804, -0.06696190685033798, 0.015609223395586014, 0.01811043545603752, 0.020705053582787514, 0.07323050498962402, -0.0013582826359197497, 0.0016255283262580633, -0.009683115407824516, -0.007031415589153767, -0.06799975782632828, -0.06318414211273193, 0.012495681643486023, -0.0005990325007587671, 0.03840034827589989, -0.0015022839652374387, 0.028935182839632034, -0.009039649739861488, 0.007846125401556492, 0.03476788476109505, -0.045208629220724106, -0.030159842222929, -0.004379715770483017, 0.01887844130396843, -0.03254689276218414, -0.038358837366104126, -0.015277111902832985, -0.039438195526599884, 0.009330247528851032, 0.009428842924535275, 0.04794854298233986, 0.028208689764142036, -0.059281837195158005, -0.022147661074995995, -0.06995090842247009, -0.03343943879008293, 0.039521224796772, 0.040766641497612, -0.029080480337142944, 0.06613162904977798, 0.028125662356615067, -0.009631223045289516, -0.05728917196393013, -0.02673494629561901, -0.01536014024168253, 0.058742158114910126, 0.006242651492357254, -0.05039786547422409, -0.03713417425751686, -0.0031810018699616194, -0.05674948915839195, 0.04828065633773804, -0.06023665517568588, 0.031197689473628998, 0.029225779697299004, -0.04823914170265198, 0.0039360360242426395, 0.06845640391111374, -0.005505779758095741, 0.007955099456012249, 0.04271779581904411, -0.07771400362253189, 0.022915668785572052, -0.06509378552436829, -0.05135268345475197, 0.04292536526918411, -0.028333231806755066, -0.01697918213903904, 0.04288385063409805, 0.01862935908138752, -0.02418184094130993, -0.05131116881966591, -0.04823914170265198, -0.004288903903216124, 0.04064210131764412, 0.008795755915343761, 0.02312323823571205, 0.04475197568535805, 0.08456379920244217, -0.04699372500181198, -0.028001120314002037, 0.04670312628149986, 0.005521347746253014, -0.025842398405075073, -0.05467379465699196, 0.03823429346084595, -0.006003946531563997, -0.005254101939499378, -0.009024081751704216, -0.002324777888134122, -0.07949910312891006, -0.0933232307434082, -0.02696327306330204, 0.016740476712584496, 0.03752855956554413, 0.02343459241092205, -0.03399987891316414, 0.014332670718431473, 0.010497825220227242, -0.013855261728167534, 0.06758461892604828, 0.006491734646260738, 0.014851594343781471, 0.016470637172460556, 0.0001070280050043948, 0.06779218465089798, 0.005780809558928013, 0.032027967274188995, 0.0018940713489428163, -0.03055422380566597, 0.04840519651770592, -0.02013423666357994, -0.014135479927062988, -0.03842110559344292, -0.06380685418844223, 0.025738613680005074, 0.011717296205461025, -0.07298142462968826, 0.025115905329585075, 0.0348716676235199, 0.00146077002864331, 0.01835951767861843, 0.015858307480812073, 0.005900161806493998, 0.004309660755097866, -0.03022211231291294, -0.013419365510344505, -0.01650177128612995, -0.027689766138792038, 0.032629918307065964, -0.08423168957233429, -0.016885776072740555, -0.05102057382464409, 0.0007122227107174695, -0.038815487176179886, 0.042032815515995026, 0.0007070334395393729, 0.012485302984714508, 0.02301945351064205, -0.05405108630657196, 0.004633988253772259, 0.06775067001581192, -0.008774998597800732, -0.029620161280035973, 0.022479772567749023, -0.008992946706712246, -0.025489529594779015, -0.04504257068037987, 0.03950046747922897, -0.052971724420785904, 0.03985333442687988, 0.09116450697183609, -0.003409328404814005, -0.06056876853108406, 0.00032724623451940715, -0.011561619117856026, -0.03781915456056595, 0.003520896891131997, -0.07609496265649796, -0.014841216616332531, -0.025448014959692955, 0.03298278525471687, -0.035390593111515045, 0.06903760135173798, -0.032007209956645966, 0.017633024603128433, -0.007529581896960735, -0.022832639515399933, -0.03800596669316292, 0.018515195697546005, 0.018660495057702065, 0.06002908572554588, -0.003606519429013133, -0.045831337571144104, 0.0784197449684143, 0.00826126430183649, -0.0022313715890049934, 0.011374806053936481, 0.012215462513267994, 0.03061649575829506, -0.07788006216287613, 0.032443106174468994, 0.027980362996459007, 0.007202660199254751, 0.01980212703347206, -0.029578648507595062, 0.03995712101459503, -0.03080330789089203, -0.032318565994501114, 0.04977515712380409, 0.007711205165833235, -0.02700478583574295, 0.04641253128647804, -0.0005510320188477635, 0.036096327006816864, -0.016346095129847527, -0.02715008519589901, 0.021774036809802055, 0.004597663413733244, 0.00947035662829876, -0.015951713547110558, 0.08066149055957794, 0.07854428142309189, -0.03159207105636597, 0.027918092906475067, -0.021628737449645996, -0.022313715890049934, 0.010513393208384514, 0.014249643310904503, -0.03086557798087597, 0.04525014013051987, 0.04012317582964897, 0.005651078652590513, 0.00209645158611238, -0.008328724652528763, -0.019916290417313576, -0.010720962658524513, -0.05288869887590408, -0.02986924536526203, 0.03053346648812294, 0.022251445800065994, -0.02688024565577507, 0.03840034827589989, 0.008832080289721489, -0.05994606018066406, -0.029827730730175972, -0.005801566410809755, 0.042800821363925934, -0.01879541389644146, -0.001983585534617305, 0.002577753271907568, -0.03636616840958595, -0.0002054613287327811, 0.10162600874900818, 0.02989000268280506, -0.004057982936501503, -0.0019316932884976268, 0.01693766750395298, 0.015629980713129044, 0.006040271371603012, 0.0049142069183290005, 0.004309660755097866, 0.0013997965725138783, -0.031197689473628998, 0.01885768584907055, -0.0006389247137121856, 0.0021950469817966223, 0.059157297015190125, -0.042551737278699875, -0.009050028398633003, 0.024991363286972046, 0.002036775229498744, -0.004208470694720745, -0.015245976857841015, -0.02320626564323902, -0.01865011639893055, 0.055670127272605896, 0.015225219540297985, 0.06314262747764587, -0.035847246646881104, 0.0031420825980603695, -0.02725386992096901, -0.04300839081406593, 0.016086632385849953, -0.039521224796772, 0.045374684035778046, -0.03615859895944595, 0.00427074171602726, 0.04024771973490715, 0.008427320048213005, 0.028831398114562035, 0.009994469583034515, 0.032069481909275055, 0.00783055741339922, 0.01037847250699997, 0.02688024565577507, 0.008505158126354218, -0.014612889848649502, 0.029765460640192032, -0.003448247676715255, -0.09556497633457184, -0.001991369528695941, 0.01714523695409298, 0.022749612107872963, 0.09780672937631607, -0.01862935908138752, -0.045665279030799866, -0.011198372580111027, -0.05052240565419197, 0.02725386992096901, -0.015930956229567528, -0.07684221118688583, 0.021898576989769936, -0.015536573715507984, -0.024742279201745987, -0.010658691637217999, -0.012599466368556023, -0.004758529830724001, 0.0804954394698143, -0.022375987842679024, -0.032256294041872025, -0.032173264771699905, -0.011156857945024967, 0.03638692572712898, -0.009236840531229973, -0.03408290445804596, 0.007093686144798994, 0.011478590779006481, -0.015899820253252983, 0.042219627648591995, -0.017560375854372978, -0.09033422917127609, -0.06687887758016586, -0.020538998767733574, 0.029682433232665062, 0.05131116881966591, 0.09872003644704819, -0.04089118167757988, 0.012796657159924507, -0.01811043545603752, 0.07609496265649796 ]
43,209
fast_poisson_solver.plotter
plot
This function is used to plot the predicted Machine Learning solution of the PDE, the true source function, and the predicted source function. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False. show_points: bool, optional Whether to show the points used to train the model. Default is False.
def plot(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, grid=False, save=False, save_path=None, name=None, show=True, show_points=False): """ This function is used to plot the predicted Machine Learning solution of the PDE, the true source function, and the predicted source function. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False. show_points: bool, optional Whether to show the points used to train the model. Default is False. """ u_pred, f, f_pred, x, y, x_bc, y_bc = format_input([u_pred, f, f_pred, x_pde, y_pde, x_bc, y_bc], precision=torch.float64, device="cpu", as_array=True) x_tot = np.concatenate([x, x_bc]) y_tot = np.concatenate([y, y_bc]) if grid: x_tot, y_tot, u_pred = process_grid_data(x_tot, y_tot, u_pred) x, y, f, f_pred = process_grid_data(x, y, f, f_pred) vmin_u, vmax_u = minmax(u_pred) vmin_f, vmax_f = minmax(f_pred, f) fig, axs = plt.subplots(2, 3, figsize=(10, 8), dpi=400, tight_layout=True, sharey='row', sharex='col') axs[0][0].text(-0.15, 0.5, 'Potential', ha='center', va='center', rotation='vertical', fontsize=16, fontweight='bold') axs[1][0].text(-0.15, 0.5, 'Source Function', ha='center', va='center', rotation='vertical', fontsize=16, fontweight='bold') plot_subplot(axs[0][1], x_tot, y_tot, u_pred, 'Machine Learning', vmin_u, vmax_u, cb_pad=0.03, grid=grid) plot_subplot(axs[1][0], x, y, f, '', vmin_f, vmax_f, cb_pad=0.08, grid=grid, show_points=show_points) plot_subplot(axs[1][1], x, y, f_pred, '', vmin_f, vmax_f, cb_pad=0.08, grid=grid) plot_subplot(axs[1][2], x, y, (f_pred - f), '', cb_pad=0.08, cb_ztick=True, grid=grid) axs[0][0].set_ylabel('y', labelpad=-10, fontsize=14) axs[1][0].set_ylabel('y', labelpad=-10, fontsize=14) axs[1][0].set_xlabel('x', labelpad=-15, fontsize=14) axs[1][1].set_xlabel('x', labelpad=-15, fontsize=14) axs[1][2].set_xlabel('x', labelpad=-15, fontsize=14) if save: if not os.path.isdir(save_path): os.makedirs(save_path, exist_ok=True) plt.savefig(os.path.join(save_path, name + '.pdf'), bbox_inches="tight") plt.savefig(os.path.join(save_path, name + '.png'), bbox_inches="tight") if show: plt.show() plt.close()
(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, grid=False, save=False, save_path=None, name=None, show=True, show_points=False)
[ 0.019079072400927544, -0.037026602774858475, 0.005856782663613558, 0.05175761505961418, -0.023259496316313744, 0.02745039574801922, -0.053643520921468735, -0.034323472529649734, -0.007035473361611366, -0.01043534092605114, 0.029210573062300682, -0.024055765941739082, 0.01676359958946705, 0.05871450901031494, -0.01454242318868637, 0.018900958821177483, 0.008664686232805252, 0.003722043242305517, -0.007512188516557217, 0.018157074227929115, -0.02177172526717186, -0.04580653831362724, 0.009832899086177349, 0.03503592312335968, 0.02177172526717186, -0.01802087016403675, 0.006736871786415577, -0.029273437336087227, -0.006684485822916031, 0.023217586800456047, -0.049662165343761444, -0.03979259729385376, -0.0005674085696227849, -0.020001070573925972, 0.016554055735468864, 0.03258424997329712, 0.03834673389792442, 0.018387574702501297, -0.00034967821557074785, 0.019330525770783424, -0.0012441735016182065, -0.06801830977201462, 0.03866105154156685, 0.0022735632956027985, -0.02715703286230564, 0.014856740832328796, -0.08226736634969711, 0.048488713800907135, -0.006768303457647562, -0.019361957907676697, 0.005495317745953798, -0.10670031607151031, -0.010000535286962986, 0.0373828299343586, -0.0062339636497199535, 0.034721605479717255, 0.03155747801065445, 0.03528738021850586, 0.03618842363357544, -0.057247694581747055, 0.015537762083113194, -0.008214164525270462, -0.020891636610031128, -0.023867176845669746, 0.02191840671002865, -0.010189126245677471, 0.015212967060506344, -0.058421146124601364, -0.02304995059967041, 0.031976569443941116, -0.0033317655324935913, 0.0035544070415198803, 0.02357381209731102, -0.021939361467957497, 0.054020702838897705, -0.018481869250535965, -0.00811986904591322, -0.01934100314974785, -0.0438368134200573, -0.017853233963251114, 0.027115123346447945, 0.025732126086950302, -0.015150103718042374, -0.006150146014988422, 0.017413189634680748, -0.016459759324789047, 0.03656560182571411, 0.0007190012838691473, -0.01794753037393093, 0.03866105154156685, 0.008554674685001373, -0.009062821045517921, 0.049284983426332474, 0.012939403764903545, 0.0037980033084750175, -0.03105456940829754, -0.005256960168480873, -0.011713565327227116, -0.011011590249836445, -0.0476086251437664, 0.050416529178619385, 0.03388342633843422, -0.0016567151760682464, 0.03128506988286972, 0.023992903530597687, -0.02833048440515995, -0.049787893891334534, 0.07237684726715088, -0.008727549575269222, -0.044758811593055725, -0.060600414872169495, 0.027240850031375885, -0.029294392094016075, -0.0017562491120770574, 0.00046394573291763663, -0.03687991946935654, -0.06768303364515305, -0.011682134121656418, -0.059804145246744156, -0.03679610416293144, -0.035224515944719315, 0.06755731254816055, -0.06420458853244781, -0.06005559861660004, -0.006003464572131634, -0.029273437336087227, 0.09035580605268478, 0.036900874227285385, -0.04609990119934082, -0.09982723742723465, -0.009214741177856922, -0.002739800838753581, -0.03168320283293724, 0.020304910838603973, -0.014133810065686703, -0.011074453592300415, 0.024831082671880722, -0.01679503172636032, -0.03903823345899582, 0.016973145306110382, 0.023867176845669746, 0.0225470419973135, -0.025313036516308784, 0.03555978834629059, -0.006066327914595604, 0.011032544076442719, 0.024411993101239204, -0.015705397352576256, 0.0018453056691214442, -0.018303755670785904, -0.019781047478318214, 0.023154722526669502, -0.033673882484436035, -0.04159468412399292, 0.03643987700343132, -0.06537804007530212, 0.051045164465904236, 0.030321162194013596, 0.024139584973454475, 0.06080995872616768, -0.02805807627737522, -0.03943637013435364, 0.02950393594801426, 0.03786478191614151, -0.00860706064850092, 0.019435299560427666, 0.009654786437749863, 0.015034854412078857, -0.003355339402332902, 0.024139584973454475, 0.013138472102582455, -0.08038146048784256, -0.06219295784831047, 0.039331596344709396, -0.037131376564502716, 0.02034682035446167, 0.03899632394313812, -0.01699410006403923, 0.011399248614907265, 0.01531773991882801, 0.04287290945649147, 0.010267705656588078, -0.022567996755242348, 0.017486531287431717, -0.030467843636870384, 0.03076120652258396, 0.0022761826403439045, -0.009387616068124771, 0.00011107522004749626, 0.0070773824118077755, -0.03461683541536331, 0.01912098191678524, -0.03403010964393616, -0.0034967821557074785, 0.015443466603755951, 0.013044176623225212, 0.038577236235141754, -0.015736829489469528, 0.07292166352272034, -0.083776094019413, 0.047315262258052826, -0.04421399533748627, 0.04421399533748627, -0.01501389965415001, -0.0554036982357502, -0.008638492785394192, -0.0017785131931304932, 0.05590660870075226, 0.02550162747502327, 0.03300333768129349, 0.026507442817091942, -0.038053371012210846, -0.0008204996702261269, 0.033946290612220764, 0.031347934156656265, -0.013243244029581547, -0.037529509514570236, 0.004756671376526356, -0.04572271928191185, 0.03050975315272808, 0.014259537681937218, -0.0074807568453252316, -0.028812438249588013, 0.03970877826213837, 0.06332450360059738, -0.023469040170311928, 0.04354345053434372, 0.039604004472494125, 0.030845023691654205, -0.10007869452238083, 0.008675163611769676, 0.0066059064120054245, -0.014112856239080429, 0.0013384687481448054, 0.05590660870075226, -0.008470856584608555, -0.00869611743837595, -0.0016881469637155533, -0.06131286919116974, 0.0360417403280735, -0.02252608723938465, -0.03090788796544075, -0.013987128622829914, -0.028120938688516617, 0.023615721613168716, 0.049913618713617325, 0.03338051959872246, 0.04777625948190689, -0.04111272841691971, -0.03233279287815094, 0.009576207026839256, 0.015579670667648315, -0.028770528733730316, 0.007648392580449581, -0.023615721613168716, -0.04744098708033562, 0.03170415759086609, -0.030593570321798325, 0.10711940377950668, 0.021384067833423615, 0.003124839859083295, 0.006679247133433819, -0.018733322620391846, 0.09228362143039703, 0.04446544870734215, -0.057876329869031906, -0.03914300724864006, 0.007941755466163158, -0.019110504537820816, -0.004541887901723385, -0.03275188431143761, 0.10502395778894424, -0.03719423711299896, -0.017675120383501053, 0.042956724762916565, -0.00760124484077096, -0.020891636610031128, -0.039855461567640305, 0.013348016887903214, -0.009089014492928982, 0.0212269090116024, -0.1119808480143547, -0.022442270070314407, 0.0064068385399878025, -0.0360417403280735, -0.06156432256102562, -0.0004721310979221016, -0.011043021455407143, 0.029042936861515045, -0.03853532671928406, -0.03210229426622391, 0.01566348969936371, 0.012373632751405239, 0.01694171316921711, 0.0009226528345607221, 0.016952190548181534, 0.01043534092605114, -0.033778656274080276, -0.07149675488471985, -0.041783273220062256, 0.08063291758298874, 0.014490037225186825, 0.054816972464323044, 0.005741532891988754, -0.018659982830286026, -0.003908014390617609, 0.013997606001794338, -0.0073026432655751705, 0.05318252369761467, -0.05741533264517784, 0.03849341720342636, 0.04312436282634735, 0.030886933207511902, 0.03428156301379204, -0.021059272810816765, -0.014018560759723186, 0.01306513138115406, -0.019152414053678513, 0.03524547070264816, 0.027115123346447945, -0.011179225519299507, 0.008046528324484825, 0.016899803653359413, 0.021541226655244827, 0.034574925899505615, -0.06030705198645592, 0.03507783263921738, 0.013473743572831154, 0.019204799085855484, 0.049117349088191986, -0.0033291461877524853, -0.0015873033553361893, 0.00956049095839262, 0.02087068185210228, -0.04647708311676979, -0.03952018916606903, -0.03876582533121109, 0.006757826544344425, 0.05267961323261261, -0.004754052497446537, 0.03692182898521423, 0.009822421707212925, -0.04069364070892334, 0.03025829792022705, -0.02925248257815838, -0.0010084353853017092, 0.027261804789304733, 0.00012040652654832229, 0.03078216128051281, 0.06726394593715668, -0.05217670649290085, 0.06064232438802719, 0.008533719927072525, 0.026465533301234245, 0.0013279914855957031, 0.06093568727374077, -0.04094509407877922, 0.013368971645832062, 0.005181000102311373, 0.008114630356431007, 0.02407672069966793, -0.05087752640247345, -0.06726394593715668, 0.03736187517642975, -0.019990593194961548, -0.03541310504078865, 0.005490079056471586, 0.02084972709417343, 0.05230243131518364, 0.0007517426856793463, 0.0008958049002103508, -0.022630861029028893, -0.020378252491354942, -0.0014065708965063095, 0.01859711855649948, 0.010492966510355473, 0.00431662704795599, 0.013264198787510395, 0.007742688059806824, 0.025292081758379936, 0.0540626123547554, -0.040379323065280914, -0.01507676299661398, 0.01782180182635784, 0.010702511295676231, -0.035350240767002106, -0.027324669063091278, 0.02034682035446167, 0.03694278374314308, -0.06759921461343765, 0.029021983966231346, 0.005626283586025238, 0.03602078557014465, 0.027974257245659828, 0.025983581319451332, -0.058421146124601364, 0.016805509105324745, 0.08536863327026367, -0.045261722058057785, -0.005526749417185783, -0.03025829792022705, -0.010948726907372475, -0.016051147133111954, 0.03396724537014961, 0.03631414845585823, 0.009927194565534592, 0.009005196392536163, 0.02395099401473999, 0.0070878597907722, 0.041929956525564194, 0.05037461966276169, -0.007103575859218836, -0.014060469344258308, -0.004785484168678522, -0.06324068456888199, 0.058924056589603424, -0.09228362143039703, 0.007606483530253172, 0.04970407485961914, -0.01892191357910633, 0.03746664524078369, 0.0489078052341938, 0.02625598944723606, 0.031473658978939056, -0.010267705656588078, 0.023091860115528107, -0.03616746887564659, 0.04065173119306564, 0.025920717045664787, 0.0072554959915578365, -0.03671228513121605, -0.10326378047466278, -0.017601780593395233, 0.011912633664906025, -0.042307134717702866, -0.00839751586318016, 0.004644040949642658, -0.013934742659330368, -0.014395741745829582, 0.01178690604865551, 0.037655238062143326, -0.0341767892241478, 0.00497407466173172, -0.06349213421344757, -0.03748759999871254, 0.06638386100530624, -0.048362985253334045, -0.02872861921787262, -0.04857253283262253, 0.00794699415564537, 0.05452360957860947, 0.08851180970668793, 0.02548067271709442, 0.009764797054231167, 0.034700654447078705, -0.038577236235141754, -0.01872284524142742, -0.07451420277357101, -0.008088436909019947, 0.04056791216135025, 0.005463886074721813, 0.046057991683483124, -0.026046443730592728, 0.02304995059967041, 0.04580653831362724, -0.025082537904381752, 0.06030705198645592, 0.010655363090336323, -0.02265181578695774, -0.01949816197156906, -0.01501389965415001, -0.05297297611832619, -0.031473658978939056, 0.00833465252071619, -0.051967162638902664, 0.04079841077327728, 0.021363113075494766, 0.026067398488521576, 0.013222290202975273, -0.01586255617439747, 0.019707707688212395, -0.06018132343888283, -0.025166355073451996, 0.05728960409760475, 0.008015096187591553, 0.029839208349585533, 0.034072019159793854, 0.01614544168114662, -0.052847251296043396, 0.0023665488697588444, -0.025040628388524055, -0.05632569640874863, -0.027324669063091278, 0.00046067158109508455, -0.07782501727342606, -0.019382912665605545, 0.03671228513121605, -0.05494270101189613, -0.006490656640380621, -0.07505901902914047, 0.06093568727374077, -0.00502384128049016, -0.006317781750112772, -0.01468910463154316, 0.047189533710479736, 0.03778096288442612, -0.0010660601546987891, 0.06139668449759483, -0.07371792942285538, 0.003258424811065197, -0.038032419979572296, -0.05850496515631676, 0.054272156208753586, 0.0033658165484666824, 0.0016527862753719091, 0.0010955274337902665, 0.01776941679418087, 0.018680937588214874, -0.008167016319930553, -0.018733322620391846, -0.009387616068124771, 0.02077638730406761, 0.03453301638364792, 0.00964954774826765, 0.014343355782330036, 0.1222904622554779, -0.03170415759086609, 0.01133638434112072, 0.025438763201236725, 0.02065066061913967, -0.02422340214252472, -0.02242131531238556, 0.023238541558384895, 0.029964935034513474, -0.017507484182715416, 0.012834631837904453, -0.012143133208155632, -0.04234904423356056, 0.024935854598879814, -0.042160455137491226, 0.009225218556821346, 0.010482489131391048, -0.021729817613959312, -0.021834589540958405, 0.03832578286528587, -0.02539685368537903, 0.044088270515203476, 0.04802771657705307, 0.036775149405002594, 0.03220706805586815, 0.015328217297792435, -0.018031347543001175, 0.05175761505961418, 0.020985933020710945, 0.04932689294219017, 0.08562009036540985, 0.033024292439222336, 0.04167850315570831, -0.041028913110494614, -0.034470152109861374, -0.05100325495004654, 0.0019147174898535013, 0.01037247758358717, -0.015956852585077286, 0.0003116981824859977, 0.008727549575269222, -0.03245852142572403, 0.006689724046736956, -0.017507484182715416, -0.06722203642129898, 0.0360417403280735, 0.04572271928191185, -0.005998225882649422, -0.017455099150538445, -0.03208133950829506, -0.011818338185548782, 0.0528053417801857, -0.019089549779891968, -0.034826379269361496, 0.009832899086177349, -0.03241661190986633, -0.02304995059967041, 0.0643722265958786, -0.005390545353293419, 0.018932390958070755, 0.01724555343389511, 0.007664108648896217, 0.009869569912552834, 0.010000535286962986, -0.03725710138678551, -0.04815344139933586, 0.05703815072774887, 0.010362000204622746, -0.007417893037199974, -0.026109308004379272, 0.01889048144221306, -0.005689146928489208, 0.010660601779818535, 0.04677044600248337, 0.036251284182071686, -0.07040712237358093, -0.0003853663511108607, 0.004117559175938368, -0.03847246244549751, 0.0027790905442088842, -0.08859562873840332, 0.03788573667407036, 0.031599387526512146, -0.03759237378835678, -0.04136418551206589, 0.058546874672174454, 0.020703045651316643, 0.026046443730592728, -0.07648392766714096, -0.012247905135154724, -0.059217419475317, -0.026947487145662308, 0.02654935233294964, 0.051045164465904236, 0.062276776880025864, 0.02665412425994873, -0.008324175141751766, -0.027995212003588676, 0.048614442348480225, -0.043208178132772446, 0.014207151718437672, 0.01525487657636404, -0.10879576951265335, 0.020084887742996216, -0.00024637908791191876, 0.016512146219611168, -0.014919604174792767, -0.0392896868288517, -0.024391038343310356, 0.04094509407877922, -0.014909126795828342, 0.02307090535759926, 0.024391038343310356, -0.017874188721179962, -0.048362985253334045, -0.009120446629822254, 0.0017863711109384894, 0.005746771581470966, -0.018586641177535057, 0.06940130889415741, 0.015391080640256405, -0.02382526732981205, -0.016836941242218018, 0.12799008190631866, 0.026989396661520004, -0.009890523739159107, 0.038723915815353394, -0.014081424102187157, -0.01892191357910633, 0.0309288427233696, 0.025836899876594543, -0.022945178672671318, -0.004819535184651613, 0.012122178450226784, 0.008266550488770008, 0.010707749985158443, -0.05251197889447212, 0.0251244455575943, 0.015600625425577164, -0.016134966164827347, -0.03206038475036621, -0.01811516471207142, 0.01841900497674942, -0.06663531064987183, -0.003918491769582033, -0.046560898423194885, -0.04350154101848602, -0.049494531005620956, -0.04362726956605911, 0.03809528052806854, -0.03832578286528587, 0.02522921934723854, -0.04094509407877922, -0.04042123258113861, -0.02539685368537903, 0.039624959230422974, 0.048614442348480225, -0.024139584973454475, -0.016931235790252686, 0.04459117725491524, 0.008727549575269222, -0.00829798262566328, -0.008863753639161587, 0.002928391331806779, 0.04111272841691971, -0.04008596017956734, 0.04144800081849098, 0.021415499970316887, -0.03914300724864006, 0.022106997668743134, -0.00827178917825222, -0.03434442728757858, -0.025669263675808907, -0.023406177759170532, -0.01719316840171814, -0.03243756666779518, -0.044130176305770874, -0.03553883358836174, 0.035350240767002106, -0.05188334360718727, 0.05087752640247345, -0.054649338126182556, -0.004623086657375097, -0.07011375576257706, -0.06738967448472977, 0.007197870872914791, -0.009555252268910408, 0.04987170919775963, -0.04660280793905258, -0.013505175709724426, -0.015558716841042042, -0.013295630924403667, 0.03884964436292648, 0.011242089793086052, 0.004785484168678522, 0.016407374292612076, 0.018062779679894447, 0.030048754066228867, 0.02149931713938713, -0.001050999155268073, 0.0032427089754492044, -0.024831082671880722, -0.08411136269569397, 0.012310769408941269, -0.010519159026443958, 0.03652369603514671, 0.05871450901031494, -0.06642576307058334, -0.017937052994966507, -0.03914300724864006, -0.0008106772438623011, 0.03721519187092781, -0.02110118232667446, -0.03463779017329216, 0.011137316934764385, 0.02550162747502327, -0.04016977548599243, -0.036377012729644775, -0.011923111043870449, 0.03453301638364792, 0.03532928600907326, -0.018576163798570633, -0.004096604883670807, -0.015108195133507252, 0.06365977227687836, 0.05946887284517288, 0.018733322620391846, -0.03260520100593567, 0.03905918821692467, 0.05586469918489456, -0.01262508612126112, 0.06508468091487885, -0.017256030812859535, -0.042055681347846985, -0.07711256295442581, -0.04982980340719223, 0.04597417265176773, 0.02923152782022953, 0.02988111786544323, 0.050290800631046295, 0.02962966449558735, -0.033548153936862946, 0.040882229804992676 ]
43,210
fast_poisson_solver.plotter
plot_comparison
This function is used to plot and compare the numeric solution, the predicted Machine Learning solution, and the residual between the two. It also shows the true source function, the predicted source function, and the residual between these two. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. u_num : tensor/array/list The numeric solution of the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False. show_points: bool, optional Whether to show the points of the data. Default is False.
def plot_comparison(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, u_num, grid=False, save=False, save_path=None, name=None, show=True, show_points=False): """ This function is used to plot and compare the numeric solution, the predicted Machine Learning solution, and the residual between the two. It also shows the true source function, the predicted source function, and the residual between these two. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. u_num : tensor/array/list The numeric solution of the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False. show_points: bool, optional Whether to show the points of the data. Default is False. """ u_pred, u_num, f, f_pred, x, y, x_bc, y_bc = format_input([u_pred, u_num, f, f_pred, x_pde, y_pde, x_bc, y_bc], precision=torch.float64, device="cpu", as_array=True) x_tot = np.concatenate([x, x_bc]) y_tot = np.concatenate([y, y_bc]) if grid: x_tot, y_tot, u_num, u_pred = process_grid_data(x_tot, y_tot, u_num, u_pred) x, y, f, f_pred = process_grid_data(x, y, f, f_pred) vmin_u, vmax_u = minmax(u_pred, u_num) vmin_f, vmax_f = minmax(f_pred, f) fig, axs = plt.subplots(2, 3, figsize=(10, 8), dpi=400, tight_layout=True, sharey='row', sharex='col') axs[0][0].text(-0.15, 0.5, 'Potential', ha='center', va='center', rotation='vertical', fontsize=16, fontweight='bold') axs[1][0].text(-0.15, 0.5, 'Source Function', ha='center', va='center', rotation='vertical', fontsize=16, fontweight='bold') plot_subplot(axs[0][0], x_tot, y_tot, u_num, 'Numeric', vmin_u, vmax_u, cb_pad=0.03, grid=grid) plot_subplot(axs[0][1], x_tot, y_tot, u_pred, 'Machine Learning', vmin_u, vmax_u, cb_pad=0.03, grid=grid) plot_subplot(axs[0][2], x_tot, y_tot, (u_pred - u_num), 'Residual', cb_pad=0.03, cb_ztick=True, grid=grid) plot_subplot(axs[1][0], x, y, f, '', vmin_f, vmax_f, cb_pad=0.08, grid=grid, show_points=show_points) plot_subplot(axs[1][1], x, y, f_pred, '', vmin_f, vmax_f, cb_pad=0.08, grid=grid) plot_subplot(axs[1][2], x, y, (f_pred - f), '', cb_pad=0.08, cb_ztick=True, grid=grid) axs[0][0].set_ylabel('y', labelpad=-10, fontsize=14) axs[1][0].set_ylabel('y', labelpad=-10, fontsize=14) axs[1][0].set_xlabel('x', labelpad=-15, fontsize=14) axs[1][1].set_xlabel('x', labelpad=-15, fontsize=14) axs[1][2].set_xlabel('x', labelpad=-15, fontsize=14) if save: if not os.path.isdir(save_path): os.makedirs(save_path, exist_ok=True) plt.savefig(os.path.join(save_path, name + '.pdf'), bbox_inches="tight") plt.savefig(os.path.join(save_path, name + '.png'), bbox_inches="tight") if show: plt.show() plt.close() # np.save(os.path.join(save_path, name + '_residual.npy'), (u_pred - u_num).reshape(solver.grid_size, solver.grid_size))
(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, u_num, grid=False, save=False, save_path=None, name=None, show=True, show_points=False)
[ 0.019730400294065475, -0.04302540794014931, 0.0012201215140521526, 0.07700380682945251, -0.023347118869423866, 0.017666682600975037, -0.05753397196531296, -0.04957093670964241, -0.00478928629308939, -0.012903452850878239, 0.033832479268312454, -0.02501477114856243, 0.02424348145723343, 0.05849287286400795, -0.029163053259253502, 0.020314078778028488, 0.0018344165291637182, -0.004143071360886097, -0.014654486440122128, 0.014706600457429886, -0.04240003600716591, -0.04129521921277046, 0.00432025920599699, 0.05219748988747597, 0.018979957327246666, -0.024743778631091118, 0.0031711433548480272, -0.04540180787444115, -0.011131573468446732, 0.03977348655462265, -0.05886809527873993, -0.040669847279787064, -0.018104441463947296, -0.033457256853580475, 0.007494008634239435, 0.03210229054093361, 0.048778802156448364, 0.019772091880440712, -0.0195010993629694, 0.02411840856075287, -0.002394643146544695, -0.06703958660364151, 0.039168961346149445, -0.007186535280197859, -0.030205335468053818, 0.013914466835558414, -0.08279889076948166, 0.03441615775227547, -0.011590177193284035, -0.016051145270466805, 0.019761668518185616, -0.1001424640417099, -0.013737278059124947, 0.058326106518507004, 0.0009048311621882021, 0.05298962444067001, 0.03554182127118111, 0.04798666760325432, 0.04315048083662987, -0.07654520124197006, 0.01048014685511589, -0.008854187093675137, -0.02901713363826275, -0.006144253071397543, 0.009901680052280426, -0.014466876164078712, -0.0030643094796687365, -0.05090506002306938, -0.0027203564532101154, 0.021200018003582954, -0.018761077895760536, 0.021908771246671677, 0.02324289083480835, -0.0327485054731369, 0.06370428204536438, 0.002437637420371175, 0.0039476435631513596, -0.04012786224484444, -0.05986868590116501, -0.028558529913425446, 0.05736720934510231, 0.027099335566163063, 0.0036115075927227736, -0.013716433197259903, 0.010594798251986504, -0.04540180787444115, 0.031143389642238617, 0.011256647296249866, -0.0014240179443731904, 0.032956961542367935, -0.006415246520191431, -0.020314078778028488, 0.047027770429849625, 0.007660773582756519, 0.006561166141182184, -0.014581526629626751, -0.013091063126921654, -0.021345937624573708, -0.01699962094426155, -0.06741480529308319, 0.05736720934510231, 0.04002363234758377, -0.014956748113036156, 0.042379193007946014, 0.02161693200469017, -0.02280513383448124, -0.04365077614784241, 0.06558039039373398, -0.0001822365156840533, -0.04435952752828598, -0.05436543747782707, 0.02430601976811886, -0.04340062662959099, -0.00027408762252889574, 0.002144495490938425, -0.021762851625680923, -0.06595561653375626, -0.0033431199844926596, -0.029434047639369965, -0.021658621728420258, -0.021637776866555214, 0.058326106518507004, -0.061036042869091034, -0.03304034471511841, -0.01385192945599556, -0.03222736343741417, 0.08788523077964783, 0.06049405410885811, -0.04873711243271828, -0.08813537657260895, 0.010912694036960602, -0.002801133319735527, -0.04581872373819351, 0.022700903937220573, -0.015144359320402145, -0.007170901168137789, 0.017854291945695877, -0.008442485705018044, -0.000794088700786233, 0.01218427810817957, 0.02436855621635914, 0.023847414180636406, -0.04581872373819351, 0.040690694004297256, -0.0026122196577489376, 0.008150646463036537, 0.02343050204217434, 0.006592434365302324, 0.006853004917502403, 0.0029314185958355665, -0.01940729282796383, 0.022200608626008034, -0.02086648903787136, -0.045193351805210114, 0.04744468256831169, -0.07054165750741959, 0.05599139630794525, 0.016645245254039764, 0.03016364388167858, 0.05107182264328003, -0.021231286227703094, -0.05257271230220795, 0.04340062662959099, 0.019136300310492516, 0.009135602973401546, 0.014227150939404964, 0.006800890900194645, 0.006060870364308357, -0.01285133883357048, 0.018104441463947296, 0.004343710839748383, -0.09055346995592117, -0.08738493174314499, 0.024097563698887825, -0.032956961542367935, 0.0002833704638760537, 0.04139944538474083, -0.028099926188588142, -0.000861837062984705, 0.015613386407494545, 0.04952924698591232, 0.0008318714099004865, -0.02167946845293045, 0.0030903664883226156, -0.034145161509513855, 0.013111908920109272, 0.025911133736371994, -0.022700903937220573, 0.021001985296607018, -0.00038955293712206185, -0.03504152595996857, 0.012840915471315384, -0.04731960967183113, 0.004690269473940134, 0.025369146838784218, -0.006196367088705301, 0.04189974069595337, -0.011006499640643597, 0.08138138800859451, -0.10189349949359894, 0.019834628328680992, -0.04079492390155792, 0.018792346119880676, -0.016541017219424248, -0.04581872373819351, -0.023951644077897072, -0.004036237485706806, 0.04315048083662987, 0.037543002516031265, 0.02928812801837921, 0.026244664564728737, -0.023847414180636406, -0.008838552050292492, 0.024577012285590172, 0.015602963045239449, -0.012361465953290462, -0.023784877732396126, -0.012267660349607468, -0.03862697631120682, 0.02972588688135147, 0.007155266590416431, -0.022221455350518227, -0.033895015716552734, 0.033082034438848495, 0.04606886953115463, -0.010563529096543789, 0.034145161509513855, 0.06716465950012207, 0.04265018552541733, -0.09272141754627228, 0.022033844143152237, 0.01821909099817276, -0.001446166425012052, -0.011423411779105663, 0.03812668099999428, -0.004479207564145327, -0.024472784250974655, 0.0195010993629694, -0.057659048587083817, 0.03418685495853424, -0.033707402646541595, -0.03700101375579834, 0.0036792559549212456, -0.02451447583734989, 0.02224230021238327, 0.008968837559223175, 0.03435361757874489, 0.04021124541759491, -0.04594379663467407, -0.01631171442568302, 0.01071466039866209, -0.001427926472388208, -0.02676580473780632, -0.01360178180038929, -0.016238756477832794, -0.029308972880244255, 0.013924889266490936, -0.02418094500899315, 0.11123234778642654, 0.008760381489992142, 0.03166453167796135, -0.0011497674277052283, -0.024347711354494095, 0.0629955306649208, 0.003119029337540269, -0.056825220584869385, -0.043942615389823914, 0.014154191128909588, -0.022763442248106003, -0.006957233417779207, -0.05674183741211891, 0.08655110746622086, -0.05499080568552017, -0.009698435664176941, 0.028537685051560402, 0.008291354402899742, 0.0011334818555042148, -0.022721750661730766, 0.02639058418571949, 0.0036896788515150547, 0.01800021156668663, -0.09855819493532181, -0.02242991141974926, 0.02355557680130005, -0.019105032086372375, -0.059410080313682556, -0.0071344212628901005, -0.0085779819637537, 0.012173855677247047, -0.04327555373311043, -0.021846232935786247, 0.0038199638947844505, 0.008927145972847939, 0.020168159157037735, 0.002356860553845763, 0.020730990916490555, 0.014310533180832863, -0.03643818199634552, -0.057700738310813904, -0.021220864728093147, 0.0536566823720932, 0.013872775249183178, 0.07254283875226974, -0.006196367088705301, -0.04258764907717705, -0.00859361607581377, 0.023013589903712273, -0.01335163414478302, 0.05636661872267723, -0.041065916419029236, 0.02935066446661949, 0.0392940379679203, 0.03581281378865242, 0.04079492390155792, -0.001959490356966853, -0.00691033061593771, 0.0068738507106900215, -0.010506203398108482, 0.03727200999855995, 0.01734357513487339, -0.003035646630451083, 0.0029470527078956366, 0.021314669400453568, 0.019271796569228172, 0.023784877732396126, -0.06912414729595184, 0.016978776082396507, 0.012788801454007626, 0.030309563502669334, 0.04481813311576843, -0.015206896699965, -0.008301776833832264, 0.009505612775683403, 0.021908771246671677, -0.023972488939762115, -0.02876698598265648, -0.01800021156668663, -0.015592540614306927, 0.05845118314027786, -0.007540910970419645, 0.036417338997125626, 0.003681861562654376, -0.03612549975514412, 0.017791755497455597, -0.02493138797581196, 0.0020467815920710564, 0.009302368387579918, -0.001749731134623289, 0.021762851625680923, 0.06007714197039604, -0.06945767998695374, 0.0652051717042923, 0.0018018452683463693, 0.02211722731590271, 0.001571240252815187, 0.06320399045944214, -0.045026589184999466, -0.006853004917502403, 0.0213667843490839, 0.0310391616076231, 0.01565507799386978, -0.030768169090151787, -0.05790919438004494, 0.02018900401890278, -0.020949870347976685, -0.0483618900179863, 0.0027620475739240646, 0.012757533229887486, 0.0343119278550148, -0.009943371638655663, -0.018823614344000816, -0.03047632984817028, -0.017426956444978714, -0.02077268250286579, 0.008911511860787868, 0.018823614344000816, 0.008974049240350723, 0.020345347002148628, 0.00903137493878603, -0.001159538864158094, 0.06749819219112396, -0.02901713363826275, -0.050613220781087875, 0.011058613657951355, 0.0036375646013766527, -0.0517805777490139, -0.026161281391978264, 0.02493138797581196, 0.04052392765879631, -0.04167043790221214, 0.0361880362033844, -0.009901680052280426, 0.060035452246665955, 0.029434047639369965, 0.027036799117922783, -0.04196227714419365, 0.01637425273656845, 0.08788523077964783, -0.04536011815071106, -0.005518883932381868, -0.023201201111078262, -0.014143768697977066, -0.029809268191456795, 0.01687454804778099, 0.02903798036277294, -0.004434910602867603, 0.02789147011935711, 0.036083806306123734, 0.005065490957349539, 0.04246257245540619, 0.022700903937220573, -0.002124952618032694, -0.003942432347685099, -0.010151827707886696, -0.0826738178730011, 0.06816525012254715, -0.087968610227108, 0.0027933160308748484, 0.049987852573394775, -0.009489978663623333, 0.040565621107816696, 0.042191579937934875, 0.026432273909449577, 0.026036208495497704, -0.011225378140807152, 0.012309351935982704, -0.03285273164510727, 0.040002789348363876, -0.0012605099473148584, 0.019980547949671745, -0.022971898317337036, -0.08463330566883087, 0.0005579466233029962, -0.012257237918674946, -0.0294757392257452, -0.015186050906777382, -0.003760032821446657, -0.016551440581679344, -0.008484176360070705, 0.009151237085461617, 0.05857625603675842, -0.018573466688394547, 0.013184868730604649, -0.06841539591550827, -0.040940843522548676, 0.055949702858924866, -0.05132197216153145, -0.035145752131938934, -0.07033319771289825, 0.0019633988849818707, 0.043984305113554, 0.08025572448968887, 0.013591359369456768, 0.00856234785169363, 0.023534730076789856, -0.02651565708220005, -0.01921968162059784, -0.07396034151315689, -0.018615158274769783, 0.03479137644171715, -0.0011028647422790527, 0.03522913530468941, -0.02670326828956604, 0.029892651364207268, 0.03600042313337326, -0.016666091978549957, 0.06295383721590042, -0.002075444208458066, -0.02651565708220005, -0.012799224816262722, -0.035416748374700546, -0.04982108622789383, -0.04060731083154678, 0.014216728508472443, -0.039356574416160583, 0.05215579643845558, 0.003439530963078141, 0.017739642411470413, 0.02236737497150898, -0.01603029854595661, -0.00275683612562716, -0.050738293677568436, -0.02953827567398548, 0.042942024767398834, 0.025723522529006004, 0.016676513478159904, 0.021314669400453568, 0.010850156657397747, -0.052739474922418594, -0.017729219049215317, -0.015133936889469624, -0.04819512739777565, -0.03210229054093361, 0.039356574416160583, -0.08467499911785126, -0.006774833891540766, 0.03977348655462265, -0.07129209488630295, 0.005977488122880459, -0.07371019572019577, 0.07712887972593307, -0.009151237085461617, -0.0029470527078956366, -0.003371782600879669, 0.054824039340019226, 0.02651565708220005, 0.0048492178320884705, 0.03964841365814209, -0.0580342672765255, 0.016916239634156227, -0.03406177833676338, -0.06683112680912018, 0.07508600503206253, 0.010339438915252686, -0.0051332395523786545, 0.009417018853127956, 0.024639548733830452, 0.005555363837629557, -0.004388007801026106, -0.006139041855931282, -0.028308382257819176, 0.022909361869096756, 0.03262342885136604, 0.006383977830410004, 0.03137269243597984, 0.10714660584926605, -0.05328146368265152, 0.013977003283798695, 0.023826569318771362, 0.0072907633148133755, -0.03802245110273361, -0.035646047443151474, 0.029517430812120438, 0.012017512694001198, -0.0213667843490839, 0.018865305930376053, -0.0036714388988912106, -0.049279097467660904, 0.019980547949671745, -0.030559711158275604, 0.015498735010623932, 0.037292852997779846, -0.003087760880589485, -0.03266512230038643, 0.03581281378865242, -0.00670708529651165, 0.04611056298017502, 0.06933260709047318, 0.026599040254950523, 0.010756351985037327, 0.030559711158275604, -0.020074354484677315, 0.05749228224158287, 0.013393325731158257, 0.030184490606188774, 0.07412710785865784, 0.042942024767398834, 0.05257271230220795, -0.014279264956712723, -0.03322795405983925, -0.02814161777496338, -0.003160720458254218, 0.012736687436699867, -0.014195882715284824, -0.01590522564947605, 0.0012083958135917783, -0.012726265005767345, 0.014425184577703476, -0.012684573419392109, -0.0555327907204628, 0.03362402319908142, 0.04173297807574272, 0.00617552176117897, -0.014373070560395718, -0.028225000947713852, -0.03078901395201683, 0.06337075680494308, -0.02676580473780632, -0.032143980264663696, 0.0085779819637537, -0.027745550498366356, -0.02751624770462513, 0.06295383721590042, -0.01853177696466446, 0.017364419996738434, 0.028787832707166672, 0.01505055371671915, 0.028808677569031715, 0.027870623394846916, -0.03228989988565445, -0.06670605391263962, 0.058326106518507004, 0.005956642329692841, -0.025118999183177948, -0.025431683287024498, 0.02851683832705021, -0.018636004999279976, 0.02067887783050537, 0.05007123202085495, 0.04142029210925102, -0.05599139630794525, -0.007322032004594803, -0.0034942508209496737, -0.05015461519360542, 0.0005201639141887426, -0.0823402851819992, 0.04402599856257439, 0.01378939300775528, -0.047402992844581604, -0.019918011501431465, 0.07508600503206253, 0.021846232935786247, 0.030392946675419807, -0.08813537657260895, 0.0014552864013239741, -0.0670812800526619, -0.0301011074334383, 0.028370918706059456, 0.022096380591392517, 0.07529445737600327, 0.006394400727003813, 0.02895459719002247, -0.017916830256581306, 0.05549110099673271, -0.037105243653059006, 0.022325683385133743, 0.032018907368183136, -0.08996979147195816, 0.026599040254950523, -0.02864191308617592, 0.007540910970419645, -0.002010301686823368, -0.033644866198301315, -0.027432866394519806, 0.021637776866555214, -0.019865896552801132, 0.03833513706922531, 0.026098744943737984, -0.020230695605278015, -0.0349372960627079, 0.013393325731158257, -0.0038147526793181896, -0.004645972512662411, -0.0010794134577736259, 0.05986868590116501, 0.03958587348461151, -0.02318035438656807, -0.02280513383448124, 0.12007090449333191, 0.03241497278213501, -0.007113575469702482, 0.050488147884607315, -0.01631171442568302, -0.021846232935786247, 0.008244452066719532, 0.021512703970074654, -0.028037389740347862, 0.0078066932037472725, 0.024535320699214935, 0.021846232935786247, -0.0022852036636322737, -0.047402992844581604, 0.02361811324954033, 0.0062172128818929195, 0.002235695254057646, -0.011673559434711933, -0.0006517520523630083, 0.010943962261080742, -0.062286779284477234, 0.0025666197761893272, -0.042191579937934875, -0.025306610390543938, -0.030434638261795044, -0.023513885214924812, 0.03633395582437515, -0.033769942820072174, 0.010334227234125137, -0.022951051592826843, -0.036479875445365906, -0.024722931906580925, 0.0433589369058609, 0.05799257755279541, -0.042566802352666855, -0.026098744943737984, 0.04221242666244507, 0.008369525894522667, -0.026536503806710243, 0.006352709606289864, 0.007082307245582342, 0.0408574603497982, -0.05503249540925026, 0.04477643966674805, 0.021293824538588524, -0.03472883999347687, 0.015342392958700657, 0.004189974162727594, -0.036146342754364014, -0.011954976245760918, -0.018583890050649643, -0.012757533229887486, -0.013403748162090778, -0.04694438725709915, -0.02770385891199112, 0.04794497787952423, -0.055324334651231766, 0.0664559081196785, -0.05586632341146469, -0.010381129570305347, -0.056199852377176285, -0.08721816539764404, -0.0051410566084086895, -0.0043358937837183475, 0.04423445463180542, -0.049487557262182236, -0.02626550942659378, -0.00007890401320764795, -0.004283779766410589, 0.03347810357809067, 0.01793767511844635, 0.0006696662749163806, 0.011954976245760918, 0.03633395582437515, 0.04510997235774994, 0.01684327982366085, -0.0074262600392103195, 0.02864191308617592, 0.0013771152589470148, -0.10814719647169113, -0.0023073521442711353, 0.00160641735419631, 0.040565621107816696, 0.06787341088056564, -0.06111942231655121, -0.014435607939958572, -0.031060008332133293, -0.005539729725569487, 0.038856279104948044, -0.02361811324954033, -0.020887333899736404, 0.0346246138215065, 0.025786058977246284, -0.0446096733212471, -0.038856279104948044, -0.029684195294976234, 0.023826569318771362, 0.040440548211336136, -0.011256647296249866, 0.011767365038394928, -0.03141438215970993, 0.038668666034936905, 0.06570546329021454, 0.01285133883357048, -0.02470208704471588, 0.03802245110273361, 0.05478234961628914, 0.017802178859710693, 0.07650350779294968, -0.008239240385591984, -0.03447869420051575, -0.07287636399269104, -0.037605538964271545, 0.048778802156448364, 0.013549667783081532, 0.04794497787952423, 0.030809858813881874, 0.0324358195066452, -0.04994615912437439, 0.043442320078611374 ]
43,211
fast_poisson_solver.plotter
plot_side_by_side
This function is used to plot and compare the numeric solution, the predicted Machine Learning solution, and the residual between the two. It also shows the true source function, the predicted source function, and the residual between these two. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. u_num : tensor/array/list The numeric solution of the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False.
def plot_side_by_side(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, u_num, grid=False, save=False, save_path=None, name=None, show=True): """ This function is used to plot and compare the numeric solution, the predicted Machine Learning solution, and the residual between the two. It also shows the true source function, the predicted source function, and the residual between these two. Parameters ---------- x_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. y_pde : tensor/array/list Coordinates that lie inside the domain and define the behavior of the PDE. x_bc : tensor/array/list Coordinates of the boundary condition. y_bc : tensor/array/list Coordinates of the boundary condition. u_pred : tensor/array/list The predicted solution of the PDE using Machine Learning. f : tensor/array/list The true source function for the PDE. f_pred : tensor/array/list The predicted source function for the PDE. u_num : tensor/array/list The numeric solution of the PDE. grid : bool, optional If True, the data is arranged into a grid and plotted as an image. If False, tricontourf is used to create a contour plot. Default is False. save : bool, optional Whether to save the image. The image is saved in both .pdf and .png formats. Default is False. save_path : str, optional Path where the image will be saved. Used only if `save` is True. Default is None. name : str, optional Name of the image file. Used only if `save` is True. Default is None. show : bool, optional Whether to display the plot. Default is False. """ u_pred, u_num, f, f_pred, x, y, x_bc, y_bc = format_input([u_pred, u_num, f, f_pred, x_pde, y_pde, x_bc, y_bc], precision=torch.float64, device="cpu", as_array=True) x_tot = np.concatenate([x, x_bc]) y_tot = np.concatenate([y, y_bc]) if grid: x_tot, y_tot, u_num, u_pred = process_grid_data(x_tot, y_tot, u_num, u_pred) x, y, f, f_pred = process_grid_data(x, y, f, f_pred) vmin_u, vmax_u = minmax(u_pred, u_num) vmin_f, vmax_f = minmax(f_pred, f) fig, ax = plt.subplots(1, 2, figsize=(10, 8), dpi=400, tight_layout=True, sharey='row', sharex='col') ax[0].tricontourf(x_tot.reshape(-1), y_tot.reshape(-1), u_num.reshape(-1), 200, cmap='jet', vmin=vmin_u, vmax=vmax_u) ax[1].tricontourf(x_tot.reshape(-1), y_tot.reshape(-1), u_pred.reshape(-1), 200, cmap='jet', vmin=vmin_u, vmax=vmax_u) font_name = "Calibri" if "Calibri" in fm.findSystemFonts(fontpaths=None, fontext='ttf') else None ax[0].set_title('Numeric (5s)', fontsize=30, fontweight='bold', fontname=font_name, pad=20) ax[1].set_title('Ours (0.003s)', fontsize=30, fontweight='bold', fontname=font_name, pad=20) ax[0].set_aspect('equal', adjustable='box') ax[1].set_aspect('equal', adjustable='box') ax[0].axis('off') ax[1].axis('off') plt.text(1, -0.06, '400x400 Grid', ha='right', va='bottom', transform=plt.gca().transAxes) if save: if not os.path.isdir(save_path): os.makedirs(save_path, exist_ok=True) plt.savefig(os.path.join(save_path, name + '.pdf'), bbox_inches="tight") plt.savefig(os.path.join(save_path, name + '.png'), bbox_inches="tight") if show: plt.show() plt.close() # np.save(os.path.join(save_path, name + '_residual.npy'), (u_pred - u_num).reshape(solver.grid_size, solver.grid_size))
(x_pde, y_pde, x_bc, y_bc, u_pred, f, f_pred, u_num, grid=False, save=False, save_path=None, name=None, show=True)
[ 0.007536926306784153, -0.02890036068856716, 0.013604521751403809, 0.07006275653839111, -0.023467008024454117, 0.01560238841921091, -0.04634205624461174, -0.0548832006752491, -0.012769434601068497, -0.011437523178756237, 0.0388156995177269, -0.038561999797821045, 0.010576009750366211, 0.05323416739702225, -0.009598217904567719, 0.03978820517659187, -0.01657489500939846, 0.007098241243511438, -0.024101251736283302, -0.010766282677650452, -0.02835068292915821, -0.06147933006286621, 0.01721970923244953, 0.04147952049970627, -0.0015856085810810328, -0.05057034268975258, -0.003934951964765787, -0.04048587381839752, -0.029175197705626488, 0.014101346023380756, -0.042346321046352386, -0.013963926583528519, -0.013361395336687565, -0.03194472938776016, 0.030189987272024155, 0.021648842841386795, 0.04029560089111328, 0.030528251081705093, -0.012336035259068012, 0.03934423625469208, -0.01522184256464243, -0.059280622750520706, 0.04591922461986542, -0.003623115597292781, -0.03938651829957962, -0.0018564834026619792, -0.0656653419137001, 0.013065415434539318, -0.012262039817869663, 0.004051229916512966, 0.002735174959525466, -0.11010466516017914, -0.02581370808184147, 0.051289152354002, 0.012991419993340969, 0.04010532796382904, 0.03566562384366989, 0.04761053994297981, 0.032008152455091476, -0.07268429547548294, 0.009518937207758427, -0.02086661010980606, -0.019037874415516853, 0.0013702301075682044, 0.01487300917506218, -0.00840901117771864, 0.013171122409403324, -0.0217545498162508, 0.014925862662494183, 0.02657479979097843, -0.0206551942974329, 0.019915243610739708, 0.028266116976737976, -0.0069766780361533165, 0.06663784384727478, 0.001913301064632833, 0.019894102588295937, -0.020908892154693604, -0.029851725324988365, -0.036955252289772034, 0.04219833016395569, 0.020274648442864418, -0.0033139220904558897, 0.016796881332993507, 0.0009440978174097836, -0.02725132741034031, 0.03494681417942047, -0.009434371255338192, -0.01820278726518154, 0.030591676011681557, 0.007632062770426273, -0.02122601494193077, 0.030507110059261322, 0.007494643330574036, 0.00792804267257452, -0.018752465024590492, -0.012769434601068497, -0.011014694347977638, -0.026109687983989716, -0.0737413689494133, 0.053910691291093826, 0.03729351609945297, 0.005240436643362045, 0.03619416058063507, 0.02972487546503544, -0.002628146205097437, -0.029428895562887192, 0.06684926152229309, -0.02317102812230587, -0.05399525910615921, -0.04238860309123993, 0.025940557941794395, -0.05754702165722847, -0.00503695011138916, -0.012716581113636494, -0.030232271179556847, -0.05742017179727554, -0.001680745161138475, -0.020813755691051483, -0.01390050258487463, -0.03509480506181717, 0.05255763977766037, -0.07775824517011642, -0.07310713082551956, -0.011722933501005173, -0.03190244361758232, 0.07010504603385925, 0.03636329248547554, -0.05788528546690941, -0.06613045185804367, -0.0044714161194860935, 0.026680508628487587, -0.027864428237080574, 0.015866657719016075, -0.02367842197418213, -0.0008991722133941948, 0.01380536612123251, -0.01052844151854515, 0.01969325914978981, 0.01056543830782175, 0.011606655083596706, 0.011701791547238827, -0.026617083698511124, 0.06887883692979813, 0.021215442568063736, 0.029788300395011902, 0.016152067109942436, 0.021215442568063736, 0.03221956640481949, 0.02192368172109127, -0.02262135036289692, 0.034841105341911316, 0.009756778366863728, -0.017494548112154007, 0.04756825789809227, -0.07331854104995728, 0.05154285207390785, 0.03274810314178467, 0.0219025406986475, 0.07158494740724564, -0.02336130104959011, -0.07196549326181412, 0.04583466053009033, 0.039449941366910934, -0.00859928410500288, 0.004727756138890982, 0.018741894513368607, 0.0016292128711938858, 0.01578209176659584, 0.03186016157269478, -0.011722933501005173, -0.1008869931101799, -0.08727189898490906, 0.0335303358733654, -0.022198520600795746, 0.005903749261051416, 0.04173322021961212, -0.023424724116921425, -0.01052844151854515, 0.0008773701265454292, 0.03915396332740784, -0.007811765186488628, 0.01220918633043766, -0.022325368598103523, -0.03978820517659187, 0.03674383834004402, 0.036257583647966385, -0.042304039001464844, 0.016712315380573273, 0.004524270072579384, -0.025898274034261703, 0.024143533781170845, -0.049428705126047134, 0.018752465024590492, 0.052980467677116394, 0.0041569373570382595, 0.06092965230345726, -0.025750283151865005, 0.07158494740724564, -0.10215547680854797, 0.01672288589179516, -0.01784338243305683, 0.028815794736146927, -0.016966011375188828, -0.054079823195934296, -0.008017893880605698, 0.0006989891408011317, 0.05061262845993042, 0.042346321046352386, 0.030929937958717346, 0.04342453554272652, -0.014756730757653713, -0.010311741381883621, 0.029640311375260353, 0.03194472938776016, -0.00743650458753109, -0.04040130600333214, -0.005739903077483177, -0.041437238454818726, 0.023234451189637184, -0.01123667974025011, 0.011067547835409641, -0.04422790929675102, 0.026765072718262672, 0.04549639672040939, -0.024164674803614616, 0.016374051570892334, 0.05615168809890747, 0.03794889897108078, -0.0958976075053215, -0.0009084215853363276, 0.03900597244501114, -0.02670164965093136, 0.015433257445693016, 0.04306513071060181, -0.021691126748919487, -0.04401649534702301, 0.008292732760310173, -0.06980906426906586, 0.0360250286757946, -0.03934423625469208, -0.06152161583304405, -0.028287257999181747, -0.044650737196207047, 0.015390974469482899, 0.030612817034125328, 0.019270429387688637, 0.057673871517181396, -0.016035787761211395, -0.010972411371767521, 0.00033562048338353634, -0.016173208132386208, -0.02386869490146637, -0.016923729330301285, -0.00667541241273284, -0.03784319385886192, 0.006337149068713188, -0.031987011432647705, 0.08325502276420593, 0.01237831823527813, 0.02014780044555664, -0.01667003147304058, -0.005150585435330868, 0.07619377970695496, 0.03418572247028351, -0.07133124768733978, -0.04591922461986542, 0.01371022965759039, -0.004759468603879213, -0.010417448356747627, -0.03676497936248779, 0.06942851841449738, -0.05505233258008957, -0.03408001363277435, 0.03388974070549011, 0.021479710936546326, -0.007177521474659443, -0.0015512537211179733, 0.03048596903681755, 0.016395192593336105, 0.011363528668880463, -0.10985096544027328, -0.02039092592895031, 0.012029483914375305, -0.02207167260348797, -0.040528155863285065, 0.0002470906765665859, -0.025073757395148277, 0.019841250032186508, -0.042261753231287, -0.018625615164637566, 0.027357034385204315, 0.012484025210142136, 0.018435342237353325, 0.0008674600394442677, 0.00641642976552248, -0.012526308186352253, -0.05243078991770744, -0.05754702165722847, -0.0487944632768631, 0.05792756751179695, 0.018509337678551674, 0.06431228667497635, -0.024545220658183098, -0.0029095918871462345, -0.015052711591124535, 0.017283134162425995, -0.028012419119477272, 0.06105650216341019, -0.06689154356718063, 0.01976725459098816, 0.029132915660738945, 0.0024352306500077248, 0.03953450918197632, -0.0021167874801903963, -0.012811717577278614, 0.01051787007600069, -0.010502014309167862, 0.029154056683182716, 0.0249469093978405, 0.0005146621260792017, 0.0043022846803069115, 0.03689182549715042, 0.028921501711010933, 0.014418467879295349, -0.04281143099069595, 0.02619425393640995, 0.02959802746772766, 0.04192349314689636, 0.04120468348264694, -0.007642633747309446, -0.004696044139564037, -0.011004123836755753, 0.022494500502943993, -0.025158323347568512, -0.06359347701072693, -0.003298065857961774, -0.023974401876330376, 0.07446017861366272, -0.037504930049180984, 0.02492576837539673, 0.0008819947834126651, -0.03439713642001152, 0.011300103738904, -0.03401659056544304, 0.002756316214799881, 0.010549582540988922, -0.015528393909335136, 0.03987277299165726, 0.07475616037845612, -0.0324309803545475, 0.03640557453036308, 0.0004829499521292746, 0.014101346023380756, -0.008562286384403706, 0.06325521320104599, -0.05572885647416115, -0.00037360904389061034, 0.016596036031842232, 0.006992533802986145, 0.009048540145158768, -0.06629958003759384, -0.06393174082040787, 0.04112011566758156, -0.03295951709151268, -0.044989001005887985, 0.013424819335341454, 0.02319216914474964, 0.01770596206188202, 0.012959707528352737, -0.04120468348264694, -0.03807574883103371, -0.019746113568544388, -0.0015538964653387666, 0.010454446077346802, 0.022748198360204697, 0.0049233147874474525, 0.010036902502179146, 0.01816050335764885, 0.01921757683157921, 0.06042226031422615, -0.030887655913829803, -0.03906939551234245, -0.006955536548048258, 0.0206551942974329, -0.04968240484595299, -0.0018260926008224487, 0.030168846249580383, 0.018667899072170258, -0.07416419684886932, 0.02207167260348797, -0.016617178916931152, 0.06617273390293121, 0.020739760249853134, 0.028371823951601982, -0.029323188588023186, 0.007859333418309689, 0.09572847932577133, -0.017187997698783875, 0.013625663705170155, -0.025221748277544975, -0.01664889045059681, -0.0013444640208035707, 0.026130830869078636, 0.0005064037395641208, -0.010491443797945976, 0.015380403958261013, 0.02094060368835926, 0.025390880182385445, 0.02439723163843155, 0.04097212851047516, 0.01272715162485838, -0.003623115597292781, -0.007251516915857792, -0.06676468998193741, 0.06021084636449814, -0.07450246065855026, 0.012388888746500015, 0.04613063856959343, 0.00921238586306572, 0.028963783755898476, 0.04150066152215004, 0.03467197343707085, 0.041437238454818726, -0.00793861411511898, -0.024841202422976494, -0.029132915660738945, 0.02708219550549984, 0.006627844180911779, 0.04811793565750122, -0.04917500913143158, -0.07915358245372772, -0.020792614668607712, -0.01095127034932375, -0.03477768227458, -0.02069747820496559, 0.009751493111252785, -0.012674298137426376, 0.013858219608664513, 0.010887845419347286, 0.025158323347568512, -0.0033509195782244205, -0.0053117889910936356, -0.08257849514484406, -0.015560106374323368, 0.05023208260536194, -0.06363575905561447, -0.023276735097169876, -0.04807565361261368, 0.005126801319420338, 0.04078185185790062, 0.07027417421340942, 0.028012419119477272, -0.014481891877949238, 0.010465016588568687, -0.047483693808317184, -0.01308655645698309, -0.07437561452388763, -0.008123601786792278, 0.04135267436504364, 0.013974497094750404, 0.03689182549715042, -0.030422544106841087, 0.02295961230993271, 0.04200805723667145, -0.057377889752388, 0.044650737196207047, -0.007716628722846508, -0.008218738250434399, -0.014323331415653229, -0.029534602537751198, -0.043889645487070084, -0.019439561292529106, 0.011374099180102348, -0.023255592212080956, 0.03331892192363739, -0.006532707717269659, 0.021881399676203728, 0.02122601494193077, -0.0299362912774086, -0.018213357776403427, -0.04040130600333214, -0.026151971891522408, 0.01950298622250557, 0.03166988864541054, 0.016395192593336105, 0.026447951793670654, 0.0236995629966259, -0.0299362912774086, -0.019323283806443214, -0.0004287750052753836, -0.059618882834911346, -0.038033466786146164, 0.03511594608426094, -0.07327625900506973, -0.00010091737931361422, 0.03194472938776016, -0.07035873830318451, -0.007314940914511681, -0.06930166482925415, 0.08414296060800552, 0.003224070882424712, 0.017589684575796127, -0.01664889045059681, 0.04579237848520279, 0.031627606600522995, 0.01899559050798416, 0.03384745866060257, -0.04811793565750122, 0.02405896782875061, -0.041056692600250244, -0.07040102034807205, 0.07839249074459076, -0.009545363485813141, 0.013202834874391556, 0.013097126968204975, -0.0032954232301563025, 0.016701744869351387, -0.001600143383257091, -0.001832699286751449, -0.027716439217329025, -0.006611987948417664, 0.014587598852813244, 0.02691306360065937, 0.022748198360204697, 0.12879370152950287, -0.05221937596797943, 0.004566553048789501, 0.03826602175831795, 0.013171122409403324, -0.041056692600250244, -0.027547307312488556, 0.04238860309123993, 0.021796833723783493, -0.013911073096096516, -0.006242012605071068, -0.0074576460756361485, -0.04558096081018448, 0.02046492137014866, -0.04951327294111252, 0.009090823121368885, 0.03638443350791931, -0.0057187615893781185, -0.018213357776403427, 0.0322829931974411, -0.022515641525387764, 0.04200805723667145, 0.03302294388413429, 0.02602512203156948, -0.0022092813160270452, 0.016849733889102936, -0.014809584245085716, 0.053741563111543655, 0.003990448545664549, 0.05594027042388916, 0.09209214895963669, 0.043001703917980194, 0.05953431874513626, -0.030189987272024155, -0.02029578946530819, -0.048371635377407074, -0.015961794182658195, -0.0009883627062663436, -0.010681716725230217, -0.009148961864411831, 0.01755797304213047, 0.014196482487022877, -0.0050792330875992775, -0.011680650524795055, -0.07078156620264053, 0.0279912780970335, 0.04985153675079346, 0.01969325914978981, -0.013974497094750404, -0.015126706101000309, -0.027526166290044785, 0.07729313522577286, -0.04325540363788605, -0.030866514891386032, -0.029006067663431168, -0.034819964319467545, -0.046764884144067764, 0.05467178672552109, -0.01597236469388008, -0.001066982513293624, 0.03139505162835121, 0.016183778643608093, 0.02854095585644245, 0.047314561903476715, -0.0363210067152977, -0.04010532796382904, 0.005443922709673643, 0.03454512730240822, -0.018266212195158005, -0.03682840242981911, 0.034143440425395966, -0.034270286560058594, 0.02532745525240898, 0.07196549326181412, 0.055306028574705124, -0.052980467677116394, 0.004666974768042564, 0.01038573682308197, -0.04207148030400276, -0.0007789302617311478, -0.10333939641714096, 0.038371726870536804, 0.01587722823023796, -0.03843515366315842, -0.021595990285277367, 0.07247288525104523, 0.0067335511557757854, 0.04494671896100044, -0.06714524328708649, -0.005401640199124813, -0.04044359177350998, -0.014936433173716068, 0.00721980445086956, 0.03978820517659187, 0.04646890237927437, 0.012441742233932018, 0.02228308655321598, -0.005734617821872234, 0.030168846249580383, -0.041775502264499664, 0.04367823153734207, 0.03579247370362282, -0.0975889265537262, 0.012029483914375305, -0.006839258596301079, -0.01835077628493309, -0.03186016157269478, -0.047145429998636246, -0.0011925097787752748, 0.011585514061152935, -0.008726133033633232, 0.028921501711010933, 0.01856219209730625, -0.011807498522102833, -0.022198520600795746, 0.006622558459639549, 0.017769386991858482, -0.007780053187161684, 0.009677497670054436, 0.021574847400188446, 0.029851725324988365, 0.011247250251471996, -0.011691221036016941, 0.10274744033813477, 0.03558105602860451, -0.005089803598821163, 0.06105650216341019, -0.0005235811695456505, -0.015824373811483383, 0.0075104995630681515, 0.026617083698511124, -0.021627701818943024, -0.006437570787966251, 0.027335893362760544, 0.01522184256464243, 0.020454350858926773, -0.038181453943252563, 0.03226184844970703, 0.0016860305331647396, -0.010813850909471512, -0.03405887261033058, 0.022853905335068703, 0.009693354368209839, -0.06287466734647751, -0.015454398468136787, -0.02096174657344818, -0.03674383834004402, -0.022579066455364227, -0.03797003999352455, 0.03708209842443466, -0.03513708710670471, 0.01650089956820011, -0.04283257573843002, -0.05188111588358879, -0.003678611945360899, 0.023403583094477654, 0.053530145436525345, -0.04310741275548935, -0.01816050335764885, 0.049428705126047134, 0.017779957503080368, -0.02420695871114731, 0.008641567081212997, 0.0023916263598948717, 0.01195548940449953, -0.04040130600333214, 0.035707905888557434, 0.027124477550387383, -0.03807574883103371, 0.04025331884622574, -0.026617083698511124, -0.0027246042154729366, -0.011120401322841644, -0.022684773430228233, 0.01880531758069992, -0.025010332465171814, -0.06177531182765961, -0.01636348105967045, 0.03807574883103371, -0.04503128305077553, 0.08240936696529388, -0.04109897464513779, -0.014735589735209942, -0.03655356541275978, -0.06562305241823196, -0.007193377707153559, -0.024798918515443802, 0.06198672577738762, -0.04689173400402069, -0.01827678270637989, 0.00946079846471548, -0.03689182549715042, 0.0388156995177269, 0.018752465024590492, 0.00013428123202174902, 0.028815794736146927, 0.015390974469482899, 0.028773510828614235, 0.01890045404434204, -0.012653157114982605, 0.0175368320196867, -0.00722509017214179, -0.08553829789161682, -0.003998376429080963, -0.002554151229560375, 0.02367842197418213, 0.05023208260536194, -0.04773738980293274, -0.0018340206006541848, -0.03864656761288643, -0.0025686859153211117, 0.05150056630373001, -0.024016685783863068, -0.040337882936000824, 0.012103479355573654, 0.0029333760030567646, -0.05281133949756622, -0.0361730195581913, -0.047483693808317184, -0.007314940914511681, 0.055306028574705124, 0.004349852912127972, -0.006580275949090719, -0.023445867002010345, 0.030041998252272606, 0.061733029782772064, 0.034333713352680206, -0.03065509907901287, 0.03615187481045723, 0.04078185185790062, 0.0016199634410440922, 0.07251516729593277, -0.012198615819215775, -0.06232498958706856, -0.08414296060800552, -0.048709895461797714, 0.04150066152215004, 0.008424866944551468, 0.05606712028384209, 0.03761063516139984, 0.05331873148679733, -0.00839315541088581, 0.053191885352134705 ]
43,212
fast_poisson_solver.plotter
plot_subplot
null
def plot_subplot(ax, x, y, v, title, vmin=None, vmax=None, cb_pad=0.018, cb_ztick=False, grid=False, show_points=False): if vmin is None: vmin = min((np.min(v), 0)) if vmax is None: vmax = max((np.max(v), 0)) if grid: c = ax.imshow(v, cmap='jet', vmin=vmin, vmax=vmax, extent=(0, 1, 0, 1), origin='lower') else: c = ax.tricontourf(x.reshape(-1), y.reshape(-1), v.reshape(-1), 100, cmap='jet', vmin=vmin, vmax=vmax) # , extent=(0, 1, 0, 1)) if show_points: ax.scatter(x, y, s=1, c='black', marker='.', alpha=0.5) if title != '': ax.set_title(title, fontsize=16, pad=12, fontweight='bold') # ax.set_xlim(0, 1) # ax.set_ylim(0, 1) ax.set_aspect('equal', adjustable='box') ax.set_xticks((0, 1), labels=('0', '1'), fontsize=14) ax.set_yticks((0, 1), labels=('0', '1'), fontsize=14) for spine in ax.spines.values(): spine.set_visible(False) cb = plt.colorbar(ScalarMappable(norm=c.norm, cmap=c.cmap), ax=ax, extendrect=True, pad=cb_pad, location='bottom', shrink=0.8) cb.outline.set_visible(False) if cb_ztick: cb.set_ticks([vmin, 0, vmax], labels=[f'{vmin:.4f}', '0', f'{vmax:.4f}'], fontsize=15) else: cb.set_ticks([vmin, vmax], labels=[f'{vmin:.4f}', f'{vmax:.4f}'], fontsize=15)
(ax, x, y, v, title, vmin=None, vmax=None, cb_pad=0.018, cb_ztick=False, grid=False, show_points=False)
[ 0.048625923693180084, -0.010853658430278301, 0.006236303132027388, 0.06096441298723221, -0.03310701251029968, 0.02230125106871128, -0.017798850312829018, 0.002912190742790699, -0.025577465072274208, -0.03431403636932373, 0.01481002289801836, 0.03785847872495651, 0.06222891807556152, -0.040808990597724915, 0.007342744152992964, 0.006538060028105974, 0.021132541820406914, -0.021477406844496727, 0.04747637361288071, 0.008482713252305984, 0.031976621598005295, -0.01683131232857704, 0.008616827428340912, 0.005172970239073038, 0.027320947498083115, 0.028834519907832146, -0.021515725180506706, -0.009512517601251602, -0.021534884348511696, -0.021688157692551613, -0.04433427378535271, -0.02235872857272625, 0.009244290180504322, 0.03347103297710419, 0.046096913516521454, 0.00893295370042324, 0.010709964670240879, -0.0056136311031877995, -0.08866854757070541, 0.09426301717758179, 0.03962112218141556, -0.04927733168005943, 0.026784490793943405, -0.0023685498163104057, 0.046020276844501495, 0.024868575856089592, -0.02712935581803322, 0.033605147153139114, -0.011466750875115395, -0.013047381304204464, -0.021170860156416893, -0.07916560769081116, -0.004155140835791826, -0.0022236588411033154, 0.0008825183613225818, 0.04272490367293358, 0.055906400084495544, 0.07349450141191483, 0.046556733548641205, 0.012712095864117146, -0.04828105866909027, -0.0024176451843231916, -0.04985210672020912, -0.044372592121362686, -0.012376810424029827, -0.0003001101140398532, 0.005182549823075533, -0.03226400911808014, -0.006542849820107222, -0.015011194162070751, 0.039314575493335724, 0.03222569078207016, -0.0012381600681692362, -0.005096334032714367, 0.018967557698488235, 0.0054843067191541195, -0.07088885456323624, 0.06399156153202057, -0.0018967558862641454, -0.0008507859893143177, 0.04816610366106033, -0.011572126299142838, 0.039697758853435516, -0.01810539700090885, 0.030578002333641052, 0.01825867034494877, -0.04349127039313316, -0.01825867034494877, -0.005469937343150377, 0.07062062621116638, 0.024312961846590042, -0.02804899588227272, 0.047514691948890686, 0.054297029972076416, -0.0498904250562191, 0.005580102559179068, 0.012731255032122135, 0.0009064672631211579, -0.06199900805950165, 0.004133586771786213, 0.012003207579255104, -0.030405571684241295, 0.0024044732563197613, -0.061194323003292084, -0.015212364494800568, -0.006906873546540737, -0.07253654301166534, 0.043452952057123184, -0.048127785325050354, 0.011773297563195229, 0.020634403452277184, 0.0028618979267776012, -0.030539683997631073, -0.023661550134420395, -0.005163390655070543, 0.014216089621186256, -0.035597700625658035, -0.06104104965925217, -0.05625126510858536, -0.04119217395782471, 0.005125072784721851, -0.012194799259305, 0.06694206595420837, -0.03624911233782768, -0.009934019297361374, 0.021113382652401924, 0.009320925921201706, 0.023623231798410416, -0.08146470785140991, -0.016802573576569557, 0.03854820877313614, -0.03536779060959816, -0.04019589722156525, -0.03130605071783066, 0.01933158189058304, -0.033030375838279724, 0.004777812864631414, 0.024753620848059654, -0.06655889004468918, -0.004188668914139271, 0.010614168830215931, 0.013315608724951744, -0.06364669650793076, 0.019092092290520668, -0.010719544254243374, -0.019657287746667862, 0.02385314181447029, -0.021036745980381966, -0.003776747500523925, -0.05935504660010338, -0.05291757360100746, 0.03534863144159317, 0.00936882384121418, -0.012807891704142094, 0.04215012863278389, -0.05778399482369423, 0.015825457870960236, 0.028355542570352554, 0.03153596073389053, 0.06203732639551163, -0.016381073743104935, 0.022454524412751198, 0.01718575693666935, 0.018766386434435844, -0.008966482244431973, -0.005024487152695656, -0.014599272049963474, -0.0026008544955402613, -0.031459324061870575, 0.012003207579255104, -0.0051154932007193565, -0.0752188190817833, -0.0687430277466774, 0.03789679706096649, 0.03065463900566101, -0.034064967185258865, -0.029351817443966866, -0.004023421555757523, 0.009809484705328941, 0.014608851633965969, 0.01685047149658203, 0.044449228793382645, 0.02812563255429268, 0.02760833501815796, -0.018871761858463287, 0.0003122342750430107, 0.06383828818798065, 0.047514691948890686, 0.041383761912584305, -0.039697758853435516, 0.00871262326836586, 0.02747422084212303, -0.03839493542909622, -0.058435406535863876, 0.021726476028561592, -0.03283878415822983, 0.013392245396971703, -0.036689773201942444, 0.023508276790380478, -0.057017628103494644, 0.029294339939951897, -0.03155511990189552, 0.03222569078207016, -0.034524787217378616, 0.00882278848439455, 0.014014918357133865, 0.05134652182459831, 0.010250145569443703, -0.011639183387160301, 0.0050436463207006454, 0.02191806770861149, -0.007893569767475128, -0.022090500220656395, -0.0002073079813271761, -0.047629646956920624, -0.02076851762831211, -0.02394893765449524, -0.04119217395782471, 0.0024128553923219442, 0.04935396835207939, 0.02856629155576229, 0.021994704380631447, 0.0017339030746370554, 0.06379996985197067, 0.07027576118707657, 0.015384797006845474, 0.026094762608408928, 0.01941779814660549, 0.035157039761543274, -0.08131143450737, 0.010096872225403786, 0.036114998161792755, 0.01973392441868782, -0.008846737444400787, -0.07035239785909653, -0.0006579970358870924, 0.06537102162837982, -0.001002861768938601, -0.009622682817280293, 0.030443888157606125, 0.024140529334545135, -0.016936687752604485, -0.01766473613679409, 0.05138484016060829, -0.018613114953041077, 0.00788877997547388, -0.01923578605055809, 0.06996921449899673, -0.03893139213323593, 0.010307622142136097, -0.02080683596432209, -0.03847157210111618, -0.044985685497522354, -0.006782338954508305, 0.04383613541722298, -0.027761608362197876, -0.09403310716152191, -0.03523367643356323, 0.021515725180506706, -0.03287710249423981, -0.040847308933734894, 0.02293350175023079, -0.04310808703303337, 0.058971863240003586, 0.014369362033903599, -0.013708371669054031, 0.001622540527023375, 0.0046341195702552795, -0.06537102162837982, 0.04199685528874397, 0.049622196704149246, 0.026861127465963364, 0.011667922139167786, -0.006207564380019903, -0.01113146636635065, 0.04954556003212929, -0.00291937543079257, -0.07954879105091095, 0.029945751652121544, -0.034026648849248886, -0.035176198929548264, -0.04828105866909027, 0.0006268634460866451, 0.0010405813809484243, 0.011533807963132858, -0.07498890906572342, 0.0018069472862407565, 0.04640346020460129, -0.07690482586622238, 0.04126880690455437, -0.08399371057748795, -0.031919144093990326, 0.039180461317300797, 0.03419908136129379, -0.04502400383353233, -0.011121886782348156, 0.029102748259902, 0.004995748400688171, -0.09817148000001907, -0.0729963630437851, 0.03260887414216995, -0.028451338410377502, -0.0424949936568737, 0.01814371533691883, 0.03331776335835457, 0.027167674154043198, 0.012625879608094692, -0.008482713252305984, 0.023623231798410416, -0.02657373994588852, -0.005302294623106718, 0.034141603857278824, 0.0037815372925251722, -0.023584913462400436, -0.0006603919318877161, 0.05812885984778404, -0.023508276790380478, -0.024715302512049675, -0.002536192536354065, 0.01971476525068283, 0.008889845572412014, -0.03268551081418991, -0.01481002289801836, -0.08131143450737, 0.06770843267440796, -0.02555830590426922, -0.0009908872889354825, 0.014493896625936031, -0.0020009337458759546, 0.08552644401788712, -0.039199620485305786, 0.06069618836045265, -0.005134652368724346, 0.011256000958383083, -0.0034127235412597656, -0.0254050325602293, -0.007812143303453922, 0.05966159328818321, -0.009565205313265324, -0.0312294140458107, 0.0035180989652872086, 0.01981056109070778, -0.03682388737797737, 0.021668998524546623, -0.09334337711334229, 0.019590230658650398, -0.03852904960513115, -0.034026648849248886, -0.023220889270305634, 0.00953646656125784, 0.006767969578504562, 0.002375734504312277, -0.022703591734170914, -0.022761069238185883, -0.03841409459710121, 0.0593167282640934, 0.03849073126912117, -0.05548489838838577, -0.0009908872889354825, -0.02960088662803173, 0.01967644691467285, 0.0045455084182322025, -0.03477385640144348, -0.021036745980381966, -0.024044733494520187, 0.016783414408564568, 0.025769056752324104, -0.012692936696112156, 0.0005250804242677987, -0.006581168156117201, -0.03486965224146843, 0.019446536898612976, 0.015126149170100689, -0.03958280384540558, 0.031995780766010284, -0.013861645013093948, -0.0456370934844017, -0.012395969592034817, -0.012118162587285042, -0.00038557787775062025, 0.03946784883737564, 0.004526349250227213, -0.006997879594564438, -0.037168752402067184, -0.028240587562322617, -0.05402880162000656, -0.023048456758260727, 0.08621617406606674, 0.008942533284425735, 0.03885475546121597, 0.009641841985285282, 0.017271973192691803, -0.04617355018854141, -0.021439088508486748, -0.023565754294395447, -0.0541437566280365, 0.04946892336010933, 0.057017628103494644, -0.020921790972352028, 0.0010244158329442143, 0.012894107960164547, 0.018134135752916336, 0.013727530837059021, 0.022205455228686333, 0.040272533893585205, -0.038701482117176056, 0.005752534605562687, -0.024734461680054665, 0.013440143316984177, -0.01871848851442337, 0.058435406535863876, -0.004248541314154863, 0.023508276790380478, -0.02502184920012951, -0.03789679706096649, 0.0035923405084758997, -0.11740726977586746, -0.023623231798410416, -0.011869093403220177, -0.07548704743385315, 0.018900500610470772, 0.030463047325611115, 0.0218989085406065, 0.017568940296769142, 0.018316147848963737, -0.018852602690458298, 0.004701176192611456, -0.014168191701173782, 0.013411404564976692, -0.058435406535863876, 0.02285686507821083, -0.05257270857691765, 0.02178395353257656, 0.020634403452277184, -0.034658901393413544, 0.022205455228686333, -0.010355520062148571, -0.010470475070178509, 0.01823951117694378, 0.0633784681558609, -0.01301864255219698, 0.00007390492100967094, -0.029964910820126534, -0.0234699584543705, -0.022435365244746208, 0.035176198929548264, -0.043951090425252914, 0.020691880956292152, -0.007496017497032881, -0.04958387836813927, 0.02132413350045681, 0.031919144093990326, -0.01173497922718525, 0.00027137139113619924, 0.028355542570352554, -0.05828213319182396, -0.05713258311152458, 0.019887197762727737, -0.002790051279589534, 0.00507238507270813, 0.04146039858460426, 0.006236303132027388, -0.030424728989601135, -0.07629173249006271, -0.001517165219411254, 0.061079367995262146, 0.07180849462747574, 0.018488580361008644, 0.010096872225403786, -0.008051632903516293, -0.01453221496194601, -0.0034223031252622604, -0.07564032077789307, 0.04456418380141258, 0.018306568264961243, 0.041881900280714035, -0.009804694913327694, 0.009780745953321457, -0.016227800399065018, 0.018287409096956253, 0.022607795894145966, 0.0489707887172699, 0.020021311938762665, 0.03272382915019989, 0.006399156060069799, 0.04153703525662422, 0.043797817081213, 0.023795664310455322, -0.0378776378929615, 0.020519450306892395, 0.027225151658058167, -0.02126665599644184, -0.07901233434677124, 0.08560308068990707, -0.00677275937050581, -0.01065248716622591, -0.006121348589658737, -0.023604072630405426, 0.02590317092835903, -0.034601423889398575, 0.03075043484568596, 0.02810647338628769, -0.011370955035090446, -0.01975308358669281, -0.0021278630010783672, 0.014254407025873661, -0.047629646956920624, 0.029370976611971855, -0.01899629645049572, -0.018306568264961243, -0.009747217409312725, -0.027455061674118042, -0.016802573576569557, 0.016639722511172295, 0.03904634714126587, -0.019906356930732727, -0.0528409369289875, -0.00966579094529152, -0.006451843772083521, -0.018555637449026108, -0.008458764292299747, -0.00037539959885179996, 0.013430563732981682, -0.00021254681632854044, 0.01605536788702011, 0.031401846557855606, -0.03730286285281181, 0.028508814051747322, -0.0192166268825531, 0.025577465072274208, -0.04774460196495056, -0.06027468666434288, -0.016907949000597, 0.06291864812374115, -0.008238434791564941, -0.027723290026187897, -0.03188082575798035, 0.01248218584805727, 0.008262383751571178, -0.031018663197755814, -0.004133586771786213, 0.06594579666852951, 0.10821087658405304, -0.015499752014875412, 0.01776053197681904, 0.02438959851861, 0.048051148653030396, 0.0023613651283085346, 0.04632682353258133, 0.01692710816860199, -0.0016848077066242695, 0.002921770326793194, 0.003206762718036771, 0.03232148662209511, -0.04165199026465416, 0.04418100044131279, 0.0018225141102448106, -0.035080403089523315, -0.06322519481182098, 0.002021290361881256, 0.026267195120453835, 0.09671539068222046, 0.0489707887172699, -0.007989365607500076, -0.027819085866212845, 0.01402449794113636, 0.030309775844216347, 0.03588508814573288, 0.05448862165212631, -0.0373220220208168, -0.009991496801376343, -0.003774352604523301, -0.0378776378929615, 0.004885583184659481, -0.052764300256967545, 0.06038964167237282, 0.04640346020460129, 0.015298580750823021, 0.0006370417540892959, -0.03007986582815647, -0.06977762281894684, -0.0070409877225756645, 0.04100058227777481, -0.057439129799604416, 0.035176198929548264, 0.019360320642590523, 0.03992766886949539, 0.030003229156136513, -0.02285686507821083, -0.004773023072630167, -0.029236862435936928, 0.05981486663222313, 0.0039036767557263374, 0.027531698346138, 0.025845693424344063, -0.021132541820406914, -0.02281854674220085, 0.011514648795127869, 0.019925516098737717, 0.06548597663640976, -0.016764255240559578, -0.05257270857691765, -0.01640981249511242, -0.015413535758852959, -0.03942953050136566, -0.052227843552827835, 0.06173077970743179, -0.02555830590426922, -0.07751791924238205, -0.03988935053348541, 0.02028954029083252, 0.036191634833812714, -0.017674315720796585, -0.05966159328818321, -0.006748810410499573, -0.03546358644962311, -0.08468344062566757, 0.02387230098247528, 0.04364454373717308, 0.06491120159626007, -0.011840354651212692, -0.007395431865006685, -0.060044776648283005, 0.03063547983765602, -0.037092115730047226, 0.022052181884646416, 0.04322304204106331, 0.026343831792473793, -0.03274298831820488, 0.014340623281896114, 0.04180526360869408, 0.032513078302145004, 0.02435128018260002, 0.0031995780300348997, -0.01844068244099617, -0.015528490766882896, -0.047131508588790894, 0.007740296423435211, 0.04510064050555229, 0.03647902235388756, 0.06563924998044968, -0.061117686331272125, 0.039697758853435516, 0.03274298831820488, 0.04628850519657135, 0.0032977687660604715, -0.014666329137980938, -0.0013447328237816691, 0.03211073577404022, -0.013277290388941765, 0.06924116611480713, 0.040272533893585205, -0.02969668246805668, -0.013382665812969208, 0.002684675855562091, 0.009828643873333931, 0.020519450306892395, -0.03117193654179573, -0.0341799221932888, 0.019139990210533142, 0.0362107940018177, -0.011945730075240135, 0.027742449194192886, -0.002814000239595771, 0.04364454373717308, -0.0656009316444397, 0.016563085839152336, -0.0352911539375782, -0.06755515933036804, -0.030846230685710907, 0.06820657104253769, -0.08345725387334824, -0.10407250374555588, 0.028183110058307648, -0.010250145569443703, -0.010824919678270817, 0.00022137799533084035, 0.0030295406468212605, -0.07590854912996292, 0.027876563370227814, 0.02860460989177227, -0.04165199026465416, 0.00220090732909739, 0.05985318496823311, 0.04092394560575485, -0.00022272510977927595, -0.016218220815062523, -0.014120293781161308, 0.01692710816860199, 0.022990979254245758, 0.008540190756320953, 0.030673798173666, -0.006025552749633789, -0.05287925526499748, 0.0417669452726841, 0.022741910070180893, -0.033509351313114166, -0.025730738416314125, 0.03642154484987259, -0.005081964656710625, 0.006729651242494583, -0.07131035625934601, -0.014359782449901104, 0.07556368410587311, -0.046939916908741, -0.019044194370508194, 0.00570942647755146, -0.02860460989177227, 0.022071341052651405, -0.018843023106455803, 0.013382665812969208, 0.049698833376169205, 0.0036522129084914923, -0.06288032978773117, -0.04169030860066414, 0.0062698316760361195, -0.03755193203687668, 0.05195961520075798, 0.019398638978600502, -0.006408735644072294, 0.020174585282802582, 0.03377757966518402, -0.02643962763249874, 0.0317850299179554, 0.08361052721738815, -0.012185219675302505, 0.046939916908741, -0.005829171277582645, -0.004085688851773739, 0.014560953713953495, 0.04881751537322998, -0.0008328242693096399, -0.06088777631521225, -0.030673798173666, -0.02709103748202324, 0.10798096656799316, -0.0062937806360423565, -0.016438551247119904, -0.03439067304134369, 0.01217564009130001, -0.006835026666522026, -0.041345443576574326, 0.00216857623308897, -0.06379996985197067, 0.009416721761226654, 0.021937226876616478, 0.025596624240279198, 0.036689773201942444, 0.0004379661986604333, 0.05858867987990379, 0.0004996347124688327, 0.04824274033308029, -0.07288140803575516, 0.057439129799604416, 0.026765331625938416, -0.015336899086833, 0.02176479436457157, 0.009148494340479374, 0.02178395353257656, -0.0375136137008667, -0.031497642397880554, 0.036114998161792755, -0.012692936696112156, -0.01877596601843834, 0.038701482117176056, 0.05613631010055542, -0.004006657283753157, 0.04429595544934273 ]
43,215
fast_poisson_solver.utils
process_grid_data
null
def process_grid_data(x, y, z1, z2=None): x_num = len(np.unique(x)) y_num = len(np.unique(y)) if z2 is not None: x, y, [z1, z2] = sort_ascend(x, y, [z1, z2]) z1 = z1.reshape(x_num, y_num) z2 = z2.reshape(x_num, y_num) return x, y, z1, z2 else: x, y, [z1] = sort_ascend(x, y, [z1]) z1 = z1.reshape(x_num, y_num) return x, y, z1
(x, y, z1, z2=None)
[ 0.005370615050196648, 0.0597958080470562, -0.046196166425943375, 0.022671984508633614, 0.002589879324659705, -0.0021782061085104942, -0.009835771284997463, 0.025956492871046066, 0.0073235658928751945, -0.0069063445553183556, 0.019245443865656853, -0.0032268075738102198, -0.05201951041817665, -0.009889033623039722, 0.014824672602117062, -0.004607188981026411, -0.003078117035329342, -0.01425654161721468, -0.01763869822025299, -0.0019962266087532043, -0.0063204593025147915, -0.0776919424533844, 0.02089657448232174, 0.018029287457466125, 0.02996891923248768, -0.017905009910464287, 0.01747003383934498, -0.010039943270385265, 0.00223923590965569, -0.03877495229244232, 0.006964045576751232, -0.04910783842206001, -0.027447838336229324, 0.04349754378199577, 0.011770968325436115, 0.006382598541676998, 0.048291150480508804, 0.0668974444270134, -0.047474462538957596, 0.01599644310772419, -0.005690189078450203, -0.06160672381520271, 0.013102525845170021, 0.03806478902697563, 0.00971149280667305, 0.008690631948411465, -0.015339542180299759, -0.07960937917232513, -0.03458498418331146, 0.006462492048740387, 0.02151796780526638, -0.06998666375875473, 0.02151796780526638, 0.029525067657232285, 0.023417657241225243, 0.028175756335258484, 0.04292941093444824, 0.0724722370505333, 0.00727918092161417, -0.0655481368303299, -0.013812689110636711, 0.006191742140799761, -0.030377265065908432, 0.006098533049225807, -0.042041707783937454, -0.029471805319190025, -0.07162003964185715, 0.0047492217272520065, -0.01758543588221073, 0.02924100123345852, -0.05958275869488716, 0.12172210961580276, 0.03806478902697563, -0.03522413223981857, -0.016440296545624733, 0.08010649681091309, 0.027927199378609657, 0.04832665994763374, 0.07683974504470825, -0.036573443561792374, -0.021802034229040146, 0.0073857055976986885, -0.0077407872304320335, -0.0086551234126091, 0.00868175458163023, -0.013777181506156921, 0.01002218946814537, 0.09622722119092941, -0.03396359086036682, -0.03955613449215889, -0.02363070659339428, 0.008073676377534866, -0.010128714144229889, 0.030181968584656715, 0.04097646102309227, -0.002589879324659705, -0.051167313009500504, 0.01148690190166235, -0.06569016724824905, -0.005849975626915693, 0.007629824336618185, -0.02155347727239132, 0.013120279647409916, 0.02071903459727764, -0.004416332114487886, -0.05361738055944443, 0.03980468958616257, -0.011291607283055782, -0.09047488868236542, 0.010625828988850117, -0.05816242843866348, -0.022618722170591354, -0.03760318085551262, -0.04924987256526947, -0.00187305745203048, -0.06615177541971207, -0.016715483739972115, 0.058268953114748, -0.019866837188601494, 0.02567242830991745, -0.02709275670349598, 0.008801594376564026, 0.03474477306008339, 0.05990233272314072, -0.05478915199637413, -0.04303593561053276, 0.03831334784626961, -0.006156234070658684, -0.06647134572267532, -0.07854413241147995, 0.024127820506691933, -0.0015901015140116215, -0.05407898873090744, 0.033608511090278625, -0.02071903459727764, -0.011611181311309338, 0.055818889290094376, 0.011957385577261448, 0.07776295393705368, -0.048965808004140854, 0.02648911625146866, 0.007114955224096775, -0.03980468958616257, 0.006458053831011057, 0.00868175458163023, -0.011362623423337936, 0.09253436326980591, 0.0216244924813509, 0.021358180791139603, -0.007665332406759262, -0.010830000974237919, 0.012427869252860546, 0.05503770709037781, -0.053013741970062256, 0.005237459205091, -0.05088324844837189, -0.029134476557374, -0.010128714144229889, 0.05194849520921707, 0.0332711823284626, -0.03628937900066376, 0.01883709989488125, -0.002973811700940132, 0.01636040210723877, 0.005849975626915693, -0.0034842421300709248, 0.0034021292813122272, -0.06838878989219666, 0.020381705835461617, -0.029667099937796593, -0.007043939083814621, 0.019955607131123543, -0.07478027045726776, -0.03753216564655304, -0.03604082018136978, -0.04108298569917679, -0.04804259166121483, -0.03973367437720299, 0.023790493607521057, 0.023399902507662773, 0.03756767511367798, -0.04768751189112663, -0.01145139429718256, 0.011247222311794758, -0.022494444623589516, 0.037319116294384, 0.08415443450212479, -0.07421213388442993, -0.004176652058959007, 0.009249885566532612, -0.04392364248633385, -0.009889033623039722, -0.043959151953458786, 0.03909452632069588, 0.04118951037526131, 0.0340346097946167, -0.020346198230981827, 0.011797599494457245, -0.021038608625531197, -0.01043941080570221, -0.052410103380680084, -0.027980459854006767, 0.03877495229244232, 0.00935641024261713, 0.016679976135492325, 0.013608517125248909, -0.008699508383870125, -0.005264090374112129, -0.03126496821641922, 0.032880593091249466, 0.02299155853688717, -0.01878383755683899, -0.006240565795451403, -0.004349754191935062, 0.02089657448232174, 0.03870393708348274, -0.04928537830710411, 0.0031047482043504715, 0.047616492956876755, -0.03204615041613579, 0.04505990445613861, -0.03522413223981857, 0.001359298243187368, -0.003630713326856494, 0.061358168721199036, -0.01147802546620369, 0.04580557718873024, 0.05262314900755882, -0.0034221026580780745, -0.012694180943071842, 0.046799805015325546, -0.09317351132631302, 0.023754986003041267, -0.03469150885939598, 0.0229738038033247, -0.06192629784345627, 0.012498886324465275, -0.03616509959101677, 0.013306697830557823, 0.04768751189112663, -0.03692852705717087, -0.016990672796964645, -0.00012427869660314173, -0.04633820056915283, -0.06892141699790955, -0.027518853545188904, -0.02011539414525032, 0.03630713373422623, 0.018251214176416397, 0.003979137632995844, -0.02013314887881279, 0.044811345636844635, -0.04445626586675644, -0.03728361055254936, -0.04861072450876236, -0.05762980505824089, -0.032969363033771515, -0.029418542981147766, 0.014212156645953655, -0.03699954226613045, -0.006679980084300041, 0.014407451264560223, -0.03454947844147682, 0.02764313295483589, 0.05276518315076828, -0.000055446886108256876, -0.00259209843352437, 0.03398134559392929, -0.005628049373626709, 0.016750993207097054, -0.0038149121683090925, 0.011620057746767998, 0.0027363505214452744, -0.015783393755555153, 0.0428939051926136, 0.07055479288101196, 0.06544160842895508, -0.08514866232872009, 0.022707493975758553, 0.010350639931857586, 0.039911214262247086, 0.0007379047456197441, -0.023293377831578255, -0.039272066205739975, 0.021216148510575294, -0.03446070849895477, 0.004516199231147766, -0.04452728107571602, -0.02016865648329258, -0.016387034207582474, -0.006728803738951683, 0.031531281769275665, -0.023453164845705032, 0.011566795408725739, -0.012214820832014084, -0.030359510332345963, 0.005046602804213762, -0.02636483684182167, 0.011025295592844486, 0.02918773889541626, -0.026684410870075226, 0.01632489450275898, 0.09430977702140808, -0.007248111069202423, -0.015108739025890827, 0.017336878925561905, 0.022689739242196083, -0.009498443454504013, -0.012010647915303707, -0.034318674355745316, 0.05095426365733147, 0.010350639931857586, -0.03753216564655304, -0.0484686903655529, -0.023275624960660934, 0.0027896128594875336, 0.02572569064795971, 0.09892584383487701, -0.010252992622554302, 0.00624500447884202, -0.01494895201176405, -0.03188636153936386, 0.018064796924591064, 0.01288059912621975, 0.0342121496796608, 0.08230800181627274, -0.0146116241812706, 0.009871278889477253, 0.04601862654089928, 0.1026897132396698, 0.0017953832866623998, 0.057274725288152695, -0.014327558688819408, 0.0962982326745987, 0.059298690408468246, 0.0008560804999433458, 0.011264976114034653, 0.01722147688269615, 0.046906329691410065, -0.03685751184821129, -0.07105190306901932, -0.005339545197784901, -0.020559247583150864, -0.0543985590338707, 0.04601862654089928, 0.004624942783266306, -0.0014114509103819728, -0.0025210820604115725, 0.0005120948189869523, 0.055996429175138474, -0.014691517688333988, -0.030181968584656715, 0.018233459442853928, -0.015588099136948586, 0.007745225913822651, 0.0513448566198349, 0.016511311754584312, -0.057274725288152695, 0.05361738055944443, 0.038455378264188766, 0.056564562022686005, -0.01881934516131878, -0.0007989344885572791, 0.025317346677184105, 0.009844647720456123, -0.018268968909978867, -0.0022237009834498167, 0.07790499180555344, -0.019671542569994926, -0.03115844540297985, -0.035117607563734055, 0.0319218710064888, 0.007758541498333216, 0.025193067267537117, -0.015011090785264969, 0.01881934516131878, 0.003515311749652028, -0.014629377983510494, -0.012250328436493874, -0.0020927644800394773, 0.028832657262682915, 0.02361295185983181, 0.013475361280143261, 0.02838880568742752, -0.015552591532468796, 0.020949836820364, -0.004611627198755741, 0.02506878785789013, -0.041225019842386246, -0.03247224912047386, 0.02641809917986393, 0.0271105095744133, 0.07911226898431778, -0.002445627236738801, 0.04218374192714691, -0.0013692849315702915, 0.019902344793081284, 0.0442432165145874, -0.028353296220302582, 0.00017532173660583794, -0.07932531833648682, 0.00401686504483223, -0.019121164456009865, 0.024500656872987747, 0.0061873034574091434, -0.05070570856332779, 0.011744337156414986, -0.015810025855898857, 0.01734575442969799, 0.009232131764292717, -0.05745226517319679, 0.002434530993923545, 0.0634886622428894, -0.0663648247718811, 0.000028018188459100202, 0.0292232483625412, -0.007749664597213268, 0.0891965925693512, 0.03678649291396141, 0.03407011553645134, 0.05706167593598366, -0.00575232831761241, -0.05649354308843613, 0.0022126047406345606, -0.019884591922163963, -0.058695051819086075, -0.04644472524523735, -0.016484681516885757, -0.004471813794225454, -0.013715041801333427, -0.02357744425535202, 0.001976253231987357, -0.024110067635774612, -0.057274725288152695, 0.019618280231952667, -0.009249885566532612, 0.028832657262682915, 0.030785609036684036, 0.05336882174015045, 0.03678649291396141, -0.0006918550352565944, 0.06192629784345627, 0.01623612456023693, -0.018943624570965767, -0.06551262736320496, -0.0007889478001743555, -0.000663004640955478, 0.006817574147135019, -0.05201951041817665, -0.06270747631788254, 0.033058132976293564, 0.034975577145814896, 0.03481578826904297, -0.04839767515659332, 0.027944952249526978, -0.06181977316737175, -0.06426984071731567, 0.000671326881274581, -0.03770970553159714, 0.04832665994763374, 0.028832657262682915, 0.003011539112776518, -0.02423434518277645, 0.02645360864698887, -0.038455378264188766, -0.018100304529070854, -0.027430083602666855, -0.0146116241812706, -0.00973812397569418, 0.0014436302008107305, -0.014851303771138191, -0.05908564478158951, -0.03415888920426369, 0.0026742112822830677, 0.002279182430356741, 0.03419439494609833, 0.047580987215042114, 0.017825115472078323, 0.04158009961247444, 0.0025188629515469074, -0.013573008589446545, 0.007012869231402874, -0.012010647915303707, -0.0005703504430130124, 0.005992008373141289, 0.03616509959101677, 0.031034165993332863, 0.007399021182209253, -0.020985346287488937, -0.018100304529070854, 0.028726132586598396, 0.01282733678817749, 0.0023524181451648474, 0.013670656830072403, -0.024021295830607414, 0.045414987951517105, 0.016866395249962807, -0.02073678746819496, 0.022760756313800812, -0.014025738462805748, 0.00749222980812192, 0.011833107098937035, 0.00679094297811389, -0.039201050996780396, 0.014389697462320328, 0.00764313992112875, 0.03389257565140724, 0.015011090785264969, -0.019795820116996765, 0.014114509336650372, -0.055747874081134796, -0.0643763616681099, 0.013182418420910835, 0.015694623813033104, 0.029418542981147766, 0.029418542981147766, 0.004418551456183195, -0.0014957828680053353, -0.07201062887907028, 0.03699954226613045, 0.024731460958719254, 0.03176208212971687, 0.029649345204234123, -0.0033200166653841734, 0.007501107174903154, 0.050315119326114655, 0.04158009961247444, 0.010528180748224258, 0.012632042169570923, -0.026542378589510918, -0.06494449824094772, -0.01781623810529709, 0.03607632964849472, 0.023453164845705032, 0.006160672288388014, 0.0032157113309949636, -0.03396359086036682, 0.00006165388185763732, -0.06061249598860741, 0.009187746793031693, 0.021340427920222282, 0.002490012440830469, 0.013395467773079872, -0.06760761141777039, -0.010226361453533173, 0.023044820874929428, 0.04779403656721115, 0.03272080421447754, -0.026790935546159744, -0.0015601414488628507, -0.04182865843176842, -0.04907233268022537, 0.03969816491007805, 0.008965820074081421, -0.04733242839574814, 0.03213492035865784, -0.074638232588768, -0.016173984855413437, 0.005832221824675798, 0.023399902507662773, 0.010794492438435555, 0.049675971269607544, 0.0003703394322656095, 0.04534396901726723, -0.09786059707403183, -0.014451837167143822, -0.0036995105911046267, 0.06245892122387886, -0.01945849321782589, -0.00173546327278018, -0.04371059313416481, -0.003009319771081209, -0.05741675943136215, -0.018197951838374138, 0.03517087176442146, 0.031442511826753616, 0.03343096747994423, -0.07357298582792282, -0.02151796780526638, -0.029312018305063248, -0.006018639542162418, -0.01039502490311861, 0.013430976308882236, -0.06469593942165375, -0.015552591532468796, -0.02016865648329258, -0.047403447329998016, 0.032401230186223984, 0.04047934710979462, -0.017532173544168472, 0.003191299270838499, 0.049604952335357666, 0.07197511941194534, -0.0025299591943621635, -0.03206390514969826, -0.005778959486633539, -0.021961821243166924, 0.0012472254456952214, -0.018482018262147903, -0.046196166425943375, -0.030075443908572197, 0.006027516908943653, -0.00873501691967249, -0.01758543588221073, 0.03937859088182449, -0.0905459076166153, -0.039130035787820816, -0.06299154460430145, -0.036502428352832794, -0.005925430916249752, 0.03176208212971687, 0.010874385945498943, -0.01422991044819355, -0.021855296567082405, -0.0262583140283823, 0.02780291996896267, -0.013297820463776588, -0.016227247193455696, -0.0046826438046991825, -0.017168214544653893, -0.034318674355745316, 0.004442963283509016, 0.0085530374199152, 0.0113981319591403, 0.02416332997381687, 0.03282732889056206, 0.0651930496096611, -0.026063017547130585, 0.05457610264420509, 0.044030167162418365, -0.03128272294998169, -0.01951175555586815, 0.07421213388442993, 0.0029138915706425905, -0.0013204611605033278, -0.06324010342359543, -0.003732799319550395, 0.0332711823284626, -0.021642247214913368, -0.05752328410744667, 0.028175756335258484, 0.020257428288459778, 0.025406116619706154, 0.021873051300644875, -0.010226361453533173, -0.03378605097532272, 0.04523744434118271, -0.008300041779875755, 0.055854398757219315, -0.01316466461867094, -0.031495772302150726, 0.028104739263653755, -0.0262583140283823, 0.04175764322280884, -0.02419883757829666, 0.022654231637716293, -0.05226806923747063, 0.007412336301058531, -0.014354189857840538, -0.047509972006082535, 0.04296492040157318, 0.039165545254945755, 0.020949836820364, -0.009631599299609661, -0.06125164404511452, 0.03588103502988815, 0.05347534641623497, -0.023240115493535995, -0.027217034250497818, 0.02157123014330864, 0.010847754776477814, -0.014913443475961685, 0.043994657695293427, 0.012117172591388226, 0.018064796924591064, -0.02911672368645668, -0.03891698643565178, 0.03934308513998985, -0.09090098738670349, 0.055889904499053955, 0.0008571901125833392, 0.00803373008966446, -0.017248107120394707, 0.017283616587519646, 0.025370609015226364, 0.0008022633846849203, -0.02645360864698887, -0.03598755970597267, 0.03699954226613045, 0.057878363877534866, 0.02570793591439724, 0.03962714970111847, 0.03813580423593521, -0.03941410034894943, -0.036502428352832794, -0.033715035766363144, -0.0021615615114569664, 0.006462492048740387, -0.011975140310823917, 0.012791828252375126, -0.042751871049404144, -0.07314688712358475, -0.018100304529070854, 0.04356855899095535, -0.006342652253806591, 0.00712827080860734, -0.06863734871149063, 0.017123829573392868, 0.059334199875593185, -0.03451396897435188, -0.02856634557247162, -0.039130035787820816, -0.004593873396515846, 0.012445623986423016, -0.02908121421933174, 0.06409230083227158, 0.021908558905124664, 0.0776919424533844, 0.023932525888085365, 0.04278738051652908, -0.008570791222155094, 0.06934751570224762, -0.010670213960111141, -0.0257611982524395, -0.004043496213853359, 0.04516642913222313, 0.03213492035865784, -0.07407010346651077, 0.009214377962052822, -0.03881046175956726, -0.043320003896951675, 0.0173102468252182, 0.012534393928945065, 0.10780289024114609, -0.0015690185828134418, 0.010998664423823357, 0.018393246456980705, -0.055854398757219315, -0.020577000454068184, 0.037070561200380325, -0.005153127480298281, -0.07140699028968811, 0.0033888136968016624, -0.03312914818525314, -0.02007988654077053, 0.024837985634803772, 0.05741675943136215, -0.013510869815945625, -0.04449177160859108, -0.03728361055254936, 0.02221037819981575, -0.0007778514991514385, 0.028868164867162704, -0.013102525845170021, 0.008584107272326946, 0.046941839158535004, -0.005676873493939638, -0.03467375785112381, -0.006209496408700943, -0.04225475713610649, -0.05500220134854317, 0.02984464168548584, -0.05887259542942047, 0.02487349323928356, 0.013146910816431046, -0.00432756170630455, 0.036502428352832794, 0.09253436326980591 ]
43,216
skimage.metrics.simple_metrics
peak_signal_noise_ratio
Compute the peak signal to noise ratio (PSNR) for an image. Parameters ---------- image_true : ndarray Ground-truth image, same shape as im_test. image_test : ndarray Test image. data_range : int, optional The data range of the input image (distance between minimum and maximum possible values). By default, this is estimated from the image data-type. Returns ------- psnr : float The PSNR metric. Notes ----- .. versionchanged:: 0.16 This function was renamed from ``skimage.measure.compare_psnr`` to ``skimage.metrics.peak_signal_noise_ratio``. References ---------- .. [1] https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio
def peak_signal_noise_ratio(image_true, image_test, *, data_range=None): """ Compute the peak signal to noise ratio (PSNR) for an image. Parameters ---------- image_true : ndarray Ground-truth image, same shape as im_test. image_test : ndarray Test image. data_range : int, optional The data range of the input image (distance between minimum and maximum possible values). By default, this is estimated from the image data-type. Returns ------- psnr : float The PSNR metric. Notes ----- .. versionchanged:: 0.16 This function was renamed from ``skimage.measure.compare_psnr`` to ``skimage.metrics.peak_signal_noise_ratio``. References ---------- .. [1] https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio """ check_shape_equality(image_true, image_test) if data_range is None: if image_true.dtype != image_test.dtype: warn( "Inputs have mismatched dtype. Setting data_range based on " "image_true." ) dmin, dmax = dtype_range[image_true.dtype.type] true_min, true_max = np.min(image_true), np.max(image_true) if true_max > dmax or true_min < dmin: raise ValueError( "image_true has intensity values outside the range expected " "for its data type. Please manually specify the data_range." ) if true_min >= 0: # most common case (255 for uint8, 1 for float) data_range = dmax else: data_range = dmax - dmin image_true, image_test = _as_floats(image_true, image_test) err = mean_squared_error(image_true, image_test) return 10 * np.log10((data_range**2) / err)
(image_true, image_test, *, data_range=None)
[ 0.009600190445780754, -0.04541340097784996, 0.06791384518146515, 0.025594256818294525, 0.018853498622775078, 0.007176704704761505, -0.03727573901414871, -0.005451670382171869, 0.06345125287771225, 0.017025336623191833, 0.0037899187300354242, 0.013209636323153973, 0.0602261908352375, 0.024525485932826996, -0.020550407469272614, 0.007223580498248339, -0.027994304895401, 0.007748590782284737, 0.00257348851300776, 0.0139971524477005, -0.039150774478912354, 0.03369441628456116, 0.02341921441257, 0.008250162936747074, 0.009665816091001034, 0.03330066055059433, 0.011793983168900013, -0.03986328840255737, -0.027863051742315292, 0.030919361859560013, -0.04233833774924278, -0.026531774550676346, 0.08790174126625061, 0.03410692512989044, 0.019153503701090813, 0.04672592505812645, -0.01564718410372734, -0.008578294888138771, -0.12795253098011017, 0.0010974826291203499, -0.03333815932273865, -0.031144367530941963, -0.034181926399469376, 0.030281849205493927, -0.015103423967957497, 0.022031685337424278, -0.021094167605042458, 0.013790898025035858, 0.0022266064770519733, 0.01837536320090294, 0.030056845396757126, -0.010809589177370071, -0.07215142995119095, 0.04998848959803581, -0.05051349848508835, 0.061013709753751755, -0.012300243601202965, -0.010612710379064083, -0.008615795522928238, -0.018628492951393127, 0.03168812766671181, 0.00882204994559288, 0.04451338201761246, -0.09367685765028, -0.0031922506168484688, 0.020419154316186905, -0.07143891602754593, 0.001767222536727786, 0.010575209744274616, 0.015562808141112328, -0.021375423297286034, -0.01648157648742199, 0.01826286129653454, 0.030394351109862328, -0.004364148713648319, 0.04470088332891464, -0.030038094148039818, 0.03354441374540329, -0.018656618893146515, -0.026044266298413277, 0.04507589340209961, 0.05636361613869667, 0.06941387802362442, -0.037031982094049454, -0.002470361301675439, 0.003698510816320777, -0.041850827634334564, 0.0381382554769516, 0.03716323524713516, -0.015590934082865715, 0.014072153717279434, 0.049725983291864395, 0.047700945287942886, 0.03451943397521973, 0.030075594782829285, 0.06716383248567581, -0.03671322762966156, -0.022406693547964096, 0.0550885908305645, 0.0011543197324499488, -0.014522162266075611, 0.061838723719120026, 0.013078384101390839, 0.012900255620479584, 0.03202563524246216, 0.02566925808787346, -0.016650330275297165, 0.08295164257287979, 0.012187741696834564, 0.034669436514377594, -0.018750371411442757, -0.028163056820631027, -0.006740758661180735, -0.000700209173373878, -0.026888031512498856, -0.004096955992281437, 0.026531774550676346, 0.03622571751475334, 0.024806741625070572, -0.04582590609788895, -0.013106509111821651, -0.0006955215940251946, -0.07185142487287521, 0.011812733486294746, -0.005775114521384239, -0.03815700486302376, 0.08212662488222122, -0.00667513208463788, -0.010481457225978374, 0.023719219490885735, -0.007856405340135098, 0.04162582382559776, 0.03307565674185753, 0.041588325053453445, -0.02506924606859684, 0.013087758794426918, 0.015140924602746964, 0.03941328078508377, 0.05752613767981529, -0.0430508516728878, 0.044438380748033524, 0.026869282126426697, -0.020381653681397438, 0.06682632118463516, 0.01536592934280634, -0.021337922662496567, 0.015722185373306274, 0.05568860098719597, 0.06210123002529144, 0.009286121465265751, -0.008437667042016983, 0.004352429881691933, 0.055126093327999115, 0.030300600454211235, 0.04998848959803581, -0.0383632592856884, 0.06528878957033157, -0.00329772150143981, -0.05790114775300026, -0.019687889143824577, 0.017484720796346664, -0.014850294217467308, 0.0168378334492445, -0.07080139964818954, -0.03463193401694298, -0.02600676566362381, -0.03232564032077789, 0.03727573901414871, 0.027938053011894226, -0.023325461894273758, -0.01825348660349846, -0.05685112625360489, -0.031500622630119324, -0.01917225494980812, -0.00512353889644146, 0.030919361859560013, 0.004111018963158131, -0.025594256818294525, -0.0733889564871788, 0.0633387565612793, 0.04721343517303467, -0.0028406812343746424, -0.0466134212911129, 0.024206729605793953, 0.016265947371721268, 0.013659645803272724, -0.006337625440210104, 0.016687830910086632, -0.02340046316385269, -0.032081883400678635, 0.0008261882467195392, -0.000699623255059123, -0.013556518591940403, 0.028894321992993355, 0.047850947827100754, -0.01430653315037489, 0.010753338225185871, 0.0235317163169384, 0.0037078859750181437, -0.001407449715770781, 0.006525129079818726, -0.016678454354405403, -0.007884531281888485, -0.008493917994201183, 0.0006474737310782075, -0.05793864652514458, -0.02908182516694069, 0.036994483321905136, -0.003930546343326569, -0.020756661891937256, -0.026175517588853836, -0.014990922063589096, 0.02154417708516121, 0.00917830690741539, 0.052426036447286606, -0.0016500327037647367, 0.06716383248567581, -0.018337862566113472, -0.07905156165361404, -0.029831841588020325, -0.010687711648643017, -0.0515260212123394, 0.006656381767243147, 0.010884590446949005, 0.01657532900571823, 0.07215142995119095, -0.004209458362311125, -0.011568979360163212, 0.07912656664848328, -0.0031242805998772383, 0.020794162526726723, 0.06037619709968567, 0.00030586542561650276, -0.05227603390812874, 0.020644158124923706, 0.004225865006446838, 0.0056251115165650845, -0.010903340764343739, -0.0313318707048893, 0.0028055242728441954, -0.04893846809864044, -0.0021410579793155193, -0.008128286339342594, -0.017034713178873062, 0.00009873242379399016, -0.10852714627981186, 0.0006211060681380332, 0.04440087825059891, 0.045713406056165695, 0.03789449855685234, 0.06390126794576645, -0.11280222982168198, 0.0334506630897522, 0.025819260627031326, 0.030056845396757126, 0.055388595908880234, 0.006140746641904116, 0.015853438526391983, 0.03718198463320732, 0.008817361667752266, 0.0417008250951767, 0.01136272493749857, -0.05730113387107849, 0.00006998429307714105, -0.07207642495632172, 0.0012293212348595262, -0.04451338201761246, 0.04826345667243004, -0.028988074511289597, 0.02366296760737896, 0.12135240435600281, -0.006604818161576986, 0.017250342294573784, -0.051376018673181534, 0.007504836190491915, 0.013856524601578712, 0.07305144518613815, -0.025969265028834343, 0.0731639489531517, -0.02505049668252468, 0.008629858493804932, -0.008493917994201183, 0.044775888323783875, 0.016631579026579857, 0.09142681211233139, -0.003991485107690096, 0.03693823143839836, -0.018919125199317932, 0.021825432777404785, -0.014475286938250065, -0.060188692063093185, 0.0028547439724206924, -0.05283854529261589, 0.011568979360163212, -0.043238356709480286, 0.02589426189661026, -0.021375423297286034, -0.012093989178538322, -0.03945077955722809, -0.04867596551775932, 0.0472884364426136, 0.0171753391623497, 0.021619178354740143, 0.013059633783996105, -0.011793983168900013, -0.008573607541620731, -0.024806741625070572, -0.0011197486892342567, -0.025725509971380234, -0.016790958121418953, -0.07451397180557251, 0.003984454087913036, 0.037144485861063004, -0.013125259429216385, -0.01213148981332779, -0.006032932084053755, 0.08805174380540848, 0.03341316059231758, 0.020550407469272614, 0.04612591490149498, 0.011156470514833927, 0.01035020500421524, -0.006215747911483049, 0.050776004791259766, 0.027919303625822067, 0.011437726207077503, -0.05636361613869667, 0.0320068821310997, -0.0009228698327206075, 0.007209517527371645, -0.016434701159596443, -0.0023227022029459476, -0.0013758084969595075, 0.013209636323153973, -0.027019284665584564, 0.009112680330872536, 0.005648549180477858, -0.035963211208581924, -0.046763427555561066, -0.00959550216794014, -0.09780193865299225, -0.08265163749456406, 0.002667240332812071, -0.01081896387040615, 0.0362444669008255, 0.002016836777329445, -0.039150774478912354, -0.06510128825902939, 0.003262564539909363, -0.011343974620103836, 0.035831958055496216, 0.040763307362794876, -0.0005358504713512957, 0.0036164778284728527, 0.02928807958960533, -0.006281374488025904, -0.018215985968708992, 0.04556340351700783, 0.027131786569952965, 0.014137780293822289, -0.019406633451581, 0.026550525799393654, 0.010968967340886593, -0.03804450482130051, 0.001952382386662066, 0.0640137642621994, -0.008489230647683144, 0.04413837566971779, -0.04451338201761246, -0.0021269952412694693, -0.04758844152092934, -0.09825194627046585, -0.08872675895690918, -0.0357944592833519, 0.02730054035782814, -0.04263834282755852, -0.0315568745136261, -0.0432758554816246, 0.003452412085607648, 0.020287901163101196, -0.07612650841474533, 0.0019113660091534257, -0.07800154387950897, 0.011165846139192581, 0.017559722065925598, 0.008015783503651619, -0.01389402523636818, 0.02986934222280979, -0.03553195297718048, -0.04530089721083641, -0.04098831117153168, 0.0036539786960929632, 0.010387705639004707, -0.008165786974132061, -0.005006349179893732, 0.002049650065600872, -0.032550644129514694, 0.023606717586517334, -0.018534742295742035, -0.01023770309984684, -0.03774449601769447, -0.028800569474697113, -0.05617611110210419, -0.028988074511289597, 0.0680263489484787, 0.008456417359411716, -0.004024298395961523, -0.06048869714140892, 0.025331752374768257, -0.014775292947888374, 0.04380086809396744, -0.01657532900571823, -0.05741363763809204, 0.0014906545402482152, 0.006004806607961655, 0.05921367183327675, -0.04717593267560005, -0.005578235257416964, -0.006154809147119522, -0.010472082532942295, 0.02896932326257229, -0.0930018424987793, -0.006839198060333729, -0.006286061834543943, -0.015712810680270195, -0.02201293595135212, 0.01989414356648922, -0.006225123070180416, -0.006304812151938677, 0.047475941479206085, 0.008554857224225998, 0.022312941029667854, -0.016444075852632523, 0.011315848678350449, -0.04695092886686325, -0.05250103771686554, -0.01649095118045807, -0.004565715324133635, -0.019837893545627594, -0.048188455402851105, 0.028538065031170845, -0.0004696382093243301, 0.05141351744532585, -0.0014484662096947432, -0.01552530750632286, -0.022650448605418205, 0.010922091081738472, -0.024206729605793953, -0.04991348832845688, 0.012872129678726196, -0.03251314535737038, -0.08467667549848557, -0.00012458743003662676, 0.03922577574849129, -0.05422607436776161, 0.003578977193683386, -0.009262683801352978, -0.06135121360421181, -0.013153385370969772, -0.018647244200110435, -0.011109595187008381, 0.043013352900743484, -0.0865517109632492, 0.01258149929344654, 0.04162582382559776, 0.033263158053159714, 0.027750549837946892, -0.03120061755180359, -0.0339006707072258, -0.04867596551775932, 0.04496338963508606, 0.009956447407603264, -0.01436278410255909, 0.003332878462970257, 0.00959550216794014, 0.019331632182002068, -0.042188335210084915, 0.038775768131017685, 0.07207642495632172, 0.008076722733676434, 0.004973535891622305, -0.011925236321985722, -0.01625657267868519, -0.01576906256377697, -0.02506924606859684, -0.06213872879743576, -0.047963447868824005, -0.02966308780014515, -0.03281315043568611, -0.020456654950976372, 0.053626060485839844, -0.06382626295089722, -0.02246294543147087, 0.08272663503885269, -0.11782733350992203, -0.05235103517770767, 0.05587610602378845, -0.01023770309984684, 0.031106865033507347, -0.018572242930531502, -0.02801305428147316, 0.004375868011265993, -0.05351356044411659, -0.01441903505474329, 0.06858886033296585, 0.04586340859532356, -0.058201152831315994, 0.03251314535737038, -0.005278229713439941, 0.01612531952559948, 0.011906486004590988, 0.0343506783246994, -0.004174301400780678, -0.025444254279136658, -0.012225242331624031, -0.06093870475888252, 0.05032599717378616, -0.004141488112509251, -0.009872070513665676, -0.05366356298327446, -0.0669013261795044, 0.02167542837560177, -0.03129436820745468, 0.04451338201761246, 0.04035079851746559, -0.010922091081738472, -0.043725866824388504, -0.0017719101160764694, -0.006581380497664213, 0.023269210010766983, 0.007800154387950897, 0.0055547975935041904, 0.03105061501264572, -0.02377547137439251, -0.04140082001686096, 0.010040823370218277, 0.015281552448868752, -0.011390850879251957, 0.04335085675120354, 0.013397140428423882, -0.011147095821797848, 0.010772088542580605, 0.028181808069348335, 0.04522589594125748, 0.08017658442258835, 0.03528819978237152, 0.0035906960256397724, 0.04038830101490021, 0.021731680259108543, -0.02966308780014515, 0.04387586936354637, -0.029738089069724083, 0.021581677719950676, -0.011437726207077503, 0.08212662488222122, 0.0550885908305645, 0.03281315043568611, -0.011325224302709103, -0.03495069220662117, -0.02647552452981472, -0.07008888572454453, -0.009328309446573257, 0.014540912583470345, -0.048188455402851105, -0.08775173872709274, -0.005104788579046726, -0.02823805995285511, 0.027338040992617607, -0.03592571243643761, -0.00024990728707052767, -0.004996974021196365, 0.04852595925331116, 0.03243814408779144, 0.0030797484796494246, -0.016631579026579857, 0.02201293595135212, 0.05238853767514229, -0.050213493406772614, -0.0011976800160482526, -0.038888268172740936, -0.006070432718843222, -0.011203346773982048, 0.0466134212911129, -0.01953788660466671, -0.07747653126716614, 0.0034477245062589645, -0.06532629579305649, -0.011381475254893303, -0.041363317519426346, 0.02446923404932022, 0.01965038850903511, 0.00888298824429512, -0.020681658759713173, -0.035831958055496216, -0.027094285935163498, -0.013265887275338173, 0.03251314535737038, -0.012431495822966099, 0.0934518501162529, 0.01588156446814537, 0.016031567007303238, 0.03504444286227226, -0.027469294145703316, -0.0675763413310051, 0.04575090482831001, 0.00999394804239273, -0.002470361301675439, 0.00795015785843134, -0.0028899009339511395, -0.002264107344672084, -0.013153385370969772, 0.0834016501903534, -0.0035531953908503056, -0.03673197701573372, 0.03592571243643761, 0.01589093916118145, -0.03521319851279259, 0.004680561367422342, 0.05167602375149727, 0.04275084659457207, 0.02223793976008892, 0.026044266298413277, 0.06180122494697571, 0.004272740799933672, -0.024750489741563797, -0.027694297954440117, 0.0016101881628856063, -0.008629858493804932, -0.06116371229290962, -0.09592689573764801, -0.034913189709186554, -0.03215688839554787, 0.042188335210084915, -0.047250933945178986, -0.006140746641904116, 0.008793924003839493, 0.034669436514377594, 0.0027609921526163816, -0.017737850546836853, 0.024412984028458595, -0.007982970215380192, -0.017119089141488075, -0.019275382161140442, -0.0023883285466581583, 0.0031524060759693384, 0.04320085421204567, -0.012018987908959389, 0.008550168946385384, -0.03922577574849129, -0.013200261630117893, 0.0005244244239293039, 0.0020262119360268116, -0.006834510248154402, -0.012393995188176632, 0.0432758554816246, 0.026981784030795097, -0.01987539418041706, 0.010284578427672386, -0.037594493478536606, -0.057601138949394226, -0.02295045368373394, 0.058201152831315994, -0.0021176200825721025, 0.025388002395629883, 0.0423758402466774, 0.029456833377480507, 0.02870681881904602, 0.0013066665269434452, 0.012553373351693153, -0.0097033167257905, 0.05227603390812874, 0.025256749242544174, -0.055838607251644135, 0.011137720197439194, 0.09375185519456863, -0.0038508574943989515, -0.029456833377480507, 0.0010359580628573895, -0.06461378186941147, -0.019612887874245644, 0.018412863835692406, -0.005615736357867718, -0.015037797391414642, -0.03264439478516579, 0.05658861994743347, 0.054788585752248764, 0.01035020500421524, -0.04368836432695389, -0.025087997317314148, 0.06097620725631714, -0.014700290746986866, -0.040650803595781326, -0.00331178423948586, -0.03157562389969826, 0.05295104905962944, -0.027244290336966515, -0.06322625279426575, 0.04758844152092934, -0.04612591490149498, -0.07980158179998398, -0.023944223299622536, 0.015797188505530357, -0.009403311647474766, -0.018844123929739, -0.009862694889307022, 0.021131668239831924, -0.0117658581584692, 0.007200142368674278, 0.018300361931324005, -0.021825432777404785, -0.011437726207077503, -0.015094049274921417, -0.016772206872701645, -0.044175874441862106, -0.05058850347995758, 0.058313652873039246, 0.008203287608921528, -0.021956684067845345, 0.01658470369875431, -0.026306770741939545, 0.021019166335463524, 0.03517569601535797, -0.010940841399133205, -0.015797188505530357, -0.042900849133729935, -0.017465971410274506, 0.01283462904393673, -0.03333815932273865, 0.016059692949056625, 0.010987717658281326, 0.01329401321709156, -0.0006668100832030177, -0.02578175999224186, -0.01775660179555416, 0.021825432777404785, 0.01136272493749857, -0.007697027176618576, -0.010931466706097126, 0.057113632559776306, 0.00694701261818409, -0.00629074964672327, 0.005657924339175224, 0.03648822382092476, -0.005957930348813534, 0.011231472715735435, -0.00042041848064400256, 0.024056727066636086, 0.007073577493429184, 0.001577374991029501, -0.05355105921626091, 0.03095686249434948, 0.029925592243671417, -0.026400523260235786, -0.007753278594464064, -0.017559722065925598, 0.002319186460226774, 0.030056845396757126, -0.004155551083385944, 0.02235044166445732, 0.02377547137439251, 0.02225669100880623, 0.03708823397755623, 0.04233833774924278, 0.03001934476196766, -0.031163116917014122, 0.0435008630156517, -0.05370106175541878, 0.022744201123714447 ]
43,217
sklearn.metrics._regression
r2_score
:math:`R^2` (coefficient of determination) regression score function. Best possible score is 1.0 and it can be negative (because the model can be arbitrarily worse). In the general case when the true y is non-constant, a constant model that always predicts the average y disregarding the input features would get a :math:`R^2` score of 0.0. In the particular case when ``y_true`` is constant, the :math:`R^2` score is not finite: it is either ``NaN`` (perfect predictions) or ``-Inf`` (imperfect predictions). To prevent such non-finite numbers to pollute higher-level experiments such as a grid search cross-validation, by default these cases are replaced with 1.0 (perfect predictions) or 0.0 (imperfect predictions) respectively. You can set ``force_finite`` to ``False`` to prevent this fix from happening. Note: when the prediction residuals have zero mean, the :math:`R^2` score is identical to the :func:`Explained Variance score <explained_variance_score>`. Read more in the :ref:`User Guide <r2_score>`. Parameters ---------- y_true : array-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y_pred : array-like of shape (n_samples,) or (n_samples, n_outputs) Estimated target values. sample_weight : array-like of shape (n_samples,), default=None Sample weights. multioutput : {'raw_values', 'uniform_average', 'variance_weighted'}, array-like of shape (n_outputs,) or None, default='uniform_average' Defines aggregating of multiple output scores. Array-like value defines weights used to average scores. Default is "uniform_average". 'raw_values' : Returns a full set of scores in case of multioutput input. 'uniform_average' : Scores of all outputs are averaged with uniform weight. 'variance_weighted' : Scores of all outputs are averaged, weighted by the variances of each individual output. .. versionchanged:: 0.19 Default value of multioutput is 'uniform_average'. force_finite : bool, default=True Flag indicating if ``NaN`` and ``-Inf`` scores resulting from constant data should be replaced with real numbers (``1.0`` if prediction is perfect, ``0.0`` otherwise). Default is ``True``, a convenient setting for hyperparameters' search procedures (e.g. grid search cross-validation). .. versionadded:: 1.1 Returns ------- z : float or ndarray of floats The :math:`R^2` score or ndarray of scores if 'multioutput' is 'raw_values'. Notes ----- This is not a symmetric function. Unlike most other scores, :math:`R^2` score may be negative (it need not actually be the square of a quantity R). This metric is not well-defined for single samples and will return a NaN value if n_samples is less than two. References ---------- .. [1] `Wikipedia entry on the Coefficient of determination <https://en.wikipedia.org/wiki/Coefficient_of_determination>`_ Examples -------- >>> from sklearn.metrics import r2_score >>> y_true = [3, -0.5, 2, 7] >>> y_pred = [2.5, 0.0, 2, 8] >>> r2_score(y_true, y_pred) 0.948... >>> y_true = [[0.5, 1], [-1, 1], [7, -6]] >>> y_pred = [[0, 2], [-1, 2], [8, -5]] >>> r2_score(y_true, y_pred, ... multioutput='variance_weighted') 0.938... >>> y_true = [1, 2, 3] >>> y_pred = [1, 2, 3] >>> r2_score(y_true, y_pred) 1.0 >>> y_true = [1, 2, 3] >>> y_pred = [2, 2, 2] >>> r2_score(y_true, y_pred) 0.0 >>> y_true = [1, 2, 3] >>> y_pred = [3, 2, 1] >>> r2_score(y_true, y_pred) -3.0 >>> y_true = [-2, -2, -2] >>> y_pred = [-2, -2, -2] >>> r2_score(y_true, y_pred) 1.0 >>> r2_score(y_true, y_pred, force_finite=False) nan >>> y_true = [-2, -2, -2] >>> y_pred = [-2, -2, -2 + 1e-8] >>> r2_score(y_true, y_pred) 0.0 >>> r2_score(y_true, y_pred, force_finite=False) -inf
def mean_absolute_error( y_true, y_pred, *, sample_weight=None, multioutput="uniform_average" ): """Mean absolute error regression loss. Read more in the :ref:`User Guide <mean_absolute_error>`. Parameters ---------- y_true : array-like of shape (n_samples,) or (n_samples, n_outputs) Ground truth (correct) target values. y_pred : array-like of shape (n_samples,) or (n_samples, n_outputs) Estimated target values. sample_weight : array-like of shape (n_samples,), default=None Sample weights. multioutput : {'raw_values', 'uniform_average'} or array-like of shape \ (n_outputs,), default='uniform_average' Defines aggregating of multiple output values. Array-like value defines weights used to average errors. 'raw_values' : Returns a full set of errors in case of multioutput input. 'uniform_average' : Errors of all outputs are averaged with uniform weight. Returns ------- loss : float or ndarray of floats If multioutput is 'raw_values', then mean absolute error is returned for each output separately. If multioutput is 'uniform_average' or an ndarray of weights, then the weighted average of all output errors is returned. MAE output is non-negative floating point. The best value is 0.0. Examples -------- >>> from sklearn.metrics import mean_absolute_error >>> y_true = [3, -0.5, 2, 7] >>> y_pred = [2.5, 0.0, 2, 8] >>> mean_absolute_error(y_true, y_pred) 0.5 >>> y_true = [[0.5, 1], [-1, 1], [7, -6]] >>> y_pred = [[0, 2], [-1, 2], [8, -5]] >>> mean_absolute_error(y_true, y_pred) 0.75 >>> mean_absolute_error(y_true, y_pred, multioutput='raw_values') array([0.5, 1. ]) >>> mean_absolute_error(y_true, y_pred, multioutput=[0.3, 0.7]) 0.85... """ y_type, y_true, y_pred, multioutput = _check_reg_targets( y_true, y_pred, multioutput ) check_consistent_length(y_true, y_pred, sample_weight) output_errors = np.average(np.abs(y_pred - y_true), weights=sample_weight, axis=0) if isinstance(multioutput, str): if multioutput == "raw_values": return output_errors elif multioutput == "uniform_average": # pass None as weights to np.average: uniform mean multioutput = None return np.average(output_errors, weights=multioutput)
(y_true, y_pred, *, sample_weight=None, multioutput='uniform_average', force_finite=True)
[ -0.0214313343167305, -0.010836695320904255, 0.03895251825451851, 0.012084218673408031, 0.04383089393377304, -0.027780668810009956, -0.029605405405163765, 0.025602158159017563, 0.047443125396966934, -0.01649709977209568, -0.0021529088262468576, -0.003931094892323017, 0.046251460909843445, -0.03144875913858414, 0.045469433069229126, 0.08133107423782349, -0.003691365709528327, -0.010343272238969803, -0.0017584027955308557, 0.04088897258043289, -0.004647955298423767, 0.0027068464551120996, -0.0042802151292562485, -0.03602921962738037, -0.022213364019989967, -0.021710630506277084, -0.00325612910091877, -0.040516577661037445, 0.004010228905826807, -0.01900145597755909, -0.017707383260130882, -0.05865221843123436, 0.02223198302090168, 0.016152633354067802, -0.0033119881991297007, -0.0455811507999897, -0.02279057539999485, 0.04539495334029198, -0.06032799556851387, -0.047443125396966934, -0.0215058121830225, -0.08393783867359161, 0.03224940970540047, 0.046176984906196594, 0.010985652916133404, 0.06144518032670021, -0.029195770621299744, 0.028302021324634552, -0.06960062682628632, -0.05898737162351608, -0.0016117722261697054, 0.038840800523757935, -0.010697047226130962, 0.026421427726745605, -0.00468984991312027, 0.07544723153114319, 0.022027166560292244, -0.0038030841387808323, -0.025881454348564148, -0.07768160104751587, 0.0038566160947084427, 0.028786135837435722, 0.02813444472849369, -0.03299419954419136, 0.020891360938549042, -0.04420328885316849, -0.05325248837471008, 0.010501539334654808, -0.00115267897490412, 0.0710902139544487, -0.014830632135272026, -0.0010555071057751775, 0.024000858888030052, -0.013862404972314835, 0.04349574074149132, 0.024242917075753212, -0.026179369539022446, 0.009831228293478489, -0.020425867289304733, 0.03491203486919403, -0.04621422290802002, 0.025006325915455818, 0.04416605085134506, 0.03452101722359657, -0.0022064405493438244, -0.062115490436553955, -0.08356544375419617, 0.022585758939385414, 0.04189443960785866, 0.011562865227460861, 0.0010851824190467596, 0.023460887372493744, 0.020016232505440712, 0.015044759027659893, -0.011237019672989845, 0.009933637455105782, -0.04766656458377838, -0.014681673608720303, 0.013387600891292095, -0.03141152113676071, -0.032323889434337616, 0.01788427121937275, 0.07481416314840317, 0.04122412949800491, 0.02645866572856903, -0.005925735924392939, 0.011264949105679989, 0.010464300401508808, 0.04852307215332985, 0.03846840560436249, -0.028004106134176254, -0.06509464979171753, -0.00013259299157653004, -0.014085842296481133, -0.04826239496469498, -0.027594471350312233, -0.011283569037914276, 0.04263922944664955, -0.054853785783052444, -0.0032794037833809853, 0.031392902135849, 0.0088676568120718, -0.004827170632779598, -0.03763051703572273, 0.04748036712408066, 0.00673569506034255, 0.01654364913702011, -0.04319782182574272, 0.017902890220284462, 0.012419373728334904, -0.02845098078250885, 0.03887804225087166, -0.0038310138043016195, -0.019066626206040382, -0.04710797220468521, -0.005367143079638481, 0.011907330714166164, 0.0028767515905201435, 0.0396973080933094, -0.05850325897336006, 0.08006493002176285, -0.00126963434740901, 0.030163997784256935, 0.033664509654045105, -0.003570337314158678, -0.0032025971449911594, 0.02597455307841301, 0.05649232491850853, 0.02861855737864971, 0.016916044056415558, -0.001629228238016367, -0.015528872609138489, -0.010510849766433239, 0.006898617837578058, 0.010771526023745537, 0.022585758939385414, 0.03602921962738037, -0.030089518055319786, -0.046810053288936615, -0.051353275775909424, -0.030257096514105797, -0.040926214307546616, 0.04535771533846855, -0.011385978199541569, 0.019057314842939377, 0.011097371578216553, -0.008015803061425686, 0.050012651830911636, -0.005409037694334984, -0.0007156967185437679, -0.021487193182110786, -0.010529469698667526, 0.012884868308901787, -0.0197741761803627, 0.023144351318478584, 0.02820892259478569, 0.00870938878506422, -0.0064470889046788216, -0.037016063928604126, 0.05217254161834717, 0.053103528916835785, -0.0029582129791378975, -0.016943974420428276, -0.027985485270619392, 0.00897937547415495, -0.009137642569839954, -0.022660236805677414, 0.03751879930496216, -0.0300336591899395, 0.024875987321138382, 0.008714043535292149, -0.020351387560367584, -0.0004535655025392771, -0.016096774488687515, 0.005567305721342564, -0.049751974642276764, -0.0006033963290974498, -0.010501539334654808, 0.13510490953922272, 0.006703110411763191, -0.08349096775054932, -0.007722541689872742, -0.008844382129609585, 0.034856174141168594, 0.021971305832266808, 0.004068415611982346, -0.04263922944664955, -0.0028720966074615717, -0.08445919305086136, -0.05276837572455406, -0.011916641145944595, 0.020779643207788467, -0.023218829184770584, 0.06982406973838806, 0.07332458347082138, 0.01992313377559185, 0.019494879990816116, 0.008518536575138569, -0.06721730530261993, 0.01741877757012844, -0.055188942700624466, -0.09429042041301727, 0.037165023386478424, 0.0316908173263073, 0.0368298664689064, 0.020183810964226723, 0.0283765010535717, 0.009793989360332489, 0.008257859386503696, 0.06472225487232208, 0.012102838605642319, -0.03020123578608036, 0.00017499657406006008, -0.024987706914544106, -0.03671814873814583, 0.020351387560367584, 0.03163495659828186, -0.03763051703572273, 0.042266834527254105, 0.04964025691151619, -0.032472845166921616, -0.025285622105002403, 0.0036005943547934294, -0.023405026644468307, 0.011823542416095734, 0.0022390251979231834, 0.0023193226661533117, 0.04699625074863434, -0.005390418227761984, 0.0003171176358591765, -0.004068415611982346, 0.06803657114505768, 0.0056138550862669945, 0.031132224947214127, 0.013126924633979797, -0.038915280252695084, -0.011525626294314861, 0.0030443293508142233, 0.027911007404327393, -0.01812632754445076, 0.0036634360440075397, 0.004799240734428167, 0.007154639344662428, 0.014644434675574303, -0.08706595748662949, -0.039399392902851105, -0.011683894321322441, -0.038207728415727615, 0.022734716534614563, 0.07548446953296661, -0.0032305268105119467, 0.052060823887586594, -0.040442101657390594, -0.037016063928604126, -0.02405671775341034, 0.051762908697128296, 0.07071781903505325, -0.005823327228426933, -0.007257048040628433, -0.011292879469692707, 0.007950633764266968, -0.05399727821350098, -0.007736506871879101, 0.04368193820118904, -0.011348738335072994, -0.013415531255304813, -0.007862189784646034, -0.04427776858210564, 0.047294169664382935, 0.01584540866315365, 0.06438709795475006, -0.03491203486919403, -0.0026789167895913124, -0.024801509454846382, -0.04025590047240257, 0.00928194634616375, -0.03586164116859436, -0.03872908279299736, 0.01880594901740551, 0.027687570080161095, -0.04822515696287155, 0.06617459654808044, 0.03977178782224655, -0.02152443304657936, -0.027911007404327393, -0.008639564737677574, 0.04796447977423668, -0.03219354897737503, -0.020686544477939606, 0.02932610921561718, 0.020351387560367584, 0.013406220823526382, -0.0027487408369779587, -0.03906423971056938, -0.03100188635289669, 0.011395287699997425, 0.08892793208360672, -0.022269222885370255, 0.05530066043138504, -0.000533863203600049, -0.04893270507454872, -0.031746674329042435, 0.06528084725141525, -0.029586784541606903, 0.0424157939851284, 0.004191771615296602, -0.007582893595099449, 0.02111479826271534, 0.033832088112831116, 0.0198486540466547, -0.01975555531680584, -0.0907154306769371, -0.02318159118294716, -0.013722756877541542, -0.0053066289983689785, -0.05440691486001015, -0.02932610921561718, -0.020518966019153595, 0.03586164116859436, 0.010613257996737957, -0.06356783211231232, 0.07533551007509232, -0.010985652916133404, 0.007094125263392925, -0.013936883769929409, -0.004287197720259428, -0.003686710726469755, 0.03211906924843788, -0.005497481673955917, 0.016552958637475967, 0.007238428108394146, 0.07783056050539017, 0.0016245732549577951, 0.01929006166756153, 0.057497791945934296, -0.008243895135819912, -0.026719342917203903, 0.016161944717168808, 0.04941682144999504, 0.004498997237533331, -0.010333961807191372, -0.06539256870746613, 0.028860613703727722, -0.03664366900920868, -0.00794597901403904, 0.015482323244214058, 0.017791172489523888, -0.01214938797056675, 0.005129741504788399, -0.04353297874331474, -0.0269427802413702, -0.04483636096119881, -0.02320021018385887, -0.00689396308735013, -0.02556491829454899, 0.035489246249198914, 0.0026742618065327406, -0.042862668633461, 0.008318373933434486, -0.03699744492769241, 0.012689360417425632, -0.021021699532866478, -0.04122412949800491, -0.01883387751877308, 0.03593612089753151, -0.028320642188191414, -0.008546466007828712, -0.018722159788012505, -0.085725337266922, 0.020612064749002457, 0.060216274112463, -0.004482705146074295, 0.004696832038462162, -0.05563581734895706, -0.047778282314538956, 0.0031490654218941927, 0.011823542416095734, 0.046586617827415466, -0.06583943963050842, -0.02383328229188919, -0.026402806863188744, 0.01883387751877308, -0.02126375585794449, -0.04215511679649353, -0.08833210170269012, -0.00820200052112341, -0.04245303198695183, 0.02126375585794449, -0.032882481813430786, 0.03850564733147621, -0.014430306851863861, 0.02748275361955166, -0.029828840866684914, 0.0008774558082222939, -0.01919696293771267, 0.07403212785720825, -0.031132224947214127, 0.014998209662735462, -0.03360865265130997, -0.00987777765840292, 0.025806974619627, -0.045543912798166275, 0.05217254161834717, 0.034074146300554276, 0.052880093455314636, -0.06699386239051819, -0.04245303198695183, -0.03156047686934471, 0.0014965625014156103, -0.0185638926923275, 0.015500943176448345, -0.02094721980392933, -0.09935498982667923, -0.0014930713223293424, -0.00008284334762720391, -0.00484113534912467, 0.02238094061613083, 0.04733140766620636, -0.006298130843788385, -0.020425867289304733, -0.002625384833663702, 0.012102838605642319, 0.02820892259478569, 0.08848106116056442, -0.01071566715836525, -0.045879065990448, -0.003563354955986142, -0.046884533017873764, -0.02279057539999485, -0.009347114711999893, 0.0065588075667619705, -0.024578072130680084, 0.04070277512073517, 0.031169462949037552, 0.010687736794352531, -0.04383089393377304, -0.023609844967722893, -0.023162970319390297, 0.034632738679647446, -0.011851471848785877, -0.018889738246798515, 0.03688572719693184, 0.022902294993400574, -0.004831825383007526, -0.014206870459020138, 0.012363514862954617, 0.08728939294815063, -0.004075398202985525, 0.02295815385878086, 0.039399392902851105, 0.006344680208712816, -0.05895013362169266, -0.019085245206952095, 0.041782721877098083, -0.029195770621299744, 0.005148361437022686, 0.018210116773843765, -0.022250602021813393, 0.008625599555671215, -0.013713446445763111, -0.009291255846619606, 0.0031560477800667286, -0.009519347921013832, -0.00018459737475495785, 0.021058939397335052, 0.01485856156796217, 0.011562865227460861, -0.05999283865094185, 0.010110525414347649, 0.01824735663831234, -0.03520995005965233, -0.0009408792830072343, 0.03129980340600014, -0.047778282314538956, -0.09421594440937042, -0.07961805909872055, 0.023311927914619446, 0.03433481976389885, 0.029772982001304626, -0.0071127451956272125, 0.04930509999394417, -0.011292879469692707, -0.003968334291130304, -0.06464777886867523, 0.025527678430080414, 0.006042109336704016, -0.01541715394705534, -0.049044426530599594, -0.018331145867705345, 0.03850564733147621, -0.06073762848973274, 0.08579981327056885, 0.05779570713639259, 0.04669833555817604, 0.0022041131742298603, -0.0005498645477928221, 0.05626888945698738, 0.046810053288936615, 0.10166384279727936, -0.0091702276840806, 0.03150461986660957, -0.005083192139863968, -0.057721227407455444, 0.0038566160947084427, -0.014085842296481133, 0.030331574380397797, -0.024336015805602074, 0.03647609427571297, -0.010985652916133404, -0.02383328229188919, 0.003919457551091909, 0.014206870459020138, 0.003810066496953368, 0.017232580110430717, -0.07399488985538483, -0.031281180679798126, 0.030890166759490967, -0.0012230848660692573, -0.09712062031030655, 0.018191497772932053, -0.004485032521188259, 0.027706189081072807, -0.005930390674620867, -0.048336874693632126, 0.003989281598478556, 0.012791769579052925, -0.025285622105002403, 0.023144351318478584, -0.010585328564047813, -0.01135804783552885, 0.05794466659426689, -0.013275882229208946, 0.044575683772563934, 0.09905707836151123, 0.043160583823919296, 0.035191331058740616, 0.02038862742483616, 0.06781313568353653, -0.04167100414633751, -0.013527248986065388, -0.005395072977989912, -0.05012436956167221, -0.0035517176147550344, -0.037407081574201584, 0.015333365648984909, 0.06140793859958649, -0.04494807869195938, 0.05180014669895172, -0.07347353547811508, 0.008844382129609585, -0.09443937987089157, 0.05187462642788887, 0.01654364913702011, -0.038840800523757935, -0.00396600691601634, 0.07678785175085068, 0.07559619098901749, -0.06855792552232742, 0.018107708543539047, 0.06394022703170776, 0.005683679133653641, -0.0452832356095314, 0.03156047686934471, 0.0018130983226001263, 0.04803895950317383, 0.027054497972130775, -0.0005748848197981715, 0.016925353556871414, -0.04930509999394417, 0.004173151683062315, 0.009240051731467247, -0.010147764347493649, -0.006642596330493689, -0.02519252337515354, 0.007792365737259388, -0.0024415149819105864, -0.020351387560367584, -0.033199016004800797, 0.07481416314840317, 0.02949368581175804, 0.029195770621299744, 0.02509942464530468, 0.020183810964226723, -0.045692868530750275, 0.0597694031894207, 0.016776395961642265, 0.01601298525929451, -0.08922585099935532, -0.034297581762075424, -0.019587978720664978, -0.047219689935445786, -0.02541596069931984, -0.039809029549360275, -0.038691844791173935, 0.01756773516535759, 0.03511685132980347, -0.027855148538947105, 0.0455811507999897, 0.007457210216671228, 0.011264949105679989, 0.04997541382908821, -0.00037472249823622406, -0.02174787037074566, 0.028302021324634552, 0.0011718806345015764, 0.0007581730023957789, -0.021338235586881638, 0.032472845166921616, -0.032863862812519073, 0.0271662175655365, -0.019010765478014946, 0.03699744492769241, 0.018480103462934494, -0.06464777886867523, 0.009193502366542816, -0.01717672124505043, 0.04978921636939049, 0.007089470513164997, 0.01727912947535515, -0.023889141157269478, -0.048746507614851, -0.011451147496700287, 0.0243732538074255, 0.0029256283305585384, 0.019234202802181244, 0.040516577661037445, -0.03608507663011551, 0.05824258178472519, 0.03195149451494217, -0.01673915609717369, 0.03763051703572273, 0.04126136749982834, -0.04725692793726921, 0.02351674623787403, 0.02845098078250885, 0.05194910615682602, 0.0074711753986775875, -0.024671170860528946, -0.01199111994355917, 0.006265546195209026, -0.0916091799736023, -0.009407629258930683, -0.014830632135272026, 0.03563820570707321, 0.009896397590637207, 0.009514693170785904, -0.038617365062236786, -0.020500347018241882, -0.00158849754370749, -0.02835788205265999, -0.025378720834851265, 0.01151631586253643, -0.012475233525037766, 0.004021866247057915, 0.020909979939460754, -0.008229929953813553, -0.0041778068989515305, 0.01147907692939043, -0.03496789187192917, -0.03958559036254883, 0.07559619098901749, 0.08706595748662949, 0.00405212352052331, -0.013126924633979797, 0.024317394942045212, -0.024671170860528946, -0.0149051109328866, 0.06706834584474564, -0.031188083812594414, -0.07310114055871964, 0.005446277093142271, -0.03696020692586899, -0.014774772338569164, -0.033105917274951935, -0.05455587059259415, 0.04249027371406555, -0.03321763500571251, 0.04550667107105255, -0.01669260673224926, 0.00722911860793829, -0.009766059927642345, 0.03718364238739014, -0.05671576410531998, 0.028022725135087967, 0.03552648425102234, 0.04230407625436783, -0.046661097556352615, 0.011088062077760696, 0.018582511693239212, -0.06062591075897217, -0.001864302554167807, 0.00579539779573679, 0.018843188881874084, -0.02055620588362217, -0.03241698816418648, -0.08148003369569778, 0.012493853457272053, -0.024112578481435776, -0.01092048455029726, 0.031746674329042435, -0.015538182109594345, -0.01992313377559185, -0.007527034264057875, -0.014234799891710281, -0.0484485924243927, -0.038282208144664764, 0.027948247268795967, -0.06654699146747589, 0.06077486649155617, 0.025862835347652435, 0.02470841072499752, 0.012894177809357643, 0.02932610921561718, 0.03768637776374817, 0.030890166759490967, 0.02947506681084633, -0.03385070711374283, -0.05623164772987366, 0.060514193028211594, 0.012540402822196484, 0.05615717172622681, -0.014988900162279606, 0.04941682144999504, -0.022753335535526276, -0.011469766497612, 0.0024415149819105864, -0.03353417292237282, 0.049528539180755615, 0.003959024790674448, -0.0092074666172266, -0.03353417292237282, -0.03807739168405533, 0.016804326325654984, 0.0659511610865593, 0.060290753841400146, 0.02835788205265999, -0.008471987210214138, -0.035265810787677765, 0.005548685789108276, 0.019960373640060425, 0.015156477689743042, -0.005464897025376558, -0.01889904774725437, 0.02405671775341034, -0.04133584722876549, 0.05410899594426155, -0.061072785407304764, 0.013229332864284515 ]
43,219
skimage.metrics._structural_similarity
structural_similarity
Compute the mean structural similarity index between two images. Please pay attention to the `data_range` parameter with floating-point images. Parameters ---------- im1, im2 : ndarray Images. Any dimensionality with same shape. win_size : int or None, optional The side-length of the sliding window used in comparison. Must be an odd value. If `gaussian_weights` is True, this is ignored and the window size will depend on `sigma`. gradient : bool, optional If True, also return the gradient with respect to im2. data_range : float, optional The data range of the input image (difference between maximum and minimum possible values). By default, this is estimated from the image data type. This estimate may be wrong for floating-point image data. Therefore it is recommended to always pass this scalar value explicitly (see note below). channel_axis : int or None, optional If None, the image is assumed to be a grayscale (single channel) image. Otherwise, this parameter indicates which axis of the array corresponds to channels. .. versionadded:: 0.19 ``channel_axis`` was added in 0.19. gaussian_weights : bool, optional If True, each patch has its mean and variance spatially weighted by a normalized Gaussian kernel of width sigma=1.5. full : bool, optional If True, also return the full structural similarity image. Other Parameters ---------------- use_sample_covariance : bool If True, normalize covariances by N-1 rather than, N where N is the number of pixels within the sliding window. K1 : float Algorithm parameter, K1 (small constant, see [1]_). K2 : float Algorithm parameter, K2 (small constant, see [1]_). sigma : float Standard deviation for the Gaussian when `gaussian_weights` is True. Returns ------- mssim : float The mean structural similarity index over the image. grad : ndarray The gradient of the structural similarity between im1 and im2 [2]_. This is only returned if `gradient` is set to True. S : ndarray The full SSIM image. This is only returned if `full` is set to True. Notes ----- If `data_range` is not specified, the range is automatically guessed based on the image data type. However for floating-point image data, this estimate yields a result double the value of the desired range, as the `dtype_range` in `skimage.util.dtype.py` has defined intervals from -1 to +1. This yields an estimate of 2, instead of 1, which is most often required when working with image data (as negative light intensities are nonsensical). In case of working with YCbCr-like color data, note that these ranges are different per channel (Cb and Cr have double the range of Y), so one cannot calculate a channel-averaged SSIM with a single call to this function, as identical ranges are assumed for each channel. To match the implementation of Wang et al. [1]_, set `gaussian_weights` to True, `sigma` to 1.5, `use_sample_covariance` to False, and specify the `data_range` argument. .. versionchanged:: 0.16 This function was renamed from ``skimage.measure.compare_ssim`` to ``skimage.metrics.structural_similarity``. References ---------- .. [1] Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13, 600-612. https://ece.uwaterloo.ca/~z70wang/publications/ssim.pdf, :DOI:`10.1109/TIP.2003.819861` .. [2] Avanaki, A. N. (2009). Exact global histogram specification optimized for structural similarity. Optical Review, 16, 613-621. :arxiv:`0901.0065` :DOI:`10.1007/s10043-009-0119-z`
def structural_similarity( im1, im2, *, win_size=None, gradient=False, data_range=None, channel_axis=None, gaussian_weights=False, full=False, **kwargs, ): """ Compute the mean structural similarity index between two images. Please pay attention to the `data_range` parameter with floating-point images. Parameters ---------- im1, im2 : ndarray Images. Any dimensionality with same shape. win_size : int or None, optional The side-length of the sliding window used in comparison. Must be an odd value. If `gaussian_weights` is True, this is ignored and the window size will depend on `sigma`. gradient : bool, optional If True, also return the gradient with respect to im2. data_range : float, optional The data range of the input image (difference between maximum and minimum possible values). By default, this is estimated from the image data type. This estimate may be wrong for floating-point image data. Therefore it is recommended to always pass this scalar value explicitly (see note below). channel_axis : int or None, optional If None, the image is assumed to be a grayscale (single channel) image. Otherwise, this parameter indicates which axis of the array corresponds to channels. .. versionadded:: 0.19 ``channel_axis`` was added in 0.19. gaussian_weights : bool, optional If True, each patch has its mean and variance spatially weighted by a normalized Gaussian kernel of width sigma=1.5. full : bool, optional If True, also return the full structural similarity image. Other Parameters ---------------- use_sample_covariance : bool If True, normalize covariances by N-1 rather than, N where N is the number of pixels within the sliding window. K1 : float Algorithm parameter, K1 (small constant, see [1]_). K2 : float Algorithm parameter, K2 (small constant, see [1]_). sigma : float Standard deviation for the Gaussian when `gaussian_weights` is True. Returns ------- mssim : float The mean structural similarity index over the image. grad : ndarray The gradient of the structural similarity between im1 and im2 [2]_. This is only returned if `gradient` is set to True. S : ndarray The full SSIM image. This is only returned if `full` is set to True. Notes ----- If `data_range` is not specified, the range is automatically guessed based on the image data type. However for floating-point image data, this estimate yields a result double the value of the desired range, as the `dtype_range` in `skimage.util.dtype.py` has defined intervals from -1 to +1. This yields an estimate of 2, instead of 1, which is most often required when working with image data (as negative light intensities are nonsensical). In case of working with YCbCr-like color data, note that these ranges are different per channel (Cb and Cr have double the range of Y), so one cannot calculate a channel-averaged SSIM with a single call to this function, as identical ranges are assumed for each channel. To match the implementation of Wang et al. [1]_, set `gaussian_weights` to True, `sigma` to 1.5, `use_sample_covariance` to False, and specify the `data_range` argument. .. versionchanged:: 0.16 This function was renamed from ``skimage.measure.compare_ssim`` to ``skimage.metrics.structural_similarity``. References ---------- .. [1] Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13, 600-612. https://ece.uwaterloo.ca/~z70wang/publications/ssim.pdf, :DOI:`10.1109/TIP.2003.819861` .. [2] Avanaki, A. N. (2009). Exact global histogram specification optimized for structural similarity. Optical Review, 16, 613-621. :arxiv:`0901.0065` :DOI:`10.1007/s10043-009-0119-z` """ check_shape_equality(im1, im2) float_type = _supported_float_type(im1.dtype) if channel_axis is not None: # loop over channels args = dict( win_size=win_size, gradient=gradient, data_range=data_range, channel_axis=None, gaussian_weights=gaussian_weights, full=full, ) args.update(kwargs) nch = im1.shape[channel_axis] mssim = np.empty(nch, dtype=float_type) if gradient: G = np.empty(im1.shape, dtype=float_type) if full: S = np.empty(im1.shape, dtype=float_type) channel_axis = channel_axis % im1.ndim _at = functools.partial(utils.slice_at_axis, axis=channel_axis) for ch in range(nch): ch_result = structural_similarity(im1[_at(ch)], im2[_at(ch)], **args) if gradient and full: mssim[ch], G[_at(ch)], S[_at(ch)] = ch_result elif gradient: mssim[ch], G[_at(ch)] = ch_result elif full: mssim[ch], S[_at(ch)] = ch_result else: mssim[ch] = ch_result mssim = mssim.mean() if gradient and full: return mssim, G, S elif gradient: return mssim, G elif full: return mssim, S else: return mssim K1 = kwargs.pop('K1', 0.01) K2 = kwargs.pop('K2', 0.03) sigma = kwargs.pop('sigma', 1.5) if K1 < 0: raise ValueError("K1 must be positive") if K2 < 0: raise ValueError("K2 must be positive") if sigma < 0: raise ValueError("sigma must be positive") use_sample_covariance = kwargs.pop('use_sample_covariance', True) if gaussian_weights: # Set to give an 11-tap filter with the default sigma of 1.5 to match # Wang et. al. 2004. truncate = 3.5 if win_size is None: if gaussian_weights: # set win_size used by crop to match the filter size r = int(truncate * sigma + 0.5) # radius as in ndimage win_size = 2 * r + 1 else: win_size = 7 # backwards compatibility if np.any((np.asarray(im1.shape) - win_size) < 0): raise ValueError( 'win_size exceeds image extent. ' 'Either ensure that your images are ' 'at least 7x7; or pass win_size explicitly ' 'in the function call, with an odd value ' 'less than or equal to the smaller side of your ' 'images. If your images are multichannel ' '(with color channels), set channel_axis to ' 'the axis number corresponding to the channels.' ) if not (win_size % 2 == 1): raise ValueError('Window size must be odd.') if data_range is None: if np.issubdtype(im1.dtype, np.floating) or np.issubdtype( im2.dtype, np.floating ): raise ValueError( 'Since image dtype is floating point, you must specify ' 'the data_range parameter. Please read the documentation ' 'carefully (including the note). It is recommended that ' 'you always specify the data_range anyway.' ) if im1.dtype != im2.dtype: warn( "Inputs have mismatched dtypes. Setting data_range based on im1.dtype.", stacklevel=2, ) dmin, dmax = dtype_range[im1.dtype.type] data_range = dmax - dmin if np.issubdtype(im1.dtype, np.integer) and (im1.dtype != np.uint8): warn( "Setting data_range based on im1.dtype. " + f"data_range = {data_range:.0f}. " + "Please specify data_range explicitly to avoid mistakes.", stacklevel=2, ) ndim = im1.ndim if gaussian_weights: filter_func = gaussian
(im1, im2, *, win_size=None, gradient=False, data_range=None, channel_axis=None, gaussian_weights=False, full=False, **kwargs)
[ 0.023360315710306168, -0.09719989448785782, 0.028976406902074814, -0.013745218515396118, 0.0013637321535497904, -0.024671465158462524, -0.029522718861699104, -0.019525203853845596, -0.027621552348136902, 0.07923714071512222, -0.015154704451560974, 0.007735782768577337, 0.02910752221941948, 0.03752073273062706, -0.020934689790010452, 0.02580779604613781, -0.010352618992328644, 0.015034515410661697, 0.019361309707164764, -0.03402433171868324, -0.06852941960096359, -0.044885024428367615, 0.006954556331038475, 0.02827712707221508, 0.012958528473973274, 0.008161906152963638, -0.03577253222465515, -0.044797614216804504, -0.05227116495370865, 0.014160416088998318, -0.02460590749979019, -0.06914129108190536, 0.05498087406158447, 0.005586043931543827, -0.0025280604604631662, -0.023207347840070724, 0.05100372061133385, 0.011822199448943138, -0.06634417176246643, 0.004881300963461399, -0.011073751375079155, -0.025327039882540703, 0.015395081602036953, -0.028495652601122856, 0.025676680728793144, 0.07508517056703568, -0.0547623485326767, 0.0051298728212714195, -0.031620558351278305, 0.04916810989379883, 0.012171839363873005, -0.0669560432434082, -0.02947901375591755, 0.01628010720014572, -0.05428159609436989, 0.06162403151392937, 0.018618324771523476, -0.0198639165610075, 0.011385149322450161, -0.06577600538730621, 0.019710948690772057, -0.03889743983745575, 0.010489197447896004, 0.02856121025979519, -0.06756791472434998, -0.033084675669670105, -0.038307420909404755, 0.020552270114421844, -0.015406007878482342, 0.015242114663124084, -0.05314526706933975, 0.014914327301084995, 0.03146759048104286, 0.019820211455225945, -0.04182567447423935, 0.034199152141809464, 0.04842512682080269, 0.012587036937475204, 0.028146011754870415, -0.005580580793321133, 0.046152468770742416, 0.05301415175199509, -0.026113729923963547, -0.10926246643066406, 0.00048007199075073004, 0.050828900188207626, -0.0682234838604927, 0.06874794512987137, 0.03837297856807709, -0.10052147507667542, 0.022486215457320213, 0.015242114663124084, 0.06206108257174492, 0.01747106947004795, 0.023950332775712013, 0.04575912281870842, -0.05336378887295723, -0.04693915694952011, 0.02993791736662388, -0.04184752702713013, -0.01582120545208454, 0.06293518096208572, 0.0426560677587986, 0.05922025814652443, 0.014608392491936684, -0.04151973873376846, -0.03505140170454979, 0.015329524874687195, -0.04894958809018135, -0.017689593136310577, 0.00815097987651825, -0.04768214002251625, -0.024671465158462524, -0.025042958557605743, 0.028954554349184036, -0.016083436086773872, -0.014149489812552929, 0.08470026403665543, 0.004075489938259125, -0.004130121320486069, -0.015318598598241806, 0.03708368167281151, -0.02213657647371292, -0.028386389836668968, -0.002982865320518613, -0.029041964560747147, 0.08190314471721649, 0.007899676449596882, -0.026965977624058723, 0.026244845241308212, -0.0406019352376461, -0.03502954915165901, -0.022835856303572655, 0.07709559798240662, 0.020093368366360664, -0.04401092231273651, 0.04309311881661415, 0.00734790088608861, 0.03762999549508095, 0.022169355303049088, 0.006916314363479614, -0.011035509407520294, -0.03297541290521622, 0.04741991311311722, -0.034898433834314346, 0.019962253049016, 0.03887558728456497, -0.03669033572077751, 0.03295356035232544, -0.03251650929450989, -0.03297541290521622, 0.0024693317245692015, 0.036646630614995956, 0.014597466215491295, -0.0015610875561833382, -0.04776955023407936, 0.08063570410013199, -0.05799651890993118, -0.014673950150609016, 0.013646882027387619, -0.016531411558389664, -0.02827712707221508, 0.009412962011992931, -0.013417431153357029, -0.025239629670977592, -0.02096746861934662, 0.03850409388542175, 0.043049413710832596, -0.012204618193209171, 0.00686168298125267, -0.023578841239213943, -0.020563196390867233, -0.028255274519324303, -0.0589580275118351, 0.00590017344802618, 0.039487455040216446, -0.03828556835651398, -0.025327039882540703, -0.010762353427708149, -0.034373972564935684, 0.04033970460295677, -0.014062079600989819, -0.02993791736662388, -0.029326047748327255, -0.05686018988490105, 0.06944722682237625, 0.03662477806210518, 0.005823689512908459, 0.02899825945496559, 0.0010857958113774657, 0.05978842452168465, -0.05703501030802727, -0.05262080579996109, -0.0012490066001191735, 0.08832778036594391, -0.007981623522937298, -0.0043650357984006405, -0.01929575204849243, 0.03644996136426926, 0.039290785789489746, 0.028692323714494705, -0.013166127726435661, -0.030615344643592834, -0.0040727583691477776, 0.03183908388018608, -0.05388825014233589, -0.030243851244449615, 0.042612362653017044, -0.00021067170018795878, -0.032538361847400665, -0.07119542360305786, -0.04110454022884369, 0.00005557020995183848, 0.03301911801099777, 0.07032132893800735, 0.00487037468701601, -0.030812015756964684, -0.046851746737957, -0.030090883374214172, -0.013472062535583973, 0.04444797337055206, -0.02121877111494541, -0.05965730920433998, 0.03749888017773628, -0.012554258108139038, 0.05043555423617363, -0.008817480877041817, -0.03808889538049698, 0.06586341559886932, -0.028517505154013634, 0.03649366647005081, -0.012390363961458206, 0.053582314401865005, -0.030527934432029724, 0.01227017492055893, 0.0010475539602339268, 0.01940501481294632, 0.0044797612354159355, 0.006785199511796236, -0.011008193716406822, -0.017602184787392616, -0.059526193886995316, -0.017132354900240898, 0.032735034823417664, -0.03605661541223526, -0.09921032190322876, 0.013920038938522339, 0.01792997121810913, 0.041497886180877686, 0.02085820585489273, -0.02085820585489273, -0.05384454503655434, -0.02515222132205963, 0.0027820956893265247, -0.0011950582265853882, -0.06153662130236626, -0.046808041632175446, 0.024125153198838234, 0.038394831120967865, -0.04390165954828262, 0.023841070011258125, -0.0075281839817762375, -0.038482241332530975, 0.07005909830331802, -0.08028606325387955, 0.013428357429802418, 0.015690090134739876, 0.08461285382509232, -0.015329524874687195, -0.009150732308626175, 0.011407001875340939, 0.04368313401937485, -0.0004459274641703814, 0.016258254647254944, -0.010554754175245762, -0.006561211310327053, 0.02626669779419899, -0.051397066563367844, 0.015624533407390118, 0.0030320335645228624, 0.023819219321012497, 0.0012346658622846007, -0.03625328838825226, -0.010390860959887505, 0.07727041840553284, 0.027708962559700012, 0.008795629255473614, -0.07713930308818817, 0.025567417964339256, -0.036012910306453705, 0.004706481005996466, 0.013428357429802418, 0.016684379428625107, 0.0002579618594609201, -0.06214849278330803, 0.044163890182971954, -0.02460590749979019, -0.015001737512648106, -0.0017973675858229399, 0.004247578326612711, -0.026944125071167946, 0.060618817806243896, 0.017274396494030952, 0.023185495287179947, -0.006326296832412481, -0.022191207855939865, 0.019973179325461388, 0.013056864961981773, 0.028867144137620926, -0.0066213058307766914, -0.06748050451278687, 0.028080454096198082, -0.020912837237119675, 0.008773776702582836, -0.017274396494030952, -0.006233423948287964, 0.04658951610326767, 0.02882343903183937, 0.03301911801099777, 0.07893120497465134, 0.03594735264778137, 0.03301911801099777, -0.020257262513041496, -0.0034363046288490295, 0.031008688732981682, -0.07678966224193573, 0.014193194918334484, 0.020727090537548065, 0.03966227546334267, 0.06380928307771683, 0.009161657653748989, -0.003993543330579996, 0.062454428523778915, 0.023666251450777054, 0.019350383430719376, -0.02974124439060688, 0.017055870965123177, -0.0015788426389917731, 0.0024338215589523315, -0.039771538227796555, -0.001576111069880426, -0.004020859021693468, 0.029216784983873367, -0.04127936065196991, 0.04217531159520149, -0.020738016813993454, 0.03448323532938957, -0.02095654234290123, -0.042590510100126266, -0.041694559156894684, 0.01340650487691164, 0.033084675669670105, 0.009156194515526295, 0.03522621840238571, 0.039596717804670334, 0.07080207765102386, -0.04466649889945984, -0.044622793793678284, 0.03706182911992073, -0.014586539939045906, 0.003914327826350927, 0.09396572411060333, -0.0025553759187459946, -0.07019021362066269, 0.008992301300168037, 0.03922522813081741, -0.03922522813081741, 0.01221554446965456, -0.03531362861394882, -0.054674938321113586, -0.025785943493247032, -0.029894212260842323, -0.04798807576298714, -0.011854978278279305, 0.007260491140186787, -0.02644151821732521, -0.03752073273062706, 0.010166873224079609, -0.02681300975382328, 0.036100320518016815, -0.004198410548269749, 0.08185943961143494, -0.029522718861699104, 0.030899425968527794, 0.06485820561647415, 0.01866202987730503, -0.0036712188739329576, -0.0008201514137908816, -0.023360315710306168, -0.01684827357530594, -0.037477027624845505, 0.032079461961984634, -0.009926495142281055, 0.016728084534406662, -0.04289644584059715, 0.005460391752421856, -0.002611373085528612, 0.0305497869849205, -0.07228805124759674, -0.028255274519324303, -0.022103797644376755, -0.03837297856807709, -0.02773081511259079, -0.01785348728299141, 0.010587533004581928, -0.011865904554724693, -0.05388825014233589, -0.02580779604613781, -0.04390165954828262, 0.049648866057395935, -0.009778991341590881, -0.044688351452350616, -0.05419418588280678, 0.014859695918858051, -0.004304941277951002, -0.004171094857156277, 0.021983608603477478, 0.003195927245542407, -0.010478271171450615, 0.0618862621486187, -0.0025758626870810986, -0.055854976177215576, 0.039028555154800415, 0.028714176267385483, -0.03236354514956474, -0.03467990830540657, -0.04151973873376846, 0.003993543330579996, -0.036362551152706146, -0.07713930308818817, -0.007424384821206331, 0.061099573969841, -0.007828655652701855, 0.001759125734679401, -0.03076831065118313, -0.0022644647397100925, 0.0004107585991732776, -0.022486215457320213, 0.04267792031168938, -0.0036056614480912685, 0.030440524220466614, -0.020082442089915276, 0.028320832177996635, -0.05804022401571274, -0.1028815433382988, -0.06271665543317795, -0.003414452075958252, 0.0265507809817791, -0.059351373463869095, -0.001447727670893073, 0.015777500346302986, -0.003734044963493943, -0.02133896015584469, -0.007998012937605381, 0.022464362904429436, 0.014400793239474297, -0.0036357087083160877, -0.007987086661159992, -0.015701016411185265, 0.015722868964076042, -0.003261484671384096, 0.028604915365576744, -0.09781176596879959, 0.02609187737107277, 0.014105784706771374, 0.08391357958316803, 0.05034814774990082, -0.00879016611725092, 0.03677774593234062, 0.015045441687107086, 0.03723664954304695, -0.000008168010026565753, 0.017176060006022453, 0.0009376085945405066, 0.034898433834314346, 0.0025854231789708138, -0.04619617387652397, 0.030440524220466614, -0.0024433820508420467, -0.0037586288526654243, 0.0062279608100652695, -0.029304195195436478, -0.006801588926464319, 0.01469580177217722, -0.0023177301045507193, -0.0761340856552124, 0.05327637866139412, -0.010636701248586178, 0.022398807108402252, -0.03076831065118313, 0.016728084534406662, -0.006741494406014681, 0.036100320518016815, 0.004788427613675594, -0.011559969745576382, 0.01227017492055893, -0.020202631130814552, -0.027337469160556793, 0.04136677086353302, -0.042612362653017044, -0.012980381026864052, 0.02416885830461979, -0.0781882256269455, -0.008751924149692059, 0.03723664954304695, 0.02735932171344757, -0.012783708982169628, 0.0008160540601238608, -0.003597466740757227, -0.04650210589170456, -0.014837843365967274, -0.07185100018978119, 0.05393195524811745, -0.026048172265291214, 0.03129277005791664, -0.04527836665511131, -0.0011971069034188986, 0.009986589662730694, -0.017777003347873688, -0.019273899495601654, -0.03559771180152893, -0.01299130730330944, -0.025283334776759148, -0.014280605129897594, 0.014848769642412663, -0.029173079878091812, 0.019437793642282486, 0.00432679383084178, 0.02416885830461979, -0.03142388537526131, -0.04446982592344284, 0.027599699795246124, -0.013767071068286896, 0.012313880026340485, 0.0042585046030581, -0.0013712439686059952, 0.0019708217587321997, -0.02936975099146366, -0.026048172265291214, 0.004162900149822235, -0.02563297562301159, -0.019350383430719376, 0.0062825921922922134, 0.006807052064687014, 0.043989069759845734, 0.04025229439139366, -0.008358579128980637, 0.008129127323627472, -0.03682145103812218, -0.008664513938128948, 0.0058073000982403755, -0.011155698448419571, -0.01373429223895073, -0.026944125071167946, 0.04237198457121849, 0.07770746946334839, -0.026222992688417435, -0.04033970460295677, 0.0072441017255187035, -0.01171293668448925, 0.01001936849206686, 0.014062079600989819, 0.01405115332454443, -0.016236402094364166, -0.06800495833158493, -0.021087655797600746, 0.014673950150609016, -0.020180778577923775, -0.05664166435599327, 0.013657808303833008, -0.06031288206577301, 0.06883535534143448, 0.02526148222386837, 0.014739506877958775, -0.024846285581588745, 0.07346808165311813, 0.025785943493247032, -0.04219716414809227, -0.026769304648041725, -0.08500619977712631, 0.007730319630354643, -0.011876830831170082, 0.0664752870798111, 0.01657511666417122, -0.009636949747800827, -0.0037586288526654243, -0.09064414352178574, 0.0013862675987184048, -0.05401936545968056, 0.0250866636633873, -0.024365531280636787, -0.013898186385631561, 0.03384951129555702, -0.01728532277047634, -0.017044944688677788, 0.012630741111934185, 0.01929575204849243, -0.007151228841394186, 0.07949937134981155, -0.03559771180152893, 0.012160913087427616, -0.047813255339860916, -0.005241867154836655, -0.036646630614995956, 0.039400044828653336, 0.012565184384584427, 0.02443108893930912, -0.03551030158996582, 0.05891432240605354, -0.013242611661553383, 0.014258752577006817, 0.07547851651906967, 0.005364787299185991, -0.022945119068026543, 0.039574865251779556, -0.004340451676398516, 0.007604667916893959, 0.0225954782217741, 0.06665010750293732, 0.021907124668359756, 0.03594735264778137, 0.013045938685536385, -0.00649565365165472, -0.04523466154932976, -0.006774273235350847, 0.017602184787392616, -0.029500866308808327, -0.016334738582372665, -0.008336726576089859, -0.00617879256606102, -0.015471565537154675, -0.01551527064293623, 0.04943034052848816, -0.036646630614995956, 0.019842064008116722, 0.009331014938652515, 0.01487062219530344, 0.007025576662272215, -0.05393195524811745, 0.11328332871198654, 0.0428527407348156, -0.018705734983086586, 0.031707968562841415, 0.035838089883327484, -0.017339954152703285, 0.0007190836477093399, 0.028495652601122856, -0.019557982683181763, 0.031445737928152084, 0.0163019597530365, -0.021120434626936913, 0.011854978278279305, -0.014488203451037407, -0.022376954555511475, 0.012805561535060406, -0.031970199197530746, -0.010423639789223671, -0.03389321640133858, -0.0015324061969295144, -0.02314179018139839, 0.052926741540431976, 0.032429102808237076, 0.021076729521155357, 0.038394831120967865, -0.01747106947004795, 0.0014053884660825133, 0.0902945026755333, -0.025567417964339256, 0.018268685787916183, 0.01810479164123535, -0.016771789640188217, 0.02663818933069706, -0.008844796568155289, 0.037018124014139175, -0.012882045470178127, -0.01221554446965456, 0.030047178268432617, 0.01326446421444416, -0.08854630589485168, 0.02626669779419899, 0.037280354648828506, 0.06455226987600327, 0.0050697787664830685, 0.005036999937146902, 0.02873602882027626, 0.028255274519324303, 0.004321330692619085, -0.08102905005216599, 0.04359572380781174, 0.03935634344816208, -0.013559472747147083, -0.02561112307012081, 0.04619617387652397, -0.0236225463449955, 0.03295356035232544, 0.042962003499269485, -0.010046684183180332, -0.022770298644900322, -0.030680902302265167, -0.016061583533883095, 0.04514725133776665, -0.00041451450670138, -0.042787183076143265, 0.01106828823685646, 0.002186615252867341, 0.011330517940223217, -0.027031535282731056, 0.05100372061133385, 0.07591556757688522, 0.008484230376780033, -0.052402280271053314, -0.02268288843333721, 0.03561956435441971, 0.052402280271053314, 0.014291531406342983, 0.0021470075007528067, -0.010609385557472706, 0.03673404082655907, 0.048556242138147354, 0.009112490341067314, 0.04191308468580246, -0.03690886124968529, 0.011822199448943138, -0.02545815519988537, -0.04422944784164429, 0.003996274899691343, 0.06437744945287704, -0.002933697309345007, 0.031270917505025864, 0.007380679715424776, -0.0009621926001273096, 0.005504096858203411, 0.0005343617522157729, 0.11450707167387009, -0.021907124668359756, 0.008877575397491455, 0.05965730920433998, -0.0694035217165947, 0.0203993022441864, 0.056510549038648605, 0.030593492090702057, 0.004826669581234455, -0.01510007306933403, -0.015023589134216309, -0.012794635258615017, -0.001903898548334837, 0.003796870820224285, 0.0037996023893356323, -0.006697789300233126, 0.022726593539118767, 0.06070622801780701, -0.049998506903648376, -0.005555996671319008, -0.0012333000777289271, -0.006970945745706558, 0.06066252291202545, 0.022770298644900322, -0.042328279465436935, -0.02746858447790146, -0.0514407716691494, 0.06525154411792755, -0.011789420619606972, 0.03708368167281151, 0.022661035880446434, -0.05179041251540184, 0.04007747396826744, -0.02700968272984028, 0.05948248878121376 ]
43,292
plumage
get_path
Returns installation path of the theme. Used in ``pelicanconf.py`` to dynamiccaly fetch theme location on the system.
def get_path() -> str: """Returns installation path of the theme. Used in ``pelicanconf.py`` to dynamiccaly fetch theme location on the system. """ return str(PLUMAGE_ROOT)
() -> str
[ 0.032259974628686905, -0.05805018171668053, 0.05342891812324524, -0.019587047398090363, 0.02932724915444851, -0.007034096401184797, 0.04525283724069595, 0.04319104179739952, -0.018102912232279778, 0.029149509966373444, 0.07600200921297073, -0.014530319720506668, 0.003681458532810211, 0.004834552761167288, -0.043724264949560165, 0.0018962733447551727, 0.01946263015270233, -0.014512545429170132, -0.029558314010500908, 0.009366946294903755, 0.04226678982377052, -0.04799004644155502, 0.020564623177051544, -0.014752495102584362, -0.027229906991124153, 0.055632904171943665, 0.045146189630031586, 0.007349586579948664, -0.034890539944171906, -0.04983855038881302, 0.005523298867046833, -0.018396183848381042, -0.005341114476323128, 0.050265129655599594, -0.013997096568346024, 0.05812127888202667, -0.0030393695924431086, 0.01775631681084633, -0.03675682097673416, -0.056948188692331314, 0.04774120822548866, 0.014094853773713112, 0.04034718498587608, -0.039422933012247086, 0.010620019398629665, 0.014539206400513649, -0.033077582716941833, -0.051580410450696945, -0.013899339362978935, 0.022519772872328758, 0.03817874565720558, -0.01270847488194704, -0.0628136396408081, -0.01884053647518158, 0.006074295379221439, 0.038214296102523804, 0.0014530319022014737, -0.04258672147989273, -0.02339070290327072, 0.046710312366485596, 0.01283289398998022, 0.02731877751648426, 0.06356015056371689, 0.004108036868274212, 0.014628076925873756, 0.035477086901664734, -0.010415617376565933, -0.03270432725548744, 0.014796930365264416, 0.024528244510293007, -0.026394525542855263, 0.051224928349256516, -0.04976745322346687, -0.048594363033771515, 0.04045383259654045, -0.05744586139917374, 0.0386764220893383, -0.019249340519309044, 0.018538376316428185, 0.014565867371857166, -0.07379802316427231, 0.007553988602012396, 0.02371063642203808, -0.009553574025630951, 0.10508042573928833, 0.02303522266447544, 0.04699469730257988, 0.012086382135748863, -0.004736795090138912, -0.010193441063165665, 0.012068607844412327, -0.013179488480091095, 0.01777409017086029, 0.015943359583616257, 0.019960304722189903, -0.04880765452980995, -0.022146517410874367, -0.044897355139255524, 0.04781230539083481, 0.01884053647518158, -0.019533725455403328, 0.034161802381277084, 0.02802974171936512, 0.0018473946256563067, 0.05271795392036438, -0.024741534143686295, -0.012388541363179684, 0.044897355139255524, 0.029167283326387405, -0.037503331899642944, -0.02111561968922615, -0.01811179891228676, 0.0004301885492168367, -0.016867611557245255, 0.020369108766317368, 0.020102497190237045, -0.06096513196825981, -0.010388956405222416, 0.034872766584157944, 0.04592825099825859, -0.05236247181892395, 0.08161862194538116, 0.015543442219495773, -0.016512131318449974, 0.02659003995358944, 0.017854074016213417, -0.021524423733353615, 0.022946352139115334, -0.049554165452718735, -0.017205320298671722, 0.028314126655459404, 0.0655863955616951, -0.03183339536190033, -0.08076547086238861, -0.028100837022066116, 0.03018040582537651, 0.04649702087044716, 0.035956986248493195, 0.03647243604063988, 0.06725715845823288, -0.026927746832370758, 0.025932397693395615, -0.04862991347908974, -0.03577924519777298, -0.00083927036030218, 0.06921231001615524, 0.02230648323893547, 0.050016291439533234, -0.02349734865128994, 0.024066118523478508, 0.021382231265306473, -0.061142873018980026, 0.0021739935036748648, -0.01412151474505663, 0.0029105073772370815, -0.026643361896276474, -0.0013586070854216814, 0.040382735431194305, 0.019000502303242683, -0.06356015056371689, 0.02754984050989151, 0.018787214532494545, -0.00977575033903122, -0.04898539558053017, -0.05783689022064209, 0.03896080702543259, 0.0001717699196888134, 0.0208845566958189, 0.03195781633257866, -0.0200314000248909, 0.01269958820194006, -0.08076547086238861, -0.04628373309969902, -0.020244689658284187, 0.008264952339231968, 0.05499303713440895, 0.03924519196152687, 0.009242527186870575, 0.04226678982377052, 0.04255117475986481, -0.019355984404683113, -0.003241549711674452, -0.05812127888202667, 0.09029237926006317, 0.03323755040764809, -0.012726249173283577, 0.010700002312660217, 0.00025508596445433795, 0.006509760860353708, 0.09455816447734833, -0.07678407430648804, 0.045963797718286514, 0.04802559316158295, -0.0028060846962034702, 0.0009981263428926468, -0.02124003879725933, 0.10330301523208618, -0.03492609038949013, -0.0646621435880661, -0.0006209823186509311, 0.026909973472356796, -0.028207482770085335, 0.014601415954530239, 0.03963622450828552, 0.04112924635410309, -0.044897355139255524, -0.026270106434822083, -0.017436383292078972, -0.05030067637562752, 0.08716414123773575, -0.003274876158684492, -0.03928074240684509, 0.007002991624176502, 0.020333560183644295, -0.021488875150680542, -0.011730900034308434, -0.06615516543388367, 0.02063572034239769, -0.05773024633526802, 0.020457979291677475, -0.026270106434822083, -0.04425748810172081, 0.04194685444235802, -0.02387060411274433, -0.019533725455403328, -0.018040701746940613, 0.0030104867182672024, -0.021311134099960327, 0.00431910390034318, -0.03483721986413002, -0.027016617357730865, -0.027265455573797226, 0.011224338784813881, 0.009891281835734844, 0.02991379424929619, -0.05474419891834259, -0.02061794511973858, 0.004905648995190859, 0.033077582716941833, -0.0006015418912284076, -0.011881980113685131, -0.012664039619266987, 0.06722161173820496, 0.030802499502897263, -0.003925852477550507, 0.010175666771829128, -0.01884053647518158, 0.0029593862127512693, -0.006807476747781038, -0.02267974056303501, 0.0075673190876841545, -0.007247385568916798, -0.004554610699415207, -0.025097016245126724, 0.008144977502524853, -0.008198299445211887, -0.0042524514719843864, 0.02554136887192726, 0.010060135275125504, 0.010495600290596485, 0.016032230108976364, -0.03533489257097244, -0.02875847928225994, -0.0011430962476879358, -0.00598986865952611, -0.05310898274183273, -0.016876500099897385, 0.025470271706581116, -0.07614420354366302, 0.01612110063433647, 0.07948573678731918, 0.08282726258039474, -0.026145687326788902, -0.009855733253061771, 0.012201913632452488, -0.039778415113687515, -0.028065290302038193, 0.026909973472356796, -0.027158811688423157, 0.00018329531303606927, -0.03686346486210823, -0.0035859227646142244, 0.02888289839029312, 0.004519062582403421, -0.06085848808288574, -0.020226916298270226, 0.0014852475142106414, -0.03842758387327194, 0.0034081819467246532, 0.009313623420894146, 0.07514885812997818, 0.010948839597404003, -0.07365583628416061, -0.02982492372393608, 0.048381075263023376, 0.03257991001009941, 0.004367982968688011, -0.014112628065049648, -0.01168646477162838, -0.06075184419751167, 0.006749710999429226, 0.003525935346260667, -0.041200343519449234, 0.01056669745594263, -0.030500339344143867, 0.039991702884435654, 0.033326420933008194, -0.03522824868559837, 0.02504369430243969, 0.035477086901664734, -0.005523298867046833, -0.02550582028925419, 0.00984684657305479, 0.0016296620015054941, -0.01908937282860279, -0.018413959071040154, 0.031086884438991547, -0.017978493124246597, -0.015703409910202026, 0.01894718036055565, -0.032970938831567764, 0.058370113372802734, 0.028349675238132477, -0.04141363129019737, 0.00781171303242445, -0.016760967671871185, -0.01894718036055565, 0.004958971403539181, -0.0009642444201745093, 0.042764462530612946, -0.02824302949011326, 0.03506828099489212, 0.012628491967916489, 0.03736113756895065, 0.05022957921028137, -0.0059098852798342705, 0.06597742438316345, -0.02671445906162262, -0.055384065955877304, -0.049660809338092804, 0.059578754007816315, -0.03935183584690094, -0.05666380003094673, 0.01788073591887951, 0.012841780669987202, 0.05918772146105766, 0.02276861108839512, 0.01151761133223772, 0.03615250065922737, -0.04735017940402031, -0.00006377149111358449, 0.030322598293423653, -0.06046745553612709, -0.004439079202711582, -0.049909647554159164, -0.009757976047694683, -0.0774950385093689, 0.014130402356386185, -0.019978078082203865, 0.11489172279834747, -0.024634890258312225, -0.0050211804918944836, 0.014805817976593971, 0.05648605898022652, -0.038711968809366226, 0.017978493124246597, -0.021755486726760864, 0.03718339651823044, 0.056948188692331314, 0.007522883825004101, 0.03707675263285637, -0.004356874153017998, -0.03888970986008644, -0.02682110294699669, 0.012006398290395737, -0.018396183848381042, -0.0187161173671484, 0.006487543229013681, -0.04802559316158295, -0.01730307750403881, 0.04983855038881302, 0.040951505303382874, -0.013037296012043953, -0.04948306828737259, 0.017223093658685684, -0.039991702884435654, -0.00990905612707138, -0.0488787516951561, -0.035974759608507156, -0.054210975766181946, -0.036899011582136154, -0.0036859021056443453, 0.05751695856451988, -0.006909677758812904, 0.0181384589523077, -0.06907011568546295, -0.005056729074567556, 0.015676748007535934, 0.019942529499530792, 0.013383890502154827, 0.08019670099020004, -0.028189707547426224, 0.005936546251177788, -0.012655152939260006, -0.003281541634351015, -0.0680747702717781, -0.031104659661650658, 0.03224220126867294, -0.035956986248493195, 0.01509909052401781, -0.019871434196829796, -0.02479485608637333, 0.023923926055431366, -0.03803655505180359, 0.014290369115769863, -0.02669668383896351, -0.05371330305933952, -0.018271764740347862, 0.06000532954931259, -0.016165535897016525, -0.008242734707891941, -0.028474094346165657, 0.015001332387328148, 0.029504990205168724, 0.022093195468187332, 0.023355156183242798, -0.01955150067806244, 0.04464851692318916, 0.02113339491188526, 0.05566845089197159, 0.03005598857998848, -0.018094023689627647, 0.019995851442217827, -0.005136712454259396, 0.015187961049377918, -0.012557394802570343, 0.027834225445985794, -0.022235387936234474, -0.0835382267832756, -0.05954320356249809, 0.03924519196152687, -0.020564623177051544, -0.006571969948709011, 0.02874070405960083, 0.05485084280371666, 0.06210267171263695, -0.04958971217274666, 0.004176911432296038, -0.0027105489280074835, -0.023461800068616867, -0.05509968101978302, 0.026643361896276474, 0.02145332843065262, 0.04329768568277359, -0.024723760783672333, -0.017951831221580505, -0.06448440253734589, -0.03401961177587509, -0.0413069874048233, 0.0001248352200491354, -0.014628076925873756, 0.02826080471277237, 0.07770832628011703, -0.0218088086694479, 0.05581064522266388, -0.10451165586709976, -0.004683473147451878, -0.004188020247966051, -0.014823591336607933, 0.01306395698338747, 0.0008453801856376231, -0.010948839597404003, -0.02706994116306305, 0.006003199145197868, 0.04799004644155502, 0.014983559027314186, -0.040276091545820236, 0.05040732026100159, -0.024741534143686295, -0.03874751925468445, -0.061818286776542664, -0.0009331397595815361, 0.03640133887529373, -0.017480818554759026, -0.013686049729585648, -0.02387060411274433, -0.05705483257770538, 0.028189707547426224, 0.00533667067065835, 0.024617115035653114, 0.034659478813409805, 0.052291374653577805, -0.05982758849859238, -0.02395947463810444, -0.034055158495903015, -0.00007623418787261471, 0.0422312393784523, 0.06260034441947937, 0.029060639441013336, 0.016840951517224312, -0.0033304202370345592, -0.052540212869644165, 0.005016737151890993, 0.042764462530612946, -0.017018692567944527, -0.05869004875421524, -0.009997925721108913, 0.012815119698643684, 0.02408389374613762, 0.02577243186533451, 0.016840951517224312, -0.03101578913629055, -0.003583701094612479, -0.04411529377102852, 0.017614124342799187, 0.012628491967916489, 0.0015652308939024806, 0.08076547086238861, 0.032366618514060974, -0.0409870520234108, -0.03768107295036316, -0.013321680948138237, -0.025576917454600334, -0.02443937584757805, -0.04592825099825859, 0.043724264949560165, 0.0413069874048233, -0.03956512734293938, -0.050513967871665955, 0.07308705896139145, 0.03327309712767601, -0.0017296412261202931, -0.018698344007134438, -0.002490594517439604, 0.012157478369772434, 0.07678407430648804, -0.08858606964349747, -0.031157981604337692, 0.003450395306572318, -0.06540865451097488, -0.0071851760149002075, -0.0748644694685936, 0.009589121676981449, -0.022235387936234474, 0.01175756100565195, 0.0015385696897283196, 0.013446100056171417, -0.013917112722992897, 0.06409337371587753, -0.006531978491693735, 0.06210267171263695, -0.010166780091822147, 0.01668987050652504, 0.006611961871385574, -0.008949254639446735, 0.012086382135748863, -0.0016096661565825343, 0.01885830983519554, 0.010326746851205826, -0.0010742215672507882, -0.0474923700094223, -0.05019403249025345, -0.04375981166958809, -0.002968273125588894, 0.01799626648426056, -0.015925586223602295, -0.10436946153640747, 0.04233788326382637, -0.008269395679235458, -0.012308557517826557, 0.028562964871525764, 0.052184730768203735, 0.044186390936374664, -0.06011197715997696, -0.01597890816628933, 0.00977575033903122, 0.057552505284547806, -0.02136445790529251, 0.06487543135881424, 0.015321265906095505, -0.012966198846697807, -0.03601030632853508, 0.09299404174089432, 0.024279408156871796, -0.03903190419077873, -0.02052907459437847, 0.020102497190237045, 0.034161802381277084, -0.014876914210617542, -0.004852326586842537, 0.00020940101239830256, 0.0045679411850869656, 0.049198683351278305, -0.008358266204595566, 0.0031282398849725723, -0.038818612694740295, 0.00817608181387186, -0.04425748810172081, 0.030322598293423653, 0.027532067149877548, -0.013543857261538506, 0.04045383259654045, -0.03849868103861809, 0.03222442790865898, -0.037858814001083374, -0.017214206978678703, 0.00905589945614338, 0.001063668285496533, 0.0019018277525901794, -0.029202831909060478, -0.026661137118935585, -0.035708148032426834, 0.024386052042245865, -0.033593032509088516, -0.036436885595321655, 0.03197558969259262, 0.05047841742634773, -0.015907811000943184, -0.022573094815015793, -0.003939182963222265, -0.06021862104535103, 0.04923423007130623, 0.0015952246030792594, -0.013188375160098076, 0.0312468521296978, 0.014885800890624523, 0.007985010743141174, -0.0008848164579831064, -0.014983559027314186, -0.002070681657642126, 0.02875847928225994, -0.006380898412317038, 0.04272891581058502, -0.04464851692318916, -0.005345557816326618, 0.012975086458027363, -0.0009981263428926468, -0.01728530414402485, 0.009340284392237663, -0.017000917345285416, 0.004454631358385086, 0.05381994694471359, -0.04226678982377052, -0.009047011844813824, 0.012761796824634075, -0.002848298056051135, -0.03707675263285637, 0.012370767071843147, 0.002737209899351001, -0.004772343207150698, -0.010886630974709988, -0.0739402174949646, 0.02708771452307701, 0.012815119698643684, -0.042764462530612946, 0.033593032509088516, 0.04653257131576538, -0.007971679791808128, -0.02147110179066658, -0.041093699634075165, 0.007065201178193092, 0.007429569959640503, -0.0453239306807518, 0.0070829750038683414, 0.0321711041033268, -0.03114020638167858, 0.005767692346125841, -0.007394021842628717, 0.002151775872334838, -0.043582070618867874, -0.005638830363750458, 0.016912046819925308, -0.008322717621922493, -0.09555350989103317, 0.015507894568145275, 0.030624758452177048, -0.059578754007816315, 0.02779867872595787, 0.06789702922105789, 0.01859169825911522, -0.016503242775797844, 0.016503242775797844, -0.05701928213238716, 0.029256153851747513, -0.009171430952847004, 0.08019670099020004, -0.011428740806877613, 0.062422607094049454, -0.007109636440873146, 0.011357643641531467, -0.12491630762815475, -0.020475752651691437, -0.0009625781094655395, -0.02874070405960083, 0.06217376887798309, -0.015614538453519344, 0.007167402189224958, 0.01612110063433647, 0.016769854351878166, -0.007758390624076128, 0.04898539558053017, 0.031655654311180115, -0.0002804973628371954, 0.023461800068616867, 0.00013038961333222687, -0.019658144563436508, -0.0036459104157984257, -0.026199009269475937, -0.07521995157003403, 0.07521995157003403, -0.009286962449550629, -0.0527535006403923, 0.027620937675237656, -0.04198240116238594, 0.02278638444840908, -0.039671771228313446, -0.06178274005651474, 0.025576917454600334, -0.007660632953047752, -0.07002991437911987, -0.011437627486884594, -0.0015585656510666013, 0.0218088086694479, 0.01670764572918415, 0.03288206830620766, 0.03771661967039108, 0.011153241619467735, -0.005594395101070404, 0.023639541119337082, 0.04230233654379845, -0.05143821984529495, 0.016298841685056686, 0.01597002148628235, 0.024599341675639153, 0.016645435243844986, 0.013277245685458183, 0.005443315487354994, 0.010682228952646255, 0.004696803633123636, -0.03892526030540466, 0.04425748810172081, 0.0026572265196591616, -0.04162691906094551, 0.006185383535921574, 0.06654619425535202, 0.0024994814302772284, -0.006256479769945145, -0.0058387890458106995, 0.02801196649670601, 0.07184287905693054, 0.012521847151219845, -0.006132061127573252, -0.05047841742634773, 0.025221435353159904, -0.029362797737121582, -0.0826139748096466, 0.02863406017422676, -0.04248007759451866, -0.000015647796317352913, 0.0023772846907377243, 0.026394525542855263, -0.07507775723934174, 0.037254493683576584, -0.01621885783970356, 0.10479603707790375, -0.010682228952646255, -0.049660809338092804, -0.014148176647722721 ]
43,294
plumage.config
register_signals
null
def register_signals() -> None: signals.initialized.connect(check_config) signals.static_generator_finalized.connect(add_favicon_assets) signals.content_written.connect(transform)
() -> NoneType
[ -0.062046732753515244, -0.020694563165307045, 0.03749041631817818, -0.0061436984688043594, 0.016980627551674843, 0.04885394871234894, -0.04726490378379822, 0.0533624067902565, 0.01659260503947735, 0.046562764793634415, 0.04416071996092796, 0.06892028450965881, 0.09268207848072052, 0.020177198573946953, -0.012592271901667118, -0.04623017460107803, -0.00043999042827636003, 0.04489981010556221, -0.004665515385568142, -0.05173640698194504, -0.06855073571205139, 0.007852847687900066, 0.014948125928640366, -0.014744875952601433, 0.015761127695441246, 0.060790278017520905, -0.04268253594636917, 0.01962287910282612, 0.04774531349539757, 0.032002661377191544, -0.038395803421735764, -0.0306538213044405, 0.03998485207557678, -0.05883168429136276, 0.010421190410852432, -0.04885394871234894, 0.05705786496400833, 0.009654383175075054, -0.011160282418131828, 0.11049418151378632, 0.044788945466279984, -0.008060717023909092, -0.016176866367459297, -0.03157768398523331, 0.008143864572048187, 0.06042073294520378, -0.07900888472795486, 0.05299286171793938, 0.00798218883574009, -0.004092719405889511, 0.0036954577080905437, -0.0035153040662407875, 0.029341934248805046, 0.05107122287154198, 0.03135595843195915, 0.039356622844934464, 0.04142608121037483, 0.06149241328239441, 0.03909794241189957, -0.0036400258541107178, 0.04937131330370903, 0.026256226003170013, 0.0069105057045817375, -0.007478682324290276, 0.04186953604221344, 0.010347281582653522, 0.0629706010222435, -0.04271949082612991, -0.029323456808924675, -0.020380448549985886, -0.014597057364881039, -0.05757522955536842, -0.00012594870349857956, -0.005982021801173687, 0.019197901710867882, -0.019068561494350433, -0.015216046944260597, -0.012712374329566956, -0.02156299538910389, 0.03673284873366356, 0.04715403914451599, -0.05909036844968796, -0.03846971318125725, -0.016417071223258972, 0.03353627771139145, -0.04948217794299126, 0.003122661728411913, -0.04408681020140648, 0.03370257467031479, 0.017664287239313126, -0.04933435842394829, -0.008425643667578697, 0.025664953514933586, 0.025775816291570663, -0.02256076969206333, 0.018893027678132057, -0.03817407786846161, -0.028565887361764908, 0.056318774819374084, 0.008046858943998814, -0.010550531558692455, 0.018043071031570435, -0.05572750046849251, -0.03608614206314087, -0.0111140888184309, -0.06633346527814865, -0.029341934248805046, -0.011585259810090065, -0.0680333748459816, -0.041315216571092606, 0.01197328232228756, -0.017497992143034935, 0.007409392390400171, 0.006319232750684023, -0.014661728404462337, -0.03440470993518829, 0.006337709724903107, 0.009543519467115402, 0.029674524441361427, -0.055357955396175385, -0.05402759090065956, 0.04190649092197418, 0.014051977545022964, 0.04648885875940323, 0.013479181565344334, 0.00930793397128582, 0.07028760761022568, 0.05436018109321594, -0.00047203697613440454, 0.007815892808139324, 0.006185272242873907, -0.018126219511032104, -0.02315204218029976, -0.03765671327710152, -0.02697684057056904, -0.011049418710172176, 0.012823238037526608, -0.03787843883037567, 0.0003094945859629661, 0.03640025854110718, -0.051847271621227264, 0.03207657113671303, -0.019401151686906815, -0.008716660551726818, -0.01518833078444004, 0.017645809799432755, -0.0008967258618213236, 0.005598618183284998, -0.034441664814949036, -0.06744210422039032, 0.07084192335605621, 0.01104017999023199, -0.04212821647524834, 0.025166066363453865, -0.06215759739279747, -0.0099130654707551, -0.014486193656921387, 0.05849909409880638, 0.009266359731554985, 0.056318774819374084, -0.008619654923677444, 0.03342541307210922, 0.00882752425968647, -0.005732578691095114, -0.06474442034959793, 0.03381343558430672, 0.03726869076490402, -0.004951913375407457, 0.02889847941696644, 0.010421190410852432, -0.020417403429746628, -0.003201190149411559, -0.0399109423160553, 0.023281382396817207, 0.042423851788043976, 0.031411390751600266, 0.022634677588939667, 0.015040512196719646, 0.01654641143977642, -0.005880396813154221, 0.055542729794979095, -0.0540645457804203, -0.03641873598098755, 0.07535038143396378, 0.018578913062810898, 0.013848727568984032, -0.0330558679997921, 0.008970723487436771, 0.036160051822662354, -0.06943764537572861, 0.08351734280586243, 0.004757901653647423, -0.042091261595487595, -0.02300422452390194, 0.04164780676364899, 0.03547639399766922, 0.007122994400560856, -0.021526040509343147, -0.04667362943291664, -0.0033374601043760777, 0.018588151782751083, -0.00918321218341589, -0.0169436726719141, -0.041610851883888245, 0.041943445801734924, 0.012656942009925842, 0.03303739055991173, 0.004242847207933664, -0.0003675248008221388, 0.016888242214918137, 0.05994032323360443, -0.03647416830062866, -0.03660350665450096, -0.0029910109005868435, -0.009284837171435356, -0.03961530700325966, -0.010088599286973476, -0.012000998482108116, 0.003076468361541629, -0.05591227486729622, 0.03628939390182495, 0.042867306619882584, -0.057279594242572784, 0.020251108333468437, -0.03898707777261734, 0.02366940677165985, 0.016684990376234055, -0.016010569408535957, -0.02172929048538208, -0.05055386200547218, 0.03972616791725159, 0.07664379477500916, 0.015123660676181316, -0.0067118750885128975, 0.009580474346876144, 0.025055203586816788, 0.07782633602619171, 0.017230071127414703, 0.016583366319537163, 0.02335529215633869, -0.02697684057056904, -0.004864146001636982, 0.025184543803334236, -0.029785389080643654, 0.05443409085273743, -0.0011819690698757768, -0.002487504854798317, -0.027290955185890198, -0.033443890511989594, -0.015483967028558254, 0.0066703008487820625, 0.00530760083347559, 0.001447002636268735, -0.014245988801121712, -0.057760003954172134, -0.01828327588737011, 0.026884453371167183, 0.023059654980897903, 0.025313884019851685, -0.03832189738750458, 0.009885349310934544, 0.07032455503940582, -0.024001996964216232, 0.009968496859073639, 0.004748662933707237, -0.0024413117207586765, 0.025664953514933586, 0.03924575820565224, -0.0706571489572525, 0.004520006477832794, 0.08033924549818039, 0.04453026503324509, -0.08418252319097519, 0.014597057364881039, -0.03832189738750458, -0.02474108897149563, -0.04009571671485901, 0.011927089653909206, -0.009469609707593918, -0.0038894691970199347, 0.02285640500485897, 0.030561434105038643, 0.04756053909659386, -0.019438106566667557, 0.02106410823762417, -0.025997543707489967, 0.03579050675034523, -0.0074602048844099045, -0.05066472291946411, -0.07516560703516006, 0.040169622749090195, 0.01936419866979122, -0.00460084481164813, 0.058573003858327866, 0.027272477746009827, -0.01995547115802765, -0.06311841309070587, 0.03253850340843201, 0.020010903477668762, 0.0010918922489508986, -0.018652822822332382, -0.0057371980510652065, 0.0305244792252779, 0.06788555532693863, -0.051699452102184296, 0.004859526641666889, 0.004702469799667597, 0.008656609803438187, -0.03309282287955284, 0.007584926672279835, -0.012998771853744984, 0.01173307839781046, 0.0340166874229908, 0.02553561143577099, -0.013174306601285934, 0.037157826125621796, 0.012490646913647652, 0.06877246499061584, 0.013479181565344334, 0.046377994120121, 0.0013211261248216033, 0.04922349378466606, -0.04076089709997177, -0.03372105211019516, 0.05979250371456146, 0.010393474251031876, 0.00007982765964698046, -0.006277658510953188, -0.04042830690741539, -0.0237987469881773, 0.004605464171618223, 0.023577019572257996, -0.022006450220942497, -0.012093384750187397, -0.011539066210389137, 0.002466717967763543, -0.006813500076532364, -0.05096036195755005, -0.03446014225482941, -0.06825510412454605, 0.004046526271849871, 0.07180274277925491, -0.002120268763974309, -0.009580474346876144, -0.02045435830950737, -0.009441894479095936, -0.02730943262577057, 0.011557543650269508, -0.048484403640031815, 0.015502444468438625, -0.04046526178717613, 0.04696926474571228, -0.04412376508116722, 0.01679585501551628, 0.01792296953499317, -0.06337709724903107, -0.045306310057640076, -0.03455252945423126, -0.0068227387964725494, 0.0026699681766331196, 0.0013892611023038626, 0.0860302522778511, -0.004506148863583803, -0.04364335536956787, 0.05798172950744629, -0.010171746835112572, 0.03098641149699688, 0.031097276136279106, 0.006180652882903814, -0.055357955396175385, 0.003090326441451907, 0.04571281000971794, -0.05114513263106346, 0.007196903694421053, 0.05827736854553223, -0.08115225285291672, 0.07945233583450317, 0.040021806955337524, -0.06685082614421844, 0.04489981010556221, -0.044788945466279984, 0.02525845356285572, -0.005159782711416483, -0.04811485856771469, -0.010763020254671574, -0.006185272242873907, 0.02974843420088291, 0.08625198155641556, -0.021211925894021988, -0.021045630797743797, 0.0015844274312257767, -0.011797748506069183, -0.04390203580260277, -0.0057926299050450325, 0.011169521138072014, -0.06075332313776016, -0.004307517781853676, 0.05691004917025566, 0.03806321322917938, 0.02058369852602482, -0.03660350665450096, -0.011160282418131828, -0.04504762962460518, -0.0006299600354395807, 0.06670300662517548, 0.008832143619656563, 0.0031757839024066925, 0.02923106960952282, 0.0540645457804203, -0.026422521099448204, -0.011539066210389137, 0.0188653115183115, -0.010504337958991528, -0.07287442684173584, 0.02974843420088291, -0.06441182643175125, 0.0591273233294487, -0.02270858734846115, -0.032372210174798965, 0.03708391636610031, -0.021304313093423843, 0.012740090489387512, 0.04981476813554764, 0.0033490085043013096, 0.026330135762691498, 0.0016329303616657853, -0.004573128651827574, 0.07908279448747635, -0.03769366815686226, 0.00789904035627842, 0.01687900349497795, 0.04700621962547302, -0.04168476164340973, 0.019696788862347603, -0.01591818407177925, -0.019438106566667557, 0.05687309429049492, -0.022948792204260826, -0.0331852100789547, 0.028399592265486717, -0.04556499421596527, -0.02156299538910389, 0.01381177268922329, -0.029656047001481056, 0.02383570186793804, 0.032852619886398315, 0.03601223602890968, 0.014569342136383057, -0.00551085127517581, -0.0025591044686734676, -0.08285216242074966, -0.026440998539328575, 0.0012102624168619514, -0.020029380917549133, 0.03514380380511284, 0.0030256558675318956, 0.0584251843392849, -0.08920834958553314, -0.04489981010556221, -0.05495145544409752, -0.012592271901667118, -0.01023641787469387, -0.07113756239414215, -0.006166794802993536, 0.006448573432862759, -0.011428202502429485, -0.04201735183596611, 0.010374997742474079, -0.01951201632618904, 0.04294121637940407, 0.027050750330090523, 0.05181031674146652, -0.001841954654082656, -0.03782301023602486, 0.011197236366569996, -0.04604540020227432, -0.017913730815052986, -0.03503293916583061, -0.051034267991781235, -0.011298861354589462, 0.0415738970041275, 0.038913168013095856, 0.018625106662511826, 0.01086464524269104, -0.01932724379003048, -0.033000435680150986, 0.006605630274862051, -0.06980719417333603, -0.01486497838050127, -0.008882956579327583, 0.03542096167802811, -0.030265798792243004, -0.009294075891375542, -0.03320368751883507, 0.02603449858725071, 0.0019077799515798688, -0.03725021332502365, 0.02206188254058361, 0.05332545191049576, -0.013386795297265053, -0.01962287910282612, -0.0425347164273262, -0.014375329948961735, 0.039393577724695206, -0.03658502921462059, 0.016417071223258972, -0.017562663182616234, -0.0020948625169694424, -0.009783724322915077, -0.03950444236397743, 0.015123660676181316, -0.02590515837073326, -0.055062320083379745, -0.0028755280654877424, 0.03069077618420124, -0.044825900346040726, -0.021932540461421013, 0.033628664910793304, -0.017959924414753914, -0.0035869034472852945, 0.004647037945687771, -0.02202492766082287, 0.05897950381040573, -0.01588122919201851, -0.0009717898792587221, -0.03806321322917938, -0.009086206555366516, -0.03931966796517372, 0.021470608189702034, 0.04201735183596611, 0.030561434105038643, 0.007243096828460693, -0.05868386849761009, -0.01613067276775837, -0.01744255982339382, 0.042423851788043976, 0.04345858097076416, 0.0052429307252168655, 0.03165159374475479, 0.003446014132350683, -0.03854362294077873, 0.014162841252982616, 0.007030608132481575, -0.014440000988543034, 0.015955138951539993, -0.034607961773872375, 0.007723506540060043, -0.02383570186793804, 0.019401151686906815, -0.03813712298870087, -0.058240413665771484, -0.03656655177474022, 0.004004952032119036, -0.032353732734918594, 0.004970390349626541, -0.05860995873808861, 0.028030045330524445, 0.012462930753827095, 0.02078694850206375, 0.04515849053859711, -0.01765504851937294, 0.03257545828819275, -0.037139348685741425, 0.03693610057234764, -0.009497325867414474, 0.03224286809563637, -0.0067118750885128975, -0.010892361402511597, -0.046562764793634415, 0.006928983144462109, 0.026089930906891823, 0.033000435680150986, 0.0111140888184309, -0.059681639075279236, -0.02256076969206333, -0.0019378055585548282, -0.013848727568984032, 0.03776757791638374, -0.05284504219889641, -0.061307642608881, -0.012795521877706051, 0.036344826221466064, -0.013941113837063313, 0.01644478552043438, 0.0661117359995842, -0.023558542132377625, 0.049297403544187546, 0.0980774462223053, -0.025646476075053215, 0.05491450056433678, -0.05997727811336517, 0.04763444885611534, -0.05846213921904564, -0.040021806955337524, 0.03961530700325966, -0.018107742071151733, -0.0032381447963416576, -0.03597528114914894, -0.03274175524711609, -0.03198418393731117, -0.01502203568816185, 0.011686884798109531, -0.033333029597997665, -0.059349048882722855, 0.0024967435747385025, -0.028695227578282356, 0.03133748099207878, -0.010753781534731388, 0.014190557412803173, -0.02553561143577099, -0.023373769596219063, 0.055025365203619, -0.002326983492821455, 0.00011461693065939471, 0.0015786533476784825, -0.0010503183584660292, -0.04815181344747543, -0.024574793875217438, 0.03752737119793892, 0.05188422650098801, 0.018495764583349228, -0.022874882444739342, -0.00927559845149517, -0.02045435830950737, 0.01934572122991085, 0.012490646913647652, -0.02601602114737034, 0.04175867140293121, -0.035882893949747086, 0.005219833925366402, 0.05916427820920944, -0.026958363130688667, 0.012065669521689415, -0.05484059080481529, 0.04582367464900017, 0.014744875952601433, -0.07250487804412842, -0.0012610749108716846, -0.00699365371838212, 0.015243763104081154, 0.031060321256518364, -0.03142986819148064, 0.042091261595487595, -0.0456758551299572, 0.02573886327445507, 0.05251245200634003, -0.029970161616802216, -0.08255652338266373, 0.017812104895710945, -0.07960015535354614, 0.05642963945865631, 0.003935662563890219, -0.04493676498532295, 0.042867306619882584, -0.006023596040904522, 0.03192875534296036, -0.027605067938566208, -0.04094567149877548, 0.0003903327160514891, -0.003686218988150358, 0.023041177541017532, 0.008407166227698326, 0.07753070443868637, 0.02989625185728073, 0.0737982913851738, -0.0020394306629896164, -0.014597057364881039, 0.019271811470389366, -0.058240413665771484, -0.021359745413064957, 0.039060987532138824, 0.0007402463816106319, 0.00941417831927538, 0.006924363784492016, 0.005473896395415068, -0.0018916124245151877, -0.029027819633483887, -0.008425643667578697, 0.005760294385254383, -0.03525466471910477, -0.014892694540321827, -0.019123993813991547, 0.033443890511989594, -0.04412376508116722, -0.04186953604221344, -0.04623017460107803, -0.004286730661988258, -0.022412950173020363, -0.0014897313667461276, 0.03464491665363312, 0.006402380298823118, 0.05964468792080879, 0.03531009703874588, -0.023577019572257996, -0.02878761477768421, 0.02875065989792347, -0.014403046108782291, -0.06980719417333603, -0.012444453313946724, -0.07317005842924118, 0.05084949731826782, -0.009497325867414474, 0.0033559375442564487, -0.02363245189189911, -0.005048919003456831, -0.02939736470580101, -0.0018627416575327516, -0.07350265234708786, -0.0023789508268237114, 0.03329607471823692, -0.0013315195683389902, -0.02346615679562092, -0.0169436726719141, -0.03917185217142105, -0.0160475242882967, -0.042276035994291306, 0.028307205066084862, 0.021526040509343147, 0.017784390598535538, 0.0081992968916893, -0.036344826221466064, -0.057279594242572784, -0.008444121107459068, -0.005995879881083965, 0.048816993832588196, -0.00583420367911458, 0.03447861969470978, 0.015908945351839066, 0.016638798639178276, 0.011308100074529648, -0.012841715477406979, -0.005649430677294731, -0.05923818424344063, 0.10339890420436859, 0.006785783916711807, 0.03673284873366356, -0.007155329920351505, -0.005857300478965044, -0.013784056529402733, 0.012241203337907791, 0.04623017460107803, -0.057131774723529816, 0.05687309429049492, 0.01997394859790802, 0.08137397468090057, -0.015890467911958694, -0.006383902858942747, 0.030302751809358597, -0.02971147932112217, 0.08299998193979263, 0.015400819480419159, 0.03423841670155525, -0.04744967445731163, -0.06792251020669937, -0.03723173588514328, 0.03263089060783386, 0.03861753270030022, 0.007196903694421053, -0.05443409085273743, 0.025369316339492798, 0.023613974452018738, -0.021359745413064957, 0.00007286258914973587, -0.03067229874432087, 0.14449238777160645, 0.011686884798109531, 0.033924300223588943, 0.003656193381175399 ]
43,296
mo_dots.datas
Data
Please see https://github.com/klahnakoski/mo-dots/tree/dev/docs#data-replaces-pythons-dict
class Data: """ Please see https://github.com/klahnakoski/mo-dots/tree/dev/docs#data-replaces-pythons-dict """ __slots__ = [SLOT] def __init__(self, *args, **kwargs): """ CONSTRUCT DATA WITH GIVEN PROPERTY VALUES """ if args: raise Exception("only keywords are allowed, not " + args[0].__class__.__name__) _set(self, SLOT, kwargs) def __bool__(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: return True else: return d != None __nonzero__ = __bool__ def __contains__(self, item): value = Data.__getitem__(self, item) if is_data(value) or value: return True return False def __iter__(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: yield from d.items() else: yield from d.__iter__() def __getitem__(self, key): if is_null(key): return Null if key == ".": output = _get(self, SLOT) if is_data(output): return self else: return output key = str(key) d = _get(self, SLOT) if key.find(".") >= 0: seq = _split_field(key) for n in seq: if _get(d, CLASS) is NullType: d = NullType(d, n) # OH DEAR, Null TREATS n AS PATH, NOT LITERAL elif is_many(d): d = [_getdefault(dd, n) for dd in d] else: d = _getdefault(d, n) # EVERYTHING ELSE TREATS n AS LITERAL return to_data(d) else: o = d.get(key) if is_null(o): return NullType(d, key) return to_data(o) def __setitem__(self, key, value): if key == "": get_logger().error("key is empty string. Probably a bad idea") if is_null(key): return Null if key == ".": # SOMETHING TERRIBLE HAPPENS WHEN value IS NOT A Mapping; # HOPEFULLY THE ONLY OTHER METHOD RUN ON self IS from_data() v = from_data(value) if is_many(v): _set(self, CLASS, FlatList) _set(self, SLOT, v) return self try: d = _get(self, SLOT) value = from_data(value) if "." not in key: if value is None: d.pop(key, None) else: d[key] = value return self seq = _split_field(key) for k in seq[:-1]: d = _getdefault(d, k) if is_null(value): try: d.pop(seq[-1], None) except Exception as _: pass elif is_null(d): d[literal_field(seq[-1])] = value elif is_sequence(d): for dd in d: from_data(dd)[seq[-1]] = value else: d[seq[-1]] = value return self except Exception as e: from mo_logs import Log Log.error("can not set key={{key}}", key=key, cause=e) def __getattr__(self, key): d = _get(self, SLOT) v = d.get(key) t = _get(v, CLASS) # OPTIMIZED to_data() if t is dict: return dict_to_data(v) elif t in utils._null_types: return NullType(d, key) elif t is list: return list_to_data(v) elif t in generator_types: return FlatList(list(from_data(vv) for vv in v)) else: return v def __setattr__(self, key, value): d = _get(self, SLOT) value = from_data(value) if value is None: d = _get(self, SLOT) d.pop(key, None) else: d[key] = value return self def __add__(self, other): return _iadd(_iadd({}, self), other) def __radd__(self, other): return _iadd(_iadd({}, other), self) def __iadd__(self, other): return _iadd(self, other) def __or__(self, other): """ RECURSIVE COALESCE OF DATA PROPERTIES """ if not is_data(other): get_logger().error("Expecting Data") d = _get(self, SLOT) output = Data(**d) # COPY output.__ior__(other) return output def __ror__(self, other): """ RECURSIVE COALESCE OF DATA PROPERTIES """ if not is_data(other): get_logger().error("Expecting Data") return to_data(other).__or__(self) def __ior__(self, other): """ RECURSIVE COALESCE OF DATA PROPERTIES """ d = _get(self, SLOT) if not is_data(other): if is_missing(d) or (isinstance(d, dict) and not d): _set(self, SLOT, other) return self for ok, ov in other.items(): if is_null(ov): continue sv = to_data(d.get(ok)) if is_null(sv): d[ok] = ov elif is_data(sv): d[ok] = sv | ov return self def __hash__(self): d = _get(self, SLOT) return hash_value(d) def __eq__(self, other): if self is other: return True d = _get(self, SLOT) if _get(d, CLASS) is not dict: return d == other if not d and is_null(other): return False if not is_data(other): return False e = other for k, v in d.items(): if e.get(k) != v: return False for k, v in e.items(): if d.get(k) != v: return False return True def __ne__(self, other): return not self.__eq__(other) def get(self, key, default=Null): v = self[key] if _get(v, CLASS) == NullType: if default is Null: return NullType(self, key) return default return v def items(self): d = _get(self, SLOT) return [(k, to_data(v)) for k, v in d.items() if v != None or is_data(v)] def leaves(self, prefix=None): """ LIKE items() BUT RECURSIVE, AND ONLY FOR THE LEAVES (non dict) VALUES """ return leaves(self, prefix) def iteritems(self): # LOW LEVEL ITERATION, NO WRAPPING d = _get(self, SLOT) return ((k, to_data(v)) for k, v in d.items()) def pop(self, key, default=Null): if is_null(key): return Null if key == ".": raise NotImplemented() key = str(key) d = _get(self, SLOT) if key.find(".") >= 0: seq = _split_field(key) for n in seq[:-1]: if _get(d, CLASS) is NullType: d = NullType(d, n) # OH DEAR, Null TREATS n AS PATH, NOT LITERAL elif is_many(d): d = [_getdefault(dd, n) for dd in d] else: d = _getdefault(d, n) # EVERYTHING ELSE TREATS n AS LITERAL key = seq[-1] o = d.get(key) if is_null(o): if default is Null: return NullType(d, key) return default d[key] = None return to_data(o) def keys(self): d = _get(self, SLOT) return set(d.keys()) def values(self): d = _get(self, SLOT) return listwrap(list(d.values())) def clear(self): get_logger().error("clear() not supported") def __len__(self): d = _get(self, SLOT) return dict.__len__(d) def copy(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: return Data(**d) else: return copy(d) def __copy__(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: return Data(**self) else: return copy(d) def __deepcopy__(self, memo): d = _get(self, SLOT) return to_data(d
(*args, **kwargs)
[ 0.07113894075155258, -0.031009281054139137, -0.013732385821640491, -0.014561510644853115, -0.020147740840911865, -0.02313259243965149, -0.02381662093102932, -0.008052878081798553, 0.059199538081884384, -0.05397604778409004, -0.020904317498207092, 0.05194469168782234, 0.018904054537415504, 0.04390217736363411, -0.02267657220363617, 0.05463934689760208, -0.005746873561292887, 0.06948068737983704, 0.0023526425939053297, 0.03285408392548561, 0.012955080717802048, -0.023339873179793358, 0.003987574018537998, 0.05667070299386978, -0.00807360652834177, -0.008783544413745403, -0.0017010021256282926, 0.032004229724407196, 0.0073636677116155624, 0.02663564495742321, -0.013110541738569736, -0.035030536353588104, -0.024625016376376152, -0.030615447089076042, 0.02280094102025032, -0.04008820280432701, -0.03849213570356369, -0.002359120175242424, -0.05273235961794853, 0.012426513247191906, 0.020945774391293526, -0.06110652536153793, -0.046016447246074677, -0.015079713426530361, 0.048586733639240265, 0.005093937739729881, -0.00482447212561965, 0.07416524738073349, 0.03297845274209976, -0.07317029684782028, 0.03227369859814644, 0.010757898911833763, -0.024666473269462585, 0.03811902925372124, -0.03080200031399727, 0.03963218256831169, -0.016509953886270523, 0.10604510456323624, 0.030159426853060722, 0.03780810907483101, -0.007990693673491478, 0.046223726123571396, -0.03150675445795059, -0.027402587234973907, -0.015473548322916031, -0.029268117621541023, -0.03959072753787041, -0.03932126238942146, -0.023422785103321075, 0.010472887195646763, -0.037973932921886444, 0.015546096488833427, 0.008337889797985554, 0.0606919601559639, 0.019619174301624298, -0.026656374335289, 0.004977341741323471, -0.02010628581047058, 0.05633905529975891, -0.039113979786634445, 0.002429077634587884, -0.0017372763250023127, -0.06404992192983627, -0.03724844753742218, -0.00736885005608201, 0.08614610135555267, 0.038450680673122406, 0.07557475566864014, -0.0012449832865968347, 0.0004958556964993477, -0.03378685191273689, 0.013556196354329586, -0.02180599234998226, 0.05530264973640442, -0.04738450422883034, -0.05675361678004265, -0.012229596264660358, -0.05517828091979027, -0.03407704457640648, 0.029952146112918854, 0.0017657774733379483, 0.001581815304234624, -0.06060905009508133, 0.004389181267470121, -0.006560452748090029, -0.03158966824412346, -0.003049626015126705, 0.011649208143353462, -0.01140047051012516, -0.04879401624202728, -0.07138767838478088, 0.02856336161494255, -0.02584797702729702, 0.037206992506980896, -0.008959733881056309, 0.03500980883836746, -0.04286577180027962, -0.03486471250653267, -0.026594189926981926, -0.035942576825618744, -0.032791901379823685, 0.06152108684182167, -0.047467414289712906, 0.04381926357746124, 0.03500980883836746, 0.007342939730733633, 0.046431008726358414, -0.01917351968586445, 0.023961717262864113, 0.009752584621310234, 0.03511345013976097, -0.0030366708524525166, 0.00823943130671978, 0.02777569368481636, 0.020044101402163506, 0.0058764247223734856, 0.024521376937627792, -0.003521190956234932, -0.08117135614156723, 0.0073947599157691, 0.028459720313549042, -0.01781582646071911, 0.028397535905241966, 0.01626121625304222, -0.014312773011624813, -0.06521069258451462, 0.031112922355532646, 0.027381857857108116, -0.021163418889045715, -0.021474340930581093, -0.04008820280432701, -0.00841043796390295, -0.007861142978072166, 0.0571267232298851, -0.007073474116623402, -0.014551146887242794, -0.06541797518730164, -0.058287497609853745, -0.01817856915295124, -0.011897945776581764, -0.03374539315700531, -0.054224785417318344, -0.01908024214208126, -0.034926898777484894, -0.036730244755744934, 0.040668588131666183, 0.02109087072312832, -0.06695185601711273, 0.02323623187839985, 0.041373346000909805, 0.026884382590651512, -0.024314096197485924, -0.021267060190439224, 0.026822198182344437, -0.03082272782921791, 0.025578511878848076, -0.03511345013976097, -0.006161436438560486, 0.0035082357935607433, -0.07188515365123749, -0.030283795669674873, -0.028356080874800682, -0.046679746359586716, -0.008389710448682308, 0.021391429007053375, -0.0038994792848825455, 0.006503450684249401, -0.01716289110481739, 0.07586494833230972, 0.07300446927547455, -0.055924493819475174, -0.07341903448104858, -0.0016465907683596015, 0.002445919206365943, 0.0075968592427670956, 0.008996007964015007, 0.031237291172146797, 0.025122491642832756, 0.0044643208384513855, 0.06036031246185303, -0.07118039578199387, -0.05658779293298721, 0.062018562108278275, -0.022718029096722603, -0.07959601283073425, -0.01727689616382122, 0.028604818508028984, 0.026780743151903152, 0.00869544968008995, -0.016302673146128654, -0.01942225731909275, -0.033351559191942215, 0.001725616748444736, 0.006182164419442415, 0.058287497609853745, -0.06512778252363205, -0.009695582091808319, -0.03465742990374565, 0.004658646881580353, 0.015525368973612785, 0.08009348809719086, -0.019214974716305733, -0.03857504948973656, 0.03637786582112312, 0.000492293038405478, -0.036522962152957916, -0.04166353866457939, -0.003912434447556734, 0.029869234189391136, -0.007700500078499317, 0.01495534460991621, 0.0005479999235831201, -0.0024808980524539948, -0.047011397778987885, 0.06935632228851318, -0.025930888950824738, 0.0184065792709589, -0.011877218261361122, 0.011151733808219433, 0.013929302804172039, -0.021619439125061035, -0.04535314440727234, -0.02201327309012413, -0.02877064235508442, -0.027506226673722267, -0.009498665109276772, 0.06160400062799454, 0.044648390263319016, -0.012063771486282349, -0.000492293038405478, 0.023650795221328735, 0.024873754009604454, 0.01602284424006939, 0.027464771643280983, 0.01523517444729805, -0.026801470667123795, 0.01601248048245907, 0.049042753875255585, 0.029620496556162834, -0.0397358238697052, -0.014727335423231125, -0.05563429743051529, -0.007938873022794724, 0.05733400583267212, -0.004697512369602919, 0.02120487578213215, 0.02980704978108406, 0.0036870159674435854, -0.041373346000909805, 0.003065172117203474, 0.08738978952169418, -0.015825927257537842, 0.023049678653478622, 0.019474077969789505, -0.04771615192294121, 0.04593353345990181, 0.04709430783987045, -0.075408935546875, 0.027112392708659172, -0.05157158523797989, -0.009628215804696083, 0.013618380762636662, -0.0034201412927359343, -0.06662020832300186, 0.026573460549116135, 0.002974486444145441, -0.03430505469441414, -0.012747799046337605, -0.0053944955579936504, 0.002568992553278804, 0.043404702097177505, -0.02269730158150196, -0.012167411856353283, 0.05293964222073555, 0.05418333038687706, 0.020375750958919525, -0.07549184560775757, -0.007047563791275024, 0.04311450943350792, -0.027381857857108116, 0.01772255077958107, -0.0449385829269886, 0.11997441202402115, 0.0385957770049572, -0.014696243219077587, -0.028356080874800682, 0.010685350745916367, 0.024334823712706566, 0.03405631706118584, 0.007192660588771105, 0.011711392551660538, 0.02901937998831272, 0.015369907952845097, 0.052317798137664795, 0.039445631206035614, 0.001531290472485125, -0.04522877559065819, 0.01292398851364851, 0.048379454761743546, 0.07138767838478088, -0.03687534108757973, -0.008317161351442337, -0.0016284536104649305, -0.0071563865058124065, 0.021049415692687035, -0.015629008412361145, 0.05352002754807472, -0.023339873179793358, 0.02572360821068287, -0.008104698732495308, 0.001179560087621212, -0.03092636913061142, -0.0021362928673624992, 0.04106242209672928, 0.031112922355532646, 0.010405520908534527, -0.004389181267470121, -0.026034530252218246, 0.018033472821116447, -0.009866589680314064, 0.04286577180027962, 0.01671723648905754, 0.005176850128918886, -0.03304063901305199, 0.059406816959381104, -0.03283335641026497, 0.05538555979728699, 0.00026541721308603883, 0.04962313920259476, 0.055468473583459854, 0.0059023345820605755, -0.028501177206635475, 0.015981387346982956, 0.0007792480755597353, 0.024086086079478264, -0.09543230384588242, 0.028128070756793022, -0.06670311838388443, -0.03013869933784008, 0.0025417867582291365, 0.1261928528547287, 0.018790049478411674, -0.03863723203539848, 0.027609867975115776, 0.02607598714530468, -0.026324722915887833, -0.05567575618624687, -0.006513814441859722, 0.005917880684137344, -0.03803611546754837, -0.003241361118853092, -0.037538640201091766, 0.027340402826666832, -0.023878805339336395, 0.020831769332289696, 0.0024226000532507896, 0.047923434525728226, 0.059987206012010574, -0.018904054537415504, -0.010737170465290546, 0.019795363768935204, -0.037870291620492935, -0.017888374626636505, 0.02597234584391117, 0.06085778772830963, 0.028729187324643135, 0.058287497609853745, 0.01817856915295124, 0.007436216343194246, -0.005907516926527023, -0.034698888659477234, 0.030221611261367798, -0.001233323710039258, -0.009783676825463772, -0.057955849915742874, 0.006244348827749491, 0.006031885743141174, -0.016095392405986786, -0.02731967344880104, -0.010674986056983471, 0.02041720785200596, -0.07171932607889175, 0.020811041817069054, 0.0627233162522316, 0.047260135412216187, -0.052649445831775665, 0.06662020832300186, -0.04750887304544449, -0.01462369505316019, 0.02620035409927368, 0.07188515365123749, -0.002234751358628273, -0.006306533236056566, -0.0012708933791145682, 0.04097951203584671, -0.025868704542517662, 0.040254026651382446, 0.014395685866475105, 0.04759178310632706, 0.08237358182668686, 0.0005026571452617645, -0.011027364991605282, -0.01095481589436531, 0.012322872877120972, -0.0026389500126242638, -0.011245010420680046, -0.049954790621995926, -0.00020355670130811632, -0.014064035378396511, 0.032439522445201874, 0.02111160010099411, -0.049167122691869736, -0.005171668250113726, -0.08647775650024414, -0.01026560552418232, -0.007234117016196251, -0.00369478901848197, -0.05364439636468887, 0.03171403706073761, 0.039010338485240936, 0.012592338025569916, 0.035838935524225235, 0.03179695084691048, -0.03739354386925697, -0.015245539136230946, -0.0005813592579215765, 0.017339080572128296, 0.054349154233932495, 0.004225947428494692, -0.011089549399912357, 0.0031403114553540945, 0.053893133997917175, 0.05360294133424759, 0.029081564396619797, -0.022863125428557396, -0.0336417518556118, -0.02379589155316353, -0.022966766729950905, -0.01049361564218998, 0.0010823969496414065, 0.01909060589969158, -0.0012980990577489138, 0.014996801503002644, 0.006031885743141174, -0.035942576825618744, 0.06392554938793182, -0.0001455017481930554, 0.011504111811518669, -0.03635713830590248, -0.028397535905241966, -0.03080200031399727, -0.0011808555573225021, -0.004516141023486853, -0.03138238564133644, 0.018251117318868637, -0.011929037980735302, 0.02437627874314785, -0.01953626237809658, -0.05849478021264076, -0.07715009897947311, 0.037745922803878784, -0.05609031766653061, 0.0316103957593441, -0.04829654097557068, -0.03563165292143822, -0.017339080572128296, 0.025910161435604095, 0.01974354311823845, -0.01325563807040453, 0.028584089130163193, -0.025765065103769302, 0.009695582091808319, -0.025122491642832756, 0.01253015361726284, 0.0037984296213835478, 0.05269090458750725, 0.002598789054900408, 0.018437670543789864, 0.04485567286610603, -0.07963746786117554, -0.001161422929726541, -0.002357824705541134, -0.006721095647662878, 0.015960659831762314, -0.020292839035391808, -0.022531475871801376, -0.00982513278722763, 0.04572625085711479, -0.02269730158150196, -0.06417428702116013, -0.025806520134210587, -0.05211051553487778, 0.03158966824412346, -0.013856754638254642, -0.025599239394068718, -0.011918674223124981, 0.003290590364485979, 0.01325563807040453, -0.07030981034040451, -0.05032789707183838, 0.004054940305650234, 0.009799223393201828, 0.013297094963490963, -0.025537054985761642, -0.07457980513572693, 0.035486556589603424, -0.01648922637104988, -0.037186264991760254, 0.02437627874314785, -0.01388784684240818, -0.008477805182337761, -0.030843455344438553, 0.003927980549633503, 0.024770114570856094, 0.040792956948280334, 0.03407704457640648, 0.04303159564733505, -0.002798297442495823, -0.05451497808098793, 0.037310633808374405, 0.04539460316300392, 0.06243312358856201, 0.019691722467541695, -0.06098215654492378, 0.026117442175745964, -0.008617719635367393, 0.0029667133931070566, 0.04618227109313011, 0.026241810992360115, 0.00669000344350934, -0.03892742469906807, -0.0036403776612132788, 0.05327128991484642, -0.005596594884991646, -0.015774106606841087, -0.05455643683671951, 0.0055188643746078014, -0.012778891250491142, 0.05517828091979027, -0.005689871497452259, -0.032004229724407196, 0.0426584891974926, -0.030449621379375458, -0.024417735636234283, 0.029765592887997627, 0.0019445576472207904, -0.01671723648905754, 0.018147476017475128, 0.006301351357251406, 0.005544774699956179, 0.00609925203025341, 0.05463934689760208, 0.02041720785200596, -0.01659286767244339, 0.033683210611343384, 0.004409909248352051, -0.06960505992174149, -0.00812542624771595, -0.042824313044548035, -0.10024122893810272, 0.003523781895637512, 0.0756576731801033, -0.012426513247191906, -0.006695185787975788, 0.024334823712706566, -0.007146022282540798, -0.044524021446704865, 0.08237358182668686, 0.00541522353887558, -0.013400735333561897, 0.0014017397770658135, 0.037082623690366745, -0.05012061446905136, 0.014582239091396332, 0.07001961767673492, 0.025143221020698547, -0.022427836433053017, -0.002233455888926983, -0.013400735333561897, -0.03811902925372124, -0.03851286321878433, 0.022842397913336754, -0.03320646286010742, -0.022738756611943245, 0.024977395310997963, -0.03333083167672157, -0.0024070539511740208, 0.07959601283073425, 0.04205737262964249, -0.04307305067777634, 0.013431827537715435, 0.053685855120420456, 0.050618089735507965, 0.005617322865873575, -0.02597234584391117, -0.08253940939903259, -0.04962313920259476, -0.002762023126706481, -0.0008394892211072147, -0.02686365507543087, -0.033703938126564026, -0.044399652630090714, -0.015608280897140503, 0.011804669164121151, -0.07470417767763138, -0.04833799600601196, -0.0028242075350135565, -0.0065241786651313305, -0.01405367162078619, -0.07250699400901794, 0.013639109209179878, -0.03295772522687912, 0.029641224071383476, 0.010198239237070084, -0.02572360821068287, 0.003803611733019352, 0.00863844808191061, 0.0020870633888989687, 0.01477915607392788, 0.06338661909103394, 0.016344130039215088, -0.015369907952845097, -0.007503582630306482, 0.03907252475619316, -0.03523781895637512, 0.02676001377403736, 0.008716178126633167, -0.030781270936131477, 0.016758691519498825, 0.018593132495880127, -0.037206992506980896, 0.0027516591362655163, -0.00425963057205081, 0.0059593371115624905, 0.04189154878258705, 0.02381662093102932, 0.036626603454351425, -0.06836137175559998, -0.013576924800872803, 0.006068159826099873, -0.035507284104824066, -0.02686365507543087, -0.03496835380792618, -0.08034222573041916, 0.04717722162604332, 0.0056535969488322735, -0.00538931367918849, 0.041145335882902145, 0.07777193933725357, 0.0390932522714138, -0.011120641604065895, -0.022220553830266, -0.030884912237524986, 0.014416413381695747, -0.018779685720801353, -0.04257557541131973, -0.0006360944826155901, -0.006985379382967949, 0.00981995090842247, -0.011721757240593433, 0.04817217215895653, 0.02503957971930504, -0.015597917139530182, 0.0165721382945776, -0.026449091732501984, 0.0545978918671608, 0.019930096343159676, -0.06637147068977356, 0.024210454896092415, -0.07366777211427689, 0.044068001210689545, -0.02166089415550232, 0.006202892400324345, 0.00036533328238874674, -0.07449689507484436, -0.07831086963415146, -0.02493593841791153, -0.030677631497383118, -0.025205405429005623, 0.009731856174767017, -0.006031885743141174, 0.02269730158150196, 0.026697829365730286, -0.034014858305454254, 0.03306136652827263, 0.006062977947294712, -0.05293964222073555, 0.02686365507543087, 0.03563165292143822, 0.012115591205656528, 0.014146948233246803, 0.12171557545661926, -0.04402654618024826, -0.07072437554597855, 0.001830552937462926, -0.01715252734720707, -0.007016471587121487, 0.03633641079068184, -0.041145335882902145, 0.028024429455399513, 0.025661423802375793, 0.013120905496180058, 0.047011397778987885, 0.02935103140771389, 0.02257293276488781, 0.04638955369591713, -0.00738957803696394, -0.058536235243082047, -0.0507839173078537, -0.0007468604017049074, 0.012747799046337605, 0.0545978918671608, 0.010975544340908527, -0.02338133007287979, 0.011638844385743141, -0.08009348809719086, -0.005508500151336193, 0.02338133007287979, -0.010535071603953838, 0.09087211638689041, -0.04205737262964249, -0.014115856029093266, 0.024915210902690887, 0.060650505125522614, -0.04502149671316147, -0.032667532563209534, 0.02742331475019455, 0.04435819759964943, -0.01010496262460947, -0.012540518306195736, 0.0368131585419178, 0.02744404226541519, -0.04585061967372894, 0.010571345686912537, 0.015058985911309719, -0.0006846759933978319, -0.04189154878258705, 0.00021019618725404143, 0.014913888648152351, -0.03641932085156441, -0.03633641079068184, 0.02190963178873062, 0.03125801682472229, 0.0507839173078537, -0.013307458721101284, 0.026324722915887833, -0.0059023345820605755, 0.03308209404349327 ]
43,297
mo_dots.datas
__add__
null
def __add__(self, other): return _iadd(_iadd({}, self), other)
(self, other)
[ -0.08116099238395691, -0.05009808763861656, 0.04305576533079147, 0.08632071316242218, -0.0287096556276083, -0.0325445830821991, -0.03894193470478058, 0.003355560824275017, 0.02149301953613758, -0.024543529376387596, 0.0009140634792856872, -0.008789826184511185, 0.028204141184687614, 0.047099869698286057, -0.03772173076868057, 0.029825270175933838, 0.00953502207994461, 0.008519638329744339, -0.028273867443203926, -0.03249228745698929, -0.02396829053759575, -0.008876983076334, 0.04242823272943497, 0.05205041170120239, 0.0017191801453009248, 0.08276468515396118, 0.016681930050253868, -0.013474537059664726, -0.008070777170360088, -0.009229971095919609, -0.008768036961555481, -0.06226526200771332, -0.030452802777290344, -0.04002268984913826, 0.038628168404102325, -0.026792190968990326, -0.06833142042160034, 0.05612938106060028, -0.044903505593538284, 0.05198068544268608, 0.07495538145303726, -0.040929123759269714, 0.00037041903124190867, -0.03772173076868057, 0.046088844537734985, 0.02006363868713379, -0.003967841621488333, 0.0023837555199861526, 0.026896780356764793, -0.03310238942503929, 0.009665758349001408, -0.03036564588546753, 0.044729188084602356, -0.0032204666640609503, -0.04403192922472954, 0.08590235561132431, 0.036083173006772995, 0.014415837824344635, -0.06372950971126556, 0.05836061015725136, -0.02930232509970665, -0.01971500925719738, 0.014773182570934296, -0.019087474793195724, -0.0014653342077508569, -0.0025776808615773916, -0.10493753850460052, -0.01704799197614193, 0.023724250495433807, 0.05989458039402962, -0.006955162156373262, 0.0070771826431155205, -0.0034732231870293617, 0.0061010196805000305, -0.008288671262562275, 0.01604568213224411, 0.01329150702804327, 0.02260863594710827, 0.06355518847703934, -0.02918030507862568, -0.008192798122763634, -0.03303266316652298, -0.0656818300485611, 0.024665551260113716, -0.02260863594710827, 0.004399270750582218, -0.036919884383678436, -0.03817494958639145, -0.0331372506916523, -0.022695792838931084, -0.02255634032189846, -0.03024362586438656, -0.003185603767633438, 0.012480942532420158, 0.044310834258794785, 0.010554763488471508, -0.026077501475811005, -0.05884869024157524, -0.0026779118925333023, 0.008815973065793514, -0.025205926969647408, -0.0037586637772619724, 0.012855719774961472, -0.057628486305475235, 0.021702198311686516, -0.061951495707035065, -0.004689069464802742, -0.058465197682380676, -0.01562732644379139, 0.04012727737426758, 0.02149301953613758, 0.014319964684545994, -0.03873275965452194, -0.0023205664474517107, -0.046263158321380615, -0.0068200682289898396, 0.0011929671745747328, -0.005935420282185078, 0.03066198155283928, 0.06418272852897644, 0.00003871015360346064, 0.019505830481648445, 0.01716129668056965, 0.03688501939177513, 0.008258165791630745, -0.02646099403500557, 0.02159760892391205, -0.0027759638614952564, -0.026025205850601196, -0.08966755867004395, 0.01959298923611641, -0.029197735711932182, -0.008284312672913074, 0.058046843856573105, 0.018860865384340286, 0.005878767929971218, 0.06090560555458069, 0.011182297021150589, -0.018425079062581062, 0.042881451547145844, 0.025659145787358284, -0.02213798463344574, 0.036431800574064255, 0.05232931673526764, -0.05654773488640785, 0.013422243297100067, -0.03339872509241104, 0.05714040622115135, -0.022957265377044678, 0.00899464637041092, -0.011966713704168797, 0.019209496676921844, 0.05145774036645889, 0.04214932769536972, -0.005778537131845951, 0.015653472393751144, 0.013448390178382397, -0.009630895219743252, -0.007373517844825983, -0.04256768524646759, 0.01384931430220604, 0.02740229293704033, 0.006645753514021635, 0.0015100023010745645, -0.0036627906374633312, -0.010110260918736458, 0.025415103882551193, -0.021214116364717484, -0.03988323733210564, 0.024316919967532158, 0.0028914473950862885, -0.11476889252662659, 0.006488869898021221, 0.016420457512140274, -0.022399457171559334, -0.027785785496234894, -0.025293083861470222, 0.05096966028213501, -0.012611678801476955, 0.013221780769526958, 0.03754741698503494, 0.015060802921652794, -0.07052778452634811, -0.017780113965272903, 0.027506882324814796, -0.008759320713579655, 0.0029154156800359488, -0.00026351501583121717, 0.06250930577516556, -0.011356611736118793, 0.060975331813097, 0.016368163749575615, 0.002164772478863597, -0.004309934563934803, -0.020464561879634857, -0.006915941368788481, -0.07614072412252426, 0.008245091885328293, 0.04061535745859146, 0.08499591797590256, -0.06484512239694595, 0.003318518865853548, 0.020203091204166412, 0.004166124854236841, 0.02670503407716751, -0.04434569552540779, -0.05780280381441116, 0.002046020468696952, -0.042881451547145844, -0.0076872846111655235, 0.04521727189421654, -0.02379397675395012, -0.01308232918381691, 0.05501376464962959, -0.023096716031432152, -0.0021146568469703197, -0.024404078722000122, -0.04605398327112198, 0.011792398989200592, 0.015949808061122894, 0.049819182604551315, 0.012245617806911469, 0.008737531490623951, -0.04340439662337303, 0.033538177609443665, -0.029755543917417526, 0.0063581340946257114, -0.002887089503929019, -0.006990025285631418, 0.002425155369564891, 0.060975331813097, -0.011478632688522339, -0.01062448974698782, -0.04044104367494583, 0.018128743395209312, 0.01587136648595333, -0.01966271363198757, -0.014895203523337841, 0.004031030926853418, 0.020325111225247383, -0.028343593701720238, 0.01840764842927456, 0.01722230575978756, 0.02297469601035118, -0.05853492394089699, -0.018791140988469124, 0.004898247309029102, 0.06306710839271545, 0.013674999587237835, 0.03488039970397949, 0.008009767159819603, -0.02142329514026642, -0.030295919626951218, -0.009264834225177765, -0.022294867783784866, 0.0005501811974681914, 0.00449732318520546, -0.008184081874787807, -0.015113096684217453, -0.006000788416713476, 0.04657692462205887, 0.04291631281375885, 0.019627850502729416, -0.01255066879093647, -0.09838330000638962, 0.017074139788746834, 0.017658093944191933, 0.010267144069075584, -0.0003159456537105143, 0.0444154217839241, 0.07593154907226562, -0.0491219237446785, 0.046019118279218674, 0.03936029225587845, -0.006506301462650299, 0.013160770758986473, 0.025293083861470222, 0.058116570115089417, -0.04657692462205887, -0.029319757595658302, 0.021458156406879425, 0.02930232509970665, -0.042114466428756714, -0.06920298933982849, -0.03716392442584038, 0.04019700363278389, -0.01053733192384243, 0.02025538496673107, -0.056024789810180664, -0.062021221965551376, 0.06704148650169373, 0.03364276513457298, 0.0449732281267643, 0.03793090954422951, 0.059755127876996994, 0.03310238942503929, -0.07474620640277863, -0.0013509400887414813, 0.03409598395228386, 0.0325445830821991, -0.018616825342178345, 0.009543737396597862, -0.029058285057544708, -0.02297469601035118, -0.050934799015522, -0.04577507823705673, 0.06474053114652634, 0.075792096555233, -0.025118768215179443, 0.03568224981427193, -0.021057233214378357, 0.05612938106060028, -0.03956947103142738, 0.040824536234140396, 0.012001576833426952, -0.023480208590626717, 0.011208444833755493, 0.008689595386385918, 0.004536543972790241, 0.0450080931186676, -0.0074476017616689205, -0.023584797978401184, -0.033485881984233856, -0.056512873619794846, 0.01610669121146202, -0.0012027723714709282, -0.00504641467705369, -0.03284091502428055, 0.02226000465452671, 0.013596558012068272, -0.02954636514186859, -0.01009282935410738, 0.02077833004295826, 0.0556412972509861, -0.06446162611246109, -0.010685499757528305, 0.05578074976801872, 0.010938256047666073, -0.029738113284111023, 0.003549485933035612, -0.020795760676264763, 0.031289514154195786, -0.03747769072651863, -0.014947498217225075, -0.0029502788092941046, -0.060243211686611176, -0.0016309332568198442, -0.015182822942733765, 0.03970891982316971, 0.0009952287655323744, -0.017300747334957123, -0.03569968044757843, -0.012960308231413364, -0.04336953163146973, 0.040998850017786026, 0.06027807295322418, -0.03793090954422951, -0.005194582510739565, 0.031115200370550156, -0.040754809975624084, 0.05351465567946434, -0.016542479395866394, 0.002058004727587104, 0.044903505593538284, -0.03883734717965126, 0.015888797119259834, -0.04242823272943497, -0.033590469509363174, -0.035194166004657745, -0.05215500295162201, 0.023532504215836525, -0.012236902490258217, 0.01798929274082184, 0.029807837679982185, -0.02030767872929573, 0.017440199851989746, -0.004438491538167, 0.04553103819489479, -0.06282307207584381, -0.048877883702516556, 0.024526098743081093, 0.022992128506302834, -0.04521727189421654, 0.038209814578294754, 0.027384862303733826, 0.03883734717965126, 0.06533320248126984, -0.01971500925719738, 0.049714595079422, 0.0663093701004982, -0.0031986774411052465, -0.034828104078769684, 0.02368938736617565, 0.003743411274626851, -0.09336303174495697, -0.049923770129680634, 0.02090035006403923, -0.03758228197693825, -0.060591839253902435, -0.030993178486824036, 0.06993511319160461, 0.004906962625682354, 0.01870398223400116, 0.013858030550181866, 0.012899298220872879, 0.005752389784902334, -0.01652504689991474, -0.015618610195815563, -0.0026343329809606075, 0.029616091400384903, -0.073421411216259, -0.05909273028373718, -0.01435482781380415, -0.03006931021809578, -0.01373600959777832, -0.06603046506643295, 0.02072603441774845, -0.014319964684545994, 0.021702198311686516, 0.021562745794653893, 0.05874410271644592, 0.021057233214378357, -0.053061436861753464, 0.04452000930905342, -0.03327670320868492, -0.010685499757528305, -0.0049810465425252914, 0.013021319173276424, -0.03970891982316971, -0.01676037162542343, -0.028866538777947426, -0.01870398223400116, 0.05637342110276222, -0.01127817016094923, -0.0007016172748990357, -0.07188744097948074, -0.016385596245527267, -0.0775352418422699, 0.033538177609443665, 0.07621044665575027, 0.0426025465130806, -0.019261790439486504, -0.03298036754131317, -0.028744516894221306, -0.03186475485563278, -0.06665799766778946, 0.013674999587237835, 0.02994729019701481, 0.006131524685770273, -0.012324059382081032, 0.10988807678222656, 0.004636774770915508, 0.028151847422122955, 0.027437156066298485, 0.019192064180970192, -0.023811407387256622, 0.014834193512797356, -0.074606753885746, -0.003911189269274473, 0.010816236026585102, -0.03090602159500122, 0.022765519097447395, 0.018390215933322906, 0.006414786446839571, -0.03576940670609474, 0.039220839738845825, 0.058639515191316605, -0.021702198311686516, -0.01640302687883377, 0.02166733518242836, 0.022660929709672928, -0.04131261631846428, -0.025293083861470222, -0.07732606679201126, 0.0030831939075142145, 0.02055172063410282, -0.009552453644573689, -0.0343225933611393, -0.026147225871682167, -0.05379356071352959, 0.039046525955200195, -0.0213012732565403, 0.019993912428617477, 0.003098446410149336, 0.00488517340272665, 0.04657692462205887, 0.05501376464962959, 0.019523262977600098, 0.08011510223150253, 0.02522335760295391, 0.008563216775655746, 0.04249795898795128, -0.029145441949367523, 0.026774760335683823, 0.017326895147562027, 0.011618084274232388, -0.03332899883389473, -0.040754809975624084, 0.029703250154852867, 0.0038828630931675434, -0.03887220844626427, -0.008227660320699215, -0.03284091502428055, 0.00396566279232502, 0.029145441949367523, 0.029389481991529465, -0.03245742246508598, -0.010816236026585102, -0.03296293690800667, 0.010206134058535099, -0.0067067635245621204, -0.014991076663136482, -0.02468298189342022, 0.014755751937627792, 0.05382842198014259, -0.00006601493805646896, -0.025537123903632164, -0.005325318314135075, -0.027663765475153923, -0.05874410271644592, 0.05048158019781113, -0.01204515527933836, -0.03636207804083824, -0.05553670972585678, -0.016446605324745178, -0.00011527931201271713, -0.042358506470918655, -0.04284659028053284, -0.005033341236412525, 0.03521159663796425, -0.07683798670768738, -0.01994161866605282, -0.0390813872218132, 0.025415103882551193, -0.08659961074590683, 0.04357871040701866, -0.016237428411841393, 0.0010878335451707244, 0.0020481995306909084, -0.01512181293219328, 0.02285267598927021, 0.020272815600037575, 0.045147545635700226, -0.007277644705027342, -0.011565789580345154, 0.08088208734989166, -0.06446162611246109, -0.014511710964143276, -0.015113096684217453, -0.023515071719884872, -0.07558291405439377, -0.02124897949397564, -0.019627850502729416, 0.09461809694766998, 0.061602864414453506, -0.015339706093072891, -0.024299489334225655, 0.0076960003934800625, -0.00346232857555151, 0.07195717096328735, 0.034252867102622986, 0.021981101483106613, 0.019401242956519127, -0.06616991758346558, -0.06223040074110031, -0.009038224816322327, 0.004153050947934389, 0.0060705142095685005, 0.0069682360626757145, 0.027315136045217514, -0.00552142271772027, -0.054909177124500275, -0.04713473469018936, -0.03409598395228386, -0.0627533420920372, 0.045496173202991486, -0.07077182829380035, 0.027907807379961014, -0.009413001127541065, -0.028343593701720238, -0.08834276348352432, 0.042288780212402344, 0.03113263100385666, -0.05156233161687851, 0.05480458587408066, -0.02386370301246643, -0.031411536037921906, 0.02621695213019848, -0.02846561372280121, 0.014834193512797356, -0.02403801679611206, -0.029459208250045776, -0.004906962625682354, 0.0019218211527913809, -0.01524383295327425, -0.034357454627752304, -0.018843434751033783, 0.0028609423898160458, -0.0017344326479360461, -0.019749872386455536, 0.05815143138170242, -0.026722464710474014, 0.0055911485105752945, 0.01628972217440605, -0.008589363656938076, 0.07080668956041336, -0.04452000930905342, -0.007634990382939577, -0.04403192922472954, -0.04187042638659477, 0.03404368832707405, -0.006122808903455734, 0.037442829459905624, -0.014947498217225075, -0.01764066144824028, -0.0343225933611393, -0.05797711759805679, 0.020499425008893013, -0.00014735051081515849, 0.047518227249383926, -0.04682096838951111, -0.008532711304724216, -0.05375869944691658, 0.0007729773642495275, -0.03573454171419144, -0.017954429611563683, 0.017265886068344116, -0.023532504215836525, 0.075792096555233, 0.040754809975624084, -0.03066198155283928, 0.02651328779757023, 0.06941217184066772, -0.02475270815193653, 0.025763733312487602, -0.03451433777809143, 0.015095665119588375, 0.06962134689092636, 0.0016145912231877446, 0.031237220391631126, 0.004527828190475702, 0.007225350476801395, -0.0882033109664917, -0.011792398989200592, -0.02876194939017296, 0.011225876398384571, -0.05191095918416977, -0.07251497358083725, 0.0272279791533947, -0.010781372897326946, -0.026094932109117508, 0.02492702193558216, -0.0019457894377410412, 0.013474537059664726, -0.009848788380622864, 0.004153050947934389, 0.022242574021220207, 0.019749872386455536, 0.017536073923110962, 0.0024970602244138718, 0.00014898471999913454, -0.0035429492127150297, 0.020272815600037575, -0.0069682360626757145, 0.01308232918381691, 0.01976730301976204, 0.009073087945580482, -0.05588533729314804, 0.07251497358083725, -0.004301218781620264, 0.01627229154109955, -0.00224866159260273, -0.0384887158870697, 0.057872526347637177, -0.014572720974683762, -0.00649758568033576, 0.011443769559264183, 0.042009878903627396, 0.01032815407961607, -0.018843434751033783, -0.016019534319639206, 0.016202565282583237, -0.014720888808369637, -0.0266353078186512, -0.06087074428796768, -0.010031819343566895, 0.013596558012068272, 0.028500476852059364, 0.011103855445981026, -0.06188176944851875, 0.03402625769376755, -0.04772740602493286, 0.03929056599736214, 0.014075923711061478, 0.025205926969647408, 0.06871490925550461, -0.026844486594200134, -0.05368897318840027, -0.002453481312841177, -0.008044630289077759, 0.028395887464284897, 0.020342541858553886, 0.01847737282514572, -0.004697785247117281, 0.028029827401041985, 0.019610419869422913, 0.007948757149279118, 0.001846647821366787, 0.07600127160549164, -0.016237428411841393, -0.005164077039808035, 0.08652988821268082, -0.007434528321027756, -0.026652740314602852, 0.055153217166662216, 0.020342541858553886, 0.07781414687633514, 0.03526389226317406, -0.05198068544268608, 0.03970891982316971, -0.015278696082532406, 0.011966713704168797, 0.09301440417766571, -0.017422769218683243, -0.012324059382081032, 0.010293291881680489, 0.047866854816675186, -0.06791306287050247, -0.007656779605895281, 0.01267268881201744, 0.03747769072651863, 0.04832007363438606, 0.01966271363198757, 0.018459942191839218, 0.0027868584729731083, -0.004706500563770533, -0.04110344126820564, 0.031934481114149094, 0.013552979566156864, 0.04546131193637848, -0.014014913700520992, -0.02314901165664196, 0.03073170781135559, 0.026356404647231102, 0.005700095556676388, -0.048110898584127426, 0.04044104367494583, 0.053061436861753464, -0.008105640299618244, 0.043299805372953415, 0.012001576833426952, 0.01793699711561203, 0.02307928539812565, 0.009604748338460922, 0.03259687498211861, 0.029563797637820244, 0.00914281327277422, -0.0005719705950468779, 0.031934481114149094, -0.03995296359062195, -0.05281739681959152, -0.042184192687273026, 0.050586167722940445, 0.021458156406879425, 0.01376215647906065, 0.01592366024851799, 0.011304317973554134, 0.06383409351110458 ]
43,298
mo_dots.datas
__bool__
null
def __bool__(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: return True else: return d != None
(self)
[ 0.07229229062795639, -0.01905793510377407, -0.019870012998580933, -0.06019750237464905, -0.013865813612937927, 0.004600340034812689, 0.009606719948351383, 0.04257366433739662, -0.006824917625635862, -0.00718776136636734, -0.01938622258603573, 0.036699049174785614, 0.034418318420648575, 0.01048791129142046, -0.04208987206220627, -0.03042703866958618, -0.03939446061849594, 0.04761891812086105, -0.025779182091355324, -0.03106633387506008, -0.017762064933776855, 0.04485439509153366, 0.039878252893686295, 0.017589282244443893, 0.03783941641449928, 0.031636517494916916, 0.022548146545886993, -0.005395140498876572, -0.011317268945276737, 0.06845651566982269, -0.05836600437760353, -0.0044448357075452805, 0.03569691255688667, 0.05836600437760353, 0.020595701411366463, 0.035835135728120804, -0.028699209913611412, 0.009321628138422966, -0.029856855049729347, -0.02329111099243164, 0.0044923508539795876, -0.019299831241369247, -0.007226637564599514, 0.0023865613620728254, -0.0029373064171522856, -0.015982402488589287, -0.0099177286028862, 0.04716968536376953, 0.01833224669098854, -0.03949813172221184, 0.09786413609981537, -0.018712369725108147, -0.01362391747534275, 0.013891731388866901, -0.06161431968212128, 0.04098406061530113, -0.0035874012392014265, 0.09572163224220276, -0.006803319789469242, 0.03638804331421852, -0.024690652266144753, 0.05363175645470619, 0.03479843959212303, -0.054668452590703964, 0.025589121505618095, -0.028267253190279007, -0.048482831567525864, -0.03529950976371765, -0.0053476253524422646, 0.07312165200710297, -0.03611158952116966, -0.006842195987701416, -0.0260210782289505, 0.031826578080654144, -0.015092571265995502, -0.08480176329612732, -0.04250454902648926, -0.03866877406835556, 0.007019298151135445, -0.023170163854956627, -0.032690491527318954, -0.015982402488589287, -0.020319247618317604, -0.009338906034827232, -0.05622350051999092, 0.05546325445175171, 0.03351984918117523, 0.032103031873703, -0.003984801471233368, 0.010427437722682953, 0.002056114375591278, 0.019593561068177223, 0.0018174583092331886, 0.014824758283793926, -0.012319408357143402, -0.018936986103653908, 0.047929927706718445, -0.05864245817065239, -0.04025837406516075, -0.05359720066189766, -0.010150984860956669, -0.027507008984684944, 0.013502970337867737, -0.016924068331718445, 0.03656082600355148, 0.009105649776756763, -0.04761891812086105, 0.008716888725757599, -0.011965204030275345, -0.016250215470790863, 0.011464133858680725, -0.013096930459141731, -0.020733926445245743, 0.07961828261613846, 0.012319408357143402, -0.07001156359910965, -0.015913289040327072, -0.00716616353020072, -0.04081127792596817, -0.04761891812086105, -0.012595860287547112, 0.052042156457901, 0.0010032197460532188, -0.018643256276845932, 0.06693603098392487, 0.034228257834911346, -0.015887372195720673, 0.04516540467739105, 0.06576110422611237, 0.02721327915787697, 0.042193543165922165, 0.008686651475727558, -0.003429737174883485, 0.007546285632997751, -0.02429325133562088, 0.011248155497014523, 0.016250215470790863, 0.0031554445158690214, -0.03980914130806923, 0.021960685029625893, 0.002451354870572686, 0.011654194444417953, -0.012587221339344978, 0.014159544371068478, -0.026815878227353096, -0.031964804977178574, -0.06386049836874008, 0.03403819724917412, 0.011256794445216656, 0.007006339728832245, -0.025329947471618652, -0.0298050194978714, -0.022876432165503502, 0.07809779047966003, -0.07657730579376221, -0.007848654873669147, -0.02757612243294716, -0.017114128917455673, 0.013900370337069035, -0.05867701396346092, -0.0032612739596515894, -0.019714508205652237, -0.037010058760643005, -0.04481983929872513, -0.01735602505505085, 0.0014384161913767457, -0.015671392902731895, 0.024777043610811234, 0.049346745014190674, 0.0594027005136013, -0.0030388161540031433, -0.017900289967656136, -0.0682491734623909, 0.03365807607769966, -0.007762263994663954, 0.06106141582131386, -0.006431837100535631, -0.021528728306293488, 0.013451134786009789, -0.00720935920253396, 0.0236193984746933, -0.03891066834330559, -0.05262961983680725, -0.0036716328468173742, 0.06845651566982269, 0.005727747455239296, 0.0323103703558445, -0.031636517494916916, 0.04050027206540108, 0.0693204328417778, -0.07533326745033264, -0.03279416263103485, -0.019541725516319275, 0.014712449163198471, -0.009036536328494549, -0.008198540657758713, 0.024224137887358665, 0.021546006202697754, 0.02456970326602459, 0.029079332947731018, 0.023412059992551804, -0.08390329033136368, -0.033416178077459335, 0.011360464617609978, -0.028284532949328423, -0.0014006199780851603, 0.019956404343247414, -0.008591621182858944, 0.03234492614865303, -0.022029796615242958, -0.0682491734623909, -0.07871980965137482, -0.008138066157698631, 0.012518108822405338, 0.0903308093547821, -0.0004333066754043102, 0.03312245011329651, -0.04288467392325401, -0.07505681365728378, 0.028716489672660828, 0.051800262182950974, 0.02120044082403183, 0.018453195691108704, 0.023498451337218285, -0.047480691224336624, 0.00849659088999033, -0.029148446395993233, 0.025450894609093666, -0.03963635861873627, -0.024621538817882538, 0.02693682722747326, 0.03877244517207146, 0.005408099386841059, 0.009356184862554073, 0.034556545317173004, 0.014954345300793648, 0.024051355198025703, 0.03618070110678673, -0.024897990748286247, 0.015861453488469124, 0.0643097311258316, 0.006634856574237347, -0.03970547020435333, -0.0028984302189201117, -0.01469517033547163, -0.00276884320192039, 0.012319408357143402, 0.056569065898656845, -0.03562779724597931, -0.002423277823254466, 0.039601799100637436, -0.03307061269879341, -0.005442655645310879, -0.013822617940604687, 0.004587381146848202, -0.029459454119205475, -0.048068154603242874, 0.013001900166273117, 0.028370924293994904, -0.0035053296014666557, -0.01651802845299244, 0.02025013603270054, 0.037562962621450424, 0.05349353328347206, 0.008487951010465622, 0.02306649461388588, 0.05401188135147095, 0.012794560752809048, -0.07160115987062454, -0.023031936958432198, 0.07775222510099411, -0.02643575705587864, -0.0260210782289505, 0.026176583021879196, 0.003360623959451914, -0.022824598476290703, 0.04627121239900589, -0.07319076359272003, -0.009796780534088612, -0.04872472956776619, 0.04208987206220627, 0.030444316565990448, 0.04198620095849037, 0.010669332928955555, -0.025640957057476044, -0.046927787363529205, 0.008367003872990608, 0.04931218922138214, 0.03357168287038803, 0.009727667085826397, 0.011775142513215542, 0.02379218116402626, 0.04005103558301926, 0.009598080068826675, 0.021736066788434982, 0.03904889523983002, -0.027144165709614754, -0.02006007358431816, 0.0025118289049714804, -0.008932867087423801, 0.061856213957071304, -0.027783462777733803, -0.03742473945021629, 0.03656082600355148, -0.016751285642385483, 0.04644399508833885, 0.003218078287318349, 0.05691463127732277, 0.04558008164167404, 0.0028379561845213175, 0.011965204030275345, 0.012060234323143959, 0.014116348698735237, 0.04430149123072624, -0.012561304494738579, -0.001955684507265687, -0.017459694296121597, -0.03939446061849594, -0.016803119331598282, 0.11617910116910934, -0.05034888535737991, 0.02657398395240307, -0.019939126446843147, 0.014591501094400883, -0.003961043898016214, -0.07249963283538818, -0.01997368223965168, -0.02607291378080845, -0.00046138386824168265, -0.00718776136636734, -0.011904729530215263, -0.054253775626420975, 0.05663817748427391, -0.006457754410803318, 0.012639055959880352, 0.0020971503108739853, -0.03510944917798042, 0.006181302014738321, 0.007295750547200441, -0.024362364783883095, 0.025036217644810677, 0.011826977133750916, 0.014021318405866623, -0.015835536643862724, 0.04540729895234108, 0.03020242042839527, -0.041295070201158524, 0.04440515860915184, 0.10318583995103836, -0.03158468380570412, -0.06538098305463791, -0.054495669901371, 0.08632224798202515, 0.038737885653972626, -0.010332407429814339, -0.03984369710087776, 0.060128387063741684, 0.03949813172221184, -0.007585161831229925, 0.005701830144971609, 0.12848123908042908, 0.011775142513215542, -0.056707289069890976, 0.016060154885053635, -0.05055622383952141, -0.007671553175896406, -0.03509217128157616, -0.02342933788895607, 0.021960685029625893, -0.04036204516887665, -0.021217718720436096, -0.010410158894956112, -0.04471616819500923, -0.039740025997161865, 0.014271853491663933, -0.010980342514812946, 0.020854875445365906, 0.03904889523983002, 0.0459602065384388, -0.053804539144039154, 0.059713710099458694, 0.011014898307621479, -0.026176583021879196, 0.013183321803808212, 0.049346745014190674, -0.025226278230547905, -0.016924068331718445, 0.026781322434544563, -0.022945545613765717, -0.03635348379611969, -0.005952364765107632, 0.024690652266144753, -0.09890083223581314, 0.002958904253318906, -0.06372226774692535, -0.033364344388246536, 0.023533007130026817, -0.03894522786140442, -0.058849796652793884, 0.04012014716863632, 0.015749145299196243, -0.03870332986116409, 0.003526927437633276, 0.027697071433067322, 0.016111988574266434, -0.005814138799905777, 0.00987453293055296, 0.004038796294480562, -0.008043035864830017, -0.05007243528962135, 0.019144326448440552, -0.03645715489983559, -0.060577623546123505, 0.0008266573422588408, -0.03649171069264412, 0.028785601258277893, 0.0210622139275074, 0.04440515860915184, 0.0371137298643589, 0.045649196952581406, -0.015602280385792255, 0.026090191677212715, 0.015619558282196522, -0.009598080068826675, -0.021891571581363678, 0.002440555952489376, -0.019438056275248528, -0.003786101471632719, 0.056569065898656845, -0.015291270799934864, -0.050245217978954315, -0.03842687979340553, 0.022669093683362007, -0.05145469680428505, 0.007546285632997751, -0.019230717793107033, -0.020768484100699425, -0.05594704672694206, -0.04112228751182556, 0.04240088164806366, 0.011628277599811554, -0.018936986103653908, -0.047377023845911026, 0.005948045291006565, 0.004079832229763269, -0.01828041300177574, -0.01721779815852642, 0.04920852184295654, 0.07381278276443481, -0.02329111099243164, -0.08397240191698074, 0.04817182198166847, 0.012362604029476643, 0.009062454104423523, 0.0013077493058517575, -0.02356756292283535, -0.038737885653972626, -0.047377023845911026, -0.012328047305345535, -0.027351506054401398, -0.031636517494916916, -0.017934847623109818, -0.07837424427270889, -0.009408019483089447, 0.01433232706040144, 0.06403327733278275, -0.04208987206220627, 0.022323528304696083, -0.025278111919760704, 0.009114288724958897, -0.02342933788895607, -0.003619797993451357, -0.01733010821044445, -0.0303924810141325, 0.0032137585803866386, 0.02593468688428402, 0.03607703372836113, 0.051800262182950974, -0.052664175629615784, -0.006505269557237625, -0.030634377151727676, -0.010159623809158802, -0.001345545519143343, -0.03153284639120102, -0.021165883168578148, -0.028716489672660828, -0.025122608989477158, 0.011731946840882301, 0.009321628138422966, -0.007092731073498726, 0.00941665843129158, -0.04481983929872513, 0.0032223977614194155, -0.002332566771656275, 0.035230398178100586, -0.023187441751360893, 0.01961083896458149, 0.037010058760643005, 0.010081872344017029, 0.009753584861755371, -0.004092790652066469, 0.05245683714747429, -0.01193928625434637, 0.03863421827554703, 0.007226637564599514, -0.09371735155582428, -0.06026661396026611, 0.03718284144997597, -0.039601799100637436, 0.04381769895553589, 0.029148446395993233, -0.00048055194201879203, 0.012336686253547668, 0.0173041895031929, 0.061856213957071304, 0.002451354870572686, 0.022029796615242958, -0.03498850017786026, 0.028267253190279007, -0.01910976879298687, 0.06261646002531052, 0.035057615488767624, 0.03129095211625099, -0.02716144360601902, -0.07160115987062454, 0.044059593230485916, -0.016232937574386597, 0.004660814069211483, 0.0027062094304710627, -0.03246587514877319, 0.051800262182950974, -0.009995480999350548, -0.042193543165922165, 0.015360384248197079, -0.0031360064167529345, 0.03662993758916855, 0.017338747158646584, 0.01405587512999773, -0.07001156359910965, 0.01189609058201313, 0.06703969836235046, -0.047791700810194016, 0.06289291381835938, -0.01405587512999773, 0.029822299256920815, 0.04561464115977287, -0.017235076054930687, -0.01833224669098854, 0.06876752525568008, -0.0033174282871186733, -0.004241815768182278, 0.027645235881209373, 0.052111271768808365, -0.06372226774692535, 0.0634458139538765, 0.054979462176561356, 0.04613298922777176, 0.006583021953701973, 0.03326067328453064, 0.027835296466946602, 0.010557024739682674, -0.008889671415090561, -0.02429325133562088, -0.026176583021879196, -0.022876432165503502, -0.08749717473983765, -0.004509629216045141, -0.024725208058953285, 0.08024029433727264, 0.02816358394920826, 0.008855114690959454, -0.0011781621724367142, -0.02621113881468773, 0.0020042795222252607, 0.0732598751783371, 0.01466925349086523, 0.00941665843129158, 0.00884647574275732, -0.07111737132072449, -0.08867209404706955, -0.0017937006196007133, -0.026470312848687172, 0.005896210670471191, 0.012060234323143959, -0.024915268644690514, -0.013649835251271725, -0.009701750241219997, 0.02939034067094326, -0.005192121025174856, -0.032690491527318954, 0.00584437558427453, 0.07263785600662231, -0.017727507278323174, -0.0260210782289505, 0.08770450949668884, -0.009252514690160751, 0.0534244179725647, -0.039601799100637436, -0.028267253190279007, -0.007948005571961403, -0.03201663866639137, 0.038150426000356674, 0.007611079141497612, -0.043057456612586975, 0.037562962621450424, -0.00180233980063349, -0.010747085325419903, 0.038012199103832245, -0.0359388068318367, -0.07802867889404297, 0.012060234323143959, -0.026729486882686615, 0.029131166636943817, 0.010677972808480263, 0.025122608989477158, -0.03457382321357727, -0.0015528846997767687, 0.028958383947610855, -0.021770622581243515, 0.022910989820957184, -0.022962823510169983, 0.04668589308857918, 0.0015366863226518035, 0.020664814859628677, -0.05418466404080391, -0.0844561979174614, 0.024673372507095337, 0.01716596446931362, 0.0027904410380870104, -0.07415834814310074, 0.04810271039605141, -0.011628277599811554, 0.029459454119205475, -0.07512592524290085, -0.03326067328453064, -0.019317109137773514, 0.009269793517887592, 0.011861533857882023, 0.03139461949467659, 0.04844827577471733, -0.03448743373155594, 0.017986681312322617, -0.012310769408941269, 0.03474660590291023, -0.0023973602801561356, -0.01626749336719513, 0.015982402488589287, -0.012267573736608028, 0.017667032778263092, -0.057121969759464264, -0.050798121839761734, 0.020353805273771286, -0.04416326433420181, 0.0004284471506252885, 0.019489891827106476, -0.007598120253533125, 0.01688087172806263, 0.0014610938960686326, -0.030962664633989334, -0.004673772491514683, -0.022876432165503502, -0.019438056275248528, -0.06310024857521057, -0.0434030219912529, 0.081691674888134, 0.0248461551964283, -0.04983053728938103, -0.010919868014752865, -0.014185462146997452, -0.028595540672540665, -0.0008703930070623755, 0.03580057993531227, -0.03548957034945488, -0.05142013728618622, -0.037286512553691864, -0.018003959208726883, -0.04012014716863632, -0.0346083790063858, 0.04153696820139885, -0.0458565354347229, -0.025917408987879753, 0.02178790234029293, -0.014522387646138668, 0.06164887547492981, -0.013770783320069313, 0.05487579479813576, 0.0049156686291098595, -0.07249963283538818, 0.0027515648398548365, -0.0756097212433815, -0.0322066992521286, -0.058849796652793884, -0.022185301408171654, 0.07457302510738373, 0.04516540467739105, -0.06617578119039536, 0.0007678032270632684, 0.03365807607769966, 0.008138066157698631, -0.011982481926679611, 0.018090350553393364, -0.02671220898628235, 0.011403660289943218, 0.037873972207307816, -0.00745125487446785, 0.013684391975402832, -0.021096771582961082, 0.0012602340430021286, 0.0384959913790226, 0.0072568743489682674, -0.03835776448249817, 0.04875928536057472, -0.01408179197460413, -0.03217214345932007, -0.004669453017413616, -0.049070294946432114, -0.015982402488589287, 0.005313068628311157, 0.05069445073604584, -0.009071093052625656, -0.0008239576127380133, -0.02220257930457592, -0.027178723365068436, 0.026504870504140854, 0.04005103558301926, 0.02629753015935421, -0.01164555549621582, -0.05805499479174614, -0.02610746957361698, 0.0216496754437685, 0.016613058745861053, -0.030133306980133057, -0.046513110399246216, 0.041191402822732925, -0.0065009500831365585, -0.004591701086610556, 0.021165883168578148, 0.0248461551964283, -0.013321547769010067, 0.04043115675449371, 0.03635348379611969, 0.02348117157816887, 0.08784274011850357, -0.020854875445365906, -0.003535566618666053, 0.00803871639072895, -0.020733926445245743, 0.012336686253547668, 0.0055074491538107395, -0.0024448756594210863, 0.0569491870701313, 0.04623665660619736, 0.0348157174885273, 0.017813898622989655, 0.05791676789522171, 0.017088212072849274, -0.06925131380558014, 0.005304429680109024, 0.026453034952282906, 0.01796940341591835, -0.05777854472398758, 0.018487751483917236, 0.005377862136811018, 0.04803359881043434, -0.014513748697936535, 0.03517856448888779, -0.013796700164675713, 0.007611079141497612 ]
43,299
mo_dots.datas
__contains__
null
def __contains__(self, item): value = Data.__getitem__(self, item) if is_data(value) or value: return True return False
(self, item)
[ 0.06545756757259369, -0.0585838258266449, -0.04692986607551575, 0.037439215928316116, 0.011889480985701084, -0.012561153620481491, -0.007091818377375603, -0.014672125689685345, 0.04291727766394615, -0.041591376066207886, -0.0040649292059242725, 0.01809155009686947, 0.035555046051740646, -0.02423255890607834, -0.03314749151468277, -0.0063852532766759396, -0.05610648915171623, 0.0750877857208252, 0.012918798252940178, -0.006978418678045273, -0.058828070759773254, 0.04769749194383621, 0.021825004369020462, 0.01569272018969059, 0.026727344840765, 0.038067273795604706, 0.01694011129438877, 0.0014251240063458681, 0.03560738265514374, 0.04197518900036812, -0.07076116651296616, -0.047453247010707855, 0.007074372377246618, 0.011915650218725204, 0.04305684566497803, 0.01370386965572834, -0.02707626484334469, 0.003436871338635683, 0.004132532514631748, 0.007052564527839422, -0.03344407305121422, -0.04120756313204765, -0.00025841957540251315, 0.01751583069562912, 0.0358341820538044, 0.009551710449159145, -0.0028131750877946615, 0.07006332278251648, 0.0058793178759515285, -0.0032754952553659678, 0.026936696842312813, -0.010354229249060154, -0.01216861791908741, -0.0038381305057555437, -0.08716045320034027, 0.04047482833266258, 0.007052564527839422, 0.11681873351335526, 0.028245151042938232, 0.06922591477632523, 0.022156480699777603, 0.018213672563433647, 0.040684182196855545, -0.08311296999454498, 0.01000530831515789, -0.00020171991491224617, -0.044208284467458725, -0.0352584607899189, -0.02660522237420082, 0.04406871646642685, -0.02421511337161064, 0.00724883284419775, 0.012814121320843697, 0.06674857437610626, -0.007698068395256996, -0.0460575632750988, 0.03138544037938118, 0.01892896182835102, 0.0241627749055624, -0.003053058171644807, 0.029536157846450806, -0.04138202592730522, -0.016957558691501617, 0.0029069476295262575, -0.07885613292455673, 0.03370576351881027, -0.011235254816710949, 0.03712518885731697, 0.02149352990090847, 0.024878064170479774, 0.006646944209933281, 0.024145329371094704, 0.022034358233213425, 0.0082432571798563, 0.014323204755783081, -0.01859748549759388, 0.05554821342229843, -0.05146583914756775, -0.028559179976582527, -0.01831834949553013, 0.024092990905046463, 0.033792994916439056, 0.07452951371669769, -0.03440360352396965, 0.02199946530163288, 0.039253607392311096, -0.01859748549759388, 0.008779723197221756, -0.013983006589114666, -0.017777523025870323, -0.037055402994155884, 0.017672846093773842, -0.02604694850742817, 0.02377896197140217, 0.007257555611431599, -0.04061439633369446, -0.01830090396106243, -0.013110704720020294, -0.07306404411792755, -0.017367539927363396, 0.002787006087601185, 0.05596692115068436, 0.015718888491392136, 0.023447487503290176, 0.06287555396556854, -0.03827662765979767, -0.015422306023538113, 0.012526261620223522, -0.0019539573695510626, -0.014166190288960934, 0.008204003795981407, -0.020342091098427773, -0.0024598927702754736, 0.05348958075046539, 0.02098759450018406, 0.03656691685318947, 0.051884543150663376, 0.01097356341779232, -0.07711152732372284, 0.041312240064144135, 0.002072808565571904, -0.008901845663785934, 0.034822311252355576, 0.030966734513640404, 0.006188985425978899, -0.019190652295947075, -0.04996547847986221, 0.020150184631347656, -0.008147303946316242, -0.026360977441072464, -0.030146770179271698, -0.01614631712436676, -0.0093772504478693, 0.03953274339437485, -0.048081304877996445, -0.03435126692056656, -0.026936696842312813, -0.03447338938713074, -0.023220688104629517, -0.018841730430722237, 0.017585614696145058, 0.03400234505534172, -0.0494769886136055, 0.053070876747369766, -0.05254749581217766, 0.03456062078475952, -0.07201728224754333, -0.03149011358618736, 0.017070956528186798, 0.044382743537425995, 0.02506997063755989, -0.027774106711149216, -0.050872672349214554, 0.04755792394280434, -0.04508058726787567, 0.013930669054389, -0.04473166540265083, 0.02768687717616558, 0.02489550970494747, -0.03813705965876579, -0.034944433718919754, 0.002828440396115184, -0.04975612834095955, -0.029134899377822876, -0.00024969654623419046, -0.004941592924296856, 0.014349373988807201, -0.03663669899106026, 0.04197518900036812, 0.06716728210449219, -0.04106799513101578, -0.06113094836473465, 0.000489307101815939, -0.018353242427110672, -0.016704590991139412, -0.02599461004137993, 0.011252700351178646, 0.012770506553351879, -0.012674553319811821, 0.03503166139125824, -0.011889480985701084, -0.10837484896183014, 0.017559446394443512, 0.03646223992109299, -0.08541584759950638, -0.002235274761915207, -0.0006569527322426438, 0.01666097529232502, -0.013860884122550488, -0.004732240457087755, -0.06835361570119858, -0.03131565451622009, 0.019260436296463013, 0.06186368316411972, 0.09064966440200806, 0.006132285576313734, -0.07822807878255844, -0.05886296182870865, -0.009185343980789185, 0.024598926305770874, 0.07313383370637894, 0.0010805645724758506, 0.016617359593510628, 0.04965145140886307, 0.026360977441072464, 0.0008248709491454065, 0.00658152112737298, 0.03393256291747093, 0.0028567903209477663, 0.0029505626298487186, 0.0275822002440691, 0.06228238716721535, 0.03712518885731697, -0.002464254153892398, 0.0026714259292930365, -0.009368527680635452, 0.020167630165815353, 0.050698213279247284, 0.005800810642540455, 0.03382788598537445, 0.001465467968955636, 0.00768934516236186, -0.0046319253742694855, -0.016408007591962814, -0.029762957245111465, -0.015570596791803837, 0.008317402563989162, 0.07466908544301987, 0.001279013347811997, -0.029919970780611038, 0.02008040063083172, 0.014550003223121166, -0.014864032156765461, -0.03332195058465004, 0.001073477091267705, -0.04553418233990669, -0.03569461405277252, -0.011418437585234642, 0.03970720246434212, -0.004311354365199804, -0.029047667980194092, -0.006267492659389973, 0.08723023533821106, 0.09162663668394089, -0.08499713987112045, 0.003063962096348405, 0.05031440034508705, 0.04630180820822716, -0.010171045549213886, 0.004437838215380907, 0.08143814653158188, 0.014750633388757706, 0.04867447167634964, -0.005369021091610193, 0.006507375743240118, 0.024197667837142944, 0.024459358304739, -0.03176925331354141, 0.007903059013187885, -0.005591458175331354, 0.025802703574299812, 0.04061439633369446, -0.01114802435040474, -0.046999651938676834, 0.009569156914949417, -0.08206620812416077, 0.020743349567055702, 0.05554821342229843, -0.029640834778547287, -0.0017369721317663789, -0.03131565451622009, -0.045115478336811066, 0.01649523712694645, -0.0025362190790474415, -0.03388022258877754, 0.05844425782561302, -0.004618841223418713, -0.008771000429987907, 0.04839533567428589, 0.005425720475614071, -0.004354969598352909, -0.01332878042012453, -0.024686157703399658, -0.02995486371219158, -0.017838582396507263, 0.005861871875822544, 0.011444606818258762, 0.04124245420098305, -0.006197708193212748, 0.018004320561885834, 0.03138544037938118, -0.011872035451233387, 0.008749192580580711, 0.015500812791287899, 0.016530130058526993, -0.03531080111861229, -0.04965145140886307, -0.009656387381255627, -0.04075396806001663, 0.053140658885240555, -0.04644137620925903, -0.027896229177713394, -0.024407019838690758, -0.020202523097395897, 0.0016083074733614922, -0.020778242498636246, 0.024947848170995712, -0.010293168015778065, -0.026989035308361053, 0.058653611689805984, 0.039323389530181885, -0.05443166568875313, 0.0614100880920887, -0.0010625732829794288, 0.043126627802848816, -0.013145596720278263, -0.020115291699767113, 0.032606661319732666, 0.08108922839164734, 0.024878064170479774, -0.01721924915909767, -0.000985156511887908, 0.027669431641697884, -0.015570596791803837, 0.033967453986406326, -0.029815293848514557, -0.009778509847819805, 0.03288579732179642, 0.06305001676082611, 0.04106799513101578, -0.01481169369071722, -0.01837068796157837, 0.009551710449159145, -0.026814574375748634, 0.004487995523959398, -0.043650008738040924, 0.047278787940740585, 0.0006700372323393822, 0.004411668982356787, 0.035677164793014526, 0.15031513571739197, -0.028018351644277573, -0.004326619673520327, 0.0048412783071398735, -0.0904403105378151, -0.024686157703399658, -0.03393256291747093, 0.007698068395256996, -0.0013117246562615037, -0.035799287259578705, -0.021022487431764603, -0.016102701425552368, -0.036706484854221344, -0.012508816085755825, 0.052512601017951965, -0.07355253398418427, 0.016896497458219528, 0.021528422832489014, -0.039951447397470474, -0.015134446322917938, 0.0028197173960506916, 0.019591910764575005, -0.031594790518283844, -0.011671405285596848, 0.057467278093099594, 0.03288579732179642, -0.01864982396364212, 0.008727384731173515, -0.04630180820822716, -0.008653239347040653, -0.019417449831962585, 0.00449235737323761, -0.07111009210348129, -0.008941099047660828, -0.10718851536512375, -0.03438615798950195, 0.043929148465394974, -0.05673454701900482, -0.02848939597606659, 0.009403419680893421, 0.03224029392004013, -0.018231119960546494, -0.020603781566023827, 0.021423745900392532, 0.029536157846450806, 0.017524555325508118, -0.011889480985701084, -0.012543708086013794, -0.029937416315078735, 0.01717563346028328, 0.033409181982278824, -0.045115478336811066, -0.020219968631863594, -0.0358341820538044, -0.040230583399534225, -0.04368490353226662, 0.024860616773366928, 0.03438615798950195, 0.024372128769755363, 0.038067273795604706, -0.007379678077995777, 0.013983006589114666, -0.024633819237351418, 0.01543975155800581, -0.04542950540781021, -0.03438615798950195, -0.008666324429214, -0.017603062093257904, 0.01106079388409853, 0.012674553319811821, -0.05645540729165077, -0.08890505880117416, 0.025855042040348053, -0.033758100122213364, 0.025732919573783875, -0.014959985390305519, -0.05485037341713905, -0.10265254229307175, -0.037334542721509933, 0.038067273795604706, 0.021353961899876595, 0.010136153548955917, -0.01282284501940012, 0.0037443579640239477, -0.02889065444469452, -0.03764856979250908, 0.0007049293490126729, 0.053140658885240555, 0.0972093716263771, -0.033234719187021255, -0.011052071116864681, 0.052512601017951965, 0.014672125689685345, 0.0002623721957206726, -0.022191371768712997, -0.042777709662914276, -0.07201728224754333, -0.023744070902466774, 0.0392187125980854, 0.00666875159367919, -0.060293540358543396, -0.003491390263661742, -0.06674857437610626, -0.07627411931753159, 0.017838582396507263, 0.01721924915909767, -0.023098565638065338, 0.022941552102565765, 0.01940000429749489, 0.04679029807448387, -0.029012776911258698, -0.025628242641687393, -0.017419878393411636, -0.050070155411958694, 0.019591910764575005, 0.012534985318779945, -0.014227251522243023, 0.06605073809623718, -0.030286338180303574, -0.016451623290777206, 0.0031228424049913883, -0.01700989529490471, -0.014174913056194782, -0.032501984387636185, -0.014907646924257278, -0.05568778142333031, -0.01162779051810503, 0.044208284467458725, 0.019417449831962585, -0.013538132421672344, 0.0472090020775795, -0.01113930158317089, -0.007370954845100641, 0.03569461405277252, 0.06612052023410797, -0.02883831597864628, 0.020900364965200424, 0.010912502184510231, 0.017559446394443512, 0.007510523311793804, 0.039044253528118134, 0.035903964191675186, 0.0335487499833107, -0.002411915920674801, 0.009595326147973537, -0.0545712374150753, 0.021336516365408897, 0.007732960395514965, -0.022941552102565765, -0.031996048986911774, -0.028297489508986473, -0.004359330981969833, 0.059839941561222076, -0.009263850748538971, 0.07117987424135208, 0.030966734513640404, -0.019696587696671486, -0.009508095681667328, -0.042777709662914276, -0.006642582360655069, 0.03876511752605438, -0.020743349567055702, 0.01332878042012453, -0.05565289035439491, -0.05481547862291336, 0.03768346086144447, -0.05090756714344025, -0.022051803767681122, -0.04120756313204765, 0.00002274460348417051, -0.015483367256820202, -0.012787953019142151, -0.01211627945303917, 0.02274964563548565, 0.011296316049993038, 0.04054461419582367, 0.04986080154776573, 0.010162322781980038, -0.03674137592315674, 0.033792994916439056, 0.047174111008644104, 0.005329767242074013, 0.06458526849746704, -0.0767626091837883, 0.025593351572752, 0.014916370622813702, -0.023848745971918106, -0.008609624579548836, 0.038974471390247345, 0.025331661105155945, -0.0007223754073493183, -0.008919291198253632, 0.04459209740161896, -0.020848026499152184, 0.08541584759950638, 0.009682556614279747, -0.028245151042938232, 0.035293351858854294, 0.003255868563428521, 0.0335487499833107, -0.00012041861191391945, 0.003552451264113188, 0.015160614624619484, 0.02854173257946968, -0.037788137793540955, -0.0739014595746994, -0.022104142233729362, -0.03621799498796463, 0.027198387309908867, -0.024250006303191185, 0.027791554108262062, -0.007698068395256996, -0.04009101539850235, -0.008805892430245876, 0.02116205543279648, 0.032153066247701645, -0.03935828432440758, -0.021057378500699997, -0.050977349281311035, -0.08367124199867249, -0.0443478524684906, 0.010502520017325878, 0.008557286113500595, 0.006564075127243996, 0.033287059515714645, -0.00884514581412077, -0.02929191291332245, 0.0386604405939579, -0.04424317553639412, 0.0029047669377177954, 0.030321229249238968, 0.010746764950454235, -0.02343004196882248, -0.013293888419866562, 0.08436908572912216, 0.02569802850484848, 0.02461637184023857, -0.007828913629055023, 0.0006525912322103977, -0.01108696311712265, 0.012386693619191647, 0.0067603434436023235, -0.021284177899360657, -0.05505972355604172, 0.015561874024569988, 0.008448248729109764, -0.027111157774925232, 0.02262752316892147, -0.00040698357042856514, -0.07100541144609451, 0.007785298395901918, 0.0253142137080431, 0.018580039963126183, 0.0016562840901315212, 0.027372848242521286, -0.025453783571720123, -0.010676980949938297, 0.03326961025595665, -0.004025675356388092, 0.0020695372950285673, -0.006568436976522207, 0.0017478758236393332, 0.0038599378895014524, 0.012002880685031414, -0.03520612418651581, -0.10900290310382843, 0.04930252954363823, -0.031088856980204582, -0.0008215997950173914, -0.07801872491836548, 0.015090830624103546, -0.005752834025770426, 0.04033526033163071, 0.016617359593510628, -0.020097846165299416, 0.0014382085064426064, -0.00493286969140172, 0.010912502184510231, 0.03035612218081951, 0.044487420469522476, -0.02438957430422306, 0.006873742677271366, -0.05795576795935631, 0.019993169233202934, 0.0062805768102407455, 0.00991807784885168, 0.02081313356757164, -0.009691279381513596, 0.040405046194791794, -0.005198922008275986, -0.04089353606104851, 0.03400234505534172, 0.006079947575926781, 0.00274993316270411, 0.03880000859498978, 0.009551710449159145, 0.06147987022995949, -0.005085522774606943, -0.03258921578526497, -0.019120868295431137, -0.028192812576889992, 0.0025798343122005463, -0.04630180820822716, -0.06318958103656769, 0.0773208811879158, -0.022051803767681122, -0.0016682782443240285, -0.00864015519618988, 0.028332380577921867, 0.062456849962472916, -0.0037269117310643196, 0.047906845808029175, -0.06716728210449219, 0.00273684854619205, 0.025575906038284302, -0.03736943379044533, -0.02712860330939293, -0.05219857394695282, -0.01677437499165535, -0.010083815082907677, 0.019644249230623245, -0.022104142233729362, -0.028000906109809875, 0.06751620024442673, -0.006184623576700687, 0.055862244218587875, 0.020324645563960075, -0.06207303702831268, -0.006546629127115011, -0.07766979932785034, 0.005591458175331354, -0.06751620024442673, 0.007366593461483717, 0.04480144754052162, 0.03827662765979767, -0.013049643486738205, -0.006245684809982777, 0.0488838255405426, -0.015544428490102291, 0.02780899964272976, -0.022871768102049828, 0.015762504190206528, 0.03873022645711899, 0.012002880685031414, 0.006546629127115011, 0.0070307571440935135, -0.060014404356479645, 0.028000906109809875, 0.0739014595746994, -0.013381117954850197, -0.038590654730796814, 0.06175900623202324, -0.0008014278137125075, -0.06004929542541504, -0.005556566175073385, -0.019487235695123672, -0.02222626470029354, 0.009063221514225006, 0.009630218148231506, 0.009542987681925297, 0.022383278235793114, 0.009734894149005413, 0.01222095638513565, 0.03709029778838158, -0.02655288390815258, 0.004919785540550947, 0.01756816916167736, -0.07229641824960709, -0.035293351858854294, 0.02206924930214882, 0.03246709331870079, 0.016879050061106682, 0.01632077805697918, 0.042673032730817795, 0.0014927274314686656, -0.006921719294041395, -0.033356841653585434, -0.01644289866089821, -0.04316152259707451, 0.0562809482216835, 0.05366403982043266, 0.03070504404604435, 0.03538058325648308, -0.027966013178229332, -0.06336404383182526, -0.022784538567066193, -0.01580611802637577, 0.033060260117053986, -0.0020858929492533207, -0.015021046623587608, 0.030443351715803146, 0.050523754209280014, -0.020254861563444138, 0.021423745900392532, 0.0784374251961708, 0.0562809482216835, -0.05610648915171623, -0.006315469276160002, 0.014907646924257278, -0.026936696842312813, -0.056664761155843735, 0.012404139153659344, -0.0009001070284284651, 0.03838130459189415, -0.07648347318172455, 0.0109473941847682, -0.04197518900036812, 0.07079605758190155 ]
43,300
mo_dots.datas
__copy__
null
def __copy__(self): d = _get(self, SLOT) if _get(d, CLASS) is dict: return Data(**self) else: return copy(d)
(self)
[ 0.035387009382247925, -0.04318181052803993, -0.011416276916861534, -0.04990741237998009, -0.08353541791439056, -0.010726472362875938, 0.015831030905246735, 0.026091884821653366, 0.06939440965652466, 0.007768931798636913, -0.015770673751831055, 0.008506161160767078, -0.029161518439650536, 0.04770003631711006, -0.05125253275036812, 0.03159308061003685, -0.014054782688617706, 0.033593516796827316, -0.03856011480093002, -0.008394068107008934, 0.019935373216867447, -0.0044449325650930405, -0.0005011866451241076, 0.041388317942619324, 0.012373382225632668, 0.03436954692006111, -0.00824748445302248, 0.005505508277565241, 0.03631824627518654, 0.005734006408601999, -0.0018689411226660013, -0.01812463440001011, -0.004270325880497694, 0.056150149554014206, 0.011942253448069096, 0.004216434899717569, -0.053356438875198364, -0.005479640793055296, -0.04842432960867882, 0.004755345173180103, -0.0032593298237770796, -0.07974149286746979, -0.0042832596227526665, -0.009545180946588516, 0.05218376964330673, 0.012382004410028458, -0.02410869486629963, 0.02550555020570755, 0.03502486273646355, -0.06804928928613663, 0.02405695989727974, 0.05239070951938629, -0.04635491594672203, 0.016201801598072052, -0.017607279121875763, 0.035559460520744324, 0.022211730480194092, 0.08705342561006546, -0.010148759931325912, 0.07939659059047699, -0.045975521206855774, 0.02236693538725376, -0.0010341689921915531, -0.08036231249570847, 0.011580105870962143, -0.060875315219163895, -0.04939005896449089, -0.033852193504571915, 0.03154134750366211, 0.017029568552970886, -0.014460043050348759, 0.021366719156503677, 0.009907328523695469, 0.04663083702325821, 0.029730606824159622, -0.036594171077013016, 0.010131514631211758, -0.04897617548704147, 0.03247258439660072, -0.015598221682012081, -0.01943526417016983, -0.03419709578156471, -0.07463692873716354, 0.03305891901254654, -0.06956686079502106, 0.02981683239340782, 0.022056523710489273, 0.0005108870100229979, -0.016736401244997978, -0.02874763496220112, 0.018952399492263794, 0.050148844718933105, -0.0654970109462738, 0.04511326551437378, 0.009407219476997852, -0.048872705549001694, -0.029040802270174026, -0.017314111813902855, -0.004315594211220741, 0.05563279613852501, -0.03449026495218277, 0.009536557830870152, -0.07498183101415634, -0.010924790985882282, 0.03455924615263939, -0.012830378487706184, 0.04242302477359772, 0.000012260211406101007, -0.04701022803783417, 0.00017568477778695524, 0.008217304944992065, 0.0780169740319252, -0.04156076908111572, 0.07718920707702637, -0.0023690499365329742, -0.01631389558315277, -0.03607681766152382, -0.004087096080183983, -0.007161041256040335, -0.01822810433804989, -0.05521891266107559, 0.07270547747612, -0.020521707832813263, 0.03876705840229988, 0.012054347433149815, 0.05563279613852501, 0.00007234871736727655, -0.04062953218817711, 0.009277881123125553, -0.030627354979515076, 0.02098732627928257, -0.027747416868805885, 0.01429621409624815, 0.009027826599776745, -0.003602077020332217, -0.0195042435079813, 0.02122875675559044, 0.020211294293403625, -0.027540475130081177, 0.033852193504571915, 0.012269911356270313, 0.006579017732292414, 0.051597435027360916, 0.05742628872394562, -0.002892870921641588, -0.06311718374490738, 0.006591951474547386, 0.06563497334718704, -0.01821085996925831, 0.011442145332694054, -0.01798667199909687, 0.05870242789387703, 0.019245566800236702, 0.06967033445835114, -0.04494081437587738, -0.027816398069262505, -0.06660070270299911, -0.05390828102827072, -0.03931890055537224, -0.029523665085434914, -0.018693722784519196, -0.03586987406015396, 0.026833426207304, -0.08926080167293549, -0.02381552755832672, 0.005811609327793121, 0.03480067476630211, -0.027695681899785995, 0.023384399712085724, 0.0284199770539999, -0.010364323854446411, -0.05235622078180313, -0.045009795576334, 0.050459254533052444, -0.042733438313007355, 0.026264335960149765, -0.029092537239193916, -0.04097443446516991, 0.039905235171318054, -0.03755989670753479, 0.024746764451265335, -0.03704254329204559, -0.048700254410505295, 0.04669981822371483, 0.04970046877861023, -0.04966598004102707, 0.01039881445467472, 0.017538299784064293, 0.0566675029695034, 0.056495051831007004, -0.044561419636011124, -0.0032830419950187206, -0.02386726252734661, -0.024401862174272537, -0.009984930977225304, -0.041457295417785645, -0.012752775102853775, 0.003069633385166526, -0.03450750932097435, 0.1136799082159996, 0.0028777814004570246, -0.07187771052122116, 0.04221608117222786, -0.0029058046638965607, -0.0451822467148304, -0.014063404873013496, 0.03731846436858177, 0.0002964007144328207, 0.022228974848985672, -0.024712273851037025, -0.013942689634859562, -0.019245566800236702, 0.047596562653779984, -0.03492139279842377, 0.070980966091156, -0.030368678271770477, -0.014848059043288231, -0.0780169740319252, -0.004384574946016073, 0.006902364082634449, 0.03766336664557457, -0.00357189797796309, -0.09167512506246567, 0.04511326551437378, -0.05087313801050186, -0.019038625061511993, -0.03483516722917557, -0.051942337304353714, -0.01803840883076191, -0.03450750932097435, 0.011476635001599789, -0.005479640793055296, 0.03298993781208992, -0.04159525781869888, 0.02554004080593586, 0.009329616092145443, -0.011407654732465744, -0.0015585287474095821, 0.00829059723764658, 0.026264335960149765, -0.004587205126881599, 0.0031149019487202168, 0.021470189094543457, 0.05214927718043327, 0.004832948092371225, -0.020400991663336754, -0.0034856724087148905, 0.048700254410505295, 0.0075059435330331326, 0.002485454548150301, 0.0658419132232666, -0.008450115099549294, -0.05411522462964058, 0.04511326551437378, 0.02531585283577442, 0.004651874303817749, -0.018779948353767395, -0.021625395864248276, 0.01355467364192009, -0.006652309559285641, -0.020728647708892822, 0.0027031744830310345, 0.019969861954450607, 0.0027549099177122116, -0.035300783812999725, 0.0006332196644507349, -0.01934903860092163, 0.0061565120704472065, -0.06101327762007713, 0.028247525915503502, 0.06891154497861862, 0.03711152449250221, 0.019159341230988503, 0.04780350625514984, -0.014313459396362305, -0.02272908389568329, 0.0056176017969846725, -0.022022033110260963, 0.022177239879965782, -0.0628412589430809, 0.05387379229068756, 0.06622130423784256, 0.05521891266107559, -0.05414971336722374, 0.005354613531380892, -0.0393533892929554, 0.04832085967063904, 0.02676444500684738, 0.022073768079280853, -0.005557243712246418, 0.0069885896518826485, 0.028006093576550484, -0.010623001493513584, 0.0007264511659741402, 0.03742193803191185, 0.03486965596675873, -0.07063606381416321, 0.03873256593942642, 0.029058046638965607, 0.04162975028157234, 0.0283337514847517, -0.05887487903237343, 0.01052815280854702, 0.08181090652942657, -0.044009577482938766, 0.0011155444663017988, 0.0012168596731498837, 0.03793929144740105, -0.005915080197155476, 0.007148107048124075, 0.041284844279289246, 0.0090019591152668, 0.019176587462425232, 0.07574062049388885, -0.013934066519141197, -0.013020074926316738, 0.0013181747635826468, 0.014503155834972858, 0.015684448182582855, 0.07608552277088165, -0.07580959796905518, -0.038042761385440826, -0.003520162543281913, -0.0026298826560378075, 0.06446230411529541, -0.002750598592683673, -0.027712926268577576, -0.022039279341697693, 0.0014766143867745996, 0.015210206620395184, -0.01819361373782158, 0.04197465255856514, 0.02121151238679886, 0.025781473144888878, 0.02714383788406849, 0.025850452482700348, -0.023418888449668884, -0.022953270003199577, -0.008751904591917992, -0.01946975477039814, 0.04538918659090996, 0.025746982544660568, 0.02083211950957775, -0.03576640412211418, 0.05359787121415138, -0.0005879512173123658, -0.01495152898132801, 0.00913991965353489, -0.003082567360252142, -0.02688516117632389, -0.036732129752635956, -0.021935807541012764, 0.048941683024168015, 0.035076599568128586, 0.04949352890253067, -0.04056055098772049, 0.03649069741368294, -0.02086661010980606, -0.05259765312075615, -0.02990305796265602, 0.11354194581508636, 0.02981683239340782, -0.02131498232483864, -0.021573660895228386, 0.003718481631949544, 0.029178762808442116, -0.05608116835355759, -0.007104994263499975, -0.032075945287942886, -0.04162975028157234, -0.039525844156742096, -0.001453980221413076, -0.026488522067666054, -0.04690675809979439, 0.011381787247955799, -0.039836253970861435, -0.023436134681105614, 0.025074422359466553, -0.020521707832813263, -0.02567800134420395, 0.0805002748966217, -0.031075727194547653, -0.054632578045129776, 0.03143787384033203, 0.06718703359365463, -0.010640246793627739, 0.0112093361094594, -0.001956244697794318, 0.04325079172849655, -0.007962939329445362, -0.02697138674557209, -0.0021825870499014854, -0.027574965730309486, 0.04359569400548935, -0.024660538882017136, -0.020263029262423515, -0.015865521505475044, 0.011597351171076298, -0.06101327762007713, 0.03026520647108555, -0.0036365671548992395, -0.05266663432121277, -0.0028670032043009996, 0.0021815092768520117, 0.01433932688087225, -0.045009795576334, 0.04828637093305588, 0.00830353144556284, 0.012554456479847431, -0.04635491594672203, 0.023022251203656197, -0.004867438692599535, -0.014227233827114105, 0.018710969015955925, 0.029696118086576462, -0.014675606973469257, 0.07353324443101883, -0.018504027277231216, 0.012511342763900757, 0.047837994992733, -0.00485019339248538, 0.0006903441972099245, -0.014925661496818066, -0.019055871292948723, 0.019004136323928833, 0.01429621409624815, -0.047182679176330566, 0.03704254329204559, -0.007764620706439018, 0.004651874303817749, 0.007113616913557053, -0.0017978049581870437, -0.017115794122219086, -0.011735312640666962, 0.03904297947883606, -0.0032442405354231596, 0.013106300495564938, -0.04097443446516991, 0.005492574535310268, 0.07643042504787445, 0.025781473144888878, -0.039905235171318054, 0.02086661010980606, -0.035093843936920166, -0.06591089069843292, -0.019159341230988503, -0.008450115099549294, 0.020332010462880135, 0.016736401244997978, -0.05680546537041664, 0.015218828804790974, 0.0638759657740593, 0.05352889001369476, 0.0015455950051546097, -0.026540258899331093, -0.03562844172120094, -0.02566075697541237, -0.08560483157634735, -0.027902623638510704, -0.02974785305559635, -0.005057135131210089, -0.014641117304563522, 0.015339544974267483, -0.0071351733058691025, 0.010088401846587658, 0.01661568507552147, -0.01788320206105709, -0.008536340668797493, -0.017365848645567894, 0.003246396081522107, 0.03295544534921646, -0.005225275177508593, 0.004759656265377998, -0.06525558233261108, 0.01638287492096424, 0.008027608506381512, -0.011562860570847988, -0.005768496543169022, -0.06311718374490738, -0.018383311107754707, 0.010898923501372337, -0.020228540524840355, -0.001496015232987702, 0.007044636178761721, -0.05201131850481033, 0.01039019227027893, -0.011278316378593445, 0.03924991935491562, -0.0026255713310092688, 0.04976944997906685, -0.010122892446815968, 0.03155859187245369, -0.07249853760004044, 0.010786830447614193, 0.000625674962066114, 0.03467996045947075, 0.016262158751487732, 0.042871396988630295, 0.026678219437599182, -0.059219781309366226, -0.013968557119369507, -0.012933849357068539, -0.01208883710205555, 0.025195138528943062, -0.04162975028157234, -0.02272908389568329, -0.04918311536312103, 0.05694342404603958, 0.0001607300218893215, 0.005850411020219326, -0.0045915162190794945, -0.011450767517089844, -0.0239189974963665, 0.018573006615042686, 0.033679742366075516, -0.038111742585897446, -0.03269676864147186, 0.015296432189643383, -0.05011435225605965, -0.06539353728294373, 0.0506661981344223, 0.062185946851968765, 0.02376379258930683, -0.05239070951938629, -0.07380916178226471, -0.001195303164422512, -0.009036448784172535, -0.02985132299363613, 0.011899140663444996, -0.04987291991710663, -0.01805565319955349, -0.04511326551437378, -0.011769802309572697, 0.05132151395082474, 0.039560332894325256, 0.021349472925066948, -0.001977801090106368, -0.005449461750686169, -0.060633882880210876, 0.015330921858549118, -0.005552932620048523, -0.02986856922507286, 0.07360222190618515, -0.04373365640640259, -0.022056523710489273, 0.026678219437599182, -0.036628659814596176, 0.041215866804122925, -0.01665017567574978, 0.002746287267655134, -0.007320558652281761, -0.03421434015035629, 0.026436787098646164, -0.02410869486629963, 0.011433522216975689, 0.024677783250808716, -0.0024617426097393036, -0.027695681899785995, 0.04525122791528702, 0.0046648080460727215, 0.009303748607635498, -0.0283337514847517, 0.02990305796265602, -0.00034867500653490424, -0.01650359109044075, -0.009389974176883698, -0.03478343039751053, 0.06028898060321808, -0.02985132299363613, -0.019004136323928833, 0.027781907469034195, 0.056357089430093765, 0.03421434015035629, 0.018262594938278198, 0.06439331918954849, 0.01347707025706768, 0.020245784893631935, -0.008100900799036026, -0.03485241159796715, -0.06473822891712189, 0.024470841512084007, 0.044009577482938766, -0.012804510071873665, 0.005884901154786348, -0.06111674755811691, -0.008626877330243587, -0.04045708104968071, 0.013623653911054134, 0.04231955483555794, -0.03169655427336693, 0.04556163772940636, 0.09477924555540085, -0.05877140909433365, -0.006402255035936832, 0.03614579513669014, 0.01113173272460699, 0.007001523394137621, -0.04963149130344391, -0.040112175047397614, 0.004945041611790657, -0.0324898287653923, 0.07684430480003357, 0.004569959826767445, -0.004841570742428303, 0.022936025634407997, -0.007290379609912634, -0.04511326551437378, 0.04262996464967728, 0.019245566800236702, -0.05870242789387703, 0.019935373216867447, 0.02107355184853077, 0.022884290665388107, -0.04538918659090996, 0.019297301769256592, -0.03731846436858177, -0.03752540796995163, 0.006829072255641222, -0.04635491594672203, 0.01490841619670391, -0.017607279121875763, -0.0056477808393538, -0.020504461601376534, 0.04628593474626541, -0.07146382331848145, -0.041319336742162704, 0.012373382225632668, 0.04038809984922409, -0.033679742366075516, -0.04459591209888458, 0.038111742585897446, -0.050148844718933105, 0.03790479898452759, -0.011442145332694054, -0.0060789091512560844, 0.025971168652176857, 0.03135164827108383, 0.014434175565838814, 0.008514784276485443, 0.07656838744878769, 0.04494081437587738, -0.0017536144005134702, 0.0111231105402112, 0.015046377666294575, -0.06660070270299911, -0.018797194585204124, 0.0008293830906040967, -0.026712710037827492, -0.04528571665287018, -0.05518442392349243, -0.04673430696129799, -0.00973487738519907, -0.01633113995194435, 0.03731846436858177, 0.038318682461977005, -0.0032528629526495934, 0.03328310325741768, -0.005449461750686169, 0.02115977741777897, -0.0059366365894675255, -0.04628593474626541, 0.03876705840229988, -0.014235856011509895, -0.05242520198225975, 0.09657274186611176, 0.03721499443054199, -0.030385922640562057, -0.004888995084911585, 0.02974785305559635, 0.008773460984230042, -0.024522578343749046, 0.015572354197502136, -0.09960788488388062, 0.009027826599776745, -0.04669981822371483, -0.0388360358774662, 0.009510690346360207, -0.04794146493077278, 0.025143401697278023, -0.023315418511629105, 0.022004788741469383, 0.01964220590889454, 0.018452290445566177, 0.011649087071418762, -0.03467996045947075, 0.12382004410028458, 0.009062317200005054, -0.07084300369024277, -0.0285924281924963, -0.05080416053533554, 0.018624741584062576, -0.013158035464584827, -0.015184339135885239, 0.006475546862930059, 0.01118346769362688, -0.04669981822371483, -0.029489176347851753, -0.07505081593990326, 0.006316029466688633, 0.00599699467420578, 0.009338239207863808, 0.002757065463811159, 0.0328347310423851, 0.008484604768455029, 0.020366501063108444, -0.01779697649180889, -0.05646056309342384, 0.03152409940958023, 0.029282234609127045, 0.004617384169250727, 0.014813568443059921, 0.04528571665287018, -0.014494533650577068, 0.03704254329204559, 0.012899358756840229, -0.03330035135149956, -0.02381552755832672, -0.021711621433496475, -0.010640246793627739, 0.004378107842057943, -0.008583764545619488, -0.031092973425984383, 0.03911196067929268, 0.051735397428274155, 0.05411522462964058, 0.08491502702236176, 0.01432208251208067, -0.10078055411577225, -0.006057352758944035, 0.03155859187245369, 0.02084936387836933, 0.02245316095650196, 0.008217304944992065, -0.012985584326088428, 0.04928658530116081, -0.021435698494315147, 0.006290161982178688, 0.0324898287653923, 0.01669328846037388, 0.05518442392349243, -0.020263029262423515, 0.014761832542717457, 0.0658419132232666, 0.07277445495128632, -0.08139701932668686, -0.04707920923829079, -0.005893523804843426, 0.01928005740046501, -0.0010126125998795033, 0.007975873537361622, 0.029144272208213806, 0.04373365640640259, 0.0014496688963845372, 0.04190567135810852, 0.018400555476546288, -0.024936459958553314, -0.030782559886574745, -0.029609890654683113, 0.06711805611848831, 0.0011931476183235645, -0.021521924063563347, -0.006109088193625212, 0.04452693089842796, 0.05601218715310097, -0.0006973500130698085, 0.022125504910945892, 0.022194484248757362, 0.015296432189643383 ]
43,301
mo_dots.datas
__deepcopy__
null
def __deepcopy__(self, memo): d = _get(self, SLOT) return to_data(deepcopy(d, memo))
(self, memo)
[ 0.004443179350346327, -0.041329555213451385, -0.002742833225056529, -0.012417363002896309, -0.09375655651092529, 0.00635160319507122, 0.001128660049289465, 0.035007379949092865, 0.005742084700614214, -0.027054212987422943, -0.014603221789002419, 0.05444471165537834, -0.01767183281481266, 0.04691190645098686, -0.01699085347354412, 0.011013368144631386, 0.016452794894576073, 0.012123112566769123, -0.05000573769211769, 0.04620570316910744, 0.015410308726131916, 0.007541215047240257, 0.029425030574202538, 0.030871059745550156, -0.027777228504419327, -0.00035073584876954556, 0.01715899631381035, -0.004548268858343363, 0.0024107506033033133, 0.058177489787340164, -0.03300647810101509, -0.007389886304736137, 0.008768659085035324, 0.0526287667453289, 0.013981092721223831, -0.024952426552772522, -0.03164451941847801, 0.0368233248591423, -0.04798801988363266, -0.041699472814798355, 0.018092190846800804, -0.04708004742860794, 0.015334644354879856, -0.011803640983998775, 0.05488188564777374, -0.022884266451001167, -0.02490198239684105, 0.022144436836242676, 0.027272799983620644, -0.10646816343069077, 0.00398498959839344, 0.05700048804283142, -0.025440040975809097, 0.017806347459554672, 0.014855436980724335, 0.038773782551288605, 0.035007379949092865, 0.02443118207156658, 0.006931696552783251, 0.06523949652910233, -0.09900261461734772, -0.0037748110480606556, 0.026263941079378128, -0.03213213384151459, -0.007595861330628395, -0.05932085961103439, -0.05135088041424751, -0.054781001061201096, 0.04506233334541321, 0.006473506800830364, -0.009844774380326271, 0.010239910334348679, 0.018916090950369835, 0.006591206882148981, 0.002026123460382223, -0.0498039647936821, 0.06167486310005188, -0.04442339017987251, 0.019538220018148422, -0.02301878109574318, -0.08299539983272552, -0.008751844987273216, -0.08656003326177597, 0.008478612639009953, -0.07586613297462463, 0.04334727302193642, 0.03635252267122269, 0.00944123137742281, 0.0006436725379899144, -0.010626639239490032, 0.019723176956176758, 0.008978838101029396, -0.05703411623835564, 0.042607445269823074, -0.042372044175863266, -0.06594569981098175, -0.042910102754831314, 0.01170275453478098, -0.02512056939303875, 0.03863926976919174, -0.036756064742803574, 0.00018062240269500762, -0.11117617040872574, 0.025742698460817337, 0.012644356116652489, -0.032670192420482635, 0.012316476553678513, -0.014620036818087101, -0.010710710659623146, -0.0013031085254624486, -0.031459562480449677, 0.08010333776473999, -0.048996880650520325, 0.03813483938574791, -0.019975392147898674, 0.045163217931985855, -0.054713740944862366, -0.03803395479917526, 0.009037687443196774, -0.019437333568930626, -0.047349076718091965, 0.04946767911314964, -0.012274441309273243, 0.00826843362301588, -0.003055999521166086, 0.03564632311463356, 0.035074636340141296, 0.0023603078443557024, -0.012913384474813938, -0.020698407664895058, 0.01007176749408245, -0.017772717401385307, 0.033124178647994995, 0.038773782551288605, -0.017621388658881187, 0.0001807537628337741, 0.04536499083042145, -0.021421421319246292, -0.048021648079156876, 0.03231709077954292, 0.006860235705971718, 0.018848834559321404, 0.03304010629653931, 0.04919864982366562, 0.025154197588562965, -0.06463418155908585, -0.023203738033771515, 0.0675598680973053, -0.01552800927311182, 0.023809053003787994, -0.009710259735584259, 0.029912644997239113, 0.0166209377348423, 0.07008201628923416, -0.026062170043587685, 0.042002130299806595, -0.04701279103755951, -0.0017150589264929295, -0.05101459473371506, -0.019370077177882195, -0.023439139127731323, -0.023876309394836426, 0.02354002371430397, -0.05363762751221657, -0.039446353912353516, 0.025910841301083565, 0.056529685854911804, -0.06732446700334549, -0.010971332900226116, 0.022917894646525383, -0.03359497711062431, -0.05121636763215065, -0.010265132412314415, 0.011492576450109482, -0.03934546932578087, 0.008886358700692654, -0.029055114835500717, -0.034418877214193344, 0.014880658127367496, -0.01097973994910717, -0.025221453979611397, -0.03641977906227112, -0.04217027127742767, 0.006368417292833328, 0.024397553876042366, -0.04681101813912392, 0.02059752121567726, 0.0049938480369746685, 0.06544126570224762, 0.04926590621471405, -0.06665189564228058, 0.006654260214418173, 0.013451442122459412, -0.04950130730867386, -0.017924046143889427, -0.052830539643764496, 0.01563730090856552, 0.04654199257493019, 0.006826607044786215, 0.08454231917858124, -0.00581354508176446, -0.04190124198794365, 0.026062170043587685, -0.02106832154095173, -0.014334193430840969, 0.0073142219334840775, -0.029122373089194298, -0.017192624509334564, 0.03038344532251358, 0.02834891527891159, 0.006048945710062981, -0.0060321311466395855, 0.03341002017259598, -0.021001065149903297, 0.032972849905490875, -0.030719731003046036, -0.03541092202067375, -0.03759678080677986, 0.012577098794281483, 0.02211080864071846, 0.022379837930202484, -0.04240567237138748, -0.08212105929851532, 0.02737368457019329, -0.03826935216784477, -0.014788179658353329, -0.021623194217681885, -0.045230474323034286, -0.019605476409196854, -0.02984538860619068, -0.015956774353981018, -0.02730642817914486, 0.047349076718091965, -0.028567500412464142, 0.062313806265592575, 0.02473383955657482, -0.03843749687075615, -0.01931963488459587, -0.00830626580864191, 0.04032069817185402, -0.03880741074681282, 0.0004214084765408188, 0.06769438087940216, 0.061035919934511185, 0.012585505843162537, 0.02121965028345585, 0.017873603850603104, 0.03504100814461708, 0.02330462448298931, 0.025103755295276642, 0.04021981358528137, 0.01120673306286335, -0.022127622738480568, 0.009113351814448833, 0.050342023372650146, -0.026818813756108284, 0.002799581503495574, 0.008512240834534168, 0.02128690853714943, -0.0024401757400482893, 0.025086939334869385, -0.00021306874987203628, 0.012047448195517063, -0.035175520926713943, -0.04159858450293541, 0.012223998084664345, -0.03330913558602333, 0.0017045499989762902, -0.09220963716506958, 0.043145500123500824, 0.0571686290204525, 0.0209001787006855, 0.010323981754481792, 0.05935449153184891, -0.02105150744318962, -0.019437333568930626, 0.021471865475177765, 0.026499342173337936, -0.027054212987422943, -0.04183398559689522, 0.021404607221484184, 0.04025344178080559, 0.058547403663396835, -0.0586819164454937, -0.03934546932578087, -0.0283657293766737, 0.05851377546787262, 0.00021779777307529002, 0.008243212476372719, -0.0024506845511496067, 0.037798553705215454, 0.04560038819909096, -0.002946706721559167, 0.0019420520402491093, 0.04714730754494667, 0.03655429556965828, -0.05864828824996948, 0.03870652616024017, -0.011366468854248524, 0.06967847049236298, -0.01812581904232502, -0.05074556544423103, -0.034872863441705704, 0.07028378546237946, -0.02083292230963707, 0.01881520450115204, 0.013157191686332226, 0.03618438169360161, 0.03483923524618149, 0.020563893020153046, 0.023220552131533623, 0.017688646912574768, 0.02232939377427101, 0.07216698676347733, -0.009811146184802055, -0.04563402011990547, -0.01827714778482914, -0.014620036818087101, 0.05098096653819084, 0.05703411623835564, -0.05451197177171707, -0.01297223474830389, -0.04385170340538025, -0.015822259709239006, 0.02512056939303875, -0.0019189323065802455, -0.009432824328541756, 0.01082841120660305, 0.03736137971282005, -0.006149831227958202, 0.012997455894947052, -0.005977484863251448, -0.005863988306373358, 0.04069061204791069, 0.022917894646525383, 0.013981092721223831, 0.0072343540377914906, -0.03557906672358513, -0.015847479924559593, -0.014384636655449867, 0.08171751350164413, 0.02362409606575966, 0.0011822556843981147, -0.06507135182619095, 0.08783791959285736, 0.025070125237107277, 0.013770914636552334, 0.022430280223488808, -0.0018306572455912828, 0.03038344532251358, -0.029912644997239113, -0.006687888875603676, 0.03317461907863617, 0.008894766680896282, 0.06217929348349571, 0.0015248471172526479, 0.01601562276482582, -0.03490649163722992, -0.07216698676347733, -0.038101211190223694, 0.03255249187350273, 0.018848834559321404, -0.00757484370842576, 0.0020765664521604776, 0.0424393005669117, 0.011072218418121338, -0.07734579592943192, -0.010685489512979984, 0.003762200241908431, -0.050207510590553284, -0.03401533514261246, 0.0005230824463069439, 0.004130013287067413, -0.022598423063755035, 0.011349654756486416, -0.034099407494068146, -0.010786375030875206, 0.042069386690855026, -0.004548268858343363, -0.006225495599210262, 0.0601952038705349, -0.03995078429579735, -0.03971538320183754, 0.015780223533511162, 0.057336773723363876, 0.031123274937272072, 0.04391895979642868, -0.0021564343478530645, 0.07788385450839996, 0.004699597600847483, -0.010635046288371086, 0.0084996297955513, -0.008243212476372719, 0.05071193724870682, 0.00028321592253632843, -0.039446353912353516, 0.04859333485364914, -0.021774522960186005, -0.07768207788467407, -0.023186923936009407, 0.028533872216939926, -0.06180937960743904, -0.0069989534094929695, 0.004750040825456381, -0.013913835398852825, -0.01842847652733326, 0.009146980941295624, 0.00811710488051176, 0.008449187502264977, -0.04919864982366562, 0.0009442282025702298, -0.035310037434101105, 0.014838622882962227, -0.0040459418669342995, 0.016368724405765533, -0.03820209577679634, 0.046676505357027054, -0.05437745526432991, 0.031325045973062515, 0.05135088041424751, 0.024044454097747803, -0.013812949880957603, -0.022194879129529, -0.027726786211133003, -0.004977033473551273, -0.004321275744587183, -0.052225224673748016, 0.0402870699763298, -0.03510826453566551, -0.015578451566398144, 0.019504591822624207, -0.013409406878054142, 0.02744094282388687, -0.03045070357620716, -0.013140377588570118, -0.025372782722115517, 0.007721968460828066, -0.04280921444296837, -0.012635949067771435, 0.08797243237495422, 0.03863926976919174, -0.027844484895467758, 0.049366794526576996, -0.026011725887656212, -0.015200129710137844, 0.0070367855951189995, 0.01388020720332861, 0.016141731292009354, -0.03904281184077263, -0.016889967024326324, 0.004104791674762964, 0.052023451775312424, 0.01466207206249237, -0.033880822360515594, -0.026667485013604164, -0.027810856699943542, -0.04543224722146988, -0.08225557208061218, -0.025742698460817337, 0.021152393892407417, 0.04761810600757599, 0.015981994569301605, 0.054108425974845886, 0.012770462781190872, -0.008487019687891006, -0.004127911292016506, -0.024683397263288498, 0.023422325029969215, 0.020210791379213333, -0.013552328571677208, 0.006448285188525915, -0.017209438607096672, -0.006523949559777975, -0.07768207788467407, 0.030719731003046036, -0.019218748435378075, -0.021623194217681885, -0.025070125237107277, -0.03046751767396927, -0.0019662226550281048, -0.029979901388287544, -0.06059874966740608, 0.029240073636174202, -0.015662522986531258, -0.04129592701792717, 0.013367370702326298, -0.0033271301072090864, 0.02074884995818138, -0.03863926976919174, 0.039379097521305084, -0.05232610926032066, 0.021169207990169525, -0.07135990262031555, -0.006629039067775011, 0.010550974868237972, 0.048694223165512085, 0.005536109209060669, 0.04062335565686226, 0.021690450608730316, -0.06298638135194778, -0.03362860530614853, -0.003268280066549778, 0.03014804609119892, 0.0433136448264122, -0.05346948280930519, 0.0030391851905733347, -0.03894192725419998, 0.0378994382917881, -0.03295603394508362, -0.02150549367070198, 0.012577098794281483, -0.02286745235323906, -0.041026897728443146, 0.026348013430833817, -0.010929296724498272, -0.026936514303088188, -0.06076689064502716, -0.0049896445125341415, -0.02617987059056759, -0.09906987100839615, 0.04304461553692818, 0.07855642586946487, 0.05595799908041954, -0.09025917947292328, -0.03325869143009186, -0.008617330342531204, -0.028382543474435806, -0.012148333713412285, -0.003123256843537092, -0.046676505357027054, 0.0034889678936451674, -0.016713418066501617, 0.020782478153705597, 0.050140250474214554, 0.040421582758426666, 0.0012474111281335354, 0.0049265907146036625, -0.009962474927306175, -0.051182739436626434, 0.014039942994713783, -0.011694347485899925, -0.03369586169719696, 0.04489418864250183, -0.08548391610383987, -0.038773782551288605, 0.08212105929851532, -0.0022426077630370855, 0.03732775151729584, -0.02137097902595997, -0.023355066776275635, 0.005809341557323933, -0.028248028829693794, 0.020580707117915154, -0.05427657067775726, 0.006494524423032999, 0.01571296527981758, 0.002123856684193015, -0.02969405986368656, 0.07378116250038147, -0.007936351001262665, 0.03514189273118973, -0.00012439956481102854, 0.005187212489545345, -0.005002255085855722, 0.00009188753756461665, -0.009996103122830391, -0.032485231757164, 0.047180935740470886, -0.0024801096878945827, -0.003625584067776799, 0.037462268024683, 0.029744502156972885, 0.03189673274755478, 0.014704108238220215, 0.04731544852256775, 0.025524111464619637, 0.015401901677250862, -0.03857200965285301, -0.0012705307453870773, -0.04045521467924118, 0.02249753661453724, 0.042910102754831314, -0.016805896535515785, 0.018630247563123703, -0.019218748435378075, 0.04842519387602806, -0.03904281184077263, 0.041094157844781876, 0.032064877450466156, -0.03218257427215576, 0.0344356931746006, 0.09012466669082642, -0.06809792667627335, -0.016679788008332253, -0.0026167258620262146, 0.0036760270595550537, -0.03736137971282005, -0.00868458766490221, -0.014947915449738503, -0.0012411057250574231, -0.03098876029253006, 0.056966859847307205, -0.018613433465361595, 0.004632340278476477, -0.0031064425129443407, 0.013190820813179016, -0.04882873594760895, 0.035007379949092865, 0.024851540103554726, 0.016578903421759605, -0.008411355316638947, 0.009500081650912762, 0.043952587991952896, -0.06342355161905289, -0.02354002371430397, -0.034872863441705704, -0.022060366347432137, -0.02293470874428749, -0.07162892818450928, 0.0394127257168293, -0.036150749772787094, 0.016747046262025833, 0.0050989375449717045, 0.02940821647644043, -0.08117945492267609, -0.03483923524618149, -0.004737429786473513, 0.03571357950568199, -0.025171011686325073, -0.00989521760493517, -0.03130823373794556, -0.0020355815067887306, 0.01132443267852068, 0.03514189273118973, 0.019504591822624207, 0.01752050407230854, 0.048694223165512085, -0.0009762804838828743, 0.011879305355250835, 0.05340222641825676, 0.009390788152813911, 0.01691518910229206, -0.0017707563238218427, -0.01646960899233818, -0.08434054255485535, -0.027878114953637123, 0.029660429805517197, -0.014611629769206047, -0.026078984141349792, -0.04391895979642868, -0.04422161728143692, -0.025389596819877625, -0.01143372617661953, 0.04341452941298485, 0.07559710741043091, 0.046743761748075485, 0.05619340017437935, 0.012930198572576046, 0.04354904592037201, -0.0015973588451743126, -0.02234620787203312, 0.009844774380326271, -0.038403868675231934, -0.06298638135194778, 0.08958660811185837, 0.06335629522800446, -0.02728961408138275, 0.011240361258387566, -0.002572588389739394, 0.017537318170070648, -0.03098876029253006, -0.017940862104296684, -0.06947670131921768, 0.0036339913494884968, -0.0321657620370388, -0.031089646741747856, -0.03383037820458412, 0.010408053174614906, 0.00823480449616909, 0.02994627319276333, 0.03307373449206352, 0.037563152611255646, 0.02310285158455372, 0.03917732462286949, -0.0312914177775383, 0.1515977531671524, 0.018478918820619583, -0.02315329574048519, -0.04940042272210121, -0.0513172522187233, 0.024397553876042366, 0.00037674547638744116, 0.022463908419013023, 0.03544455021619797, -0.010441682301461697, 0.009121759794652462, -0.042674701660871506, -0.06725721061229706, 0.04001804068684578, -0.00815914012491703, -0.008213787339627743, 0.020698407664895058, 0.04761810600757599, 0.01609128713607788, 0.03166133165359497, -0.027693158015608788, -0.015519601292908192, -0.008592109195888042, -0.027995813637971878, 0.03803395479917526, 0.03601623699069023, 0.03135867416858673, 0.015704559162259102, 0.03608349338173866, 0.014670479111373425, -0.06211203709244728, -0.004745836835354567, -0.04755084961652756, -0.004176252521574497, 0.030400259420275688, -0.009609374217689037, -0.06688729673624039, 0.03527640923857689, 0.0329224057495594, 0.010063360445201397, 0.08844323456287384, -0.012223998084664345, -0.060363348573446274, 0.007717764936387539, -0.0059564667753875256, -0.00857529416680336, 0.010719118639826775, 0.05303231254220009, 0.007183910813182592, 0.047349076718091965, -0.023674538359045982, 0.03226664662361145, 0.04301098734140396, 0.0011412708554416895, 0.05299868434667587, -0.04264107346534729, 0.008163344115018845, 0.03031618893146515, 0.09671586751937866, -0.04055609926581383, -0.004472604487091303, -0.024784281849861145, 0.022463908419013023, -0.005620180629193783, -0.04173310101032257, 0.03557906672358513, 0.021690450608730316, 0.026432083919644356, 0.03793306648731232, 0.003169496078044176, -0.03352772071957588, -0.013190820813179016, -0.038538381457328796, 0.03367904946208, 0.00016696077364031225, -0.020513448864221573, -0.019235562533140182, 0.001286294194869697, 0.05394028499722481, -0.0370250940322876, 0.003724368056282401, 0.03317461907863617, -0.0034090999979525805 ]