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
sequencelengths 768
768
|
---|---|---|---|---|---|---|
725,045 | tf_keras.src.engine.training | test_on_batch | Test the model on a single batch of samples.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays (in case the
model has multiple inputs).
- A TensorFlow tensor, or a list of tensors (in case the model has
multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
y: Target data. Like the input data `x`, it could be either Numpy
array(s) or TensorFlow tensor(s). It should be consistent with `x`
(you cannot have Numpy inputs and tensor targets, or inversely).
sample_weight: Optional array of the same length as x, containing
weights to apply to the model's loss for each sample. In the case
of temporal data, you can pass a 2D array with shape (samples,
sequence_length), to apply a different weight to every timestep of
every sample.
reset_metrics: If `True`, the metrics returned will be only for this
batch. If `False`, the metrics will be statefully accumulated
across batches.
return_dict: If `True`, loss and metric results are returned as a
dict, with each key being the name of the metric. If `False`, they
are returned as a list.
Returns:
Scalar test loss (if the model has a single output and no metrics)
or list of scalars (if the model has multiple outputs
and/or metrics). The attribute `model.metrics_names` will give you
the display labels for the scalar outputs.
Raises:
RuntimeError: If `model.test_on_batch` is wrapped in a
`tf.function`.
| def test_on_batch(
self,
x,
y=None,
sample_weight=None,
reset_metrics=True,
return_dict=False,
):
"""Test the model on a single batch of samples.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays (in case the
model has multiple inputs).
- A TensorFlow tensor, or a list of tensors (in case the model has
multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
y: Target data. Like the input data `x`, it could be either Numpy
array(s) or TensorFlow tensor(s). It should be consistent with `x`
(you cannot have Numpy inputs and tensor targets, or inversely).
sample_weight: Optional array of the same length as x, containing
weights to apply to the model's loss for each sample. In the case
of temporal data, you can pass a 2D array with shape (samples,
sequence_length), to apply a different weight to every timestep of
every sample.
reset_metrics: If `True`, the metrics returned will be only for this
batch. If `False`, the metrics will be statefully accumulated
across batches.
return_dict: If `True`, loss and metric results are returned as a
dict, with each key being the name of the metric. If `False`, they
are returned as a list.
Returns:
Scalar test loss (if the model has a single output and no metrics)
or list of scalars (if the model has multiple outputs
and/or metrics). The attribute `model.metrics_names` will give you
the display labels for the scalar outputs.
Raises:
RuntimeError: If `model.test_on_batch` is wrapped in a
`tf.function`.
"""
self._assert_compile_was_called()
self._check_call_args("test_on_batch")
_disallow_inside_tf_function("test_on_batch")
if reset_metrics:
self.reset_metrics()
with self.distribute_strategy.scope():
iterator = data_adapter.single_batch_iterator(
self.distribute_strategy, x, y, sample_weight
)
self.test_function = self.make_test_function()
logs = self.test_function(iterator)
logs = tf_utils.sync_to_numpy_or_python_type(logs)
if return_dict:
return logs
else:
return flatten_metrics_in_order(logs, self.metrics_names)
| (self, x, y=None, sample_weight=None, reset_metrics=True, return_dict=False) | [
0.005801145453006029,
-0.031119173392653465,
-0.024379253387451172,
-0.00010139969526790082,
0.0006697795470245183,
0.02547689899802208,
-0.058964673429727554,
0.05830993875861168,
0.05653830245137215,
-0.02072044089436531,
-0.028558004647493362,
0.0022903692442923784,
0.04147939383983612,
0.0005918492679484189,
0.02784549817442894,
0.031157687306404114,
0.02784549817442894,
-0.013816836290061474,
0.034258052706718445,
0.024822162464261055,
0.011419350281357765,
-0.02491844817996025,
0.012959904037415981,
0.06466472148895264,
-0.016512803733348846,
-0.014096061699092388,
0.019892392680048943,
-0.033699601888656616,
0.055498428642749786,
0.008376757614314556,
0.004722758196294308,
-0.053457196801900864,
0.045561861246824265,
0.09405077248811722,
-0.012825105339288712,
-0.028962399810552597,
-0.026940423995256424,
0.02181808464229107,
-0.08950614184141159,
-0.05804033949971199,
-0.011583033949136734,
-0.056884925812482834,
0.07202085852622986,
0.0499139241874218,
-0.007582410238683224,
0.038205720484256744,
-0.01799558661878109,
0.01602175273001194,
-0.06142955645918846,
-0.04964432492852211,
-0.0025659839157015085,
-0.038513828068971634,
0.005695232655853033,
0.08280473202466965,
-0.0021351103205233812,
-0.02674785442650318,
0.027768470346927643,
-0.06508836895227432,
0.02626643143594265,
0.015280362218618393,
0.020373815670609474,
0.011640804819762707,
-0.010129136964678764,
-0.0013275236124172807,
-0.0065232799388468266,
-0.08226554095745087,
-0.020412329584360123,
-0.005310094449669123,
-0.014433057978749275,
0.056307218968868256,
-0.0289046298712492,
-0.01088015642017126,
0.07852970063686371,
-0.0036780706141144037,
-0.02050861343741417,
0.0029896360356360674,
-0.004689058754593134,
-0.000014028963050805032,
0.018958432599902153,
-0.03227458894252777,
-0.0249569620937109,
0.06385593116283417,
-0.011881516315042973,
-0.03156208246946335,
-0.024282969534397125,
-0.030560724437236786,
0.025630952790379524,
0.048180799931287766,
0.008189002983272076,
-0.015963982790708542,
-0.0041426438838243484,
0.01591584086418152,
0.02337789535522461,
-0.015184077434241772,
0.024879934266209602,
-0.011631176806986332,
-0.04286589100956917,
0.0031701696570962667,
-0.022106938064098358,
0.008261216804385185,
-0.014500456862151623,
0.020354559645056725,
0.04448347166180611,
0.0734843835234642,
0.0002941192942671478,
-0.042442239820957184,
-0.014673769474029541,
-0.003909153863787651,
-0.01499150786548853,
0.01839035376906395,
-0.03125397115945816,
0.00463850935921073,
0.015261105261743069,
-0.006479952018707991,
0.03568306192755699,
-0.0098595404997468,
0.0008292509010061622,
-0.004315956030040979,
-0.08781152963638306,
-0.025284329429268837,
0.02755664475262165,
0.06096739321947098,
-0.005998529028147459,
-0.05911872908473015,
0.03167762607336044,
-0.013864978216588497,
0.04868147894740105,
0.03498981520533562,
0.0209900364279747,
0.0010591302998363972,
-0.01996942050755024,
0.012834733352065086,
-0.013691666536033154,
0.094512939453125,
0.025785008445382118,
0.0184096097946167,
0.02892388589680195,
0.04040100798010826,
0.030926605686545372,
-0.03778206557035446,
0.07494791597127914,
0.030618494376540184,
0.02886611595749855,
0.016243208199739456,
0.029193483293056488,
-0.03938039019703865,
-0.015588472597301006,
0.042442239820957184,
0.025515412911772728,
0.006215169094502926,
-0.005184924229979515,
0.011043841019272804,
0.028192123398184776,
-0.033738113939762115,
-0.03202424943447113,
0.009652528911828995,
-0.054997749626636505,
-0.03828274831175804,
0.07660400867462158,
-0.017215682193636894,
-0.008102347142994404,
0.0013383555924519897,
0.004482046701014042,
0.0197190809994936,
0.0030931418295949697,
0.056846413761377335,
-0.07641144096851349,
0.03751247003674507,
-0.04101722687482834,
-0.027402589097619057,
-0.014548598788678646,
-0.004814228508621454,
0.06254646182060242,
-0.013133215717971325,
0.008299730718135834,
0.060235630720853806,
0.0034638375509530306,
-0.02653602883219719,
-0.010340963490307331,
0.015906210988759995,
0.01021579373627901,
-0.022665388882160187,
-0.03963072970509529,
-0.017398621886968613,
-0.0603511705994606,
0.044791582971811295,
-0.054728150367736816,
0.00486718537285924,
-0.03884119540452957,
0.06096739321947098,
-0.02335863746702671,
0.03861011564731598,
0.01864069327712059,
0.021587001159787178,
-0.001393719227053225,
0.0222995076328516,
-0.031658366322517395,
0.023820804432034492,
0.05199366807937622,
0.015184077434241772,
-0.005521920509636402,
-0.0394381619989872,
0.050530143082141876,
0.04402130842208862,
-0.055267345160245895,
-0.0032808969262987375,
0.028558004647493362,
0.06431809812784195,
-0.09643863141536713,
-0.048142287880182266,
-0.03352629020810127,
-0.00943588837981224,
-0.013913121074438095,
0.07182829082012177,
0.051839616149663925,
-0.013075444847345352,
-0.006658078171312809,
0.032467156648635864,
-0.021452203392982483,
-0.046062540262937546,
0.0355290062725544,
-0.04255778342485428,
-0.016618717461824417,
0.001911248778924346,
0.06789988279342651,
-0.027961039915680885,
0.06281605362892151,
0.016589831560850143,
0.013229500502347946,
-0.019670939072966576,
0.0008238349109888077,
-0.004944212734699249,
0.07956957072019577,
-0.012131856754422188,
-0.012459224089980125,
-0.04036249220371246,
0.01548255980014801,
-0.014981879852712154,
0.024475539103150368,
0.003971738740801811,
-0.012632535770535469,
0.002037622267380357,
0.020604899153113365,
-0.054188959300518036,
-0.013113958761096,
0.025553926825523376,
0.021933626383543015,
0.026959680020809174,
-0.0022530590649694204,
-0.029289767146110535,
-0.017177168279886246,
0.05596059560775757,
0.041402366012334824,
0.013576124794781208,
-0.030676264315843582,
-0.015058907680213451,
0.03568306192755699,
-0.045561861246824265,
0.03258270025253296,
-0.02104780822992325,
-0.010745358653366566,
0.03281378373503685,
-0.046062540262937546,
0.0577322319149971,
-0.06258497387170792,
-0.047641608864068985,
0.009214433841407299,
0.0655120238661766,
0.03572157770395279,
0.05218623951077461,
-0.07675806432962418,
0.02811509557068348,
-0.02730630524456501,
-0.05861805006861687,
0.014433057978749275,
0.024591080844402313,
0.06870867311954498,
0.004908106289803982,
0.02572723850607872,
0.016214322298765182,
0.005935944151133299,
-0.046370651572942734,
0.010129136964678764,
-0.024552566930651665,
0.004997169598937035,
-0.03797463700175285,
-0.0023300866596400738,
-0.005666347220540047,
0.04444495961070061,
-0.04540780559182167,
0.019208772107958794,
-0.029559364542365074,
0.043212518095970154,
-0.011862259358167648,
-0.0420185886323452,
-0.0007534268079325557,
-0.03903376683592796,
-0.025322843343019485,
0.006763991434127092,
-0.004636102356016636,
-0.014587112702429295,
0.03990032896399498,
0.024321483448147774,
-0.02073969691991806,
-0.011053469032049179,
-0.009036307223141193,
0.030849577859044075,
-0.028480976819992065,
-0.04925918951630592,
-0.0340847373008728,
0.020662669092416763,
0.04251926764845848,
-0.0012119821039959788,
-0.05642275884747505,
0.024302225559949875,
-0.024302225559949875,
0.016676487401127815,
0.025862036272883415,
0.031908709555864334,
0.0327174998819828,
-0.014644883573055267,
0.04964432492852211,
0.07109653204679489,
0.0603896863758564,
-0.01891029067337513,
-0.04120979830622673,
0.05619167909026146,
-0.010610559955239296,
-0.024340739473700523,
0.015357389114797115,
0.030021529644727707,
-0.05988900363445282,
0.036915507167577744,
0.018255556002259254,
-0.0024155392311513424,
-0.00670622056350112,
-0.01337392721325159,
0.036857735365629196,
0.016262464225292206,
-0.00827084481716156,
-0.007847192697227001,
-0.0341232530772686,
0.002385450294241309,
0.003107584547251463,
0.00045103306183591485,
0.022241735830903053,
-0.020932266488671303,
0.05407341569662094,
0.06766879558563232,
0.009946196340024471,
0.040786147117614746,
0.03144654259085655,
0.02045084349811077,
0.04436793178319931,
0.012025943025946617,
0.01157340593636036,
-0.023454921320080757,
-0.024032630026340485,
0.009484030306339264,
0.014500456862151623,
-0.028442462906241417,
-0.028577260673046112,
-0.01656094752252102,
0.017880044877529144,
0.06323970854282379,
-0.0039452603086829185,
0.048488911241292953,
-0.01650317572057247,
0.0028596518095582724,
-0.017822274938225746,
-0.04429090395569801,
-0.017514163628220558,
-0.039245590567588806,
0.06878569722175598,
0.01749490760266781,
0.00972474180161953,
-0.003959703259170055,
0.001842646044678986,
0.017947444692254066,
0.07217491418123245,
0.028731316328048706,
-0.011775603517889977,
-0.004453161731362343,
-0.011544520035386086,
0.0033699600026011467,
-0.03379588574171066,
-0.018919918686151505,
-0.019670939072966576,
-0.0576937161386013,
-0.08080201596021652,
0.04117128252983093,
-0.01814001426100731,
-0.0209900364279747,
0.026093119755387306,
-0.032178305089473724,
-0.02572723850607872,
-0.001477968180552125,
0.04864296689629555,
-0.03695401921868324,
-0.048411883413791656,
-0.015299619175493717,
0.0002808801655191928,
-0.0420571006834507,
-0.004949027206748724,
-0.06951746344566345,
0.018505895510315895,
-0.0342002809047699,
-0.008747453801333904,
-0.03645334020256996,
0.06112144887447357,
0.03787835314869881,
0.005411193240433931,
-0.019102860242128372,
-0.00015962177712935954,
-0.02127889171242714,
0.06620527058839798,
-0.04964432492852211,
0.09104669094085693,
0.02047009952366352,
0.051608532667160034,
0.057116009294986725,
0.033507030457258224,
0.052918002009391785,
-0.006215169094502926,
0.06736068427562714,
-0.054227471351623535,
-0.04167196527123451,
0.01973833702504635,
0.012815476395189762,
0.01393237803131342,
-0.04363616928458214,
-0.1101495549082756,
-0.03604894503951073,
-0.01837109588086605,
-0.029289767146110535,
-0.017543049529194832,
0.003822497557848692,
0.00973437074571848,
0.017129026353359222,
0.019776850938796997,
-0.018303697928786278,
-0.0472564697265625,
0.02626643143594265,
0.008006062358617783,
-0.060274142771959305,
-0.013730180449783802,
-0.03783983737230301,
0.017427507787942886,
-0.04594700038433075,
0.024552566930651665,
0.04644767940044403,
0.010090623050928116,
0.05349570885300636,
-0.0013816836290061474,
0.01679202914237976,
-0.05303354188799858,
-0.021664028987288475,
-0.0038874896708875895,
0.005560433957725763,
-0.02942456491291523,
0.00972474180161953,
0.034566160291433334,
-0.021336661651730537,
-0.07032625377178192,
-0.029828960075974464,
-0.029559364542365074,
-0.010523904114961624,
0.036376312375068665,
0.028789088129997253,
0.026959680020809174,
0.024225199595093727,
0.0262471754103899,
0.0054497066885232925,
0.02462959475815296,
-0.0017945037689059973,
0.004527782090008259,
-0.010687587782740593,
0.02491844817996025,
-0.0009141016635112464,
-0.0067736199125647545,
0.04047803580760956,
-0.04340508580207825,
0.0578092597424984,
-0.00243359268642962,
-0.01259402185678482,
-0.003690106328576803,
0.006277754437178373,
-0.015954354777932167,
0.03595266118645668,
0.024860676378011703,
-0.05468963831663132,
0.000016454883734695613,
0.06173766776919365,
-0.054458554834127426,
-0.1024467870593071,
-0.07787496596574783,
0.03102288953959942,
0.011929658241569996,
0.01880437694489956,
0.028808344155550003,
0.06709109246730804,
0.05985049158334732,
-0.014510084874927998,
-0.01864069327712059,
0.01010988000780344,
0.020373815670609474,
0.011660061776638031,
-0.053726792335510254,
-0.0917399451136589,
-0.029520850628614426,
-0.08989127725362778,
0.04629362374544144,
0.003304967889562249,
0.03341074660420418,
-0.02104780822992325,
-0.040015868842601776,
0.04409833624958992,
0.01939171366393566,
0.013999776914715767,
-0.014875967055559158,
0.04675579071044922,
0.04471455514431,
0.020816724747419357,
0.017340851947665215,
-0.004826264455914497,
0.046832818537950516,
-0.01629135012626648,
0.03131174296140671,
0.05542140081524849,
0.03131174296140671,
0.015521073713898659,
0.004879220854490995,
-0.0011993447551503778,
0.01951688341796398,
-0.032409388571977615,
-0.04517672210931778,
-0.0016440590843558311,
-0.042134128510951996,
-0.03385365754365921,
0.003796019358560443,
0.041903045028448105,
0.010610559955239296,
-0.006335524842143059,
-0.040285464376211166,
0.0021579780150204897,
0.01645503379404545,
0.013258385471999645,
0.045792944729328156,
-0.005160853266716003,
-0.004106536973267794,
0.0014033477054908872,
-0.055806539952754974,
0.025033989921212196,
0.00022927764803171158,
0.0004808210942428559,
-0.006008157506585121,
0.04074763134121895,
0.040824659168720245,
0.002235005609691143,
-0.011246038600802422,
-0.04178750514984131,
0.009965453296899796,
0.007442797534167767,
-0.0005202376050874591,
0.05357273668050766,
0.0393996462225914,
-0.016464661806821823,
0.029540106654167175,
-0.06913232058286667,
-0.03393068537116051,
-0.013441326096653938,
-0.030657008290290833,
-0.003242383012548089,
-0.016069894656538963,
-0.03934187814593315,
0.009368489496409893,
-0.03144654259085655,
-0.061314016580581665,
-0.0024239642079919577,
0.00153934967238456,
-0.006821761839091778,
-0.015058907680213451,
0.04390576481819153,
-0.01749490760266781,
0.03177390992641449,
-0.018274812027812004,
-0.02208768203854561,
0.007332070264965296,
-0.04602402448654175,
0.010957184247672558,
0.005998529028147459,
0.03343000262975693,
-0.031388770788908005,
-0.009426259435713291,
0.03468170389533043,
-0.019622795283794403,
-0.04117128252983093,
-0.001686183619312942,
-0.005319722928106785,
-0.01914137415587902,
-0.019487997516989708,
0.06377889961004257,
0.02734481915831566,
-0.026921166107058525,
0.013614638708531857,
-0.048450399190187454,
-0.025611696764826775,
0.008737824857234955,
0.033487774431705475,
-0.0629315972328186,
-0.08526961505413055,
-0.030868833884596825,
0.0315043143928051,
-0.03129248693585396,
0.04821931570768356,
-0.026998193934559822,
-0.02626643143594265,
0.05349570885300636,
0.0578092597424984,
-0.08588583767414093,
0.08480745553970337,
0.01710014045238495,
-0.013970891945064068,
0.013980519957840443,
-0.014298259280622005,
-0.025534668937325478,
-0.021875854581594467,
-0.06115996092557907,
0.022896472364664078,
-0.049182161688804626,
-0.025630952790379524,
-0.011419350281357765,
0.047294981777668,
-0.03015632927417755,
0.12909835577011108,
-0.0603896863758564,
-0.0013142843963578343,
0.002037622267380357,
0.006711034569889307,
-0.0472179539501667,
-0.024937704205513,
0.040285464376211166,
0.06736068427562714,
0.02680562622845173,
-0.02651677094399929,
-0.023185325786471367,
0.005180110223591328,
0.01722531020641327,
0.14381064474582672,
0.0011867074063047767,
-0.008184188976883888,
0.047680120915174484,
-0.003950074780732393,
-0.01729271002113819,
0.0734458714723587,
0.07144315540790558,
0.007904963567852974,
-0.03258270025253296,
-0.018178528174757957,
-0.005560433957725763,
-0.016156552359461784,
0.013913121074438095,
-0.01666685938835144,
0.035817861557006836,
-0.026112375780940056,
-0.03229384496808052,
-0.023223839700222015,
-0.018255556002259254,
0.008246773853898048,
-0.013614638708531857,
-0.06601270288228989,
0.04702538624405861,
-0.04124831035733223,
-0.0050164260901510715,
0.014972250908613205,
-0.01157340593636036,
0.0354904942214489,
-0.01795707270503044,
-0.016079524531960487,
-0.05623019114136696,
-0.02127889171242714,
0.009354046545922756,
-0.030060043558478355,
0.026613056659698486,
-0.01366278063505888,
0.006802505347877741,
-0.06335525214672089,
-0.0029992645140737295,
-0.02127889171242714,
-0.04552334547042847,
-0.003930817823857069,
-0.036087457090616226,
0.048989590257406235,
-0.033449262380599976,
-0.0681309625506401,
0.0022362093441188335,
-0.032197561115026474,
-0.00615739868953824,
-0.03481650352478027,
0.015030021779239178,
-0.07714319974184036,
-0.002948715118691325,
-0.0341232530772686,
-0.008434528484940529,
0.0654349997639656,
0.02963639236986637,
-0.10714547336101532,
0.008814852684736252,
-0.00027832260821014643,
-0.05958089604973793,
0.020624155178666115,
-0.0022807407658547163,
-0.01430788729339838,
-0.04051654785871506,
0.0059118727222085,
-0.019776850938796997,
-0.04891256242990494,
-0.011631176806986332,
-0.01419234648346901,
0.00024642833159305155,
0.0017234939150512218,
0.024263713508844376,
0.0021892704535275698,
-0.01583881303668022,
-0.037454698234796524,
-0.05280246213078499,
0.05461261048913002,
-0.02156774513423443,
0.0394766740500927,
-0.0177067331969738,
0.041094254702329636,
-0.006918046623468399,
-0.00035294314147904515,
0.0012625314993783832,
0.015164820477366447,
-0.00019121514924336225,
0.011294180527329445,
-0.06173766776919365,
0.0654349997639656,
-0.012979160994291306,
0.016926828771829605,
0.026401231065392494,
-0.00278743845410645,
-0.009666970930993557,
-0.00696618901565671,
0.029886731877923012,
-0.006272939965128899,
0.004234114196151495,
0.03525941073894501,
-0.058425478637218475,
0.027229277417063713,
-0.009686227887868881,
-0.03568306192755699,
0.0033145963679999113,
0.08442231267690659,
-0.0014996322570368648,
-0.016512803733348846,
-0.07521750777959824,
-0.0018871776992455125,
-0.0340847373008728,
-0.02651677094399929,
0.011217152699828148,
0.04964432492852211,
0.020893752574920654,
-0.07567967474460602,
0.013710923492908478,
0.04860445111989975,
0.07271411269903183
] |
725,046 | tf_keras.src.engine.training | test_step | The logic for one evaluation step.
This method can be overridden to support custom evaluation logic.
This method is called by `Model.make_test_function`.
This function should contain the mathematical logic for one step of
evaluation.
This typically includes the forward pass, loss calculation, and metrics
updates.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_test_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end`. Typically, the
values of the `Model`'s metrics are returned.
| def test_step(self, data):
"""The logic for one evaluation step.
This method can be overridden to support custom evaluation logic.
This method is called by `Model.make_test_function`.
This function should contain the mathematical logic for one step of
evaluation.
This typically includes the forward pass, loss calculation, and metrics
updates.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_test_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end`. Typically, the
values of the `Model`'s metrics are returned.
"""
x, y, sample_weight = data_adapter.unpack_x_y_sample_weight(data)
y_pred = self(x, training=False)
# Updates stateful loss metrics.
self.compute_loss(x, y, y_pred, sample_weight)
return self.compute_metrics(x, y, y_pred, sample_weight)
| (self, data) | [
0.000025679319151095115,
0.003955645486712456,
-0.05025552958250046,
0.04400184378027916,
0.028555991128087044,
0.022886233404278755,
-0.04984113201498985,
-0.00610770471394062,
0.026992570608854294,
-0.004106336738914251,
0.018638623878359795,
-0.003743735607713461,
0.0636293813586235,
0.021982084959745407,
0.03303905576467514,
0.03232327103614807,
0.07203041762113571,
-0.030797524377703667,
0.0053401212207973,
0.011801008135080338,
-0.02623911388218403,
-0.0271620973944664,
-0.009243966080248356,
0.039857834577560425,
-0.019166043028235435,
0.03403738513588905,
0.019100116565823555,
-0.02030564658343792,
0.03416924178600311,
0.008857820183038712,
-0.05443721264600754,
-0.03546895086765289,
-0.010435368865728378,
0.04731705039739609,
0.060954611748456955,
-0.052063826471567154,
-0.04068663716316223,
-0.01086860615760088,
-0.10631267726421356,
0.004723228979855776,
-0.022113941609859467,
-0.05236520990729332,
-0.011433698236942291,
0.04694032296538353,
-0.021435830742120743,
0.011546717025339603,
-0.0463375598192215,
0.014004867523908615,
0.03552546352148056,
-0.06954400986433029,
-0.020060772076249123,
-0.07436612993478775,
0.010491877794265747,
0.07564700394868851,
0.02363969013094902,
0.01776273176074028,
0.031249597668647766,
-0.06954400986433029,
0.0255986750125885,
-0.005763940047472715,
0.026333294808864594,
-0.008372782729566097,
0.017612040042877197,
0.0054060486145317554,
0.01253562793135643,
-0.019307315349578857,
-0.04735472425818443,
0.004127527587115765,
-0.021190956234931946,
0.05545438081026077,
-0.036862846463918686,
-0.01735774800181389,
0.06035184487700462,
0.0023792735300958157,
-0.004176972899585962,
0.00015643046936020255,
0.008142036385834217,
-0.029535485431551933,
0.06182108446955681,
-0.00692237913608551,
-0.006037068087607622,
0.01795109547674656,
-0.03618473559617996,
-0.02493940107524395,
-0.03328393027186394,
-0.04004620015621185,
0.05296797305345535,
0.00497752008959651,
-0.03311440348625183,
-0.01227191835641861,
-0.004513673949986696,
0.017941676080226898,
-0.021059101447463036,
-0.007840653881430626,
0.06788640469312668,
0.004292346071451902,
-0.06020115315914154,
-0.011075806804001331,
-0.04746774211525917,
-0.008952002041041851,
0.02748231589794159,
0.08227742463350296,
0.04023456200957298,
0.022358814254403114,
0.04739239811897278,
-0.059372350573539734,
-0.051687099039554596,
-0.003425871254876256,
-0.05014251172542572,
0.005740394815802574,
-0.0238280538469553,
0.013213738799095154,
-0.024449655786156654,
0.039217397570610046,
-0.00330578931607306,
-0.001882463344372809,
0.010614315047860146,
-0.006380832754075527,
-0.04942673072218895,
0.006795233581215143,
0.011640898883342743,
0.029215265065431595,
-0.039594125002622604,
-0.002323941560462117,
-0.013684649020433426,
-0.0010089250281453133,
0.07263318449258804,
0.059899769723415375,
-0.022415323182940483,
-0.09892880171537399,
0.0432107150554657,
-0.04791981726884842,
-0.012375518679618835,
0.04185449331998825,
-0.022170450538396835,
0.04091267287731171,
0.08423640578985214,
0.03989550843834877,
0.016415927559137344,
-0.004986938554793596,
0.06784873455762863,
0.0007252016221173108,
0.00530244829133153,
0.028254609555006027,
0.05850587785243988,
-0.022622523829340935,
-0.044830646365880966,
0.08529124408960342,
0.03153214231133461,
0.015841417014598846,
0.03480967879295349,
0.04471762850880623,
0.05530368909239769,
-0.03108007088303566,
0.01037885993719101,
-0.011885772459208965,
-0.04803283512592316,
-0.032681163400411606,
0.021040266379714012,
-0.010538969188928604,
-0.01977822557091713,
-0.022999251261353493,
0.019947754219174385,
-0.006856451742351055,
0.027859045192599297,
0.05665991082787514,
-0.08514055609703064,
0.026483986526727676,
-0.019891245290637016,
-0.011584389954805374,
0.010793260298669338,
-0.024336636066436768,
0.02996872179210186,
0.01165031734853983,
-0.028160426765680313,
0.02036215551197529,
0.024468490853905678,
-0.022905070334672928,
0.03173934295773506,
-0.0031197797507047653,
-0.033001381903886795,
-0.004301764070987701,
-0.07146532088518143,
-0.022829724475741386,
-0.044755302369594574,
0.0006810537888668478,
-0.016359418630599976,
0.0003328746242914349,
-0.010209332220256329,
0.03236094489693642,
-0.05059458687901497,
-0.027576498687267303,
0.00986085832118988,
0.015219816006720066,
-0.0016564264660701156,
0.02599424123764038,
0.006164213642477989,
0.06306428462266922,
0.0761367529630661,
0.010454205796122551,
-0.04087500274181366,
-0.04415253549814224,
0.08303087949752808,
-0.00280662439763546,
-0.06577672809362411,
0.017197638750076294,
0.000046171269787009805,
0.07606140524148941,
-0.04023456200957298,
-0.025221947580575943,
-0.026088422164320946,
0.02102142944931984,
0.008763638325035572,
0.08928456157445908,
0.06151970103383064,
-0.042155876755714417,
-0.006150086410343647,
0.0018706906121224165,
0.023526670411229134,
-0.0030138250440359116,
0.004433618858456612,
-0.0360528826713562,
0.0026888970751315355,
-0.01868571527302265,
0.0761367529630661,
-0.036862846463918686,
0.04151543974876404,
-0.0304961409419775,
-0.030967051163315773,
-0.025278456509113312,
-0.031230760738253593,
-0.027143260464072227,
0.03230443596839905,
-0.02173721231520176,
0.0033104983158409595,
-0.022754378616809845,
-0.042796313762664795,
-0.004224063828587532,
-0.019552189856767654,
0.016820911318063736,
-0.031042397022247314,
-0.018007604405283928,
-0.005735685583204031,
-0.053382374346256256,
-0.049916476011276245,
-0.008481091819703579,
0.04950207471847534,
0.025749366730451584,
0.010520133189857006,
-0.03141912445425987,
0.01521039754152298,
0.02252834104001522,
0.002780724549666047,
0.04419020935893059,
-0.019533352926373482,
0.023488998413085938,
0.10525783896446228,
-0.028292281553149223,
0.092675119638443,
0.002027268288657069,
0.02147350274026394,
0.02401641756296158,
-0.0331709124147892,
0.06080392003059387,
-0.05575576052069664,
-0.07059884816408157,
-0.013119556941092014,
0.034960370510816574,
0.03121192567050457,
0.037183064967393875,
0.11445000022649765,
0.03610939159989357,
-0.04818352684378624,
0.0009936203714460135,
0.0013468030374497175,
0.015097379684448242,
0.05048156902194023,
0.008565855212509632,
0.0029785067308694124,
-0.03833208605647087,
0.03680633753538132,
-0.032869528979063034,
-0.05609481781721115,
-0.013496285304427147,
-0.03584568202495575,
-0.023922234773635864,
0.019834736362099648,
-0.003025597659870982,
0.0744038075208664,
-0.03347229212522507,
-0.013468029908835888,
-0.015492944046854973,
0.03997085243463516,
0.023225288838148117,
0.04690265282988548,
-0.021002592518925667,
-0.055793434381484985,
-0.01574723608791828,
0.007722926326096058,
0.02507125586271286,
0.02814158983528614,
-0.010350605472922325,
0.0404982715845108,
-0.010651987977325916,
-0.039669472724199295,
0.007553398609161377,
0.014409850351512432,
0.01423090510070324,
-0.041892167180776596,
-0.08529124408960342,
0.012639228254556656,
0.029855703935027122,
0.009851440787315369,
0.009225130081176758,
-0.009851440787315369,
-0.08122258633375168,
-0.008994383737444878,
-0.013986031524837017,
0.03951878100633621,
0.028650173917412758,
-0.021172121167182922,
0.06336566805839539,
0.05809147655963898,
0.04192984104156494,
-0.0033458166290074587,
-0.023338306695222855,
0.0690542608499527,
-0.029008064419031143,
-0.03669331967830658,
-0.01073675137013197,
0.0049398476257920265,
-0.039405763149261475,
0.04223122075200081,
0.04294700548052788,
-0.05809147655963898,
-0.008320982567965984,
-0.0033387530129402876,
0.05888260528445244,
0.029403630644083023,
0.042607951909303665,
0.012950029224157333,
-0.009173329919576645,
0.007906581275165081,
-0.0011042843107134104,
0.014117886312305927,
-0.0028325244784355164,
-0.005325993988662958,
0.0445292629301548,
0.06916728615760803,
0.0031927707605063915,
0.0010589591693133116,
-0.0373714305460453,
-0.014212068170309067,
0.00094476348021999,
0.03618473559617996,
0.0017458994407206774,
-0.00755810784175992,
-0.05571809038519859,
0.009776094928383827,
-0.024581510573625565,
0.06325265020132065,
0.021661866456270218,
-0.05782776698470116,
0.05903329700231552,
0.04916302114725113,
-0.026672350242733955,
0.0028607791755348444,
0.023470161482691765,
0.024054091423749924,
0.008641201071441174,
-0.02996872179210186,
-0.052139170467853546,
0.03479084372520447,
0.03569499030709267,
0.034319933503866196,
0.01925080642104149,
0.022170450538396835,
0.004280573222786188,
-0.0027359880041331053,
0.04727938026189804,
0.034564804285764694,
-0.004207582212984562,
-0.04204285889863968,
-0.01853502355515957,
0.018911750987172127,
-0.009672494605183601,
-0.026785369962453842,
-0.00512350257486105,
0.0145887965336442,
-0.06234850361943245,
0.02846181020140648,
-0.017838075757026672,
-0.025504494085907936,
-0.0015693081077188253,
-0.014146140776574612,
-0.00543430307880044,
0.007209634408354759,
0.016896255314350128,
-0.07270852476358414,
-0.05398514121770859,
-0.016218146309256554,
0.004155782051384449,
0.0011307729873806238,
0.010783842764794827,
0.013948358595371246,
-0.030081739649176598,
0.0000702686229487881,
0.015492944046854973,
-0.020946083590388298,
0.03610939159989357,
-0.012742828577756882,
-0.0020237364806234837,
-0.000505345466081053,
0.02305576018989086,
-0.027538824826478958,
0.03710772097110748,
-0.044755302369594574,
0.05485161393880844,
-0.0007104856777004898,
0.034828513860702515,
0.03982016071677208,
0.05100898817181587,
0.02414827235043049,
0.034319933503866196,
0.03471549600362778,
-0.018111204728484154,
-0.008010181598365307,
0.0204940102994442,
-0.011254752986133099,
0.032097235321998596,
-0.04505668208003044,
-0.06762269884347916,
-0.04969044029712677,
0.013119556941092014,
-0.03337811306118965,
-0.017291821539402008,
-0.03322742134332657,
-0.014315668493509293,
0.03132494166493416,
0.031061233952641487,
-0.06596509367227554,
-0.025316130369901657,
0.047769125550985336,
-0.01116998866200447,
-0.05308099091053009,
-0.0022898006718605757,
-0.023149942979216576,
-0.0276141706854105,
-0.060163479298353195,
0.022773215547204018,
0.004007445182651281,
0.006159504875540733,
0.021982084959745407,
-0.00314332521520555,
0.007647580932825804,
-0.014974942430853844,
-0.07455449551343918,
-0.032944872975349426,
0.01867629587650299,
-0.033660657703876495,
0.017574366182088852,
0.03812488541007042,
-0.04068663716316223,
-0.03028894029557705,
0.01230959128588438,
0.011217080056667328,
0.00842458289116621,
0.06246152147650719,
-0.006912961136549711,
0.016924511641263962,
0.0032751800026744604,
0.013957777060568333,
0.010190495289862156,
-0.002856070175766945,
0.007383871357887983,
0.03556313365697861,
-0.04004620015621185,
-0.011565553024411201,
0.02880086563527584,
-0.04490599036216736,
0.05345772206783295,
-0.048748619854450226,
0.03441411256790161,
0.013241993263363838,
-0.028103917837142944,
0.027406970039010048,
-0.013665813021361828,
-0.0011101707350462675,
0.025240784510970116,
0.003301080083474517,
-0.0062913596630096436,
-0.01828073151409626,
0.029215265065431595,
0.014381595887243748,
-0.09388064593076706,
-0.0271620973944664,
0.08438710123300552,
0.013468029908835888,
0.03844510391354561,
0.012394355610013008,
0.06566371023654938,
0.04132707417011261,
0.008787183091044426,
-0.0028254608623683453,
0.039330415427684784,
0.02859366498887539,
-0.007850072346627712,
-0.016076872125267982,
-0.08868180215358734,
-0.0025664602871984243,
-0.007977218367159367,
0.012686319649219513,
0.016434764489531517,
0.005867540370672941,
0.01815829612314701,
-0.0658520758152008,
0.043060023337602615,
0.004581955727189779,
-0.025052420794963837,
0.009286347776651382,
-0.009945622645318508,
-0.01664196513593197,
0.028047408908605576,
0.01848793216049671,
0.006912961136549711,
0.061670392751693726,
-0.04106336459517479,
0.02220812253654003,
0.03108007088303566,
0.038106050342321396,
0.0026535787619650364,
-0.007138997782021761,
0.037823501974344254,
0.08318156749010086,
-0.01855386048555374,
-0.015295161865651608,
-0.007948962971568108,
-0.039066705852746964,
-0.011480789631605148,
0.006512687541544437,
0.04177914932370186,
-0.014061377383768559,
-0.002103791106492281,
-0.04437857121229172,
0.009422912262380123,
-0.004351209849119186,
0.03433876857161522,
0.019928917288780212,
-0.029215265065431595,
-0.05066993087530136,
-0.009611275978386402,
-0.02512776479125023,
0.031061233952641487,
0.009295766241848469,
-0.017207056283950806,
-0.025165438652038574,
0.025674020871520042,
0.04223122075200081,
0.03891601413488388,
-0.012752247042953968,
-0.07888686656951904,
-0.020776554942131042,
-0.006409087218344212,
-0.0360528826713562,
0.040196891874074936,
0.020512845367193222,
-0.02951664850115776,
-0.025881221517920494,
-0.08694884926080704,
-0.021134447306394577,
0.031249597668647766,
0.0029714431148022413,
0.01940149813890457,
-0.00833040103316307,
-0.06344101577997208,
-0.023074597120285034,
-0.02623911388218403,
-0.020023100078105927,
-0.0002990279463119805,
-0.05515299737453461,
0.000598055892623961,
-0.0322667621076107,
0.035148732364177704,
-0.019476843997836113,
-0.043964169919490814,
-0.017677966505289078,
-0.002905515721067786,
0.0436251163482666,
-0.04336140677332878,
-0.024204781278967857,
0.0019660498946905136,
0.0356384813785553,
-0.070787213742733,
-0.03318974748253822,
0.035148732364177704,
-0.028763191774487495,
-0.0521015003323555,
-0.0004244077717885375,
-0.0031692252960056067,
-0.01073675137013197,
-0.04565944895148277,
0.058468203991651535,
0.01756494864821434,
-0.0048315380699932575,
0.010887443087995052,
-0.06065322831273079,
-0.05530368909239769,
0.07722926139831543,
-0.030194759368896484,
-0.03569499030709267,
-0.005745104048401117,
0.009258093312382698,
0.045433409512043,
-0.017009275034070015,
0.012761665508151054,
-0.02827344462275505,
-0.015182143077254295,
0.011923445388674736,
0.02780253440141678,
-0.014513450674712658,
0.04422788321971893,
-0.007986635901033878,
-0.03765397518873215,
0.039217397570610046,
-0.04072431102395058,
-0.024204781278967857,
0.05326935648918152,
-0.05417350307106972,
0.005514357704669237,
-0.08514055609703064,
-0.015031452290713787,
0.020870737731456757,
0.01769680343568325,
-0.06958168745040894,
0.10668940097093582,
-0.058204494416713715,
0.02122863009572029,
0.02343248948454857,
0.017056366428732872,
-0.10322350263595581,
-0.009036765433847904,
0.03108007088303566,
0.03850161284208298,
0.0008605882758274674,
-0.005627376493066549,
0.016434764489531517,
0.002190909581258893,
0.011160570196807384,
0.096141017973423,
0.029403630644083023,
-0.028103917837142944,
0.056132491677999496,
0.018657460808753967,
0.05021785944700241,
0.03857696056365967,
0.036391936242580414,
0.04569712281227112,
-0.029629666358232498,
0.015945017337799072,
-0.04562177509069443,
-0.0672459676861763,
0.04426555335521698,
-0.031023560091853142,
0.00047561925021000206,
0.010878024622797966,
0.005509648937731981,
0.009964458644390106,
0.03614706173539162,
-0.03902903199195862,
-0.013854176737368107,
-0.04810818284749985,
0.04727938026189804,
-0.017207056283950806,
0.007675835397094488,
0.023978745564818382,
-0.024694528430700302,
0.01763087697327137,
-0.055529724806547165,
-0.038294412195682526,
-0.05048156902194023,
-0.03354763984680176,
0.008923747576773167,
-0.02703024260699749,
-0.017329493537545204,
0.0063431598246097565,
0.03217258304357529,
-0.045810140669345856,
-0.007082488853484392,
-0.03806837648153305,
-0.028103917837142944,
-0.045810140669345856,
-0.017451930791139603,
0.012620392255485058,
-0.056433871388435364,
-0.05790311098098755,
-0.055981799960136414,
-0.05040622130036354,
-0.025297293439507484,
-0.013420939445495605,
-0.03330276533961296,
-0.03929274156689644,
0.001417439547367394,
-0.010915697552263737,
-0.05006716772913933,
0.06216014176607132,
0.038294412195682526,
-0.070787213742733,
-0.0502932034432888,
-0.00551906693726778,
-0.0699584111571312,
0.042871661484241486,
-0.0015728399157524109,
-0.084613136947155,
-0.04908767342567444,
-0.017734475433826447,
0.02853715606033802,
-0.053495392203330994,
-0.02819810062646866,
-0.031249597668647766,
0.03354763984680176,
-0.007143707014620304,
0.013778830878436565,
0.028160426765680313,
-0.029347119852900505,
-0.03936808928847313,
-0.0029855703469365835,
-0.006150086410343647,
-0.06671854853630066,
0.05421117693185806,
0.004855083767324686,
0.011367770843207836,
0.005321284756064415,
0.008137327618896961,
0.030797524377703667,
-0.009163911454379559,
-0.004659655969589949,
0.019834736362099648,
-0.0325116366147995,
0.041025690734386444,
-0.0009506498463451862,
0.038106050342321396,
-0.010708496905863285,
0.0068658702075481415,
-0.0376163013279438,
-0.009601857513189316,
0.02552333101630211,
0.007025979459285736,
-0.0038214358501136303,
0.04859792813658714,
-0.05692362040281296,
0.042080532759428024,
0.003969772718846798,
-0.011377189308404922,
-0.007120161317288876,
0.04999182000756264,
0.026031913235783577,
0.004603146575391293,
-0.05394746735692024,
0.00497752008959651,
-0.030854033306241035,
-0.02154884859919548,
-0.024901729077100754,
0.05025552958250046,
0.006503269076347351,
0.002190909581258893,
0.01822422258555889,
0.08129792660474777,
0.0744038075208664
] |
725,047 | tf_keras.src.engine.training | to_json | Returns a JSON string containing the network configuration.
To load a network from a JSON save file, use
`keras.models.model_from_json(json_string, custom_objects={})`.
Args:
**kwargs: Additional keyword arguments to be passed to
*`json.dumps()`.
Returns:
A JSON string.
| def to_json(self, **kwargs):
"""Returns a JSON string containing the network configuration.
To load a network from a JSON save file, use
`keras.models.model_from_json(json_string, custom_objects={})`.
Args:
**kwargs: Additional keyword arguments to be passed to
*`json.dumps()`.
Returns:
A JSON string.
"""
model_config = self._updated_config()
return json.dumps(
model_config, default=json_utils.get_json_type, **kwargs
)
| (self, **kwargs) | [
-0.03148387745022774,
-0.044199589639902115,
0.04331115633249283,
-0.04386642575263977,
-0.0011996171670034528,
-0.006542945746332407,
-0.08484543859958649,
0.009541410021483898,
0.038794949650764465,
-0.07299965620040894,
-0.00331774540245533,
-0.012030876241624355,
-0.042200613766908646,
0.02578309364616871,
0.055119920521974564,
0.0013095146277919412,
-0.008847321383655071,
-0.05201040208339691,
0.01611211895942688,
-0.0001949233264895156,
0.031243260949850082,
-0.05115898698568344,
0.0077599151991307735,
0.04682787135243416,
0.019582564011216164,
0.039461273699998856,
0.016621118411421776,
-0.003125714138150215,
0.008606703951954842,
0.04138621315360069,
-0.0508258230984211,
-0.01943449303507805,
0.016361990943551064,
0.05345410853624344,
0.034149181097745895,
0.06359706073999405,
0.010013391263782978,
0.09994881600141525,
-0.15562401711940765,
-0.06755799800157547,
-0.03298310935497284,
-0.0015281526139006019,
-0.046568743884563446,
0.0033385681454092264,
0.04194148629903793,
-0.01848127692937851,
-0.01590852066874504,
0.01155889593064785,
-0.012604656629264355,
-0.061561066657304764,
-0.025153785943984985,
0.028670502826571465,
-0.017389243468642235,
0.06618832796812057,
-0.043237119913101196,
-0.07011224329471588,
0.0038429396227002144,
-0.015232940204441547,
0.006723409052938223,
0.027171270921826363,
-0.05845154821872711,
0.0012852215440943837,
0.062005285173654556,
-0.010550153441727161,
-0.04423660784959793,
0.012336275540292263,
-0.09965267032384872,
-0.0017282816115766764,
0.027652505785226822,
0.03525972366333008,
0.008130095899105072,
-0.06641043722629547,
0.016658136621117592,
0.012910055927932262,
0.0012748101726174355,
0.01998976431787014,
-0.013261727057397366,
-0.008449376560747623,
-0.044680822640657425,
-0.008574312552809715,
-0.02263655699789524,
-0.012354784645140171,
0.009495138190686703,
-0.025079749524593353,
0.013863271102309227,
-0.06737291067838669,
-0.030465880408883095,
0.00844012200832367,
-0.01492754090577364,
-0.06611429154872894,
-0.01742626167833805,
0.02530185878276825,
0.007810815237462521,
0.047716304659843445,
-0.0054138945415616035,
-0.03190958499908447,
-0.020619070157408714,
-0.02992911823093891,
0.06185721233487129,
-0.030817551538348198,
-0.014548106119036674,
-0.0004335164267104119,
-0.061561066657304764,
-0.03607412055134773,
-0.026097746565937996,
-0.09972670674324036,
-0.018425749614834785,
0.024598514661192894,
-0.07610917091369629,
-0.00886583048850298,
0.008875085040926933,
0.04271886497735977,
0.016232429072260857,
-0.05545308440923691,
0.08869532495737076,
0.0572669692337513,
0.02870752103626728,
-0.0010110563598573208,
0.033575400710105896,
-0.013178437016904354,
-0.058784712105989456,
0.08499351143836975,
0.012669438496232033,
0.032557401806116104,
0.03202063962817192,
0.046087510883808136,
-0.033797506242990494,
0.0105223897844553,
0.08084748685359955,
-0.08595598489046097,
0.004305665381252766,
-0.03468594327569008,
-0.035481829196214676,
0.03890600427985191,
0.06459654867649078,
0.02433938905596733,
-0.04579136520624161,
0.008902848698198795,
0.03202063962817192,
0.0821061059832573,
0.04020163416862488,
0.0020394648890942335,
0.013881780207157135,
0.008611330762505531,
-0.0045856148935854435,
-0.03050289861857891,
-0.01093884278088808,
-0.05760013312101364,
-0.025746075436472893,
-0.06892766803503036,
0.07103769481182098,
0.01864785887300968,
-0.006339346524327993,
-0.046013474464416504,
-0.0011111208004876971,
0.0014888208825141191,
-0.02966999262571335,
-0.030151227489113808,
0.033020127564668655,
0.018323950469493866,
-0.021007761359214783,
0.037850987166166306,
0.024024734273552895,
-0.013955816626548767,
0.003910034894943237,
0.0034635041374713182,
0.008541922084987164,
-0.016602609306573868,
0.004703609738498926,
-0.018148114904761314,
-0.03627771884202957,
-0.031113697215914726,
-0.031409841030836105,
0.002410802524536848,
0.012410311959683895,
0.008208759129047394,
0.05904383957386017,
0.035074632614851,
-0.018536804243922234,
0.042126577347517014,
0.0485307052731514,
-0.02569054812192917,
-0.026467928662896156,
0.03172449395060539,
0.037277206778526306,
-0.03052140772342682,
0.011475604958832264,
0.013326508924365044,
0.006644745357334614,
0.01009668130427599,
0.09587682783603668,
0.052084438502788544,
-0.010800025425851345,
0.005048340652137995,
-0.0061450013890862465,
-0.06637341529130936,
0.035296741873025894,
-0.015852993354201317,
0.003692553611472249,
0.05778522416949272,
-0.007783051580190659,
-0.02198874019086361,
-0.008657603524625301,
0.007542434148490429,
-0.00057117739925161,
-0.036425791680812836,
0.022432956844568253,
-0.05963612720370293,
0.007898733019828796,
-0.03187256678938866,
-0.019119838252663612,
-0.013048873282968998,
0.05919191241264343,
0.027134252712130547,
0.03620368242263794,
0.019638091325759888,
-0.00990233663469553,
0.05400938168168068,
-0.02263655699789524,
-0.010328044183552265,
-0.003840625984594226,
0.03222423791885376,
0.0009520587627775967,
-0.024413423612713814,
-0.02228488400578499,
-0.03733273595571518,
0.01492754090577364,
-0.03287205472588539,
-0.03533375635743141,
-0.01943449303507805,
-0.004039598163217306,
-0.028689011931419373,
-0.016519319266080856,
0.05004844442009926,
0.007477652281522751,
0.03555586561560631,
-0.04671681672334671,
-0.07677549868822098,
0.02189619466662407,
-0.0035745585337281227,
0.009828300215303898,
-0.05437956005334854,
-0.05767416954040527,
-0.04083094373345375,
0.04390344396233559,
0.0161028653383255,
0.06037649139761925,
0.015852993354201317,
-0.005460166838020086,
-0.03372346982359886,
0.051973383873701096,
0.013391290791332722,
0.0018821380799636245,
0.040127597749233246,
-0.04138621315360069,
-0.03712913393974304,
0.03303863853216171,
-0.029022175818681717,
0.007287934888154268,
0.021637069061398506,
-0.02085968852043152,
-0.018879221752285957,
-0.056341517716646194,
0.010309535078704357,
0.006857599597424269,
-0.051307059824466705,
-0.012225220911204815,
0.023728590458631516,
-0.004067361820489168,
0.013326508924365044,
0.11023984104394913,
0.024043243378400803,
-0.014474069699645042,
-0.03139133378863335,
0.030003154650330544,
-0.06840941309928894,
-0.014094633981585503,
-0.023747099563479424,
0.009050920605659485,
-0.00048354867612943053,
0.016741426661610603,
-0.05004844442009926,
0.0053676217794418335,
-0.016639627516269684,
-0.00488175917416811,
-0.05748907849192619,
0.005673021078109741,
0.030947115272283554,
0.00927765667438507,
0.04112708941102028,
0.07570197433233261,
-0.008125469088554382,
-0.025320367887616158,
-0.018832948058843613,
0.003188182134181261,
-0.06474462151527405,
0.021155832335352898,
-0.0225440114736557,
0.06985311955213547,
0.04560627415776253,
-0.03011420927941799,
0.015603121370077133,
0.02813374064862728,
0.002163244178518653,
-0.017685387283563614,
0.007440634071826935,
0.018055569380521774,
-0.03022526204586029,
-0.02587563917040825,
0.021155832335352898,
-0.04519907757639885,
-0.03788800537586212,
0.07311070710420609,
0.04897492006421089,
-0.004238570109009743,
0.028022687882184982,
0.009407219476997852,
-0.0000318124148179777,
0.048863865435123444,
0.03694404289126396,
-0.02445044182240963,
0.06748396158218384,
-0.003840625984594226,
-0.028781557455658913,
0.030169736593961716,
-0.03440830484032631,
0.04860474169254303,
0.04701296240091324,
0.06766904890537262,
0.04412555322051048,
-0.0031696732621639967,
-0.030854569748044014,
0.06844643503427505,
0.030151227489113808,
-0.02794865146279335,
-0.0038614484947174788,
0.036333248019218445,
0.023450953885912895,
-0.03290907293558121,
0.00370643544010818,
0.017111608758568764,
0.0030910097993910313,
-0.0068714814260602,
0.005020576994866133,
-0.011355296708643436,
0.04982633516192436,
0.02178514003753662,
0.020045291632413864,
-0.013048873282968998,
-0.0069362628273665905,
-0.0772937536239624,
0.0793667659163475,
0.021637069061398506,
0.07340685278177261,
-0.0858079120516777,
-0.009883827529847622,
-0.002973014721646905,
-0.028855593875050545,
-0.011327533051371574,
-0.01923089288175106,
-0.03849880397319794,
0.08921357244253159,
0.011679204180836678,
0.040608834475278854,
0.07810814678668976,
0.042792901396751404,
0.02321033738553524,
0.017944514751434326,
0.1016516461968422,
-0.033316273242235184,
-0.020989252254366875,
0.0019052743446081877,
0.023043755441904068,
-0.00980979111045599,
-0.03374198079109192,
0.06111685186624527,
-0.03144685924053192,
0.005941402167081833,
-0.026504945009946823,
-0.014668414369225502,
-0.029151739552617073,
-0.01601031981408596,
0.003972502890974283,
0.040682870894670486,
0.061450015753507614,
-0.014770214445888996,
0.01175324060022831,
-0.011919821612536907,
-0.029429374262690544,
-0.0013847076334059238,
-0.08232821524143219,
-0.05356516316533089,
-0.051121968775987625,
0.05815540626645088,
-0.03477848693728447,
0.0018335517961531878,
-0.018407240509986877,
0.05882173031568527,
-0.06152404844760895,
0.03257591277360916,
-0.0648556798696518,
-0.05578624829649925,
0.028115231543779373,
0.040793925523757935,
-0.01790749654173851,
0.021951721981167793,
0.022007249295711517,
0.031613439321517944,
0.026930654421448708,
-0.03572244942188263,
-0.039572328329086304,
-0.007926496677100658,
-0.08884339034557343,
0.0026606745086610317,
0.029392356052994728,
0.07114875316619873,
-0.009240638464689255,
-0.014659159816801548,
0.015677157789468765,
0.007232407573610544,
0.020119326189160347,
0.06093176081776619,
0.07188910990953445,
0.0013072009896859527,
0.0471610352396965,
0.029725518077611923,
0.01573268510401249,
0.05826646089553833,
-0.015621630474925041,
0.049604229629039764,
-0.029910609126091003,
0.009513646364212036,
0.043348170816898346,
-0.08299453556537628,
0.024672551080584526,
0.011836531572043896,
0.0901760458946228,
-0.04919702932238579,
-0.026764072477817535,
0.0324278399348259,
0.003530599409714341,
-0.015686411410570145,
-0.05808136984705925,
0.03181704133749008,
-0.047605253756046295,
-0.010291026905179024,
-0.015251449309289455,
0.030465880408883095,
-0.0008074569050222635,
0.0031025779899209738,
0.018333204090595245,
-0.021914703771471977,
0.037665896117687225,
-0.09794984012842178,
0.026208801195025444,
-0.035389285534620285,
0.023450953885912895,
-0.0014911345206201077,
-0.0004514470638241619,
-0.012891546823084354,
0.034056633710861206,
0.007093589752912521,
0.0061126104556024075,
0.014261215925216675,
-0.007783051580190659,
-0.009347065351903439,
0.019564054906368256,
0.05067775398492813,
-0.03285354748368263,
0.03731422498822212,
0.05341709032654762,
0.058895766735076904,
-0.05078880861401558,
0.012613911181688309,
-0.05486079677939415,
0.06859450042247772,
0.011743986047804356,
0.010059663094580173,
-0.017879733815789223,
-0.07766393572092056,
-0.016741426661610603,
-0.04653172940015793,
-0.03209467604756355,
0.03812862187623978,
0.06633640080690384,
0.030576935037970543,
-0.001501545892097056,
-0.007181507535278797,
0.02215532213449478,
-0.00431491993367672,
-0.05674871802330017,
0.03677746281027794,
0.014899777248501778,
0.013983580283820629,
-0.010679716244339943,
0.04075690731406212,
-0.03455637767910957,
0.0013777667190879583,
-0.017648370936512947,
0.045051004737615585,
0.030947115272283554,
0.012660183943808079,
-0.017666878178715706,
0.0005419678636826575,
-0.039276182651519775,
0.012327020987868309,
-0.027134252712130547,
0.023950697854161263,
-0.01952703669667244,
0.026690036058425903,
-0.009050920605659485,
0.03627771884202957,
0.029873590916395187,
0.02928130142390728,
-0.03290907293558121,
-0.003331627231091261,
0.016750682145357132,
0.04179341346025467,
-0.021063288673758507,
-0.0027555334381759167,
-0.013095146045088768,
0.03409365192055702,
0.012956328690052032,
-0.004701296333223581,
-0.023932188749313354,
0.09358170628547668,
0.04405151680111885,
-0.011762495152652264,
0.0033339408691972494,
0.06122790649533272,
0.043052028864622116,
0.02435789629817009,
-0.042126577347517014,
0.06455953419208527,
-0.022821646183729172,
-0.03687001019716263,
0.04841965064406395,
0.037758443504571915,
-0.03601859137415886,
-0.03411216288805008,
0.01628795638680458,
-0.04890088364481926,
0.02822628617286682,
-0.05882173031568527,
-0.018222149461507797,
0.043052028864622116,
0.02937384694814682,
0.024524478241801262,
-0.0016206979053094983,
-0.03629622980952263,
0.005673021078109741,
-0.016815463081002235,
-0.024376405403017998,
-0.028170758858323097,
0.025320367887616158,
0.003713376121595502,
0.00795888714492321,
-0.02541291154921055,
0.025746075436472893,
0.02435789629817009,
-0.022414447739720345,
0.03050289861857891,
-0.010133699513971806,
0.008884339593350887,
-0.015158903785049915,
0.04812350496649742,
-0.024006225168704987,
0.02235892042517662,
-0.0687795951962471,
-0.008366086520254612,
0.017870478332042694,
-0.00048817595234140754,
0.04431064426898956,
-0.009222129359841347,
-0.02861497737467289,
-0.013335763476788998,
0.035389285534620285,
0.04445871338248253,
0.004053479991853237,
-0.009087938815355301,
-0.019008783623576164,
0.013807743787765503,
-0.015584612265229225,
0.01648230105638504,
0.04804946854710579,
-0.03133580461144447,
0.018638603389263153,
-0.005011322908103466,
-0.010291026905179024,
-0.01771315187215805,
0.00985606387257576,
0.06567007303237915,
0.01612137444317341,
-0.025135276839137077,
0.03298310935497284,
-0.03527823090553284,
-0.029503410682082176,
-0.018175877630710602,
0.001997819636017084,
0.016917262226343155,
-0.08640020340681076,
-0.008643722161650658,
0.01530697662383318,
-0.007926496677100658,
-0.00904166605323553,
0.014797978103160858,
-0.04157130420207977,
0.0018358654342591763,
-0.030391843989491463,
-0.008347577415406704,
-0.030095700174570084,
-0.008454004302620888,
-0.04475485906004906,
-0.07662742584943771,
-0.012327020987868309,
-0.02850392274558544,
-0.004682787228375673,
0.011771749705076218,
-0.00824115052819252,
-0.04697594419121742,
0.08610405772924423,
0.017028316855430603,
-0.008944493718445301,
-0.014464815147221088,
-0.03953531011939049,
0.008278168737888336,
-0.030743516981601715,
0.0006188960396684706,
-0.006385618820786476,
0.0034149179700762033,
0.03838774934411049,
-0.032446347177028656,
0.05630449950695038,
-0.02208128571510315,
-0.01131827849894762,
-0.0623384490609169,
-0.009828300215303898,
0.007440634071826935,
-0.0053676217794418335,
-0.030873078852891922,
-0.006468909792602062,
0.00843549519777298,
-0.043163083493709564,
-0.048752810806035995,
-0.03505612164735794,
-0.009865318424999714,
0.010744498111307621,
-0.01876816712319851,
0.02341393567621708,
-0.08640020340681076,
-0.054712723940610886,
-0.006700272671878338,
0.04890088364481926,
-0.004645769018679857,
-0.005585102830082178,
-0.021822158247232437,
-0.002649106318131089,
0.045643292367458344,
0.026856618002057076,
-0.062301430851221085,
-0.01980467326939106,
0.011494114063680172,
-0.008454004302620888,
-0.006603100337088108,
0.027356361970305443,
0.01060567982494831,
-0.049900371581315994,
-0.02909621223807335,
0.01639900915324688,
-0.0204709991812706,
-0.000503792951349169,
-0.020878197625279427,
0.0453101322054863,
0.01292856503278017,
-0.053861308842897415,
0.022895682603120804,
-0.013974325731396675,
0.0037781577557325363,
0.04308904707431793,
-0.027800578624010086,
-0.0397944375872612,
0.006279191933572292,
-0.024302370846271515,
0.05326901748776436,
-0.005913638509809971,
0.023728590458631516,
-0.03231678530573845,
0.03555586561560631,
0.01639900915324688,
0.052084438502788544,
-0.04105305299162865,
-0.006038574501872063,
-0.0420895591378212,
0.010929588228464127,
0.029429374262690544,
-0.03139133378863335,
0.006033947225660086,
-0.0018717267084866762,
-0.027134252712130547,
-0.019008783623576164,
0.028651993721723557,
-0.03050289861857891,
0.0069779083132743835,
-0.002406175248324871,
0.06626236438751221,
-0.02424684353172779,
-0.041275158524513245,
-0.023099282756447792,
-0.0354263037443161,
-0.06977908313274384,
-0.04453274980187416,
0.02045249007642269,
0.036222193390131,
-0.0077552879229187965,
-0.046272601932287216,
0.0231177918612957,
0.010800025425851345,
0.02559800259768963,
-0.04779034107923508,
-0.00012862337462138385,
-0.03935021907091141,
0.060413509607315063,
0.0005882404511794448,
-0.031687475740909576,
0.030910097062587738,
-0.022488484159111977,
-0.04320010170340538,
-0.037092115730047226,
0.05104793235659599,
-0.015473557636141777,
-0.0061542559415102005,
0.004236256703734398,
-0.011781004257500172,
-0.0014101575361564755,
-0.00147493917029351,
0.015399521216750145,
0.012826764956116676,
-0.0274859257042408,
-0.024672551080584526,
0.015871502459049225,
0.040497779846191406,
0.0386468768119812,
-0.01893474906682968,
0.0005723342183046043,
0.015362503938376904,
-0.006704899948090315,
0.022803137078881264,
0.014955304563045502,
-0.006732663605362177,
-0.049789316952228546,
-0.002148205414414406,
0.019193874672055244,
-0.004923404660075903,
-0.004446797072887421,
0.05371323600411415,
-0.0251908041536808,
-0.014909031800925732,
0.01733371615409851,
0.006302328314632177,
-0.030151227489113808,
-0.040312688797712326,
-0.0591178759932518,
0.036536846309900284,
-0.01688024401664734,
0.026356874033808708,
0.040497779846191406,
0.0053722490556538105,
-0.05711890012025833
] |
725,048 | tf_keras.src.engine.training | to_yaml | Returns a yaml string containing the network configuration.
Note: Since TF 2.6, this method is no longer supported and will raise a
RuntimeError.
To load a network from a yaml save file, use
`keras.models.model_from_yaml(yaml_string, custom_objects={})`.
`custom_objects` should be a dictionary mapping
the names of custom losses / layers / etc to the corresponding
functions / classes.
Args:
**kwargs: Additional keyword arguments
to be passed to `yaml.dump()`.
Returns:
A YAML string.
Raises:
RuntimeError: announces that the method poses a security risk
| def to_yaml(self, **kwargs):
"""Returns a yaml string containing the network configuration.
Note: Since TF 2.6, this method is no longer supported and will raise a
RuntimeError.
To load a network from a yaml save file, use
`keras.models.model_from_yaml(yaml_string, custom_objects={})`.
`custom_objects` should be a dictionary mapping
the names of custom losses / layers / etc to the corresponding
functions / classes.
Args:
**kwargs: Additional keyword arguments
to be passed to `yaml.dump()`.
Returns:
A YAML string.
Raises:
RuntimeError: announces that the method poses a security risk
"""
raise RuntimeError(
"Method `model.to_yaml()` has been removed due to security risk of "
"arbitrary code execution. Please use `model.to_json()` instead."
)
| (self, **kwargs) | [
-0.002999427728354931,
-0.05044601112604141,
-0.003936898894608021,
-0.04004991427063942,
-0.015574965626001358,
-0.01600653864443302,
-0.0830153375864029,
0.0021446747705340385,
0.047031793743371964,
-0.04035680741071701,
-0.026143692433834076,
-0.031437646597623825,
-0.014846088364720345,
0.033624280244112015,
0.06878303736448288,
0.017608150839805603,
-0.02566416747868061,
-0.04933351278305054,
0.02969217672944069,
-0.03508203476667404,
0.0637192577123642,
-0.029040023684501648,
-0.018039723858237267,
0.0023616596590727568,
0.02031267061829567,
0.059230905026197433,
-0.021348444744944572,
0.0017970192711800337,
-0.018586382269859314,
0.04971713200211525,
-0.04971713200211525,
-0.011825081892311573,
0.021099092438817024,
0.02629714086651802,
0.011134565807878971,
0.036769963800907135,
-0.018375391140580177,
0.082708440721035,
-0.15835827589035034,
-0.06655804067850113,
-0.002046372042968869,
-0.025127099826931953,
-0.028637221083045006,
-0.021348444744944572,
0.02065792866051197,
-0.006435222923755646,
0.002781243994832039,
0.028618041425943375,
-0.01912344992160797,
-0.08861618489027023,
-0.025568263605237007,
0.011729177087545395,
-0.008310165256261826,
0.06264512240886688,
-0.027121923863887787,
-0.047722309827804565,
-0.036136988550424576,
0.011825081892311573,
0.037729013711214066,
0.033279020339250565,
-0.0356191024184227,
0.005644007120281458,
0.02566416747868061,
0.0011436666827648878,
-0.01908508688211441,
0.033279020339250565,
-0.07196708768606186,
-0.030804673209786415,
0.0003959076711907983,
0.011335966177284718,
-0.0146926399320364,
-0.07185199856758118,
0.011172927916049957,
0.042389992624521255,
0.007701168302446604,
-0.024647574871778488,
-0.021405987441539764,
-0.013628095388412476,
-0.007562106475234032,
-0.0020427757408469915,
-0.057044271379709244,
-0.01375277154147625,
0.0005055989604443312,
-0.025127099826931953,
-0.004915129393339157,
-0.05888564884662628,
0.011124975979328156,
0.018864506855607033,
-0.0010657438542693853,
-0.04591929540038109,
-0.007427839562296867,
0.0357150100171566,
0.0028939321637153625,
0.027678173035383224,
-0.01717657968401909,
-0.011335966177284718,
-0.04070206731557846,
0.013800724409520626,
0.018279485404491425,
-0.05420548468828201,
-0.009010271169245243,
0.01718616858124733,
-0.05811840668320656,
0.005231615621596575,
-0.057427890598773956,
-0.08708170801401138,
-0.055548153817653656,
0.01694640703499317,
-0.054627466946840286,
-0.009297986514866352,
-0.031744543462991714,
0.010002887807786465,
0.0012635479215532541,
0.003745088819414377,
0.07703086733818054,
0.0037283054552972317,
0.03903331980109215,
-0.02157861739397049,
-0.007216848433017731,
-0.03506285324692726,
-0.0693584680557251,
0.07772137969732285,
-0.016677873209118843,
-0.014424106106162071,
-0.013282837346196175,
0.05811840668320656,
-0.0015812331112101674,
-0.0030689588747918606,
0.05470418930053711,
-0.050561096519231796,
-0.017310846596956253,
-0.03439151868224144,
-0.014174753800034523,
0.06556063145399094,
0.07384682446718216,
-0.02499283291399479,
0.008056016638875008,
0.04388611018657684,
0.024858566001057625,
0.0430421456694603,
0.016131214797496796,
0.0050541916862130165,
0.009350733831524849,
0.02186633087694645,
0.012141568586230278,
-0.0474921390414238,
-0.040548618882894516,
-0.04542059078812599,
0.010846851393580437,
-0.034295614808797836,
0.0660976991057396,
0.009269214235246181,
-0.009226057678461075,
-0.025395633652806282,
0.017023131251335144,
0.03099648468196392,
-0.013877447694540024,
-0.03558074310421944,
0.017982181161642075,
-0.010961937718093395,
-0.054857637733221054,
0.0004960084916092455,
0.02347753569483757,
-0.016035309061408043,
0.015527013689279556,
-0.019593384116888046,
0.010702993720769882,
-0.003618014743551612,
0.034525785595178604,
0.008967113681137562,
-0.05186540260910988,
-0.03912922367453575,
-0.054857637733221054,
0.012429283000528812,
0.014261067844927311,
-0.009043837897479534,
0.06226150318980217,
0.02190469391644001,
-0.03224324807524681,
0.051750317215919495,
0.026661580428481102,
-0.004274963866919279,
-0.014472058974206448,
-0.008300574496388435,
-0.004838405176997185,
0.008214260451495647,
-0.007753916084766388,
0.0606503002345562,
-0.01408843882381916,
-0.0035053263418376446,
0.07557310909032822,
0.04779903218150139,
-0.019526250660419464,
0.024954471737146378,
-0.008808870799839497,
-0.05539470538496971,
-0.028349507600069046,
0.004423616454005241,
0.0637192577123642,
0.029270194470882416,
0.05474255234003067,
0.011777129024267197,
0.02067711018025875,
0.010098792612552643,
-0.025721710175275803,
-0.0531313493847847,
-0.01996741257607937,
-0.006967495661228895,
-0.02880985103547573,
-0.04948696121573448,
-0.007029833737760782,
0.006746914237737656,
0.039896465837955475,
-0.022345855832099915,
0.06506192684173584,
-0.008406070061028004,
-0.02810015343129635,
0.03385445103049278,
-0.07979293167591095,
-0.0012347763404250145,
0.05152014642953873,
0.04154602810740471,
-0.04043353348970413,
-0.029979892075061798,
-0.009772716090083122,
-0.03935939818620682,
0.01969887875020504,
-0.04465335234999657,
-0.028886575251817703,
-0.04726196452975273,
0.009480205364525318,
-0.03070876933634281,
-0.05132833495736122,
0.06406451761722565,
0.031130751594901085,
0.04438481852412224,
-0.06563735753297806,
-0.08631446957588196,
0.029040023684501648,
0.0034429882653057575,
0.0062434133142232895,
-0.03494776785373688,
-0.05654556676745415,
0.007245619781315327,
0.057120997458696365,
0.031725361943244934,
0.02067711018025875,
0.005658392794430256,
0.006152303423732519,
-0.007763506844639778,
0.03197471424937248,
-0.015373565256595612,
0.011038661003112793,
0.04921842738986015,
-0.028886575251817703,
-0.046111106872558594,
0.008060812018811703,
-0.06885976344347,
0.06076538562774658,
0.024954471737146378,
-0.021137453615665436,
-0.016035309061408043,
-0.05439729616045952,
0.027927525341510773,
0.032032258808612823,
-0.06433305144309998,
-0.02844541147351265,
0.0006239816430024803,
0.026412226259708405,
-0.022671932354569435,
0.16280826926231384,
0.042696889489889145,
-0.011124975979328156,
-0.0063345227390527725,
0.04166111722588539,
-0.07557310909032822,
0.016112033277750015,
-0.019228944554924965,
0.03469841554760933,
-0.003217611461877823,
0.031054027378559113,
-0.08117396384477615,
-0.0003203825035598129,
-0.026412226259708405,
0.023247363045811653,
-0.06701838970184326,
-0.023841973394155502,
-0.017752008512616158,
0.030421053990721703,
0.016677873209118843,
0.06947355717420578,
-0.034544967114925385,
-0.015747595578432083,
-0.03345165029168129,
0.002089529298245907,
-0.03682750463485718,
-0.022441761568188667,
0.001638776040636003,
0.04062534123659134,
0.0046753669157624245,
-0.01030978374183178,
0.020504480227828026,
0.061149004846811295,
0.025414815172553062,
0.009489796124398708,
0.030210062861442566,
0.0281960591673851,
0.012093615718185902,
-0.023400811478495598,
-0.003469361923635006,
-0.03402708098292351,
-0.025203824043273926,
0.10465149581432343,
0.01844252459704876,
0.021751245483756065,
0.02875230833888054,
0.03218570724129677,
-0.00937470979988575,
0.042083099484443665,
0.02622041665017605,
-0.031169112771749496,
0.06590589135885239,
-0.023707706481218338,
-0.02002495713531971,
0.05604686215519905,
-0.034525785595178604,
0.05788823589682579,
0.005289158783853054,
0.0837058499455452,
0.037076856940984726,
0.02320900186896324,
-0.04104732349514961,
0.06168607249855995,
0.0524408333003521,
-0.04941023513674736,
-0.006521537434309721,
0.005404244642704725,
0.02378443069756031,
0.006603056564927101,
0.0030425849836319685,
0.03496694937348366,
0.02224995195865631,
0.014011715538799763,
-0.029634634032845497,
0.02879066951572895,
0.0432339571416378,
-0.01375277154147625,
0.021789606660604477,
-0.038016729056835175,
0.042389992624521255,
-0.05316971242427826,
0.08125068247318268,
0.026699941605329514,
0.05854038894176483,
-0.0695502758026123,
0.019315259531140327,
0.01548865158110857,
-0.000571233918890357,
-0.0004180856922175735,
-0.038572974503040314,
-0.0035964359994977713,
0.05378350242972374,
-0.0020176006946712732,
0.04231327027082443,
0.07871879637241364,
0.031015664339065552,
-0.01472141221165657,
-0.005217229947447777,
0.10564890503883362,
0.02783161960542202,
-0.03278031572699547,
0.009504182264208794,
0.04285033792257309,
0.001612402149476111,
-0.010961937718093395,
0.055011086165905,
-0.04004991427063942,
0.019583793357014656,
0.014520011842250824,
-0.004982262849807739,
0.0015524615300819278,
0.0008151921792887151,
0.05420548468828201,
0.0312650166451931,
0.1107126921415329,
-0.047031793743371964,
0.014404925517737865,
0.002625398337841034,
-0.023630982264876366,
-0.014069258235394955,
-0.031169112771749496,
-0.03496694937348366,
-0.04480679705739021,
0.034295614808797836,
-0.017608150839805603,
-0.021137453615665436,
-0.04480679705739021,
0.08178775012493134,
-0.043349042534828186,
-0.014145982451736927,
-0.0356191024184227,
-0.04657144844532013,
0.016342205926775932,
0.015795547515153885,
-0.010539955459535122,
0.044883523136377335,
0.001707108342088759,
0.02564498782157898,
0.018231533467769623,
-0.008866413496434689,
-0.005495354533195496,
0.001978039974346757,
-0.06364253163337708,
-0.02006331831216812,
0.03414216637611389,
0.05328479781746864,
0.047645583748817444,
0.01879737339913845,
0.024455765262246132,
-0.017780780792236328,
0.01599694788455963,
0.023630982264876366,
0.0744989737868309,
-0.003850584151223302,
0.03435315936803818,
0.023650163784623146,
-0.022902105003595352,
0.06057357415556908,
-0.0071593052707612514,
0.029941529035568237,
-0.025491539388895035,
-0.009307576343417168,
0.027102742344141006,
-0.04285033792257309,
0.04438481852412224,
-0.027965886518359184,
0.0864679142832756,
-0.04189128801226616,
-0.009806282818317413,
0.07480587065219879,
0.008492384105920792,
-0.06406451761722565,
0.003692341037094593,
0.002332888310775161,
-0.028944117948412895,
-0.0029826443642377853,
-0.07096967101097107,
0.030843036249279976,
0.03508203476667404,
0.013493828475475311,
0.03659733384847641,
0.0032391902059316635,
0.06839942187070847,
-0.03536975011229515,
0.03792082145810127,
-0.051136527210474014,
0.0740002691745758,
-0.005648802500218153,
-0.02660403586924076,
-0.0023280929308384657,
0.03278031572699547,
-0.022767838090658188,
0.015690051019191742,
0.04515205696225166,
0.006852409802377224,
-0.024014603346586227,
0.0070729912258684635,
0.024206412956118584,
-0.01408843882381916,
0.010846851393580437,
0.04787575826048851,
-0.01359932404011488,
0.012496416456997395,
0.03228161111474037,
-0.08462654054164886,
0.03569582849740982,
0.04591929540038109,
-0.01107702311128378,
-0.038093451410532,
-0.05723608285188675,
0.0011688417289406061,
-0.07683905959129333,
-0.04031844809651375,
0.057734787464141846,
0.012304606847465038,
0.04127749428153038,
0.009667220525443554,
0.0051117343828082085,
-0.000045030377805233,
-0.006900362204760313,
-0.061494261026382446,
0.027102742344141006,
0.0058741788379848,
-0.021655339747667313,
-0.02622041665017605,
-0.003196032950654626,
-0.04603438079357147,
0.011115385219454765,
-0.038937415927648544,
0.0012731383321806788,
0.03410380333662033,
-0.0017574584344401956,
0.03870724141597748,
-0.029212651774287224,
0.010741355828940868,
0.04008827358484268,
-0.010827669873833656,
0.0048503936268389225,
-0.010933165438473225,
0.027716534212231636,
-0.03228161111474037,
-0.005298749078065157,
0.04196801036596298,
0.02282538078725338,
-0.03184044733643532,
0.00022537665790878236,
0.005346701480448246,
0.0726192370057106,
0.02347753569483757,
0.01264986488968134,
0.02221158891916275,
0.010616679675877094,
0.013033484108746052,
0.010252240113914013,
-0.026680760085582733,
0.0806368961930275,
0.02909756638109684,
-0.011393509805202484,
0.002195024862885475,
0.04507533088326454,
0.037096038460731506,
0.0013103015953674912,
-0.020178403705358505,
0.006329727359116077,
-0.01878778263926506,
-0.0033782522659748793,
0.005950903054326773,
0.010098792612552643,
-0.04108568653464317,
-0.029826443642377853,
0.024283137172460556,
-0.06218477711081505,
-0.0031169112771749496,
-0.004625016823410988,
-0.05938435345888138,
0.029231833294034004,
-0.0035436884500086308,
0.02976890094578266,
-0.007327139377593994,
-0.010866031982004642,
-0.0172149408608675,
0.00617627939209342,
-0.03375854715704918,
-0.02192387543618679,
0.0216169785708189,
0.03251178190112114,
-0.006957904901355505,
0.009753534570336342,
0.03508203476667404,
0.02033185213804245,
-0.022998010739684105,
-0.005543306935578585,
-0.012908807955682278,
-0.025817615911364555,
0.011959348805248737,
0.06659640371799469,
-0.05278609320521355,
-0.03337492793798447,
-0.09720926731824875,
-0.0039225127547979355,
0.026047788560390472,
-0.026105331256985664,
0.06855286657810211,
-0.031054027378559113,
-0.030919760465621948,
0.03005661629140377,
0.016418930143117905,
0.06287529319524765,
-0.009839849546551704,
0.022460943087935448,
-0.020849738270044327,
0.03099648468196392,
0.030478596687316895,
0.012870445847511292,
0.03853461518883705,
-0.05320807173848152,
0.04975549504160881,
-0.019008364528417587,
-0.0022417784202843904,
-0.0025534697342664003,
-0.013043074868619442,
0.060842107981443405,
0.012266244739294052,
-0.027927525341510773,
0.02152107283473015,
-0.07495931535959244,
0.006229027174413204,
-0.038093451410532,
-0.011038661003112793,
0.04235163331031799,
-0.04354085400700569,
0.016725825145840645,
0.047031793743371964,
0.026661580428481102,
-0.0023856358602643013,
0.004452387802302837,
-0.008046426810324192,
-0.005298749078065157,
-0.02029349096119404,
0.007921749725937843,
-0.026949293911457062,
-0.005509740207344294,
-0.026182055473327637,
-0.08547050505876541,
-0.0017238917062059045,
-0.031073208898305893,
-0.008113560266792774,
0.012093615718185902,
-0.017435522750020027,
-0.08102051168680191,
0.0721205323934555,
0.007859411649405956,
-0.0178575050085783,
-0.018586382269859314,
-0.06636623293161392,
0.03276113420724869,
-0.03782491758465767,
-0.034871045500040054,
-0.007470996584743261,
-0.029615452513098717,
0.04192965105175972,
-0.022134864702820778,
0.03028678707778454,
-0.03318311646580696,
-0.0200824998319149,
-0.050177477300167084,
0.027371276170015335,
0.01747388392686844,
-0.03193635120987892,
-0.04499860852956772,
-0.03251178190112114,
-0.015747595578432083,
-0.037690650671720505,
-0.02658485621213913,
-0.012860855087637901,
0.009264419786632061,
0.001536877010948956,
-0.01943034492433071,
0.030785493552684784,
-0.07453733682632446,
-0.031476009637117386,
0.014337792061269283,
0.04473007470369339,
-0.028560498729348183,
0.0045003402046859264,
0.0033087211195379496,
0.015028308145701885,
0.002047570887953043,
0.01332119945436716,
-0.07791319489479065,
-0.007662806659936905,
-0.02656567469239235,
0.0038649700582027435,
0.006387270521372557,
0.01914263144135475,
0.0197372417896986,
-0.05228738486766815,
0.01237174030393362,
-0.029270194470882416,
-0.013052665628492832,
-0.022288313135504723,
-0.03935939818620682,
0.007351115345954895,
-0.011124975979328156,
-0.01628466323018074,
-0.011115385219454765,
0.003939296584576368,
-0.02061956748366356,
0.022403398528695107,
-0.015862680971622467,
-0.042696889489889145,
0.03811263293027878,
-0.040471892803907394,
0.02004413679242134,
-0.022077322006225586,
0.04281197488307953,
-0.0058741788379848,
0.03316393494606018,
-0.014337792061269283,
0.00783064030110836,
-0.025165462866425514,
0.04192965105175972,
-0.02186633087694645,
0.0063489084132015705,
0.01391580980271101,
-0.01159491017460823,
0.014222705736756325,
-0.008799280039966106,
-0.02309391461312771,
-0.0042821564711630344,
-0.008358117192983627,
-0.05719771981239319,
-0.01849047653377056,
0.005485763773322105,
0.04031844809651375,
-0.02257602848112583,
-0.04215982183814049,
0.010127563960850239,
-0.04538222774863243,
-0.054627466946840286,
-0.014232296496629715,
0.016735415905714035,
0.04377102479338646,
-0.04024172201752663,
-0.013263656757771969,
-0.0406637042760849,
0.011316785588860512,
0.00925482902675867,
-0.057734787464141846,
-0.007408658508211374,
-0.024609213694930077,
0.06126409024000168,
0.004728114698082209,
-0.04595765843987465,
-0.001809007371775806,
-0.010117973200976849,
-0.04910334199666977,
-0.043003786355257034,
0.05217229947447777,
0.017320435494184494,
0.04438481852412224,
0.025242187082767487,
0.017061492428183556,
-0.00002796603621391114,
-0.012496416456997395,
0.016649100929498672,
-0.010405688546597958,
-0.018826143816113472,
-0.003670762525871396,
-0.008885595016181469,
0.08600757271051407,
0.044614989310503006,
-0.035542380064725876,
-0.014040486887097359,
0.019631745293736458,
-0.0557016022503376,
0.03943612053990364,
0.0430421456694603,
0.0014289839891716838,
-0.027064381167292595,
-0.01047282200306654,
0.03663569688796997,
-0.006205051206052303,
0.03132256120443344,
0.030747130513191223,
-0.025817615911364555,
0.046149469912052155,
-0.04315723478794098,
0.0016771380323916674,
-0.06072702258825302,
-0.01470223069190979,
-0.04810592904686928,
0.02723700925707817,
0.010357735678553581,
0.06552226841449738,
0.012601912021636963,
0.006128326989710331,
-0.01938239298760891
] |
725,049 | tf_keras.src.engine.training | train_on_batch | Runs a single gradient update on a single batch of data.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A TensorFlow tensor, or a list of tensors
(in case the model has multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
y: Target data. Like the input data `x`, it could be either Numpy
array(s) or TensorFlow tensor(s).
sample_weight: Optional array of the same length as x, containing
weights to apply to the model's loss for each sample. In the case
of temporal data, you can pass a 2D array with shape (samples,
sequence_length), to apply a different weight to every timestep of
every sample.
class_weight: Optional dictionary mapping class indices (integers)
to a weight (float) to apply to the model's loss for the samples
from this class during training. This can be useful to tell the
model to "pay more attention" to samples from an under-represented
class. When `class_weight` is specified and targets have a rank of
2 or greater, either `y` must be one-hot encoded, or an explicit
final dimension of `1` must be included for sparse class labels.
reset_metrics: If `True`, the metrics returned will be only for this
batch. If `False`, the metrics will be statefully accumulated
across batches.
return_dict: If `True`, loss and metric results are returned as a
dict, with each key being the name of the metric. If `False`, they
are returned as a list.
Returns:
Scalar training loss
(if the model has a single output and no metrics)
or list of scalars (if the model has multiple outputs
and/or metrics). The attribute `model.metrics_names` will give you
the display labels for the scalar outputs.
Raises:
RuntimeError: If `model.train_on_batch` is wrapped in a `tf.function`.
| def train_on_batch(
self,
x,
y=None,
sample_weight=None,
class_weight=None,
reset_metrics=True,
return_dict=False,
):
"""Runs a single gradient update on a single batch of data.
Args:
x: Input data. It could be:
- A Numpy array (or array-like), or a list of arrays
(in case the model has multiple inputs).
- A TensorFlow tensor, or a list of tensors
(in case the model has multiple inputs).
- A dict mapping input names to the corresponding array/tensors,
if the model has named inputs.
y: Target data. Like the input data `x`, it could be either Numpy
array(s) or TensorFlow tensor(s).
sample_weight: Optional array of the same length as x, containing
weights to apply to the model's loss for each sample. In the case
of temporal data, you can pass a 2D array with shape (samples,
sequence_length), to apply a different weight to every timestep of
every sample.
class_weight: Optional dictionary mapping class indices (integers)
to a weight (float) to apply to the model's loss for the samples
from this class during training. This can be useful to tell the
model to "pay more attention" to samples from an under-represented
class. When `class_weight` is specified and targets have a rank of
2 or greater, either `y` must be one-hot encoded, or an explicit
final dimension of `1` must be included for sparse class labels.
reset_metrics: If `True`, the metrics returned will be only for this
batch. If `False`, the metrics will be statefully accumulated
across batches.
return_dict: If `True`, loss and metric results are returned as a
dict, with each key being the name of the metric. If `False`, they
are returned as a list.
Returns:
Scalar training loss
(if the model has a single output and no metrics)
or list of scalars (if the model has multiple outputs
and/or metrics). The attribute `model.metrics_names` will give you
the display labels for the scalar outputs.
Raises:
RuntimeError: If `model.train_on_batch` is wrapped in a `tf.function`.
"""
self._assert_compile_was_called()
self._check_call_args("train_on_batch")
_disallow_inside_tf_function("train_on_batch")
if reset_metrics:
self.reset_metrics()
with self.distribute_strategy.scope(), training_utils.RespectCompiledTrainableState( # noqa: E501
self
):
iterator = data_adapter.single_batch_iterator(
self.distribute_strategy, x, y, sample_weight, class_weight
)
self.train_function = self.make_train_function()
logs = self.train_function(iterator)
logs = tf_utils.sync_to_numpy_or_python_type(logs)
if return_dict:
return logs
else:
return flatten_metrics_in_order(logs, self.metrics_names)
| (self, x, y=None, sample_weight=None, class_weight=None, reset_metrics=True, return_dict=False) | [
-0.0029623720329254866,
-0.04578791558742523,
0.0011848261347040534,
-0.0004862634523306042,
-0.012585786171257496,
0.006179993972182274,
-0.06393029540777206,
0.04425641521811485,
0.06165268272161484,
-0.006150542292743921,
-0.03502814844250679,
-0.04186099395155907,
0.032868340611457825,
0.01461796835064888,
0.021421361714601517,
0.03112086094915867,
-0.021460631862282753,
0.017916584387421608,
-0.03799297288060188,
-0.007137181703001261,
0.020282553508877754,
-0.041429031640291214,
-0.009989108890295029,
0.05485910549759865,
-0.021185746416449547,
0.008006012998521328,
0.03064963035285473,
0.00439815316349268,
0.010416162200272083,
-0.023345554247498512,
0.04296053200960159,
-0.024189842864871025,
0.03840530291199684,
0.03271126374602318,
0.004849749151617289,
-0.04425641521811485,
-0.01831909269094467,
-0.0019070117268711329,
-0.053838107734918594,
-0.06632571667432785,
-0.020537804812192917,
-0.060749489814043045,
0.047869183123111725,
0.04311760887503624,
0.013459526933729649,
0.06067095324397087,
-0.04311760887503624,
0.02320811152458191,
-0.049871914088726044,
-0.051481954753398895,
-0.03396787866950035,
-0.03593134135007858,
-0.0014124648878350854,
0.029157398268580437,
0.012841036543250084,
-0.00883557554334402,
0.020773420110344887,
-0.06129926070570946,
0.0056253164075315,
-0.024464726448059082,
0.03864091634750366,
-0.0473586842417717,
0.001341289491392672,
-0.006150542292743921,
0.022815419360995293,
-0.06856406480073929,
-0.04288199171423912,
-0.008919022977352142,
-0.005802027881145477,
0.060749489814043045,
0.006989921908825636,
-0.008658863604068756,
0.07076314091682434,
-0.02061634324491024,
-0.024405822157859802,
0.023698976263403893,
-0.007024282589554787,
-0.005802027881145477,
0.011289902031421661,
-0.023757880553603172,
-0.033751897513866425,
0.06247733533382416,
0.001849335036240518,
-0.03225966915488243,
-0.004106088075786829,
-0.028430918231606483,
-0.008707950823009014,
0.03591170534491539,
-0.04068291559815407,
-0.023345554247498512,
-0.004385881591588259,
0.05163903161883354,
0.012909757904708385,
-0.028195302933454514,
0.0350085124373436,
0.0005399518413469195,
-0.04201807081699371,
0.002881379332393408,
0.006911383476108313,
0.021755149587988853,
-0.011083738878369331,
0.021892592310905457,
0.019919313490390778,
0.031808070838451385,
-0.00561059033498168,
-0.07889187335968018,
-0.02823457308113575,
-0.004211624152958393,
-0.015089199878275394,
0.011869123205542564,
-0.03330030292272568,
-0.03573499247431755,
0.023993495851755142,
-0.009743676520884037,
0.018220920115709305,
0.010769585147500038,
-0.02888251468539238,
0.011368440464138985,
-0.08419321477413177,
-0.013282814994454384,
0.029216302558779716,
0.04221441596746445,
-0.02570170722901821,
-0.023463360965251923,
0.02617293782532215,
-0.023286649957299232,
0.028489822521805763,
0.024877052754163742,
0.06726817786693573,
-0.013950391672551632,
-0.03979935869574547,
0.018859045580029488,
-0.013577334582805634,
0.04570937529206276,
0.03799297288060188,
-0.01151570025831461,
-0.016306545585393906,
0.053720299154520035,
-0.011633507907390594,
-0.01095611322671175,
0.08222975581884384,
0.013606785796582699,
0.03826785832643509,
0.03167062997817993,
0.041193414479494095,
-0.00780966691672802,
-0.015462256968021393,
0.05906091257929802,
-0.015226641669869423,
0.01635563187301159,
-0.004496326204389334,
0.008757037110626698,
0.06310564279556274,
-0.003848383901640773,
-0.0455915704369545,
0.007200994063168764,
-0.08866991102695465,
-0.03934776410460472,
0.06271295249462128,
-0.015020478516817093,
-0.010818671435117722,
-0.015962939709424973,
0.0097780367359519,
-0.007628046907484531,
-0.017013391479849815,
0.05733306705951691,
-0.05474129691720009,
0.0332413986325264,
-0.040722183883190155,
0.007333527784794569,
0.032809436321258545,
-0.025387553498148918,
0.11835744231939316,
0.011319354176521301,
-0.00128115841653198,
0.06047460436820984,
0.015099016949534416,
-0.01667960360646248,
-0.0017376631731167436,
0.07158779352903366,
0.016787594184279442,
0.0012787041487172246,
-0.03453728184103966,
-0.020655611529946327,
-0.06479422003030777,
0.047280147671699524,
-0.059335798025131226,
-0.006194720044732094,
-0.0015842677094042301,
0.07158779352903366,
-0.00011612032540142536,
0.020037122070789337,
0.024602169170975685,
-0.011338988319039345,
-0.02829347550868988,
0.03626512736082077,
-0.0349888801574707,
-0.0023512449115514755,
0.046808917075395584,
0.029687533155083656,
0.0057922108098864555,
-0.029039591550827026,
0.06770014017820358,
0.03330030292272568,
-0.060396067798137665,
-0.012094921432435513,
0.009596416726708412,
0.028195302933454514,
-0.06569740921258926,
-0.030374744907021523,
-0.03447837755084038,
-0.008639229461550713,
-0.015256093814969063,
0.10508444160223007,
0.06012118235230446,
-0.03273089975118637,
-0.00438342709094286,
0.03396787866950035,
-0.0052129896357655525,
-0.043667376041412354,
0.02197113074362278,
-0.03473363071680069,
-0.0358724370598793,
-0.028843244537711143,
0.04021168500185013,
-0.051953185349702835,
0.038307126611471176,
-0.01715083420276642,
0.009665138088166714,
-0.020223651081323624,
0.00043871087837032974,
-0.07092022150754929,
0.060513876378536224,
0.024523630738258362,
0.02291359193623066,
-0.03840530291199684,
0.0005236919387243688,
0.0010737678967416286,
0.06184902787208557,
0.004228804726153612,
-0.005065729841589928,
-0.01270359382033348,
0.02682087942957878,
-0.03220076486468315,
-0.005949287675321102,
0.05521252751350403,
0.03909251093864441,
0.07064533233642578,
-0.023541899397969246,
-0.03059072606265545,
-0.03811078146100044,
0.08372198790311813,
0.008688315749168396,
0.017445353791117668,
-0.03017839975655079,
-0.007858753204345703,
0.046337686479091644,
-0.01302756555378437,
-0.009228267706930637,
-0.03787516802549362,
-0.026663802564144135,
0.03703087940812111,
-0.03987789899110794,
0.04068291559815407,
-0.03899433836340904,
-0.016777776181697845,
0.015717506408691406,
0.04260710999369621,
0.040957801043987274,
0.0908689871430397,
-0.030453283339738846,
0.08038410544395447,
-0.012114555574953556,
-0.021342823281884193,
0.018456535413861275,
0.015059747733175755,
0.03785553202033043,
-0.04150756821036339,
0.046337686479091644,
0.008079642429947853,
0.015805862843990326,
-0.05446641519665718,
0.007122455630451441,
-0.01659124717116356,
0.007902931421995163,
-0.04818333685398102,
0.0026703071780502796,
0.0004761393356602639,
0.032750532031059265,
-0.013037382625043392,
0.058039914816617966,
-0.007225537206977606,
0.05972848832607269,
-0.002930465852841735,
0.0036250401753932238,
0.005674402695149183,
-0.023698976263403893,
0.008820849470794201,
-0.0093362582847476,
-0.025917688384652138,
0.010425979271531105,
0.03599024564027786,
-0.01861361227929592,
-0.04103633761405945,
-0.021362457424402237,
-0.04303906857967377,
0.02888251468539238,
-0.01799512282013893,
-0.03479253128170967,
-0.021421361714601517,
0.031690262258052826,
0.028627265244722366,
-0.031925879418849945,
-0.0632234513759613,
-0.022992130368947983,
-0.07692840695381165,
0.017307911068201065,
0.018505621701478958,
0.03669708967208862,
0.047280147671699524,
-0.015089199878275394,
0.07390467822551727,
0.053720299154520035,
0.02852909080684185,
-0.031925879418849945,
-0.029157398268580437,
0.092361219227314,
0.006469604559242725,
-0.037718091160058975,
0.02373824641108513,
0.0391121469438076,
-0.06962433457374573,
0.03188661113381386,
0.014264545403420925,
-0.012585786171257496,
-0.030963784083724022,
0.021225016564130783,
0.02314920723438263,
0.0035268671344965696,
-0.009846758097410202,
-0.021166112273931503,
0.020891226828098297,
-0.015265910886228085,
0.028784342110157013,
-0.019418630748987198,
-0.00256967986933887,
0.020282553508877754,
0.05273856967687607,
0.0535239540040493,
0.04370664805173874,
0.03182770684361458,
0.020076390355825424,
-0.004955285228788853,
0.04519887641072273,
0.034831803292036057,
-0.02197113074362278,
-0.028666533529758453,
-0.04390299320220947,
0.03170989826321602,
-0.037541378289461136,
-0.06298783421516418,
-0.004555230028927326,
-0.03278980404138565,
0.04398152977228165,
0.061927568167448044,
0.037305764853954315,
0.0057823932729661465,
-0.04567010700702667,
-0.0015130923129618168,
0.001035112189128995,
-0.0022039851173758507,
-0.013155190274119377,
-0.05800064280629158,
0.06609010696411133,
0.0062192631885409355,
0.005492782685905695,
0.0017364360392093658,
-0.020753784105181694,
0.023247381672263145,
0.06389103084802628,
0.01623782515525818,
-0.01749444007873535,
0.01917319931089878,
0.018544891849160194,
0.04193953052163124,
-0.007240263279527426,
0.013400622643530369,
-0.0641266405582428,
-0.01600220799446106,
-0.08006995171308517,
0.018063843250274658,
-0.0073678879998624325,
-0.020773420110344887,
0.026958322152495384,
-0.04983264580368996,
-0.02279578521847725,
0.04068291559815407,
0.06078875809907913,
-0.01899648644030094,
-0.0485367625951767,
-0.02032182365655899,
-0.010533969849348068,
-0.010092190466821194,
0.01843690127134323,
-0.04841895401477814,
0.004970011301338673,
-0.00537497503682971,
-0.00960132572799921,
-0.034753262996673584,
0.06777868419885635,
0.035833168774843216,
0.03461582213640213,
-0.005787301808595657,
0.032927244901657104,
-0.0005065116565674543,
0.04641622304916382,
-0.051010724157094955,
0.059689220041036606,
0.012448344379663467,
0.04429568350315094,
0.02729211002588272,
0.022952862083911896,
0.054702028632164,
0.029275206848978996,
0.017415901646018028,
-0.03540120646357536,
-0.019222285598516464,
-0.016404718160629272,
0.017052659764885902,
0.01051433477550745,
-0.025623168796300888,
-0.06934945285320282,
-0.034105319529771805,
0.004719669930636883,
-0.02362043783068657,
-0.018132563680410385,
0.023463360965251923,
0.027036860585212708,
-0.017170468345284462,
-0.0041968985460698605,
-0.014186006970703602,
-0.06078875809907913,
0.05309199169278145,
0.03909251093864441,
-0.06275221705436707,
-0.0397011861205101,
-0.031808070838451385,
-0.007642772980034351,
-0.040250953286886215,
0.006199628580361605,
0.03850347548723221,
-0.0022457088343799114,
0.049754105508327484,
0.044923990964889526,
0.0030752711463719606,
-0.019693516194820404,
-0.04555229842662811,
-0.02994278259575367,
0.044806186109781265,
-0.04936141520738602,
0.018024573102593422,
0.047869183123111725,
-0.015059747733175755,
-0.037423569709062576,
-0.04830114543437958,
-0.036186590790748596,
-0.004194444045424461,
0.018309276551008224,
0.030669264495372772,
0.0015818134415894747,
0.05163903161883354,
0.010533969849348068,
0.01767115108668804,
-0.002751300111413002,
-0.025976592674851418,
0.02670307271182537,
-0.015226641669869423,
0.015324815176427364,
0.004211624152958393,
-0.04724087566137314,
0.02462180331349373,
-0.04629841446876526,
0.038778357207775116,
0.002527956385165453,
0.005379883572459221,
-0.008246537297964096,
-0.0024837784003466368,
-0.0027095763944089413,
0.030256938189268112,
0.07284440845251083,
-0.04578791558742523,
0.01027871947735548,
0.07166633754968643,
-0.037659186869859695,
-0.08340783417224884,
-0.047280147671699524,
0.008550873957574368,
0.004935650620609522,
0.03518522530794144,
0.030040957033634186,
0.06271295249462128,
0.01923210173845291,
-0.02805786021053791,
0.013106103986501694,
0.008472335524857044,
0.027665168046951294,
-0.030512187629938126,
0.020832324400544167,
-0.07665352523326874,
-0.0009553466225042939,
-0.08866991102695465,
0.04044730216264725,
0.0045159608125686646,
0.033575188368558884,
-0.037541378289461136,
-0.05026460811495781,
0.030728168785572052,
0.07720329612493515,
0.023875689134001732,
-0.03170989826321602,
0.03546011075377464,
0.0664827972650528,
0.016630517318844795,
-0.007790032308548689,
-0.022187111899256706,
0.08482152223587036,
0.0505787618458271,
-0.03508705273270607,
0.05434860661625862,
0.03149391710758209,
-0.008747220039367676,
0.007642772980034351,
0.00171311991289258,
0.011633507907390594,
-0.027272475883364677,
-0.07143072038888931,
0.015167738310992718,
-0.04052583873271942,
-0.07095948606729507,
-0.006950652692466974,
0.02179441973567009,
0.0017941127298399806,
0.003161172615364194,
-0.043824452906847,
-0.010848123580217361,
0.006518691312521696,
0.0015032750088721514,
0.015815680846571922,
-0.055958643555641174,
-0.007063551805913448,
-0.025956956669688225,
-0.04103633761405945,
0.003710941644385457,
0.03642220422625542,
0.0076133208349347115,
0.007289349567145109,
0.010190363973379135,
0.0426463782787323,
0.0005681765615008771,
0.011083738878369331,
-0.05493764579296112,
-0.005301345139741898,
0.0030384561978280544,
-0.02350263111293316,
0.05815771967172623,
0.02503412961959839,
-0.029216302558779716,
0.03135647624731064,
-0.07830283045768738,
-0.011643324978649616,
-0.012104738503694534,
0.026074765250086784,
-0.03259345516562462,
-0.005973830819129944,
-0.04343176260590553,
0.04889018461108208,
-0.00999892596155405,
-0.08105167746543884,
-0.03318249434232712,
-0.039426300674676895,
0.010416162200272083,
-0.03261309117078781,
0.0019573254976421595,
-0.02682087942957878,
0.04398152977228165,
-0.007093003485351801,
-0.06715037673711777,
0.008187633007764816,
-0.06055314466357231,
-0.004025095608085394,
0.022403093054890633,
0.03006059117615223,
-0.01650289073586464,
-0.00782439298927784,
0.030374744907021523,
0.030139129608869553,
-0.013960209675133228,
-0.026565629988908768,
0.018338726833462715,
0.014833949506282806,
-0.06546179950237274,
0.051364146173000336,
0.01119172852486372,
-0.010003834962844849,
0.006297801621258259,
-0.05540887638926506,
-0.01682686246931553,
0.011083738878369331,
0.033516284078359604,
-0.09008359909057617,
-0.04841895401477814,
-0.024189842864871025,
0.02026291936635971,
-0.03123866766691208,
0.015933487564325333,
-0.012713411822915077,
0.007844027131795883,
0.027154669165611267,
0.06428372114896774,
-0.06671841442584991,
0.07531837373971939,
-0.04331395402550697,
-0.0006522372714243829,
-0.0029820066411048174,
-0.009728950448334217,
-0.02434691973030567,
-0.02617293782532215,
-0.03573499247431755,
0.026565629988908768,
-0.014195824973285198,
-0.012517064809799194,
0.011348805390298367,
0.040604379028081894,
-0.005198263563215733,
0.11513736844062805,
-0.011466613039374352,
-0.005939470138400793,
0.00638124905526638,
-0.010018561035394669,
-0.08419321477413177,
-0.02091086283326149,
0.0491257980465889,
0.06770014017820358,
0.01192802656441927,
-0.01932045817375183,
-0.06711110472679138,
0.007196085527539253,
0.023895323276519775,
0.09134021401405334,
0.01905539073050022,
-0.033103957772254944,
0.01054378692060709,
-0.007186267990618944,
0.002240800065919757,
0.07182341068983078,
0.10374929010868073,
0.0006307619041763246,
-0.04849749058485031,
0.0003574113070499152,
-0.017867496237158775,
-0.013832584023475647,
0.013380988501012325,
-0.00044822136987932026,
-0.0012142780469730496,
-0.04983264580368996,
-0.014961574226617813,
-0.044923990964889526,
-0.00951296929270029,
0.03182770684361458,
-0.02629074640572071,
-0.10327806323766708,
0.02947155199944973,
-0.04166464880108833,
0.014509978704154491,
0.018152199685573578,
-0.02032182365655899,
0.024955591186881065,
-0.06338052451610565,
-0.007431700825691223,
-0.032868340611457825,
-0.01399947889149189,
0.02599622681736946,
0.0036176773719489574,
0.043824452906847,
-0.015462256968021393,
-0.000054417021601693705,
-0.05132487788796425,
-0.008683407679200172,
0.015845131129026413,
-0.01266432460397482,
-0.0020726786460727453,
-0.0038213864900171757,
0.01391112245619297,
-0.04068291559815407,
-0.03335920721292496,
-0.042253684252500534,
-0.02523047663271427,
-0.011123008094727993,
-0.03856237977743149,
-0.007186267990618944,
-0.05438787490129471,
0.005752941127866507,
-0.03897470608353615,
0.014509978704154491,
0.07417956739664078,
0.009105551056563854,
-0.08167998492717743,
0.01148624811321497,
-0.008379071019589901,
-0.0017401175573468208,
0.05929652974009514,
-0.02049853466451168,
-0.007358070928603411,
0.004260710906237364,
0.023600803688168526,
-0.03331993520259857,
-0.012036017142236233,
-0.05521252751350403,
-0.006356705911457539,
0.026840515434741974,
0.024288015440106392,
0.0008234265260398388,
-0.03993679955601692,
0.018152199685573578,
-0.031042322516441345,
-0.05163903161883354,
0.04830114543437958,
-0.015422987751662731,
0.02623184211552143,
-0.03644184023141861,
0.058982376009225845,
0.0032200764399021864,
-0.0038876531179994345,
-0.007986378856003284,
0.045513030141592026,
0.0127919502556324,
0.007819483987987041,
-0.013037382625043392,
0.02456289902329445,
0.02888251468539238,
0.0002052430500043556,
0.016453804448246956,
-0.023365188390016556,
0.012801767326891422,
-0.025858784094452858,
0.026153303682804108,
0.0008590142824687064,
-0.010111825540661812,
0.04021168500185013,
-0.0332413986325264,
0.015216824598610401,
-0.016375266015529633,
-0.029746437445282936,
0.018279824405908585,
0.10076482594013214,
-0.04099706932902336,
-0.04814406856894493,
-0.061338528990745544,
-0.015511343255639076,
-0.04802625998854637,
0.02611403353512287,
-0.05046095326542854,
0.044923990964889526,
0.009179181419312954,
-0.052660029381513596,
0.01749444007873535,
0.04032949358224869,
0.05364175885915756
] |
725,050 | tf_keras.src.engine.training | train_step | The logic for one training step.
This method can be overridden to support custom training logic.
For concrete examples of how to override this method see
[Customizing what happens in fit](
https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit).
This method is called by `Model.make_train_function`.
This method should contain the mathematical logic for one step of
training. This typically includes the forward pass, loss calculation,
backpropagation, and metric updates.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_train_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end`. Typically, the
values of the `Model`'s metrics are returned. Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
| def train_step(self, data):
"""The logic for one training step.
This method can be overridden to support custom training logic.
For concrete examples of how to override this method see
[Customizing what happens in fit](
https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit).
This method is called by `Model.make_train_function`.
This method should contain the mathematical logic for one step of
training. This typically includes the forward pass, loss calculation,
backpropagation, and metric updates.
Configuration details for *how* this logic is run (e.g. `tf.function`
and `tf.distribute.Strategy` settings), should be left to
`Model.make_train_function`, which can also be overridden.
Args:
data: A nested structure of `Tensor`s.
Returns:
A `dict` containing values that will be passed to
`tf.keras.callbacks.CallbackList.on_train_batch_end`. Typically, the
values of the `Model`'s metrics are returned. Example:
`{'loss': 0.2, 'accuracy': 0.7}`.
"""
x, y, sample_weight = data_adapter.unpack_x_y_sample_weight(data)
# Run forward pass.
with tf.GradientTape() as tape:
y_pred = self(x, training=True)
loss = self.compute_loss(x, y, y_pred, sample_weight)
self._validate_target_and_loss(y, loss)
# Run backwards pass.
self.optimizer.minimize(loss, self.trainable_variables, tape=tape)
return self.compute_metrics(x, y, y_pred, sample_weight)
| (self, data) | [
-0.010326405987143517,
-0.019385825842618942,
-0.04812638461589813,
0.03747608885169029,
-0.001849274500273168,
0.027511678636074066,
-0.04435400664806366,
-0.02166258916258812,
0.0024696686305105686,
0.002054087817668915,
0.007258967962116003,
-0.040124375373125076,
0.047935862094163895,
0.00649687135592103,
0.022939100861549377,
0.025244442746043205,
0.02907397598028183,
-0.0034746830351650715,
-0.017147168517112732,
0.0007216099766083062,
0.028121355921030045,
-0.034141916781663895,
-0.02892155759036541,
0.008268745616078377,
-0.011955386959016323,
0.0619584359228611,
0.00719228433445096,
-0.006511160638183355,
-0.012345961295068264,
0.014136887155473232,
-0.029512181878089905,
-0.022062689065933228,
0.006854104343801737,
-0.0002647987275850028,
0.05037457123398781,
-0.05990077555179596,
-0.014898983761668205,
0.004682129714637995,
-0.10105397552251816,
-0.022558052092790604,
-0.007949617691338062,
-0.03570421412587166,
-0.024196559563279152,
0.02387266792356968,
-0.0011139705311506987,
0.023586882278323174,
-0.05433747172355652,
0.02640663832426071,
0.029264500364661217,
-0.0603199265897274,
-0.025854120030999184,
-0.05711912363767624,
-0.0019826414063572884,
0.026940107345581055,
0.004539236426353455,
0.014660828746855259,
0.019195301458239555,
-0.09381406009197235,
0.01399399433284998,
0.00046916556311771274,
0.042639292776584625,
-0.04885037615895271,
0.02732115425169468,
-0.009345206432044506,
0.018804727122187614,
-0.02299625799059868,
-0.04233445227146149,
-0.017099536955356598,
-0.017861632630228996,
0.049993522465229034,
-0.015146665275096893,
-0.05281327664852142,
0.056585654616355896,
0.003972427453845739,
-0.007311361841857433,
-0.005482330918312073,
0.017204325646162033,
-0.04538283869624138,
0.07053201645612717,
-0.009202313609421253,
-0.025854120030999184,
0.010516929440200329,
-0.025187285616993904,
-0.04298223555088043,
0.0016480333870276809,
-0.015556291677057743,
0.01083129458129406,
0.0049536265432834625,
-0.03821913152933121,
-0.04496368393301964,
-0.032503411173820496,
0.043248970061540604,
-0.005425173323601484,
0.0028816768899559975,
0.054527994245290756,
-0.013155688531696796,
-0.0671025812625885,
-0.02680674009025097,
-0.054527994245290756,
0.005720485933125019,
0.015603923238813877,
0.07175137102603912,
0.020976701751351357,
0.008702187798917294,
0.02057660184800625,
-0.08786971122026443,
-0.05136529356241226,
-0.010269248858094215,
-0.047935862094163895,
0.017099536955356598,
-0.040124375373125076,
-0.03608526289463043,
0.005048888269811869,
0.05654754862189293,
-0.00592053635045886,
0.032236676663160324,
0.005315622314810753,
0.006034850608557463,
-0.04282981529831886,
-0.003148410702124238,
0.02593032829463482,
0.04511610418558121,
-0.029759863391518593,
-0.03324645385146141,
-0.02048134058713913,
0.000011386791811673902,
0.07647637277841568,
0.05151771381497383,
0.01199349109083414,
-0.08108705282211304,
0.01266032550483942,
-0.030750587582588196,
-0.002941215643659234,
0.026463795453310013,
0.007030338980257511,
0.007058917544782162,
0.053956422954797745,
0.03231288492679596,
-0.04252497851848602,
0.050145938992500305,
0.0668739527463913,
-0.011469550430774689,
0.024996761232614517,
0.016232652589678764,
0.03578042611479759,
0.01394636370241642,
-0.053080011159181595,
0.03204615041613579,
0.012050649151206017,
-0.015470555983483791,
0.026635268703103065,
0.020595654845237732,
0.045878201723098755,
0.008249693550169468,
-0.009488100185990334,
0.01049787737429142,
-0.07312314957380295,
-0.029778914526104927,
0.009164208546280861,
0.0013705827295780182,
-0.024634765461087227,
-0.028483351692557335,
0.022443737834692,
-0.02541591413319111,
0.0064682927913963795,
0.0674455314874649,
-0.0807822123169899,
0.03343697637319565,
-0.011088501662015915,
0.01582302525639534,
0.03978142887353897,
-0.023301096633076668,
0.08177293837070465,
0.041915301233530045,
0.0012122095795348287,
0.05750017240643501,
0.042677395045757294,
-0.008383059874176979,
0.030807744711637497,
0.041762880980968475,
0.0017528216121718287,
-0.0016825658967718482,
-0.06832193583250046,
-0.03036954067647457,
-0.060853395611047745,
0.019528718665242195,
-0.01975734904408455,
-0.0018623729702085257,
0.01845225878059864,
0.04092457517981529,
-0.0025434966664761305,
0.007854355499148369,
0.02299625799059868,
0.002054087817668915,
-0.01821410283446312,
0.02819756604731083,
0.024844340980052948,
0.038257237523794174,
0.05662376061081886,
0.02958839200437069,
0.003491353942081332,
-0.025092022493481636,
0.09381406009197235,
0.011326657608151436,
-0.05231791362166405,
0.029207343235611916,
0.022672366350889206,
0.052203599363565445,
-0.06946508586406708,
-0.031093532219529152,
-0.041496146470308304,
0.004117702133953571,
0.01575634256005287,
0.1136285662651062,
0.060243718326091766,
-0.075409434735775,
-0.015661079436540604,
0.015575344674289227,
0.030998269096016884,
-0.012679378502070904,
0.043363284319639206,
-0.015032351016998291,
-0.03909554332494736,
-0.03158889338374138,
0.07140842825174332,
-0.043096549808979034,
0.04812638461589813,
-0.06294915825128555,
-0.029759863391518593,
-0.022272266447544098,
-0.053080011159181595,
-0.07994391024112701,
0.0023339202161878347,
0.035532742738723755,
0.012126858346164227,
0.01366057712584734,
-0.026463795453310013,
-0.024406136944890022,
0.025072969496250153,
-0.01782352849841118,
-0.019928820431232452,
-0.022310370579361916,
-0.008730766363441944,
-0.014822774566709995,
-0.038257237523794174,
0.026578111574053764,
0.043668121099472046,
0.05437557399272919,
-0.018328417092561722,
-0.03212236240506172,
-0.029150186106562614,
0.04374433308839798,
-0.012336434796452522,
0.06355883926153183,
-0.03526600822806358,
-0.017994999885559082,
0.08840318024158478,
-0.03499927371740341,
0.06325399875640869,
0.008907001465559006,
-0.0019207210280001163,
0.032293833792209625,
-0.03808576613664627,
0.05121287703514099,
-0.028273774310946465,
-0.045154210180044174,
0.011612443253397942,
0.02248184196650982,
0.023529725149273872,
0.06310158222913742,
0.11599106341600418,
0.07293262332677841,
-0.026635268703103065,
0.004351093899458647,
0.015889709815382957,
-0.011831546202301979,
0.015318136662244797,
-0.004579722881317139,
0.0028697692323476076,
-0.019109565764665604,
0.017080483958125114,
-0.054680414497852325,
-0.06782657653093338,
-0.016346966847777367,
-0.03997195512056351,
-0.029607443138957024,
0.038676392287015915,
-0.011621969752013683,
0.026902001351118088,
-0.007511412259191275,
-0.006449240259826183,
-0.013422422111034393,
0.059367306530475616,
0.02897871471941471,
0.05502335727214813,
0.006620712112635374,
-0.028388090431690216,
-0.005830037407577038,
0.0026220877189189196,
-0.014679880812764168,
0.05346105992794037,
0.012812744826078415,
0.008854607120156288,
-0.023015310987830162,
-0.02604464255273342,
-0.01299374271184206,
0.023072468116879463,
0.02280573360621929,
-0.03467538580298424,
-0.07015097141265869,
-0.012136384844779968,
0.022615209221839905,
0.004122464917600155,
-0.02295815385878086,
-0.032027099281549454,
-0.06904593110084534,
-0.007816250436007977,
-0.0007257777033373713,
0.04202961549162865,
0.05990077555179596,
-0.013755839318037033,
0.10029187798500061,
0.03206520527601242,
-0.0032460542861372232,
-0.01364152505993843,
-0.029207343235611916,
0.10128260403871536,
-0.022786680608987808,
-0.0326748825609684,
0.017413901165127754,
-0.00005514779331861064,
-0.030903007835149765,
0.03680925443768501,
0.035018328577280045,
-0.09190881997346878,
-0.013470053672790527,
0.022196056321263313,
0.045420944690704346,
-0.00661118607968092,
0.049269530922174454,
0.017042379826307297,
0.01878567598760128,
0.0007930565043352544,
0.025492124259471893,
-0.004865508992224932,
-0.038047660142183304,
0.036466311663389206,
0.04724997282028198,
0.057652588933706284,
0.06005319207906723,
-0.00555854057893157,
-0.028159460052847862,
-0.019023830071091652,
0.030026596039533615,
0.049841102212667465,
-0.016708962619304657,
-0.016165969893336296,
-0.059062469750642776,
0.01008825097233057,
-0.048202596604824066,
0.02892155759036541,
0.03900028020143509,
-0.04907900467514992,
0.06839814782142639,
0.06550218164920807,
0.0036342469975352287,
-0.002660192549228668,
0.012860376387834549,
0.00910705141723156,
0.030998269096016884,
0.00594435166567564,
-0.05121287703514099,
0.022920047864317894,
0.0325605683028698,
0.005429936572909355,
0.01191728189587593,
0.04183908924460411,
0.004282028879970312,
-0.010173986665904522,
0.030903007835149765,
0.03518979996442795,
0.0013848720118403435,
-0.009640518575906754,
0.0150514030829072,
0.043248970061540604,
-0.0054061212576925755,
-0.019261986017227173,
-0.042067717760801315,
0.036866411566734314,
-0.07346609234809875,
0.005329911597073078,
-0.028064198791980743,
-0.03092206083238125,
0.023091519251465797,
-0.029150186106562614,
-0.012088753283023834,
0.014155940152704716,
0.03309403359889984,
-0.02794988453388214,
-0.07140842825174332,
-0.017290061339735985,
-0.06565459817647934,
0.03297971934080124,
0.053804002702236176,
0.02332014963030815,
-0.01335573848336935,
0.011002765968441963,
0.02444424107670784,
-0.023015310987830162,
0.038161974400281906,
-0.01052645593881607,
-0.0017683017067611217,
0.03642820566892624,
0.043820541352033615,
-0.003915269859135151,
0.03452296555042267,
-0.050450779497623444,
0.03545653447508812,
-0.005991982761770487,
0.044277798384428024,
0.013336686417460442,
0.03932417184114456,
0.020805230364203453,
0.06752173602581024,
0.0328463539481163,
0.0003005219914484769,
0.004198674578219652,
0.00394146703183651,
-0.0021433960646390915,
0.01667085848748684,
-0.03036954067647457,
-0.049269530922174454,
-0.03802860900759697,
0.002531588776037097,
-0.04709755629301071,
0.006725500337779522,
0.014422673732042313,
0.003529458772391081,
0.002643521875143051,
0.0326748825609684,
-0.033017825335264206,
-0.048659853637218475,
0.04976489394903183,
0.009821516461670399,
-0.045001789927482605,
-0.02943597175180912,
-0.03526600822806358,
-0.017166221514344215,
-0.05254654586315155,
0.005991982761770487,
0.007497122976928949,
-0.004798825364559889,
0.028940608724951744,
0.0301028061658144,
0.009888200089335442,
0.020748073235154152,
-0.06283484399318695,
-0.0568142831325531,
0.0025744568556547165,
-0.05414694547653198,
0.05090803653001785,
0.07834350317716599,
-0.032541513442993164,
-0.0054061212576925755,
0.00034115719608962536,
0.0013705827295780182,
0.028159460052847862,
0.05612839758396149,
-0.017042379826307297,
0.013927310705184937,
0.04020058363676071,
0.008016301319003105,
0.031207846477627754,
-0.03920985758304596,
-0.020005028694868088,
0.05231791362166405,
-0.011926808394491673,
-0.006239663809537888,
0.01863325573503971,
-0.052203599363565445,
0.048812273889780045,
-0.07880076766014099,
0.043553806841373444,
0.021491117775440216,
0.008907001465559006,
0.06134875863790512,
-0.050869930535554886,
0.0063444520346820354,
0.014451252296566963,
0.04858364164829254,
-0.03616147115826607,
-0.004865508992224932,
0.04599251598119736,
0.007397098001092672,
-0.05414694547653198,
-0.008302086964249611,
0.05544251203536987,
0.013470053672790527,
0.03328455984592438,
0.0267114769667387,
0.04622114449739456,
-0.004701181780546904,
-0.013536736369132996,
0.010402615182101727,
0.013679630123078823,
0.01497519388794899,
-0.0480501763522625,
0.029550286009907722,
-0.07720036059617996,
0.004948863293975592,
-0.021567327901721,
0.008754582144320011,
0.016718488186597824,
0.02892155759036541,
-0.0003679496585391462,
-0.04679271578788757,
0.009688150137662888,
0.04039110615849495,
-0.0056680915877223015,
-0.019795453175902367,
-0.008006774820387363,
0.028578612953424454,
0.03823818638920784,
-0.006768368184566498,
-0.005372779443860054,
0.07327556610107422,
0.0031365028116852045,
-0.046335458755493164,
0.044735055416822433,
0.026463795453310013,
0.020062187686562538,
0.017718739807605743,
0.02995038777589798,
0.06813141703605652,
0.005734775215387344,
-0.03132215887308121,
-0.0031722260173410177,
-0.04065784066915512,
-0.05971024930477142,
-0.025720752775669098,
0.026578111574053764,
-0.039400383830070496,
0.0020802849903702736,
-0.03860018029808998,
0.006615948863327503,
-0.0029126370791345835,
0.01252695918083191,
-0.028064198791980743,
-0.04317275807261467,
-0.04416348412632942,
-0.02408224530518055,
0.003753324504941702,
-0.005496620200574398,
0.03545653447508812,
-0.0342562310397625,
-0.0028650059830397367,
-0.002448234474286437,
0.02737831138074398,
0.03829534351825714,
0.004765484016388655,
-0.053804002702236176,
-0.013679630123078823,
0.0007216099766083062,
-0.04523041844367981,
0.02501581236720085,
-0.0029912281315773726,
-0.043134655803442,
-0.01924293301999569,
-0.10417857021093369,
-0.004124846775084734,
0.02474907971918583,
0.02383456379175186,
-0.0077781458385288715,
-0.008935580030083656,
-0.07053201645612717,
0.007158942520618439,
-0.01039308961480856,
-0.026825791224837303,
-0.039286065846681595,
-0.082306407392025,
-0.005825274158269167,
-0.014670355245471,
0.00613487558439374,
-0.011031344532966614,
-0.003393710358068347,
-0.0022219871170818806,
-0.021624485030770302,
0.03370371088385582,
-0.052470333874225616,
-0.00958812516182661,
-0.004896468948572874,
0.028997765854001045,
-0.04458263888955116,
-0.037285566329956055,
0.03562800586223602,
0.020805230364203453,
-0.03543747961521149,
-0.03829534351825714,
0.009159445762634277,
0.017499636858701706,
-0.0875648707151413,
0.03551369160413742,
-0.0043987249955534935,
0.03189373388886452,
0.00958812516182661,
-0.05090803653001785,
-0.05875762924551964,
0.06935077160596848,
0.0016242178389802575,
-0.06321589648723602,
-0.012260225601494312,
0.000597769336309284,
0.03337981924414635,
-0.028635770082473755,
-0.0046845111064612865,
-0.012136384844779968,
-0.007182758301496506,
-0.03189373388886452,
0.06805520504713058,
-0.03585663437843323,
0.049383845180273056,
-0.0600912980735302,
-0.042677395045757294,
0.007235152181237936,
-0.036409154534339905,
-0.036656834185123444,
0.028826294466853142,
-0.04785965010523796,
-0.00012309642625041306,
-0.04496368393301964,
0.015422925353050232,
0.019157197326421738,
0.008478322066366673,
-0.044277798384428024,
0.08748866617679596,
-0.001699236687272787,
-0.01975734904408455,
0.012345961295068264,
-0.012669852003455162,
-0.10798905789852142,
-0.041915301233530045,
0.06306347250938416,
0.03959090635180473,
-0.016289809718728065,
0.00841163843870163,
-0.05563303455710411,
-0.028578612953424454,
0.00397004559636116,
0.09343301504850388,
0.02640663832426071,
-0.04462074115872383,
0.04321086406707764,
0.03835250064730644,
0.03246530517935753,
0.05212739109992981,
0.05654754862189293,
0.035075485706329346,
-0.05887194350361824,
0.053080011159181595,
-0.049421947449445724,
-0.048659853637218475,
0.029988491907715797,
0.020195553079247475,
-0.020557548850774765,
-0.03263677656650543,
-0.0013955889735370874,
-0.03092206083238125,
0.0041296095587313175,
-0.024482345208525658,
-0.03499927371740341,
-0.06961750239133835,
0.03242719918489456,
-0.03808576613664627,
0.026463795453310013,
0.03694261983036995,
0.005134624429047108,
0.01090750377625227,
-0.0794866532087326,
-0.016023075208067894,
-0.054108843207359314,
-0.015403872355818748,
0.013679630123078823,
-0.007049391511827707,
0.019528718665242195,
-0.012164963409304619,
0.0022267503663897514,
-0.037742823362350464,
-0.001584922312758863,
-0.028369037434458733,
-0.011002765968441963,
-0.004189148545265198,
-0.014136887155473232,
0.001590876141563058,
-0.02196742780506611,
-0.053651582449674606,
-0.07251346856355667,
-0.053537268191576004,
-0.03118879348039627,
-0.0005819915677420795,
-0.05388021469116211,
-0.019681138917803764,
-0.0020409892313182354,
-0.007082732859998941,
-0.026273272931575775,
0.053651582449674606,
0.026387587189674377,
-0.059100572019815445,
-0.04785965010523796,
-0.019471561536192894,
0.004432066809386015,
0.06794089078903198,
-0.01621359959244728,
-0.03330361098051071,
-0.04096268117427826,
-0.014794196002185345,
-0.005882431287318468,
-0.029874177649617195,
-0.0342562310397625,
0.0032150940969586372,
0.022977204993367195,
0.013832049444317818,
-0.002452997723594308,
0.006096770986914635,
0.016585122793912888,
-0.019166722893714905,
-0.0037652323953807354,
-0.0014432199532166123,
-0.0344277024269104,
0.03176036477088928,
-0.036351997405290604,
0.03299877420067787,
-0.002448234474286437,
-0.02450139820575714,
0.020748073235154152,
0.032141413539648056,
0.013936837203800678,
0.018776148557662964,
0.002479194663465023,
0.01427978090941906,
0.017690161243081093,
0.047059450298547745,
-0.0016075470484793186,
-0.019319143146276474,
0.0006406372413039207,
0.024101298302412033,
0.015813499689102173,
0.028997765854001045,
-0.015984971076250076,
0.059976983815431595,
-0.04271550104022026,
0.03416096791625023,
-0.01572776399552822,
-0.020195553079247475,
0.0007156560895964503,
0.051784448325634,
-0.022253213450312614,
-0.02692105434834957,
-0.03484685719013214,
-0.011745810508728027,
-0.04519231617450714,
-0.005515672266483307,
-0.07670500129461288,
0.050869930535554886,
0.0076162004843354225,
0.008883185684680939,
0.02768315002322197,
0.06134875863790512,
0.047935862094163895
] |
725,051 | tf_keras.src.engine.sequential | Sequential | `Sequential` groups a linear stack of layers into a `tf.keras.Model`.
`Sequential` provides training and inference features on this model.
Examples:
```python
model = tf.keras.Sequential()
model.add(tf.keras.Input(shape=(16,)))
model.add(tf.keras.layers.Dense(8))
# Note that you can also omit the initial `Input`.
# In that case the model doesn't have any weights until the first call
# to a training/evaluation method (since it isn't yet built):
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(4))
# model.weights not created yet
# Whereas if you specify an `Input`, the model gets built
# continuously as you are adding layers:
model = tf.keras.Sequential()
model.add(tf.keras.Input(shape=(16,)))
model.add(tf.keras.layers.Dense(4))
len(model.weights)
# Returns "2"
# When using the delayed-build pattern (no input shape specified), you can
# choose to manually build your model by calling
# `build(batch_input_shape)`:
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(4))
model.build((None, 16))
len(model.weights)
# Returns "4"
# Note that when using the delayed-build pattern (no input shape specified),
# the model gets built the first time you call `fit`, `eval`, or `predict`,
# or the first time you call the model on some input data.
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(1))
model.compile(optimizer='sgd', loss='mse')
# This builds the model for the first time:
model.fit(x, y, batch_size=32, epochs=10)
```
| class Sequential(functional.Functional):
"""`Sequential` groups a linear stack of layers into a `tf.keras.Model`.
`Sequential` provides training and inference features on this model.
Examples:
```python
model = tf.keras.Sequential()
model.add(tf.keras.Input(shape=(16,)))
model.add(tf.keras.layers.Dense(8))
# Note that you can also omit the initial `Input`.
# In that case the model doesn't have any weights until the first call
# to a training/evaluation method (since it isn't yet built):
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(4))
# model.weights not created yet
# Whereas if you specify an `Input`, the model gets built
# continuously as you are adding layers:
model = tf.keras.Sequential()
model.add(tf.keras.Input(shape=(16,)))
model.add(tf.keras.layers.Dense(4))
len(model.weights)
# Returns "2"
# When using the delayed-build pattern (no input shape specified), you can
# choose to manually build your model by calling
# `build(batch_input_shape)`:
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(4))
model.build((None, 16))
len(model.weights)
# Returns "4"
# Note that when using the delayed-build pattern (no input shape specified),
# the model gets built the first time you call `fit`, `eval`, or `predict`,
# or the first time you call the model on some input data.
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(8))
model.add(tf.keras.layers.Dense(1))
model.compile(optimizer='sgd', loss='mse')
# This builds the model for the first time:
model.fit(x, y, batch_size=32, epochs=10)
```
"""
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def __init__(self, layers=None, name=None):
"""Creates a `Sequential` model instance.
Args:
layers: Optional list of layers to add to the model.
name: Optional name for the model.
"""
# Skip the init in FunctionalModel since model doesn't have input/output
# yet
super(functional.Functional, self).__init__(name=name, autocast=False)
self.supports_masking = True
self._compute_output_and_mask_jointly = True
self._auto_track_sub_layers = False
self._inferred_input_shape = None
self._has_explicit_input_shape = False
self._input_dtype = None
self._layer_call_argspecs = {}
self._created_nodes = set()
# Flag that indicate whether the sequential network topology has been
# created. It is false when there isn't any layer, or the layers don't
# have an input shape.
self._graph_initialized = False
# Unfortunately some Sequential models using custom layers or
# FeatureColumn layers have multiple inputs. This is fundamentally
# incompatible with most of the Sequential API, and we have to disable a
# number of features for such models.
self._use_legacy_deferred_behavior = False
# Add to the model any layers passed to the constructor.
if layers:
if not isinstance(layers, (list, tuple)):
layers = [layers]
for layer in layers:
self.add(layer)
@property
def layers(self):
# Historically, `sequential.layers` only returns layers that were added
# via `add`, and omits the auto-generated `InputLayer` that comes at the
# bottom of the stack.
# `Trackable` manages the `_layers` attributes and does filtering
# over it.
layers = super().layers
if layers and isinstance(layers[0], input_layer.InputLayer):
return layers[1:]
return layers[:]
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def add(self, layer):
"""Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
"""
# If we are passed a TF-Keras tensor created by keras.Input(), we can
# extract the input layer from its keras history and use that without
# any loss of
# generality.
if hasattr(layer, "_keras_history"):
origin_layer = layer._keras_history[0]
if isinstance(origin_layer, input_layer.InputLayer):
layer = origin_layer
if isinstance(layer, tf.Module):
if not isinstance(layer, base_layer.Layer):
layer = functional.ModuleWrapper(layer)
else:
raise TypeError(
"The added layer must be an instance of class Layer. "
f"Received: layer={layer} of type {type(layer)}."
)
tf_utils.assert_no_legacy_layers([layer])
if not self._is_layer_name_unique(layer):
raise ValueError(
"All layers added to a Sequential model "
f'should have unique names. Name "{layer.name}" is already '
"the name of a layer in this model. Update the `name` argument "
"to pass a unique name."
)
self.built = False
set_inputs = False
self._maybe_create_attribute("_self_tracked_trackables", [])
if not self._self_tracked_trackables:
if isinstance(layer, input_layer.InputLayer):
# Case where the user passes an Input or InputLayer layer via
# `add`.
set_inputs = True
else:
batch_shape, dtype = training_utils.get_input_shape_and_dtype(
layer
)
if batch_shape:
# Instantiate an input layer.
x = input_layer.Input(
batch_shape=batch_shape,
dtype=dtype,
name=layer.name + "_input",
)
# This will build the current layer
# and create the node connecting the current layer
# to the input layer we just created.
layer(x)
set_inputs = True
if set_inputs:
outputs = tf.nest.flatten(layer._inbound_nodes[-1].outputs)
if len(outputs) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = outputs
self.inputs = layer_utils.get_source_inputs(self.outputs[0])
self.built = True
self._has_explicit_input_shape = True
elif self.outputs:
# If the model is being built continuously on top of an input layer:
# refresh its output.
output_tensor = layer(self.outputs[0])
if len(tf.nest.flatten(output_tensor)) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = [output_tensor]
self.built = True
if set_inputs or self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
self._graph_initialized = True
else:
self._self_tracked_trackables.append(layer)
self._handle_deferred_layer_dependencies([layer])
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
@tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def pop(self):
"""Removes the last layer in the model.
Raises:
TypeError: if there are no layers in the model.
"""
if not self.layers:
raise Ty | (layers=None, name=None) | [
-0.0012271906016394496,
-0.022092057392001152,
-0.042315106838941574,
0.04632611945271492,
-0.005397013854235411,
0.006825017277151346,
-0.10298426449298859,
0.03635109215974808,
0.02889607474207878,
-0.035448089241981506,
-0.00735526904463768,
-0.001859817304648459,
0.017682045698165894,
0.02755207009613514,
0.045570116490125656,
0.06707417219877243,
0.0035227590706199408,
-0.010095776058733463,
-0.029841076582670212,
-0.032571084797382355,
0.010668027214705944,
-0.022050056606531143,
0.006945767905563116,
0.036981094628572464,
0.020475052297115326,
0.028245072811841965,
0.0022246933076530695,
0.0075810193084180355,
-0.007334268651902676,
-0.028833074495196342,
-0.03217208385467529,
-0.03811509907245636,
-0.03540609031915665,
-0.038850098848342896,
0.027216069400310516,
-0.00578551460057497,
-0.008862022310495377,
0.07198818773031235,
-0.03131107985973358,
-0.04210510849952698,
0.017934046685695648,
-0.02513706497848034,
-0.005402263719588518,
0.007612519431859255,
-0.0017246294301003218,
0.029820077121257782,
0.005040012765675783,
0.02090555429458618,
-0.01328253373503685,
-0.049896128475666046,
0.003181508043780923,
0.01914154924452305,
0.025263065472245216,
0.0332430861890316,
-0.008121770806610584,
-0.049014125019311905,
0.005449513904750347,
-0.055314142256975174,
0.026754068210721016,
-0.02149355411529541,
0.0033206334337592125,
0.0052132634446024895,
-0.0005761889624409378,
0.00001741117739584297,
-0.032067082822322845,
-0.004270886071026325,
-0.028182072564959526,
-0.04401611164212227,
0.018490547314286232,
0.022071056067943573,
-0.039396099746227264,
-0.042231108993291855,
0.058212149888277054,
0.008226770907640457,
-0.03223508223891258,
-0.02074805274605751,
0.0453181155025959,
-0.01780804619193077,
0.04342811182141304,
-0.062118157744407654,
-0.04599011689424515,
0.018868548795580864,
-0.038367096334695816,
-0.023478060960769653,
0.004336511250585318,
-0.031038079410791397,
0.015088538639247417,
0.022848058491945267,
-0.044142112135887146,
-0.007134768180549145,
-0.024927062913775444,
0.061992157250642776,
0.01161302998661995,
0.044226113706827164,
0.03278108313679695,
0.002065880224108696,
-0.033096086233854294,
-0.05325613543391228,
-0.0055282642133533955,
-0.025200065225362778,
-0.013366534374654293,
0.028812073171138763,
-0.05010612681508064,
0.04792212322354317,
-0.0492241270840168,
-0.03567909076809883,
-0.06728417426347733,
-0.03429308906197548,
-0.0406981036067009,
-0.008589021861553192,
-0.031563080847263336,
-0.0022929434198886156,
-0.0010992215247824788,
0.0010342526948079467,
-0.0017600669525563717,
0.005352388601750135,
0.007129518315196037,
-0.02265905775129795,
-0.027195069938898087,
0.014511036686599255,
0.014458537101745605,
0.06917417794466019,
-0.05644814297556877,
-0.021903056651353836,
0.01657954230904579,
0.005869515240192413,
0.035910092294216156,
0.006819767411798239,
0.04876212403178215,
-0.07702820003032684,
-0.01817554607987404,
0.001778442063368857,
0.004958637524396181,
0.09004823118448257,
0.028833074495196342,
0.03364208713173866,
-0.03431408852338791,
0.015687040984630585,
-0.062034159898757935,
0.0809762105345726,
0.045234113931655884,
0.016716042533516884,
0.04050910472869873,
0.012400532141327858,
-0.007701769936829805,
-0.041706107556819916,
-0.01107752788811922,
-0.05082013085484505,
-0.026166066527366638,
-0.052374135702848434,
0.01947754994034767,
-0.029757076874375343,
0.006027015391737223,
0.027384070679545403,
-0.016758043318986893,
0.05489414185285568,
-0.039333101361989975,
-0.014805037528276443,
0.05972415208816528,
-0.03282308578491211,
-0.07589419186115265,
-0.006336766295135021,
0.03605709224939346,
-0.036435093730688095,
-0.022323057055473328,
0.01421703677624464,
-0.02946307510137558,
-0.016632042825222015,
-0.014101536013185978,
0.04139110445976257,
0.01835404708981514,
0.01887904852628708,
0.07858219742774963,
0.019005049020051956,
-0.025242064148187637,
0.022974058985710144,
0.06426016241312027,
0.018165046349167824,
-0.014164536260068417,
0.025473065674304962,
0.04143310710787773,
-0.01802854612469673,
-0.08013620227575302,
-0.003465008921921253,
-0.016149042174220085,
0.028329072520136833,
-0.050400130450725555,
0.011245529167354107,
0.04674611985683441,
0.0007500956417061388,
0.006825017277151346,
0.035574089735746384,
0.05082013085484505,
0.004785387311130762,
-0.033579085022211075,
-0.011665529571473598,
-0.007549519184976816,
0.04817412421107292,
0.05607014521956444,
-0.01853254809975624,
-0.007901269942522049,
0.0012258781353011727,
0.05997615307569504,
0.02845507301390171,
-0.08736022561788559,
-0.003412508638575673,
-0.012757532298564911,
-0.011382029391825199,
-0.03427208587527275,
-0.033117085695266724,
-0.06451216340065002,
-0.01758754439651966,
0.061068154871463776,
0.07005617767572403,
0.03927009925246239,
-0.07396218925714493,
-0.04397411271929741,
0.014080535620450974,
0.0646381676197052,
-0.028665073215961456,
0.03861909732222557,
0.029190074652433395,
-0.01815454661846161,
-0.035490091890096664,
0.011917530559003353,
-0.04502411559224129,
0.00974927470088005,
0.02083205245435238,
0.009502524510025978,
-0.049560125917196274,
0.02074805274605751,
-0.06077415496110916,
-0.007145268376916647,
-0.0031683831475675106,
0.011287529021501541,
-0.009171773679554462,
-0.04431011155247688,
-0.021021053194999695,
0.03271808475255966,
-0.07484418898820877,
-0.038430098444223404,
-0.02755207009613514,
-0.0032497583888471127,
-0.027741070836782455,
-0.03857709839940071,
0.039333101361989975,
0.01423803623765707,
0.06291615962982178,
-0.03248708322644234,
-0.001200284343212843,
0.023940062150359154,
0.024486063048243523,
-0.027888070791959763,
0.046620119363069534,
-0.018711047247052193,
-0.0678301751613617,
0.02274305745959282,
-0.06379816681146622,
0.05464214086532593,
0.018144046887755394,
-0.03624609112739563,
0.019698049873113632,
0.00652576657012105,
0.07072818279266357,
0.01853254809975624,
-0.039795100688934326,
0.01809154637157917,
-0.009329274296760559,
0.022302057594060898,
0.005512514151632786,
0.13221633434295654,
0.06304216384887695,
-0.03150007873773575,
0.0015618789475411177,
-0.01446903683245182,
-0.06144615635275841,
0.004735512193292379,
0.01771354489028454,
-0.01114052813500166,
0.015498039312660694,
0.01712554320693016,
-0.05800214782357216,
-0.06820817291736603,
-0.021546054631471634,
-0.0334530845284462,
-0.007638769689947367,
0.020412052050232887,
-0.03383108600974083,
0.0032445082906633615,
-0.03126908093690872,
0.05397013947367668,
-0.005087262950837612,
0.05325613543391228,
-0.009334524162113667,
-0.0023205059114843607,
-0.0389970988035202,
-0.07497019320726395,
-0.0037170094437897205,
0.024738064035773277,
-0.03927009925246239,
0.017860544845461845,
0.05224813520908356,
0.07719619572162628,
0.008337020874023438,
-0.009964525699615479,
-0.04771212115883827,
-0.010038025677204132,
0.012432032264769077,
-0.04569611698389053,
-0.004257760941982269,
0.0035253840032964945,
0.026670068502426147,
0.0029793826397508383,
-0.030576078221201897,
0.01688404381275177,
-0.03389408811926842,
0.010122026316821575,
-0.004520261660218239,
0.052332133054733276,
0.06631816923618317,
-0.017377544194459915,
0.05023212730884552,
-0.015445539727807045,
-0.005352388601750135,
-0.012841532938182354,
-0.0130515331402421,
0.11138428747653961,
-0.011025028303265572,
-0.03126908093690872,
0.023814061656594276,
-0.004396886099129915,
-0.03725409507751465,
0.022596057504415512,
0.055692143738269806,
-0.09903625398874283,
0.0037248844746500254,
0.035490091890096664,
0.008400021120905876,
0.03542708978056908,
-0.019950050860643387,
0.04825812205672264,
0.04720811918377876,
-0.052458133548498154,
0.02032805234193802,
-0.0026985069271177053,
-0.042651109397411346,
0.06027015298604965,
0.026355067268013954,
-0.007371018640697002,
0.008489271625876427,
0.021903056651353836,
0.0034755088854581118,
-0.036456093192100525,
0.05250013247132301,
0.01302003301680088,
0.0434701107442379,
-0.020160051062703133,
-0.013891535811126232,
0.038892097771167755,
-0.03528008982539177,
0.0531301349401474,
0.003186758141964674,
0.003150008153170347,
0.005226388573646545,
0.09021623432636261,
-0.008520771749317646,
0.030786078423261642,
-0.019131049513816833,
0.013692035339772701,
-0.012106531299650669,
-0.01299903355538845,
-0.05363413691520691,
0.033075083047151566,
0.019309548661112785,
-0.05615414306521416,
0.04103410616517067,
0.02935807593166828,
0.018648047000169754,
-0.014721037819981575,
0.029589075595140457,
0.036981094628572464,
0.04286111146211624,
-0.010006525553762913,
0.03857709839940071,
0.05871615186333656,
-0.007649269420653582,
0.008169020526111126,
-0.05082013085484505,
0.02895907498896122,
-0.03609909117221832,
0.024423062801361084,
-0.009854274801909924,
0.008337020874023438,
0.004793262109160423,
0.0066832671873271465,
-0.021840056404471397,
0.02324705943465233,
0.06085815653204918,
-0.00979127548635006,
-0.03996310383081436,
-0.028602072969079018,
-0.04002610221505165,
0.08547022193670273,
0.03483908995985985,
0.01207503117620945,
-0.019950050860643387,
0.026187067851424217,
0.027678070589900017,
-0.035973090678453445,
0.003903385018929839,
-0.00842102151364088,
0.001929379883222282,
-0.08979623019695282,
0.0037248844746500254,
0.019446048885583878,
0.015414039604365826,
0.026229066774249077,
-0.033033084124326706,
0.018039045855402946,
0.004887762479484081,
0.02889607474207878,
0.07446619123220444,
0.04620011895895004,
0.04783812165260315,
0.024885063990950584,
0.03996310383081436,
-0.030093077570199966,
0.11743230372667313,
0.0019188799196854234,
0.03479708731174469,
-0.008988022804260254,
-0.04355411231517792,
-0.007549519184976816,
-0.023877061903476715,
-0.039396099746227264,
-0.024864064529538155,
0.027825070545077324,
-0.020853053778409958,
0.0014122535940259695,
0.06308416277170181,
-0.0006359078688547015,
-0.001872942317277193,
0.033537086099386215,
0.008919772692024708,
-0.015991540625691414,
-0.010972527787089348,
0.010683777742087841,
0.06665416806936264,
-0.004231510683894157,
-0.0007113768369890749,
0.048048123717308044,
-0.02312105894088745,
0.04876212403178215,
0.021357053890824318,
-0.03229808434844017,
-0.010599777102470398,
0.009213773533701897,
-0.011907030828297138,
-0.06812417507171631,
-0.020884552970528603,
0.005974515341222286,
0.06728417426347733,
0.027342069894075394,
0.008814772590994835,
-0.0279510710388422,
-0.009093022905290127,
0.08253020793199539,
-0.01714654453098774,
-0.06787217408418655,
0.03826209902763367,
0.08001020550727844,
-0.028329072520136833,
0.016747543588280678,
-0.0325290821492672,
-0.03418808802962303,
-0.00471976213157177,
0.02759407088160515,
-0.005276263691484928,
0.003556884126737714,
-0.025935066863894463,
0.04330211132764816,
-0.0429031103849411,
-0.037359096109867096,
0.033600084483623505,
0.010547276586294174,
0.06976217776536942,
0.017640044912695885,
-0.0062947659753263,
0.06459616869688034,
0.010059026069939137,
-0.08047220855951309,
-0.02320505864918232,
0.06699017435312271,
0.011707530356943607,
-0.0362250916659832,
-0.03460808843374252,
0.039879102259874344,
-0.022869057953357697,
0.02652306854724884,
-0.00033534460817463696,
0.02268005721271038,
0.017472045496106148,
-0.027279069647192955,
-0.005326138809323311,
0.017220044508576393,
0.021136553958058357,
-0.04401611164212227,
-0.01760854572057724,
-0.031227080151438713,
-0.028350071981549263,
-0.02046455256640911,
0.002555444138124585,
0.026817068457603455,
-0.018228046596050262,
0.0004088447894901037,
-0.011539529077708721,
0.014395536854863167,
0.010521027259528637,
-0.021000053733587265,
-0.012012030929327011,
0.035973090678453445,
0.01885804906487465,
0.018669048324227333,
-0.027720071375370026,
0.015687040984630585,
0.043680112808942795,
0.007386768702417612,
-0.02215505577623844,
0.08152221143245697,
0.022827059030532837,
0.01157102920114994,
-0.004131760448217392,
0.009864775463938713,
0.07824619859457016,
-0.02696406841278076,
-0.06342016160488129,
0.04389011114835739,
-0.037863098084926605,
-0.1058402732014656,
-0.013923035934567451,
0.012012030929327011,
0.02954707480967045,
0.023961061611771584,
0.010269026271998882,
-0.0018270047148689628,
0.006174015812575817,
0.022890059277415276,
-0.003357383655384183,
-0.061992157250642776,
0.004630511626601219,
-0.07581019401550293,
0.030177077278494835,
-0.0077700200490653515,
-0.0045360117219388485,
0.05896814912557602,
-0.0066360170021653175,
-0.0013558159116655588,
0.04783812165260315,
-0.032151080667972565,
0.02895907498896122,
-0.02419206127524376,
0.03725409507751465,
-0.002579068997874856,
-0.06657017022371292,
0.0030607578810304403,
0.021283553913235664,
-0.021525055170059204,
-0.03150007873773575,
-0.04590611904859543,
-0.00652576657012105,
-0.002166943158954382,
-0.0028533823788166046,
0.01833304762840271,
-0.007397268898785114,
-0.049056123942136765,
0.00018998485757037997,
-0.018627047538757324,
0.023982061073184013,
0.007066518068313599,
-0.03542708978056908,
0.017944546416401863,
0.011991030536592007,
0.0019595674239099026,
-0.0015946915373206139,
0.04330211132764816,
-0.038367096334695816,
-0.0005250013200566173,
0.040278103202581406,
-0.06707417219877243,
-0.009119273163378239,
0.004236761014908552,
0.007213518489152193,
-0.005045263096690178,
-0.036393094807863235,
-0.0062265158630907536,
0.019204549491405487,
-0.05157613381743431,
-0.01372353546321392,
0.027741070836782455,
0.023919060826301575,
-0.054264139384031296,
0.014133036136627197,
0.0010893777944147587,
-0.006977268029004335,
0.022554058581590652,
-0.030282078310847282,
-0.03660309314727783,
0.01180202979594469,
-0.007014018017798662,
-0.016516542062163353,
-0.00929777417331934,
-0.0019753174856305122,
-0.04405811429023743,
-0.07459218800067902,
-0.03635109215974808,
-0.0650581642985344,
-0.02268005721271038,
0.053760137408971786,
0.07379418611526489,
-0.049980126321315765,
0.06594017148017883,
-0.021336054429411888,
-0.04594811797142029,
-0.0012659095227718353,
-0.023436060175299644,
0.023961061611771584,
0.03238208219408989,
-0.04888812452554703,
0.03857709839940071,
0.006095265503972769,
0.04019410163164139,
0.04893012344837189,
-0.001648504170589149,
-0.006814517546445131,
0.1012202575802803,
-0.06283216178417206,
0.002640756778419018,
0.02601906657218933,
-0.0019792551174759865,
-0.018669048324227333,
-0.054306138306856155,
-0.0332430861890316,
-0.02268005721271038,
-0.024801064282655716,
0.018921049311757088,
-0.031584080308675766,
0.012610532343387604,
-0.022848058491945267,
0.08589021861553192,
-0.016065040603280067,
-0.04040410369634628,
0.03824109956622124,
-0.006872267462313175,
-0.04914012551307678,
0.050484128296375275,
-0.017640044912695885,
-0.004963887855410576,
-0.02362506091594696,
0.019194049760699272,
-0.021325554698705673,
0.0022470057010650635,
-0.021861055865883827,
0.04164310544729233,
0.015309039503335953,
-0.03570009022951126,
0.019414549693465233,
-0.014080535620450974,
-0.03729609400033951,
-0.0061530158855021,
0.02893807366490364,
-0.08114420622587204,
-0.06841817498207092,
-0.004551761783659458,
-0.022596057504415512,
0.01087802741676569,
-0.014742037281394005,
0.025725066661834717,
0.04397411271929741,
-0.0021656304597854614,
-0.03045007772743702,
-0.018081046640872955,
0.04456211254000664,
-0.029295075684785843,
0.004197385627776384,
0.035553090274333954,
-0.02898007445037365,
-0.038787100464105606,
-0.0185745470225811,
0.07140018045902252,
-0.02797207236289978,
0.011235028505325317,
0.00045182928442955017,
0.011938530951738358,
-0.0009272836032323539,
-0.058170147240161896,
-0.0666961669921875,
-0.05707814544439316,
-0.025935066863894463,
-0.039354100823402405,
-0.012001530267298222,
0.010605026967823505,
0.007560019381344318,
-0.03483908995985985,
-0.002756257075816393,
0.055776141583919525,
0.08492421358823776,
-0.10004425793886185,
-0.017178043723106384,
0.014301036484539509,
-0.03519608825445175,
0.0176505446434021,
-0.0019989425782114267,
-0.0019530049758031964,
-0.031143080443143845,
-0.0035227590706199408,
-0.03080707974731922,
0.014374536462128162,
0.01018502563238144,
-0.03431408852338791,
0.04477211460471153,
0.011046028696000576,
0.032571084797382355,
0.021399054676294327,
-0.020338552072644234,
-0.03515408933162689,
-0.0033810087479650974,
-0.00007386932702502236,
-0.038829099386930466,
0.03271808475255966,
0.02457006275653839,
0.03704409301280975,
0.04447811469435692,
-0.04788012430071831,
0.032088082283735275,
0.01476303767412901,
-0.0367920957505703,
0.015813039615750313,
-0.002785132033750415,
-0.03803109750151634,
-0.05229013413190842,
0.03908110037446022,
-0.045108117163181305,
-0.06077415496110916,
-0.0013085658429190516,
0.006420766469091177,
0.034440089017152786,
0.058674149215221405,
-0.024318061769008636,
0.006982517894357443,
-0.04494011402130127,
0.014878538437187672,
-0.016527041792869568,
-0.009644274599850178,
0.010752027854323387,
0.04443611204624176,
-0.012978033162653446,
-0.0027326319832354784,
-0.020013051107525826,
-0.04248310998082161,
-0.0929042398929596,
-0.003029257757589221,
-0.07694419473409653,
0.08156421035528183,
-0.031605079770088196,
0.055776141583919525,
0.0167265422642231,
-0.000459704315289855,
0.0367920957505703
] |
725,057 | tf_keras.src.engine.sequential | __init__ | Creates a `Sequential` model instance.
Args:
layers: Optional list of layers to add to the model.
name: Optional name for the model.
| @tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def add(self, layer):
"""Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
"""
# If we are passed a TF-Keras tensor created by keras.Input(), we can
# extract the input layer from its keras history and use that without
# any loss of
# generality.
if hasattr(layer, "_keras_history"):
origin_layer = layer._keras_history[0]
if isinstance(origin_layer, input_layer.InputLayer):
layer = origin_layer
if isinstance(layer, tf.Module):
if not isinstance(layer, base_layer.Layer):
layer = functional.ModuleWrapper(layer)
else:
raise TypeError(
"The added layer must be an instance of class Layer. "
f"Received: layer={layer} of type {type(layer)}."
)
tf_utils.assert_no_legacy_layers([layer])
if not self._is_layer_name_unique(layer):
raise ValueError(
"All layers added to a Sequential model "
f'should have unique names. Name "{layer.name}" is already '
"the name of a layer in this model. Update the `name` argument "
"to pass a unique name."
)
self.built = False
set_inputs = False
self._maybe_create_attribute("_self_tracked_trackables", [])
if not self._self_tracked_trackables:
if isinstance(layer, input_layer.InputLayer):
# Case where the user passes an Input or InputLayer layer via
# `add`.
set_inputs = True
else:
batch_shape, dtype = training_utils.get_input_shape_and_dtype(
layer
)
if batch_shape:
# Instantiate an input layer.
x = input_layer.Input(
batch_shape=batch_shape,
dtype=dtype,
name=layer.name + "_input",
)
# This will build the current layer
# and create the node connecting the current layer
# to the input layer we just created.
layer(x)
set_inputs = True
if set_inputs:
outputs = tf.nest.flatten(layer._inbound_nodes[-1].outputs)
if len(outputs) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = outputs
self.inputs = layer_utils.get_source_inputs(self.outputs[0])
self.built = True
self._has_explicit_input_shape = True
elif self.outputs:
# If the model is being built continuously on top of an input layer:
# refresh its output.
output_tensor = layer(self.outputs[0])
if len(tf.nest.flatten(output_tensor)) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = [output_tensor]
self.built = True
if set_inputs or self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
self._graph_initialized = True
else:
self._self_tracked_trackables.append(layer)
self._handle_deferred_layer_dependencies([layer])
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
| (self, layers=None, name=None) | [
-0.03417421877384186,
-0.02748371660709381,
-0.054226212203502655,
0.07217157632112503,
-0.019379043951630592,
0.02921973541378975,
-0.09417415410280228,
0.04931074380874634,
0.027464210987091064,
-0.03433026373386383,
0.0004705782048404217,
-0.014804926700890064,
-0.00908484123647213,
-0.015292571857571602,
0.03421323001384735,
0.06530552357435226,
0.018403751775622368,
-0.0005927944439463317,
-0.01952533796429634,
-0.06983087956905365,
0.03622233122587204,
-0.01939854957163334,
0.0019310773350298405,
0.025240546092391014,
0.011362147517502308,
0.03294534981250763,
0.00042821397073566914,
0.020461617037653923,
-0.024460313841700554,
-0.011518193408846855,
-0.030448604375123978,
-0.06050708889961243,
-0.024733394384384155,
-0.014687891118228436,
0.01858905702829361,
-0.0023931218311190605,
-0.024889441207051277,
0.05204156041145325,
-0.04907667264342308,
-0.03181401267647743,
0.03998695686459541,
-0.007046481594443321,
0.009211628697812557,
0.0031648213043808937,
-0.003208709415048361,
0.01416123379021883,
-0.018042894080281258,
0.04224963113665581,
-0.028946654871106148,
-0.041313350200653076,
0.019603360444307327,
-0.012893354520201683,
0.038309454917907715,
0.011898557655513287,
-0.017369942739605904,
-0.058673541992902756,
0.025689180940389633,
-0.0695968046784401,
0.010250315070152283,
-0.010552654974162579,
0.0071342578157782555,
0.019418055191636086,
-0.009231135249137878,
0.014044199138879776,
-0.026137813925743103,
-0.023602057248353958,
-0.05465533956885338,
-0.04162544384598732,
0.030351074412465096,
0.02648892067372799,
-0.028888138011097908,
-0.04825742915272713,
0.04127433896064758,
-0.004742355551570654,
-0.031131308525800705,
-0.0074707334861159325,
0.06643686443567276,
-0.04166445881128311,
0.04345899447798729,
-0.055552609264850616,
-0.04334195703268051,
0.015292571857571602,
-0.01931077428162098,
0.02775679901242256,
0.022470718249678612,
-0.009060459211468697,
-0.0012050946243107319,
0.03657343611121178,
-0.03189203515648842,
-0.036709975451231,
-0.02063716948032379,
0.03600776568055153,
-0.0018176997546106577,
0.023387491703033447,
0.029005171731114388,
-0.019018186256289482,
-0.018754856660962105,
-0.04763324186205864,
-0.032906338572502136,
-0.016628721728920937,
0.0065880948677659035,
0.02098827436566353,
-0.04310788959264755,
0.033023372292518616,
-0.03749020770192146,
-0.032906338572502136,
-0.03039008565247059,
-0.015526642091572285,
-0.04833545163273811,
0.0030355951748788357,
-0.00839238427579403,
-0.03456433489918709,
-0.0026625460013747215,
0.0061150784604251385,
-0.011332888156175613,
-0.021709991618990898,
0.029687875881791115,
-0.0314238965511322,
-0.020227547734975815,
-0.003352564759552479,
0.025025982409715652,
0.05980487912893295,
-0.028576044365763664,
-0.03247721120715141,
0.011235359124839306,
0.00407671881839633,
0.04279579594731331,
0.006666118279099464,
0.06323790550231934,
-0.10455125570297241,
0.0069245705381035805,
-0.006529577076435089,
-0.034915439784526825,
0.08652786910533905,
0.025299064815044403,
0.018003882840275764,
-0.04361503943800926,
0.007719432935118675,
-0.054226212203502655,
0.03846549987792969,
0.04817940667271614,
-0.029804911464452744,
0.029453806579113007,
0.026235343888401985,
-0.020110512152314186,
-0.029005171731114388,
-0.04068916663527489,
-0.02976590022444725,
-0.0024845553562045097,
-0.044317249208688736,
0.014843937940895557,
-0.01897917501628399,
-0.0052275629714131355,
0.051612433046102524,
-0.02147592045366764,
0.046150799840688705,
-0.0461898110806942,
0.007109875790774822,
0.042873818427324295,
-0.013322482816874981,
-0.04513649642467499,
-0.023055892437696457,
0.04271777346730232,
-0.041937537491321564,
-0.02414822019636631,
0.005125157535076141,
-0.021183334290981293,
0.004045021720230579,
-0.01452209148555994,
0.05446028336882591,
0.0055640386417508125,
0.0194668211042881,
0.1079842820763588,
0.025884239003062248,
-0.011518193408846855,
-0.004732602275907993,
0.027678774669766426,
0.010455125942826271,
-0.022782811895012856,
0.01579972356557846,
0.04318591207265854,
-0.0062516191974282265,
-0.04700905457139015,
-0.006134584080427885,
-0.016950568184256554,
0.025221040472388268,
-0.020793216302990913,
-0.0009655386675149202,
0.02736668288707733,
0.006393036339432001,
0.016570204868912697,
0.05570865422487259,
0.052509699016809464,
0.012591014616191387,
-0.00810954999178648,
0.006744141224771738,
-0.00816806685179472,
0.05847848579287529,
0.041313350200653076,
0.008563060313463211,
-0.022743800655007362,
0.014190493151545525,
0.0617554634809494,
0.039694368839263916,
-0.06405714899301529,
-0.00439368886873126,
-0.006968458648771048,
-0.012035097926855087,
-0.03928474709391594,
-0.021944060921669006,
-0.04291282966732979,
-0.009904086589813232,
0.0617554634809494,
0.06136534735560417,
0.020169030874967575,
-0.05602074787020683,
-0.05742516741156578,
0.022743800655007362,
0.0778672844171524,
-0.01477566733956337,
0.03372558206319809,
0.0325552336871624,
-0.03415471315383911,
-0.002521128859370947,
0.016628721728920937,
-0.03828994929790497,
0.04111829400062561,
0.026664473116397858,
0.03134587034583092,
-0.02547461725771427,
0.0031794505193829536,
-0.0344863124191761,
-0.019622866064310074,
0.00014705568901263177,
0.02432377263903618,
0.004271777346730232,
-0.024440808221697807,
-0.04498044773936272,
0.04478539153933525,
-0.05223661661148071,
-0.025455109775066376,
-0.020559147000312805,
-0.008777623996138573,
-0.03134587034583092,
-0.04252271354198456,
0.015614418312907219,
-0.005086145829409361,
0.05091021955013275,
-0.04080620035529137,
0.012327685952186584,
0.012181391939520836,
0.03795835003256798,
-0.008324113674461842,
0.03300386667251587,
-0.002024949062615633,
-0.07583867758512497,
0.013537047430872917,
-0.06702204048633575,
0.039421286433935165,
0.006480812560766935,
-0.04970085993409157,
0.04466835409402847,
0.00660760048776865,
0.059063658118247986,
-0.015019490383565426,
-0.05586470291018486,
0.020949263125658035,
-0.00405477499589324,
0.011284124106168747,
0.008489913307130337,
0.06667093187570572,
0.05219760537147522,
0.00315019185654819,
-0.00787060335278511,
0.009591992944478989,
-0.06542255729436874,
0.019115716218948364,
0.04158643260598183,
-0.03360854834318161,
0.023524032905697823,
0.03750971332192421,
-0.03932375833392143,
-0.05430423468351364,
0.009231135249137878,
-0.05886860191822052,
0.005447003524750471,
0.02547461725771427,
-0.02397266775369644,
-0.024772407487034798,
-0.041157305240631104,
0.04595573991537094,
0.01616058126091957,
0.07447326928377151,
0.02787383459508419,
-0.011810781434178352,
0.0012605644296854734,
-0.08036402612924576,
0.010474631562829018,
0.016024040058255196,
-0.01870609261095524,
0.029902439564466476,
0.03895314782857895,
0.03924573212862015,
0.008036402985453606,
-0.006241866387426853,
-0.05929772928357124,
-0.0005114185041747987,
0.013605318032205105,
-0.045331552624702454,
-0.015487630851566792,
0.013429765589535236,
0.06487639993429184,
0.011918063275516033,
-0.04100126028060913,
0.036690469831228256,
-0.025786709040403366,
0.019262008368968964,
-0.016355639323592186,
0.02726915292441845,
0.059570811688899994,
-0.031579941511154175,
0.0461898110806942,
-0.022022083401679993,
-0.007660915609449148,
0.000990530475974083,
-0.043927133083343506,
0.12358894944190979,
-0.021163826808333397,
-0.01769178919494152,
0.034583840519189835,
-0.014336786232888699,
-0.034915439784526825,
0.01796487160027027,
0.03276979923248291,
-0.10260067880153656,
0.0017530866898596287,
-0.0005973661318421364,
-0.0008923918358050287,
0.019418055191636086,
-0.005861502606421709,
0.023894643411040306,
0.048725567758083344,
-0.04388812184333801,
0.007036728784441948,
-0.013956422917544842,
-0.021553944796323776,
0.05028603598475456,
0.0406111404299736,
-0.019993478432297707,
0.028888138011097908,
0.004793558269739151,
-0.016687238588929176,
-0.032243140041828156,
0.03415471315383911,
0.011050053872168064,
0.05594272539019585,
-0.002855166094377637,
-0.015156031586229801,
0.03495445102453232,
-0.049934931099414825,
0.07439523935317993,
0.004756984766572714,
0.004364429973065853,
0.014073457568883896,
0.06768523901700974,
-0.02264627069234848,
0.02621583826839924,
-0.02877110242843628,
0.0032404062803834677,
-0.007300057448446751,
-0.02403118461370468,
-0.046111784875392914,
0.051378361880779266,
0.035910237580537796,
-0.046657949686050415,
0.0325552336871624,
0.03273078426718712,
-0.0037816930562257767,
0.024011678993701935,
0.028302961960434914,
0.03434976935386658,
0.04751620814204216,
-0.030195027589797974,
0.013985681347548962,
0.06039005517959595,
-0.022353682667016983,
0.014580609276890755,
-0.0489596389234066,
0.07560460269451141,
-0.020130017772316933,
0.05028603598475456,
-0.0019030377734452486,
0.026449907571077347,
0.014502585865557194,
0.004240080248564482,
-0.03429125249385834,
0.009631004184484482,
0.05609877407550812,
-0.026020780205726624,
-0.03115081414580345,
0.00044589111348614097,
-0.03916770964860916,
0.07033803313970566,
0.0107087017968297,
0.02631336636841297,
-0.015633923932909966,
-0.006222360301762819,
0.04018201306462288,
-0.02693755365908146,
-0.015497383661568165,
-0.021397897973656654,
-0.0036500287242233753,
-0.04747719317674637,
-0.0006473498069681227,
0.004471711814403534,
0.011557205580174923,
0.025338076055049896,
-0.02291935309767723,
-0.015214549377560616,
0.0132152009755373,
0.02676200121641159,
0.05543557554483414,
0.011167088523507118,
0.05602074787020683,
0.02898566611111164,
0.03042909875512123,
-0.04946678876876831,
0.11141730844974518,
0.0034915439318865538,
0.017623519524931908,
-0.01249348558485508,
-0.04384911060333252,
0.036144305020570755,
-0.01607280597090721,
-0.03115081414580345,
-0.036027271300554276,
0.03550061583518982,
0.0022102545481175184,
-0.0023419188801199198,
0.07646286487579346,
0.001432459568604827,
0.005344598088413477,
0.022685281932353973,
0.01756500080227852,
-0.0065880948677659035,
0.00374268158338964,
0.007587768603116274,
0.07057210057973862,
-0.020832229405641556,
-0.006368654314428568,
0.05293882638216019,
-0.03216511756181717,
0.06464232504367828,
0.017613766714930534,
-0.01853054016828537,
-0.030799709260463715,
0.0010801354655995965,
-0.018189188092947006,
-0.05808836594223976,
0.018598809838294983,
-0.01099153608083725,
0.07267872989177704,
0.006193101871758699,
0.027464210987091064,
-0.016443416476249695,
-0.020676182582974434,
0.06472034752368927,
-0.010416114702820778,
-0.06136534735560417,
0.017340684309601784,
0.09042903780937195,
-0.021631967276334763,
0.017682036384940147,
-0.014882950112223625,
-0.05036405846476555,
-0.001510482863523066,
0.050442080944776535,
-0.012727554887533188,
-0.010796478018164635,
-0.0021115064155310392,
0.04537056386470795,
-0.049271732568740845,
-0.05348499119281769,
0.008528925478458405,
-0.004193753935396671,
0.08582565933465958,
0.010396608151495457,
0.006895311642438173,
0.0606631375849247,
0.026586448773741722,
-0.09198950231075287,
-0.039089687168598175,
0.029531829059123993,
0.033589042723178864,
-0.02670348435640335,
-0.032126106321811676,
0.02486993558704853,
-0.022685281932353973,
0.03924573212862015,
-0.024304267019033432,
0.008958053775131702,
0.017223648726940155,
-0.019905701279640198,
0.013088413514196873,
0.026586448773741722,
0.03370607644319534,
-0.023016881197690964,
0.0175357423722744,
-0.02693755365908146,
0.00631501292809844,
-0.011206100694835186,
0.016063053160905838,
0.04072817787528038,
0.012210650369524956,
0.015575407072901726,
-0.00845577847212553,
-0.01711636781692505,
0.012317933142185211,
-0.001742114662192762,
-0.000997235649265349,
0.04361503943800926,
0.05976586788892746,
0.03317942097783089,
-0.050715163350105286,
0.03161895275115967,
0.021729497238993645,
0.0005787746049463749,
-0.015117019414901733,
0.060468077659606934,
0.02342650480568409,
0.0039036045782268047,
0.014170986600220203,
-0.010455125942826271,
0.03990893065929413,
-0.00973341055214405,
-0.04825742915272713,
0.04447329789400101,
-0.028146915137767792,
-0.13607268035411835,
-0.05407016724348068,
0.01296162512153387,
0.013663834892213345,
0.024460313841700554,
-0.01310791913419962,
-0.020266558974981308,
0.026137813925743103,
0.015292571857571602,
-0.007007470354437828,
-0.08098821341991425,
-0.031735990196466446,
-0.06924570351839066,
0.03926524147391319,
-0.00752437487244606,
0.0258647333830595,
0.040923234075307846,
-0.017135873436927795,
-0.01744796708226204,
0.04845248535275459,
-0.017916107550263405,
0.02904418297111988,
-0.015243807807564735,
0.04271777346730232,
-0.012903108261525631,
-0.045877717435359955,
-0.030975261703133583,
-0.015789970755577087,
-0.042483702301979065,
-0.029902439564466476,
-0.025182029232382774,
0.00532996840775013,
0.0022102545481175184,
-0.020286064594984055,
0.006666118279099464,
-0.02481141872704029,
-0.0333939827978611,
0.020676182582974434,
-0.007114752195775509,
0.042873818427324295,
0.021495426073670387,
-0.03273078426718712,
0.027522729709744453,
0.003935301676392555,
-0.006500318646430969,
0.013410259038209915,
0.04501945897936821,
-0.02252923510968685,
-0.0011752264108508825,
0.03961634635925293,
-0.05262673273682594,
-0.00048337888438254595,
-0.03304287791252136,
0.004461959004402161,
0.014512338675558567,
-0.02543560415506363,
0.010162538848817348,
0.0011679116869345307,
-0.04712608829140663,
-0.001497072633355856,
0.023524032905697823,
0.029980463907122612,
-0.047828298062086105,
0.004783805459737778,
-0.00017098081298172474,
-0.006944076158106327,
0.00532996840775013,
-0.04755521938204765,
-0.04747719317674637,
-0.008806883357465267,
-0.02910270169377327,
-0.025299064815044403,
0.006354024633765221,
0.011498687788844109,
-0.022568248212337494,
-0.06967483460903168,
-0.06339395046234131,
-0.08379705250263214,
-0.030468109995126724,
0.051768478006124496,
0.08769822120666504,
-0.028673572465777397,
0.07256169617176056,
-0.03372558206319809,
-0.04513649642467499,
0.008324113674461842,
-0.035247039049863815,
0.02243170700967312,
0.02598176896572113,
-0.051612433046102524,
0.02937578223645687,
0.025182029232382774,
0.033803608268499374,
0.043810099363327026,
-0.025806216523051262,
-0.013897905126214027,
0.07299081981182098,
-0.06042906641960144,
0.023133916780352592,
0.026020780205726624,
0.02174900285899639,
0.007846221327781677,
-0.04556562379002571,
-0.044707365334033966,
-0.023504527285695076,
-0.022958364337682724,
0.03522753342986107,
-0.018598809838294983,
0.008041279390454292,
-0.03210660070180893,
0.08644984662532806,
0.0078072091564536095,
-0.04197654873132706,
0.039538320153951645,
0.0024345717392861843,
-0.01675551012158394,
0.061287324875593185,
0.010611172765493393,
0.002933189505711198,
-0.013819881714880466,
0.020617663860321045,
-0.016063053160905838,
0.0107087017968297,
-0.022802317515015602,
0.021436909213662148,
0.019632620736956596,
-0.04345899447798729,
0.018735351040959358,
0.005685950163751841,
-0.05473336577415466,
0.006700253114104271,
0.02676200121641159,
-0.10384904593229294,
-0.09542252868413925,
-0.04556562379002571,
-0.0034549704287201166,
0.006193101871758699,
-0.04513649642467499,
0.007046481594443321,
0.0461898110806942,
0.00693919975310564,
-0.044434286653995514,
-0.0411963164806366,
0.039421286433935165,
-0.03249671682715416,
0.022470718249678612,
-0.010338091291487217,
-0.00013722656876780093,
-0.021339379251003265,
-0.008572813123464584,
0.07022099196910858,
-0.056059762835502625,
0.025884239003062248,
0.004188877530395985,
0.009016570635139942,
0.02648892067372799,
-0.06503244489431381,
-0.05192452296614647,
-0.06534453481435776,
-0.05465533956885338,
-0.06097523123025894,
-0.024889441207051277,
0.03684651479125023,
-0.007022099569439888,
-0.026527931913733482,
0.0019578977953642607,
0.02098827436566353,
0.07283477485179901,
-0.11594266444444656,
-0.01975940726697445,
0.012064357288181782,
-0.029531829059123993,
-0.013927163556218147,
-0.01106955949217081,
0.016560452058911324,
-0.03567616641521454,
-0.012990884482860565,
-0.04166445881128311,
0.018335482105612755,
-0.020793216302990913,
-0.03351102024316788,
0.03165796399116516,
0.009094594046473503,
0.03427174687385559,
0.0294928178191185,
0.00782183837145567,
-0.011918063275516033,
-0.0019274200312793255,
0.0020871239248663187,
-0.06834843754768372,
0.03156043589115143,
-0.00172870431561023,
0.032126106321811676,
0.04700905457139015,
-0.04322492331266403,
0.019817925989627838,
0.026469413191080093,
-0.020773710682988167,
0.0011215853737667203,
0.03048761561512947,
-0.014912208542227745,
-0.06253569573163986,
0.032847821712493896,
-0.06530552357435226,
-0.06226261705160141,
0.00410110130906105,
0.03161895275115967,
0.01880362257361412,
0.06940174847841263,
-0.009006817825138569,
-0.015546147711575031,
-0.01942780800163746,
0.03928474709391594,
-0.017165131866931915,
-0.018901150673627853,
0.0058371201157569885,
0.07314687222242355,
-0.005100775044411421,
-0.014765914529561996,
-0.010065008886158466,
-0.016804274171590805,
-0.09339392185211182,
0.009294528514146805,
-0.09721706807613373,
0.09386206418275833,
-0.04107928276062012,
0.04490242525935173,
0.019661879166960716,
-0.012503238394856453,
0.023289963603019714
] |
725,067 | tf_keras.src.engine.sequential | _assert_weights_created | null | def _assert_weights_created(self):
if self._graph_initialized:
return
# When the graph has not been initialized, use the Model's
# implementation to to check if the weights has been created.
super(functional.Functional, self)._assert_weights_created()
| (self) | [
0.029665185138583183,
-0.00480002723634243,
0.003576698713004589,
0.020387394353747368,
0.009345635771751404,
0.0032607957255095243,
-0.04559177905321121,
0.023033345118165016,
0.05349570885300636,
0.06709861010313034,
0.01850469782948494,
0.025798026472330093,
0.07395094633102417,
-0.027646798640489578,
-0.04080871120095253,
0.026103327050805092,
0.005745615344494581,
0.04443841427564621,
0.007484141271561384,
-0.012949896976351738,
-0.0684894323348999,
-0.05685403198003769,
-0.0036721054930239916,
0.06136571615934372,
0.012686997652053833,
-0.018979612737894058,
-0.06160317361354828,
0.006682723294943571,
0.08467044681310654,
0.06407951563596725,
-0.0814138874411583,
-0.032633401453495026,
0.06051765754818916,
0.03840021789073944,
0.07008378952741623,
0.027561992406845093,
0.018589504063129425,
-0.0075392653234303,
-0.05966959521174431,
-0.038027070462703705,
0.07110146433115005,
-0.023898368701338768,
0.015375351533293724,
0.0339563749730587,
-0.004310271702706814,
0.00037367703043855727,
0.009735744446516037,
0.04345466196537018,
-0.04379388689994812,
-0.04769496992230415,
0.01716476120054722,
0.04613453522324562,
0.07625767588615417,
0.09410088509321213,
-0.02388140745460987,
-0.01628277823328972,
0.003924403805285692,
-0.022049594670534134,
0.017181722447276115,
-0.039723191410303116,
0.016588078811764717,
0.014179585501551628,
0.018776077777147293,
-0.05515790730714798,
-0.006496149580925703,
-0.011058719828724861,
-0.045286476612091064,
0.02132026106119156,
0.04637199267745018,
0.05933037027716637,
0.0321924090385437,
0.024610739201307297,
0.00742053659632802,
0.04403134435415268,
-0.03353234380483627,
0.00831524096429348,
0.03768784552812576,
-0.038909055292606354,
0.013857321813702583,
-0.05064622312784195,
0.0037293497007340193,
0.006568234879523516,
-0.03343057632446289,
-0.015528002753853798,
0.02834220975637436,
-0.023694833740592003,
-0.04766104742884636,
0.0023258081637322903,
0.02822348102927208,
-0.02488211914896965,
-0.06418128311634064,
0.05868584290146828,
0.029359882697463036,
0.010558363981544971,
0.05953390523791313,
-0.0027074357494711876,
-0.02266019955277443,
-0.06926964968442917,
0.04338681697845459,
0.003284117439761758,
-0.028359171003103256,
-0.013009260408580303,
-0.02254147082567215,
0.06329929828643799,
0.007662234362214804,
-0.05603989213705063,
0.004178822040557861,
-0.0884019136428833,
-0.021913904696702957,
-0.021235454827547073,
-0.05179958790540695,
0.006415584124624729,
0.04796634986996651,
0.021591641008853912,
0.009142100811004639,
-0.03373587876558304,
0.009447403252124786,
0.003998609259724617,
0.03677193820476532,
0.011576036922633648,
0.010787339881062508,
0.03125954046845436,
-0.00742053659632802,
-0.03575426712632179,
0.04942501336336136,
0.015273584984242916,
0.038434140384197235,
-0.010439635254442692,
0.0631975308060646,
-0.007339970674365759,
0.03466874733567238,
-0.013094066642224789,
-0.057057566940784454,
0.03914651274681091,
-0.054649073630571365,
0.015409274026751518,
0.00005969556877971627,
0.012008548714220524,
0.005533600226044655,
0.03178533911705017,
0.038603752851486206,
0.0022982461377978325,
0.01088910736143589,
0.03185318410396576,
-0.012737881392240524,
0.04308151453733444,
-0.05495437607169151,
0.006123002618551254,
0.014578173868358135,
-0.028613589704036713,
0.04108009114861488,
-0.030479324981570244,
-0.04532039910554886,
-0.024899080395698547,
-0.06363852322101593,
-0.029648223891854286,
-0.009523728862404823,
-0.01674073003232479,
0.05726110190153122,
-0.01586722768843174,
-0.043183282017707825,
0.039553578943014145,
0.011533633805811405,
-0.0272227693349123,
-0.040028493851423264,
0.052545879036188126,
-0.007526544388383627,
0.0004796846769750118,
-0.026255978271365166,
0.010498999617993832,
-0.009489806368947029,
-0.061908476054668427,
-0.00010633894271450117,
0.0029639743734151125,
0.010032565332949162,
0.019810711964964867,
0.0310390442609787,
-0.0166898462921381,
-0.009235387668013573,
0.02230401337146759,
0.05732894688844681,
-0.08670578896999359,
-0.05715933442115784,
0.002773160580545664,
0.005923708435148001,
0.027358459308743477,
-0.035923879593610764,
-0.0015731537714600563,
0.004248787183314562,
0.007369652856141329,
0.018352046608924866,
0.015672173351049423,
0.023983174934983253,
0.018301162868738174,
0.019861595705151558,
0.003019098425284028,
0.03989280387759209,
0.0022431223187595606,
-0.07300111651420593,
0.007043149322271347,
0.03378676250576973,
-0.0801926776766777,
0.03402421995997429,
-0.016181010752916336,
0.012254485860466957,
0.00702618807554245,
-0.02669697068631649,
-0.006729366723448038,
-0.024814274162054062,
-0.029783913865685463,
-0.053597476333379745,
-0.04152108356356621,
0.0036339429207146168,
0.0310390442609787,
0.006924420595169067,
-0.051969196647405624,
0.00006244514224817976,
0.014323756098747253,
-0.0070813121274113655,
-0.020234743133187294,
-0.006063638720661402,
0.005304623860865831,
-0.024729467928409576,
-0.05631127208471298,
0.0011554835364222527,
-0.005079887341707945,
-0.0005697911838069558,
-0.0046049728989601135,
-0.032514672726392746,
-0.00398164801299572,
0.01791105605661869,
0.01355202030390501,
-0.006165405735373497,
-0.02705315686762333,
-0.028952814638614655,
-0.021913904696702957,
0.014688421972095966,
-0.000889404327608645,
0.019878556951880455,
-0.02323688007891178,
-0.00778520293533802,
-0.03073374181985855,
-0.015061569400131702,
-0.039723191410303116,
0.02635774575173855,
0.0020014247857034206,
0.015587367117404938,
-0.017003629356622696,
-0.018776077777147293,
-0.011643881909549236,
-0.041181858628988266,
-0.009142100811004639,
-0.007742799818515778,
-0.04114793613553047,
0.007848807610571384,
-0.05933037027716637,
-0.003971047233790159,
-0.028884969651699066,
0.02564537525177002,
0.001868915162049234,
-0.02196478843688965,
0.05905899032950401,
-0.032294176518917084,
0.10963737219572067,
-0.005050205159932375,
-0.020099053159356117,
-0.013950608670711517,
0.041487161070108414,
-0.03507581725716591,
0.011465788818895817,
0.06838766485452652,
0.01308558601886034,
0.012899013236165047,
-0.03271820768713951,
0.0035682180896401405,
-0.07449370622634888,
-0.006614878308027983,
-0.0024763389956206083,
-0.03144611418247223,
0.057396791875362396,
0.007806404493749142,
-0.02366091124713421,
-0.014798670075833797,
0.021235454827547073,
-0.05966959521174431,
0.03312527388334274,
-0.012254485860466957,
-0.042301300913095474,
-0.0011417025234550238,
-0.06099257245659828,
0.009116658940911293,
0.008332202211022377,
0.05651480704545975,
0.0014523050049319863,
-0.01568913459777832,
-0.06353675574064255,
0.03200583532452583,
0.003530055284500122,
0.03707724064588547,
0.04433664679527283,
0.02440720424056053,
-0.0032374742440879345,
0.002520862268283963,
-0.0014120221603661776,
0.003165388945490122,
-0.02511957660317421,
0.042708367109298706,
0.0243054386228323,
-0.025967637076973915,
0.007314528804272413,
-0.06465619802474976,
0.027595914900302887,
0.031937990337610245,
0.04969639331102371,
0.11553987860679626,
-0.05200311914086342,
-0.006949862465262413,
-0.028359171003103256,
-0.010855184867978096,
0.08792699873447418,
-0.016494793817400932,
0.04769496992230415,
-0.02364395000040531,
0.0072678858414292336,
-0.10577020794153214,
-0.03360018879175186,
0.07361172139644623,
-0.008268597535789013,
-0.013094066642224789,
-0.01185589749366045,
-0.03171749413013458,
-0.039383966475725174,
0.044811561703681946,
0.009277790784835815,
-0.036025647073984146,
0.06757352501153946,
0.04589707776904106,
-0.004694019444286823,
0.03461786359548569,
-0.006678482983261347,
0.001762907486408949,
-0.02564537525177002,
-0.014213507995009422,
0.029716068878769875,
0.012695478275418282,
-0.014493368566036224,
-0.009498286992311478,
-0.017071474343538284,
0.01809762790799141,
-0.02043827809393406,
-0.08616302907466888,
0.06153532862663269,
-0.0009917017305269837,
0.05234234407544136,
0.026663048192858696,
-0.001176685094833374,
-0.008578140288591385,
0.015672173351049423,
0.0029342921916395426,
0.03207368031144142,
-0.03840021789073944,
0.06669154018163681,
-0.006309576332569122,
0.004571050405502319,
0.051087215542793274,
-0.02120153419673443,
0.07211913913488388,
0.02593371644616127,
-0.03951965644955635,
-0.06428305059671402,
-0.00660215737298131,
-0.06547033786773682,
-0.03490620478987694,
0.017724482342600822,
0.024203671142458916,
0.005944909993559122,
0.0013431170955300331,
0.008879202418029308,
0.056243427097797394,
0.0398249588906765,
-0.01715628057718277,
0.035618577152490616,
-0.02359306626021862,
-0.013467214070260525,
0.0003630762512329966,
-0.02154075726866722,
0.006050917785614729,
0.010482038371264935,
-0.0231351125985384,
-0.021150650456547737,
0.02863055095076561,
-0.040435563772916794,
-0.0216594859957695,
0.03265036270022392,
0.012008548714220524,
0.041487161070108414,
0.035686422139406204,
0.015765460208058357,
0.016257336363196373,
0.011194409802556038,
-0.03558465465903282,
-0.06011058762669563,
-0.08582380414009094,
0.06750568002462387,
-0.0362970232963562,
0.003784473752602935,
-0.05580243468284607,
0.09036941826343536,
0.02359306626021862,
-0.01585874706506729,
0.0009164362563751638,
-0.014484887942671776,
-0.034872282296419144,
-0.016842497512698174,
-0.003621221985667944,
-0.014527291059494019,
0.04240306839346886,
-0.006716645788401365,
0.05169782042503357,
0.027646798640489578,
0.05566674470901489,
0.0421316884458065,
0.11988195031881332,
0.04379388689994812,
0.056345194578170776,
-0.018063707277178764,
-0.03928220272064209,
0.04006241634488106,
0.04209776595234871,
0.023169035091996193,
-0.012254485860466957,
-0.019047457724809647,
0.02739238180220127,
-0.0074120559729635715,
-0.006441025994718075,
0.014086298644542694,
0.011983106844127178,
-0.005118050146847963,
-0.019335798919200897,
0.05397062376141548,
0.04209776595234871,
0.004961158614605665,
0.021913904696702957,
-0.011762610636651516,
-0.06913395971059799,
0.005576003342866898,
0.027952101081609726,
0.001371739199385047,
-0.021523796021938324,
0.01891176775097847,
0.0073484512977302074,
-0.013009260408580303,
0.019742866978049278,
-0.012949896976351738,
-0.07761457562446594,
0.03314223513007164,
-0.005474235862493515,
-0.04247090965509415,
-0.017995862290263176,
-0.0005973532097414136,
-0.0029978968668729067,
0.0532921738922596,
-0.09152277559041977,
-0.027409343048930168,
-0.0155110415071249,
-0.0006058338331058621,
0.009701821953058243,
-0.012848129495978355,
0.017826249822974205,
0.02769768238067627,
0.09138708561658859,
0.028291326016187668,
0.020455239340662956,
-0.0848739817738533,
0.01044811587780714,
-0.02593371644616127,
-0.027426304295659065,
0.023847484961152077,
0.04016418382525444,
-0.0021000117994844913,
0.015909630805253983,
0.051087215542793274,
0.0016812816029414535,
0.003532175440341234,
-0.015383832156658173,
-0.03037755750119686,
-0.07707181572914124,
-0.032921742647886276,
0.037620000541210175,
0.020794464275240898,
-0.040605176240205765,
-0.04284405708312988,
0.06625054776668549,
0.02400013618171215,
-0.02600155957043171,
-0.025509685277938843,
0.01809762790799141,
0.03293870389461517,
0.05081583559513092,
-0.008501814678311348,
0.0059364293701946735,
0.020930154249072075,
-0.023202957585453987,
0.033176157623529434,
-0.04172461852431297,
-0.030835509300231934,
-0.010532922111451626,
-0.024916041642427444,
0.006742087658494711,
-0.030004410073161125,
0.02856270596385002,
0.009625496342778206,
-0.029088502749800682,
0.0398249588906765,
0.0266460869461298,
-0.044234879314899445,
-0.019742866978049278,
-0.0074883815832436085,
-0.010371790267527103,
0.0034728110767900944,
0.04236914590001106,
0.05112113803625107,
0.03302350640296936,
-0.036330945789813995,
-0.02440720424056053,
-0.04094440117478371,
-0.04586315527558327,
-0.035041894763708115,
0.06981240957975388,
0.03612741455435753,
0.03724685311317444,
-0.020692696794867516,
0.014357678592205048,
0.037484310567379,
-0.018369007855653763,
0.002834645099937916,
0.04409918934106827,
-0.010558363981544971,
-0.09620407968759537,
-0.038909055292606354,
0.009735744446516037,
-0.022863732650876045,
-0.004299670923501253,
-0.02974999137222767,
0.038909055292606354,
0.016774652525782585,
0.017062993720173836,
-0.0018000102136284113,
-0.0661827027797699,
-0.028715357184410095,
-0.036398790776729584,
-0.004066454246640205,
-0.0037675125058740377,
-0.013289120979607105,
0.08704501390457153,
-0.034397367388010025,
0.014679941348731518,
0.017860172316432,
0.023932291194796562,
0.065606027841568,
-0.021506834775209427,
-0.03049628622829914,
0.02125241607427597,
0.03125954046845436,
-0.006877777632325888,
-0.009099697694182396,
-0.017241086810827255,
-0.004876352846622467,
-0.014332236722111702,
0.020760541781783104,
0.008684148080646992,
-0.026544319465756416,
0.03354930505156517,
-0.016308220103383064,
0.0049187554977834225,
-0.06224770098924637,
-0.058991145342588425,
0.0017671477980911732,
0.003926523961126804,
-0.07191560417413712,
0.023338647559285164,
0.004804267548024654,
0.006716645788401365,
-0.02727365307509899,
0.031581804156303406,
-0.06163709610700607,
-0.0272227693349123,
0.025323111563920975,
-0.051087215542793274,
0.042063843458890915,
-0.055598899722099304,
0.02600155957043171,
-0.022643238306045532,
-0.04348858445882797,
0.02014993689954281,
-0.02891889214515686,
0.02201567217707634,
-0.034278638660907745,
-0.033294886350631714,
0.02247362583875656,
-0.022931577637791634,
0.04345466196537018,
0.021337222307920456,
0.01757183112204075,
-0.0038077954668551683,
-0.024576816707849503,
-0.05346178635954857,
0.02535703405737877,
0.006245971657335758,
-0.005431832745671272,
-0.035279352217912674,
-0.0029915363993495703,
0.008336442522704601,
-0.032463788986206055,
0.030055293813347816,
-0.0503409206867218,
-0.0884019136428833,
0.0023173275403678417,
0.07272973656654358,
0.07076223939657211,
0.025272227823734283,
-0.05169782042503357,
0.00007261525024659932,
0.015426235273480415,
-0.02201567217707634,
0.023270802572369576,
0.053834933787584305,
-0.06258692592382431,
-0.007106753997504711,
-0.025323111563920975,
0.027545031160116196,
-0.035448964685201645,
0.008828318677842617,
-0.049323245882987976,
0.03248075023293495,
-0.005809220019727945,
-0.007000746205449104,
0.004214864689856768,
0.049153633415699005,
-0.012203602120280266,
-0.058584075421094894,
0.0019208588637411594,
0.029716068878769875,
-0.011228332296013832,
0.01674921065568924,
-0.0038523185066878796,
-0.026900505647063255,
-0.05179958790540695,
0.02834220975637436,
-0.022965500131249428,
-0.0480002723634243,
-0.02751111052930355,
-0.016147088259458542,
-0.044641949236392975,
0.03494012728333473,
0.008972489275038242,
-0.033515382558107376,
-0.039078667759895325,
-0.012347772717475891,
-0.03945181146264076,
-0.01616404950618744,
0.012254485860466957,
0.018402930349111557,
0.01996336318552494,
0.07510431110858917,
0.045998845249414444,
-0.023152073845267296,
-0.007043149322271347,
-0.0631975308060646,
-0.054716918617486954,
-0.04718613252043724,
0.029580378904938698,
0.054072391241788864,
-0.0006047737551853061,
-0.06231554597616196,
0.05990705266594887,
-0.04226737841963768,
0.039316121488809586,
-0.017487024888396263,
-0.001297533861361444,
0.03290478140115738,
0.008213474415242672,
-0.04613453522324562,
-0.0008470012689940631,
0.05909291282296181,
0.00854421779513359,
-0.1240883320569992,
0.0045583294704556465,
0.06340106576681137,
0.017122358083724976,
-0.03935004398226738,
-0.04308151453733444,
0.05905899032950401,
0.037857457995414734,
-0.02827436476945877,
-0.07944638282060623,
-0.06533464789390564,
0.024966925382614136,
0.015332948416471481,
-0.013034702278673649,
0.029665185138583183,
0.017342854291200638,
-0.023050306364893913,
-0.01972590573132038,
0.02043827809393406,
-0.012932935729622841,
-0.08012483268976212,
0.01709691621363163,
-0.01117744855582714,
-0.0012445299653336406,
-0.03283693641424179,
-0.012305369600653648,
0.009939278475940228,
-0.06648800522089005,
-0.025153499096632004,
0.024034058675169945,
-0.011253774166107178,
0.01809762790799141,
-0.04175854101777077,
-0.046236302703619,
-0.0029830557759851217,
-0.007959055714309216,
-0.03500797227025032,
-0.022202245891094208,
-0.0068947384133934975,
-0.0006000034045428038,
-0.01579938270151615,
-0.06750568002462387,
0.022337935864925385,
-0.006385901942849159,
0.023559143766760826,
-0.02376267872750759,
-0.04878048598766327,
0.07754673063755035,
0.040842633694410324,
0.0398249588906765,
-0.018945690244436264,
0.03565249964594841,
0.000572441378608346,
0.0166898462921381,
0.03441432863473892,
0.0040834154933691025,
0.00005817170676891692,
0.01106720045208931,
0.043759964406490326,
0.015672173351049423,
0.01373011339455843,
-0.007691916078329086,
0.011821975000202656,
-0.015680653974413872,
0.05861799791455269,
0.0158078633248806,
0.05580243468284607,
-0.0038947216235101223,
0.051426440477371216,
0.008323721587657928,
0.027205808088183403,
-0.018233317881822586,
-0.030224906280636787,
-0.074968621134758,
0.010354829020798206,
-0.008510295301675797,
0.025153499096632004,
0.029546456411480904,
0.006394382566213608,
0.06363852322101593,
0.05871976539492607,
0.04494725167751312
] |
725,069 | tf_keras.src.engine.sequential | _build_graph_network_for_inferred_shape | @tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def add(self, layer):
"""Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
"""
# If we are passed a TF-Keras tensor created by keras.Input(), we can
# extract the input layer from its keras history and use that without
# any loss of
# generality.
if hasattr(layer, "_keras_history"):
origin_layer = layer._keras_history[0]
if isinstance(origin_layer, input_layer.InputLayer):
layer = origin_layer
if isinstance(layer, tf.Module):
if not isinstance(layer, base_layer.Layer):
layer = functional.ModuleWrapper(layer)
else:
raise TypeError(
"The added layer must be an instance of class Layer. "
f"Received: layer={layer} of type {type(layer)}."
)
tf_utils.assert_no_legacy_layers([layer])
if not self._is_layer_name_unique(layer):
raise ValueError(
"All layers added to a Sequential model "
f'should have unique names. Name "{layer.name}" is already '
"the name of a layer in this model. Update the `name` argument "
"to pass a unique name."
)
self.built = False
set_inputs = False
self._maybe_create_attribute("_self_tracked_trackables", [])
if not self._self_tracked_trackables:
if isinstance(layer, input_layer.InputLayer):
# Case where the user passes an Input or InputLayer layer via
# `add`.
set_inputs = True
else:
batch_shape, dtype = training_utils.get_input_shape_and_dtype(
layer
)
if batch_shape:
# Instantiate an input layer.
x = input_layer.Input(
batch_shape=batch_shape,
dtype=dtype,
name=layer.name + "_input",
)
# This will build the current layer
# and create the node connecting the current layer
# to the input layer we just created.
layer(x)
set_inputs = True
if set_inputs:
outputs = tf.nest.flatten(layer._inbound_nodes[-1].outputs)
if len(outputs) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = outputs
self.inputs = layer_utils.get_source_inputs(self.outputs[0])
self.built = True
self._has_explicit_input_shape = True
elif self.outputs:
# If the model is being built continuously on top of an input layer:
# refresh its output.
output_tensor = layer(self.outputs[0])
if len(tf.nest.flatten(output_tensor)) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = [output_tensor]
self.built = True
if set_inputs or self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
self._graph_initialized = True
else:
self._self_tracked_trackables.append(layer)
self._handle_deferred_layer_dependencies([layer])
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
| (self, input_shape, input_dtype=None) | [
-0.034134022891521454,
-0.027482764795422554,
-0.05422433465719223,
0.07228610664606094,
-0.01937837153673172,
0.029218723997473717,
-0.09417089074850082,
0.04927002266049385,
0.027424249798059464,
-0.03434858098626137,
0.0005104864831082523,
-0.014833671040832996,
-0.009065020829439163,
-0.015301794745028019,
0.03421204164624214,
0.0653032585978508,
0.018334846943616867,
-0.0005772307049483061,
-0.01946614496409893,
-0.06982845813035965,
0.036182064563035965,
-0.01943688839673996,
0.001943201175890863,
0.025239670649170876,
0.011342247948050499,
0.0329442098736763,
0.00045319009223021567,
0.020421897992491722,
-0.024459464475512505,
-0.01151779480278492,
-0.030447548255324364,
-0.060544002801179886,
-0.02473253756761551,
-0.014667876996099949,
0.01853965036571026,
-0.0023369614500552416,
-0.02490808442234993,
0.05203975364565849,
-0.04907497018575668,
-0.031832415610551834,
0.039927054196596146,
-0.007007227279245853,
0.00921618565917015,
0.0031330157071352005,
-0.0032256650738418102,
0.014102227985858917,
-0.018061773851513863,
0.04224816709756851,
-0.028984662145376205,
-0.04131191968917847,
0.019592929631471634,
-0.012883155606687069,
0.038308124989271164,
0.011898145079612732,
-0.01735958829522133,
-0.05871051922440529,
0.0256882905960083,
-0.06959439814090729,
0.010259712114930153,
-0.010552288964390755,
0.007148639764636755,
0.01940762996673584,
-0.009260072372853756,
0.014072969555854797,
-0.02611740306019783,
-0.023562228307127953,
-0.05465344712138176,
-0.04166301339864731,
0.030369527637958527,
0.02648800238966942,
-0.028867630288004875,
-0.04829476401209831,
0.04131191968917847,
-0.004783639218658209,
-0.031149733811616898,
-0.007470474578440189,
0.06635653972625732,
-0.04166301339864731,
0.043496496975421906,
-0.055589694529771805,
-0.04326243698596954,
0.015301794745028019,
-0.019339362159371376,
0.027775341644883156,
0.022528454661369324,
-0.009001629427075386,
-0.0012135864235460758,
0.03657216578722,
-0.031949445605278015,
-0.03674771264195442,
-0.020655959844589233,
0.035948000848293304,
-0.0017737500602379441,
0.02332816645503044,
0.029004165902733803,
-0.019027279689908028,
-0.018783465027809143,
-0.04763159155845642,
-0.032983217388391495,
-0.016667155548930168,
0.006612247787415981,
0.020968042314052582,
-0.04302837327122688,
0.03302222862839699,
-0.0374889075756073,
-0.03292470425367355,
-0.030428042635321617,
-0.015545609407126904,
-0.0483727864921093,
0.002986727049574256,
-0.00843597948551178,
-0.03456313535571098,
-0.0026673299726098776,
0.006114866118878126,
-0.011332495138049126,
-0.021670227870345116,
0.029706351459026337,
-0.03142280504107475,
-0.020226847380399704,
-0.003357324982061982,
0.0250836294144392,
0.0598418191075325,
-0.02859455905854702,
-0.03251509368419647,
0.01124472264200449,
0.004086330067366362,
0.04279431328177452,
0.006685391999781132,
0.06323571503162384,
-0.10454763472080231,
0.006919453851878643,
-0.006480588112026453,
-0.034914229065179825,
0.08652487397193909,
0.02533719688653946,
0.018003258854150772,
-0.04365253821015358,
0.007733794394880533,
-0.05422433465719223,
0.03846416622400284,
0.04813872277736664,
-0.029784372076392174,
0.029452785849571228,
0.02623443491756916,
-0.020109815523028374,
-0.029004165902733803,
-0.04072676599025726,
-0.029764868319034576,
-0.0024539923761039972,
-0.04431571438908577,
0.014833671040832996,
-0.018968764692544937,
-0.005246886983513832,
0.051610641181468964,
-0.021494681015610695,
0.04614919796586037,
-0.046110186725854874,
0.007080371491611004,
0.04287233203649521,
-0.013312269002199173,
-0.04517393931746483,
-0.023074598982930183,
0.04267727956175804,
-0.041936084628105164,
-0.02412787824869156,
0.005100598093122244,
-0.021202104166150093,
0.004069263115525246,
-0.01454109326004982,
0.054497405886650085,
0.005563845857977867,
0.019427135586738586,
0.10790251940488815,
0.025902846828103065,
-0.011498289182782173,
-0.004698304459452629,
0.02769732102751732,
0.010445010848343372,
-0.022821031510829926,
0.015789423137903214,
0.04322342574596405,
-0.006266031414270401,
-0.047007426619529724,
-0.006134371273219585,
-0.016940228641033173,
0.025259176269173622,
-0.020812001079320908,
-0.0009752577752806246,
0.02732672356069088,
0.006422072649002075,
0.016550125554203987,
0.0556287057697773,
0.05246886983513832,
0.012590577825903893,
-0.008123897016048431,
0.0067682890221476555,
-0.008138526231050491,
0.058437447994947433,
0.04131191968917847,
0.008553010411560535,
-0.02278202213346958,
0.0142095061019063,
0.061753321439027786,
0.039634477347135544,
-0.0640939399600029,
-0.004420355893671513,
-0.006977969314903021,
-0.012015176005661488,
-0.039263878017663956,
-0.021962804719805717,
-0.0429113432765007,
-0.009933000430464745,
0.06179233267903328,
0.06140223145484924,
0.020226847380399704,
-0.056018806993961334,
-0.0574231781065464,
0.02274301089346409,
0.07786457985639572,
-0.014775155112147331,
0.03378292918205261,
0.03257361054420471,
-0.03417303413152695,
-0.0025112887378782034,
0.01667690835893154,
-0.038308124989271164,
0.0411168672144413,
0.02666354738175869,
0.03136429190635681,
-0.02545422874391079,
0.0031964073423296213,
-0.03446561098098755,
-0.019631939008831978,
0.00015482217713724822,
0.02436194010078907,
0.004293572623282671,
-0.02442045509815216,
-0.04497889056801796,
0.044822849333286285,
-0.05223480612039566,
-0.025415217503905296,
-0.020636454224586487,
-0.008826082572340965,
-0.031344786286354065,
-0.04248223081231117,
0.015565114095807076,
-0.0050957221537828445,
0.050947465002536774,
-0.04080478474497795,
0.01233701128512621,
0.012180970050394535,
0.03795703127980232,
-0.008314073085784912,
0.03300272300839424,
-0.0020443841349333525,
-0.07579703629016876,
0.013546330854296684,
-0.06698070466518402,
0.03945893049240112,
0.006461082957684994,
-0.04969913512468338,
0.04466680809855461,
0.006573237478733063,
0.058983590453863144,
-0.015028722584247589,
-0.055940788239240646,
0.020968042314052582,
-0.004049757961183786,
0.011264227330684662,
0.008484742604196072,
0.06674664467573166,
0.052273817360401154,
0.0031842165626585484,
-0.007855701260268688,
0.009586784057319164,
-0.06545930355787277,
0.019085794687271118,
0.04158499091863632,
-0.033568374812603,
0.023542722687125206,
0.03746940568089485,
-0.039322394877672195,
-0.054263342171907425,
0.009196680970489979,
-0.05882754921913147,
0.005427309777587652,
0.025532249361276627,
-0.024030352011322975,
-0.024771546944975853,
-0.04115587845444679,
0.045915137976408005,
0.01612101122736931,
0.07450969517230988,
0.02787286788225174,
-0.011810371652245522,
0.0012812449131160975,
-0.08036123961210251,
0.010484021157026291,
0.016023484990000725,
-0.01874445378780365,
0.029881898313760757,
0.03901031240820885,
0.039205361157655716,
0.008036124520003796,
-0.006192886736243963,
-0.05929567292332649,
-0.0004510567232500762,
0.01357558835297823,
-0.045251961797475815,
-0.015487093478441238,
0.013351279310882092,
0.06487414985895157,
0.011927402578294277,
-0.04099983721971512,
0.03674771264195442,
-0.025707794353365898,
0.01923208311200142,
-0.01635507307946682,
0.027229197323322296,
0.05956874415278435,
-0.031539835035800934,
0.04622722044587135,
-0.02194330096244812,
-0.007646020967513323,
0.0009648956474848092,
-0.04396462067961693,
0.12358466535806656,
-0.021182598546147346,
-0.017671670764684677,
0.03452412411570549,
-0.014336289837956429,
-0.03493373468518257,
0.018003258854150772,
0.03276866301894188,
-0.10259711742401123,
0.0017835026374086738,
-0.0005668685771524906,
-0.0008813892491161823,
0.01940762996673584,
-0.005827165208756924,
0.023893816396594048,
0.04868486896157265,
-0.04388660192489624,
0.007021856028586626,
-0.01393643394112587,
-0.021553197875618935,
0.05028429254889488,
0.04060973599553108,
-0.019992785528302193,
0.028887135908007622,
0.004812897183001041,
-0.016686661168932915,
-0.03224202245473862,
0.03411451727151871,
0.011000907979905605,
0.05586276575922966,
-0.0028477527666836977,
-0.015136000700294971,
0.03495324030518532,
-0.049855176359415054,
0.0743536502122879,
0.004812897183001041,
0.004369155038148165,
0.014131485484540462,
0.06776091456413269,
-0.022645486518740654,
0.026195423677563667,
-0.0287115890532732,
0.0032402940560132265,
-0.0073339384980499744,
-0.02401084639132023,
-0.04614919796586037,
0.0513765811920166,
0.03588948771357536,
-0.04661732167005539,
0.032554104924201965,
0.03271014615893364,
-0.0038230104837566614,
0.023991340771317482,
0.02830198034644127,
0.034368082880973816,
0.047553569078445435,
-0.030213486403226852,
0.01402420736849308,
0.060426972806453705,
-0.02237241342663765,
0.01462886668741703,
-0.04903596267104149,
0.0756019800901413,
-0.020148826763033867,
0.050206270068883896,
-0.0018493325915187597,
0.026448991149663925,
0.01457035169005394,
0.00422530435025692,
-0.034251052886247635,
0.009601413272321224,
0.05609682947397232,
-0.026039382442831993,
-0.031110722571611404,
0.0004303324967622757,
-0.03916635364294052,
0.07033558934926987,
0.010766846127808094,
0.026312455534934998,
-0.015565114095807076,
-0.00628553656861186,
0.04021963104605675,
-0.02697562985122204,
-0.015467588789761066,
-0.02139715664088726,
-0.003708417760208249,
-0.04747555032372475,
-0.0006119742756709456,
0.004452051594853401,
0.011537299491465092,
0.025356702506542206,
-0.02291855774819851,
-0.015184763818979263,
0.01324400119483471,
0.02678057923913002,
0.05539464205503464,
0.011166702024638653,
0.056018806993961334,
0.028984662145376205,
0.030447548255324364,
-0.04946507513523102,
0.11141344904899597,
0.003476794110611081,
0.017642414197325706,
-0.012502804398536682,
-0.04384759068489075,
0.036123547703027725,
-0.016081999987363815,
-0.03113022819161415,
-0.03602602332830429,
0.03547987714409828,
0.002244312083348632,
-0.0023089228197932243,
0.07649922370910645,
0.0014311907580122352,
0.0053200311958789825,
0.022684495896100998,
0.017515629529953003,
-0.006587866228073835,
0.0037108559627085924,
0.007533866446465254,
0.07060866057872772,
-0.0208510123193264,
-0.006383062340319157,
0.05289798229932785,
-0.03222251683473587,
0.06456206738948822,
0.017613155767321587,
-0.018481135368347168,
-0.03077913634479046,
0.0010868029203265905,
-0.018178805708885193,
-0.05808635428547859,
0.018617670983076096,
-0.01103016547858715,
0.07271522283554077,
0.006144124083220959,
0.027482764795422554,
-0.016452599316835403,
-0.020655959844589233,
0.0647181048989296,
-0.010415753349661827,
-0.06136322021484375,
0.017340082675218582,
0.09042590111494064,
-0.02163121849298477,
0.017691176384687424,
-0.01490193884819746,
-0.05036231130361557,
-0.0014823918463662267,
0.05047934129834175,
-0.012717361561954021,
-0.010805856436491013,
-0.0021065569017082453,
0.04540800303220749,
-0.04927002266049385,
-0.053483135998249054,
0.008518876507878304,
-0.004183855839073658,
0.08574466407299042,
0.010435258038341999,
0.006948711816221476,
0.06066103279590607,
0.026566023007035255,
-0.09198631346225739,
-0.03912734240293503,
0.029550310224294662,
0.033587876707315445,
-0.026741567999124527,
-0.03216399997472763,
0.024810558184981346,
-0.022625980898737907,
0.039263878017663956,
-0.024283919483423233,
0.00897237192839384,
0.017232805490493774,
-0.01989525929093361,
0.013107464648783207,
0.026624538004398346,
0.03374391794204712,
-0.023055093362927437,
0.017554640769958496,
-0.0268976092338562,
0.006256278604269028,
-0.01121546421200037,
0.016033237800002098,
0.04072676599025726,
0.012219980359077454,
0.015584619715809822,
-0.008489619009196758,
-0.017086517065763474,
0.01233701128512621,
-0.0017444923287257552,
-0.0010307255433872342,
0.04357451945543289,
0.059763796627521515,
0.03317826986312866,
-0.0507914237678051,
0.03165686875581741,
0.021689733490347862,
0.0005181056912988424,
-0.015096990391612053,
0.06050499156117439,
0.023425692692399025,
0.003891278523951769,
0.014229010790586472,
-0.010415753349661827,
0.03982952982187271,
-0.00976232998073101,
-0.04829476401209831,
0.044471755623817444,
-0.028204455971717834,
-0.1360679715871811,
-0.05402928218245506,
0.012931917794048786,
0.013595093972980976,
0.02447897009551525,
-0.01308795902878046,
-0.020285362377762794,
0.02617591805756092,
0.015321299433708191,
-0.007007227279245853,
-0.08090738952159882,
-0.0317348875105381,
-0.06924330443143845,
0.03930288925766945,
-0.0075143612921237946,
0.025863835588097572,
0.04092181846499443,
-0.017125526443123817,
-0.017496123909950256,
0.04845080524682999,
-0.017895979806780815,
0.029043177142739296,
-0.015243278816342354,
0.04267727956175804,
-0.012883155606687069,
-0.045915137976408005,
-0.03101319819688797,
-0.01577967032790184,
-0.04248223081231117,
-0.029881898313760757,
-0.025181155651807785,
0.005281020887196064,
0.0021809202153235674,
-0.020265856757760048,
0.0066658868454396725,
-0.0247910525649786,
-0.033392827957868576,
0.02067546546459198,
-0.007134010549634695,
0.04287233203649521,
0.021533692255616188,
-0.03276866301894188,
0.027482764795422554,
0.003957108594477177,
-0.006446453742682934,
0.013400042429566383,
0.045017898082733154,
-0.022528454661369324,
-0.001126422779634595,
0.03959546610713005,
-0.052624911069869995,
-0.00044069462455809116,
-0.03302222862839699,
0.004495938308537006,
0.014521588571369648,
-0.025473732501268387,
0.01016218587756157,
0.00118798587936908,
-0.047124456614255905,
-0.0014372861478477716,
0.023542722687125206,
0.030018433928489685,
-0.04782664030790329,
0.004737314768135548,
-0.00014133618969935924,
-0.0069730933755636215,
0.005349289160221815,
-0.04751455783843994,
-0.04747555032372475,
-0.008748061954975128,
-0.029101692140102386,
-0.025298187509179115,
0.006329422816634178,
0.011478784494102001,
-0.022528454661369324,
-0.06971142441034317,
-0.06335274875164032,
-0.08379414677619934,
-0.03046705387532711,
0.05180569365620613,
0.08777320384979248,
-0.0287115890532732,
0.07248115539550781,
-0.033704910427331924,
-0.04521295055747032,
0.00832382496446371,
-0.035265322774648666,
0.022450434044003487,
0.02600037306547165,
-0.051610641181468964,
0.02937476523220539,
0.025122640654444695,
0.03372441604733467,
0.04384759068489075,
-0.025844331830739975,
-0.013858413323760033,
0.07302730530500412,
-0.060426972806453705,
0.02315261960029602,
0.025980867445468903,
0.02170923911035061,
0.007923969067633152,
-0.04552503302693367,
-0.044705815613269806,
-0.023562228307127953,
-0.02291855774819851,
0.035167794674634933,
-0.018588412553071976,
0.008031248115003109,
-0.03210548684000969,
0.0864468514919281,
0.00781181501224637,
-0.04197509586811066,
0.03953694924712181,
0.0024405824951827526,
-0.016793938353657722,
0.061207178980112076,
0.010620557703077793,
0.0029599072877317667,
-0.013838907703757286,
0.02061695046722889,
-0.01607224904000759,
0.01075709331780672,
-0.022840537130832672,
0.02145567163825035,
0.01958317682147026,
-0.043496496975421906,
0.018724950030446053,
0.005710134282708168,
-0.05473146587610245,
0.006797546986490488,
0.026702558621764183,
-0.10384544730186462,
-0.09557526558637619,
-0.04556404426693916,
-0.003449974348768592,
0.00619776314124465,
-0.04505690932273865,
0.007075495086610317,
0.04614919796586037,
0.0068804435431957245,
-0.04443274438381195,
-0.04123390093445778,
0.03945893049240112,
-0.03251509368419647,
0.022508949041366577,
-0.010327979922294617,
-0.00015489837096538395,
-0.02139715664088726,
-0.008567639626562595,
0.07025757431983948,
-0.056018806993961334,
0.025805320590734482,
0.004152160137891769,
0.00898212380707264,
0.02648800238966942,
-0.06503018736839294,
-0.05192272365093231,
-0.06538128107786179,
-0.05473146587610245,
-0.060973115265369415,
-0.024888578802347183,
0.036786723881959915,
-0.007075495086610317,
-0.026527011767029762,
0.001959049142897129,
0.021007053554058075,
0.07275423407554626,
-0.11593864858150482,
-0.019748970866203308,
0.012044433504343033,
-0.02956981584429741,
-0.013926681131124496,
-0.011166702024638653,
0.016608640551567078,
-0.03567492961883545,
-0.013019691221415997,
-0.0417020246386528,
0.01834459975361824,
-0.02073398046195507,
-0.033470846712589264,
0.03161785751581192,
0.009143041446805,
0.034251052886247635,
0.029550310224294662,
0.007870330475270748,
-0.01193715538829565,
-0.001955391839146614,
0.002087051747366786,
-0.0683460682630539,
0.03157884627580643,
-0.0017006057314574718,
0.03214449808001518,
0.047007426619529724,
-0.04322342574596405,
0.019817238673567772,
0.026448991149663925,
-0.02079249545931816,
0.0011197178391739726,
0.03046705387532711,
-0.014911691658198833,
-0.06257253885269165,
0.03288569301366806,
-0.0653032585978508,
-0.062299467623233795,
0.004069263115525246,
0.03155934065580368,
0.018812723457813263,
0.06947736442089081,
-0.009021134115755558,
-0.015526103787124157,
-0.01940762996673584,
0.039322394877672195,
-0.01716453768312931,
-0.018929753452539444,
0.0058759283274412155,
0.07306631654500961,
-0.005110350903123617,
-0.014765403233468533,
-0.010113423690199852,
-0.016852455213665962,
-0.09339068830013275,
0.00934296939522028,
-0.09721369296312332,
0.09385880827903748,
-0.04103884845972061,
0.04490086808800697,
0.019661197438836098,
-0.012532062828540802,
0.023289155215024948
] |
|
725,074 | tf_keras.src.engine.functional | _compute_tensor_usage_count | Compute the #. of tensor usages for all the output tensors of layers.
The computed tensor usage count is saved as `self._tensor_usage_count`.
This is later used for saving memory in eager computation by releasing
no-longer-needed tensors as early as possible.
| def _compute_tensor_usage_count(self):
"""Compute the #. of tensor usages for all the output tensors of layers.
The computed tensor usage count is saved as `self._tensor_usage_count`.
This is later used for saving memory in eager computation by releasing
no-longer-needed tensors as early as possible.
"""
tensor_usage_count = collections.Counter()
available_tensors = set(str(id(tensor)) for tensor in self.inputs)
depth_keys = list(self._nodes_by_depth.keys())
depth_keys.sort(reverse=True)
depth_keys = depth_keys[1:]
for depth in depth_keys:
for node in self._nodes_by_depth[depth]:
input_tensors = {
str(id(tensor))
for tensor in tf.nest.flatten(node.keras_inputs)
}
if input_tensors.issubset(available_tensors):
for tensor in tf.nest.flatten(node.keras_inputs):
tensor_usage_count[str(id(tensor))] += 1
for output_tensor in tf.nest.flatten(node.outputs):
available_tensors.add(str(id(output_tensor)))
for tensor in self.outputs:
tensor_usage_count[str(id(tensor))] += 1
self._tensor_usage_count = tensor_usage_count
| (self) | [
-0.07146269083023071,
-0.0942169800400734,
0.0022409865632653236,
0.06861840188503265,
0.016807954758405685,
0.0925104096531868,
-0.04191766679286957,
-0.014932502992451191,
-0.00039858894888311625,
-0.019056716933846474,
0.00824398547410965,
0.0021032162476330996,
-0.012879283167421818,
-0.02216765657067299,
0.05542802810668945,
0.014950279146432877,
0.0388956144452095,
0.0032287093345075846,
0.031056050211191177,
-0.020158879458904266,
-0.01567023992538452,
-0.00660407729446888,
0.019127825275063515,
-0.017287926748394966,
-0.04973945394158363,
-0.00008617576531833038,
0.033793676644563675,
-0.03535803407430649,
-0.02401644177734852,
0.0012632630532607436,
-0.09727458655834198,
-0.024798620492219925,
0.002548747230321169,
0.01109271589666605,
-0.005639686249196529,
-0.001495472388342023,
0.03343813866376877,
0.07715126127004623,
-0.05510804429650307,
-0.021581022068858147,
0.027269594371318817,
-0.04668184742331505,
-0.03210487961769104,
-0.024229763075709343,
-0.0036020218394696712,
0.03729570284485817,
-0.015776900574564934,
-0.027980666607618332,
-0.02264762856066227,
-0.07636908441781998,
0.023803120478987694,
-0.04191766679286957,
-0.005897449795156717,
0.0700761005282402,
0.01982112042605877,
0.01371479220688343,
0.05621020495891571,
-0.026736291125416756,
-0.0012065995251759887,
-0.010310537181794643,
-0.02122548595070839,
0.003802010789513588,
-0.012248207814991474,
0.006901838351041079,
-0.034682516008615494,
-0.007786233443766832,
-0.04255763441324234,
0.006484083831310272,
0.0028598408680409193,
0.015759123489260674,
-0.026611853390932083,
-0.06314315646886826,
0.07359590381383896,
-0.02408754825592041,
-0.005417476408183575,
-0.05990777909755707,
0.04853063449263573,
-0.006137436255812645,
0.03839786350727081,
-0.052263759076595306,
0.0037175710313022137,
-0.01992778107523918,
0.0179456677287817,
-0.026220763102173805,
0.07992444187402725,
-0.0063596460968256,
-0.02646963857114315,
0.025669682770967484,
-0.07871562242507935,
-0.026238540187478065,
-0.021918781101703644,
0.008737292140722275,
0.026540745049715042,
0.025385254994034767,
-0.004493083339184523,
0.004941947292536497,
-0.07729347795248032,
-0.08255540579557419,
-0.03960668668150902,
-0.017634574323892593,
0.01607021689414978,
0.012337091378867626,
-0.013217042200267315,
0.04237986356019974,
-0.009812787175178528,
-0.055996883660554886,
-0.02558079920709133,
-0.015119158662855625,
-0.01255041267722845,
-0.015572466887533665,
-0.012683738954365253,
0.013608131557703018,
0.03875340148806572,
0.025811897590756416,
0.07395144551992416,
-0.03903782740235329,
0.015190266072750092,
-0.022558744996786118,
0.0033842562697827816,
0.016194654628634453,
0.01985667273402214,
0.037651240825653076,
0.020709959790110588,
-0.022345423698425293,
0.005821898579597473,
0.01655907928943634,
0.036140210926532745,
0.041739899665117264,
-0.02165212854743004,
-0.019021164625883102,
0.008048441261053085,
0.0069418358616530895,
0.0037664570845663548,
0.09037719666957855,
0.06531192362308502,
0.02120770886540413,
0.014790288172662258,
0.021118825301527977,
-0.04191766679286957,
0.020123325288295746,
0.0407799556851387,
0.011279372498393059,
-0.03073606826364994,
0.002699849894270301,
0.03365145996212959,
0.026291871443390846,
0.02035442367196083,
0.005835230927914381,
0.00399755546823144,
-0.09499915689229965,
-0.007852896116673946,
-0.026096325367689133,
0.014825842343270779,
0.04362424090504646,
-0.038433417677879333,
0.04348202422261238,
0.005448585841804743,
-0.04202432930469513,
-0.023838674649596214,
-0.038540080189704895,
-0.03672684729099274,
-0.015705792233347893,
-0.023252040147781372,
-0.020212208852171898,
-0.010799399577081203,
0.025349700823426247,
0.022505415603518486,
-0.004679739475250244,
-0.03631797805428505,
-0.01159046683460474,
0.01534136850386858,
-0.018292315304279327,
0.029100604355335236,
0.018256762996315956,
0.018158989027142525,
0.039428919553756714,
-0.018221208825707436,
-0.03985556215047836,
-0.04102882742881775,
0.04863729327917099,
0.01614132523536682,
-0.0407799556851387,
-0.020958833396434784,
-0.01801677606999874,
-0.036549076437950134,
-0.010177211835980415,
0.06314315646886826,
-0.028087327256798744,
0.019981110468506813,
0.05133936554193497,
0.00002196058449044358,
0.04781956225633621,
0.020532190799713135,
0.04543747380375862,
0.03640686348080635,
-0.02558079920709133,
-0.018105659633874893,
0.014488083310425282,
0.0358913354575634,
-0.013385921716690063,
-0.06676962226629257,
0.0106660732999444,
0.056459080427885056,
0.03119826503098011,
-0.0005308038089424372,
0.015714680776000023,
0.021616576239466667,
0.037509024143218994,
-0.03605132922530174,
0.005719681736081839,
-0.08305315673351288,
-0.0301494337618351,
0.06559634953737259,
0.05279706418514252,
0.02031886950135231,
0.02462085336446762,
-0.008657296188175678,
0.00878173392266035,
-0.0298116747289896,
-0.07217376679182053,
0.050379421561956406,
0.011981556192040443,
-0.02506527304649353,
-0.004697516560554504,
-0.003819787409156561,
-0.051730453968048096,
-0.007075162138789892,
0.05681461840867996,
0.029047273099422455,
-0.03722459450364113,
0.019127825275063515,
0.02778512053191662,
0.005893005523830652,
0.059303369373083115,
0.010986055247485638,
0.0050530522130429745,
-0.06780067086219788,
-0.0388956144452095,
0.0349491685628891,
-0.05180156230926514,
-0.08475972712039948,
-0.0762268677353859,
-0.01887894980609417,
-0.041419919580221176,
-0.058805618435144424,
0.014879172667860985,
-0.012354868464171886,
0.0575612410902977,
-0.01804344169795513,
-0.021385477855801582,
-0.00871507078409195,
-0.03228265047073364,
-0.0072262645699083805,
-0.042237650603055954,
-0.0165768563747406,
-0.06513415277004242,
0.0001141603133874014,
0.010079439729452133,
0.031464915722608566,
-0.029100604355335236,
0.02126104012131691,
0.023945335298776627,
-0.023803120478987694,
0.011083828285336494,
-0.04198877513408661,
-0.052761510014534,
0.07750680297613144,
0.016416864469647408,
-0.11739791184663773,
-0.005684128496795893,
0.06044108420610428,
0.07032497972249985,
0.005257485434412956,
-0.041277702897787094,
-0.040957722812891006,
-0.08184433728456497,
0.06748069077730179,
0.05674351006746292,
-0.04202432930469513,
0.04543747380375862,
0.009146157652139664,
-0.06513415277004242,
-0.05631686747074127,
0.01345702912658453,
-0.02401644177734852,
-0.007057385053485632,
0.023785343393683434,
-0.008826175704598427,
-0.01650574803352356,
-0.03530470281839371,
0.04205988347530365,
-0.004879728425294161,
0.04099327698349953,
0.023500915616750717,
-0.03971334546804428,
-0.011021609418094158,
-0.07043163478374481,
-0.024354200810194016,
-0.009555024094879627,
0.07107160240411758,
-0.021101048216223717,
0.012621520087122917,
0.003055385546758771,
-0.02405199594795704,
0.04717959836125374,
0.014665850438177586,
0.0575612410902977,
0.0003241486265324056,
0.0464329719543457,
0.0006799621623940766,
-0.0041153267957270145,
0.03215821087360382,
0.03169601410627365,
0.037117935717105865,
0.03822009637951851,
-0.021883226931095123,
-0.03939336538314819,
0.0028687294106930494,
0.0007316259434446692,
0.08063551783561707,
0.030860505998134613,
0.07956890761852264,
0.03023831732571125,
0.05201488360762596,
-0.025296371430158615,
-0.06193433329463005,
0.08419087529182434,
-0.024923058226704597,
0.024869726970791817,
-0.026594076305627823,
-0.05621020495891571,
-0.0841197669506073,
0.01843453012406826,
0.008292872458696365,
-0.05866340175271034,
-0.013394810259342194,
0.0471084900200367,
0.008257318288087845,
-0.03541136533021927,
0.03793566673994064,
0.02309204824268818,
0.05297483131289482,
-0.03647797182202339,
0.0575612410902977,
-0.033793676644563675,
-0.013963667675852776,
0.04760624095797539,
-0.008955057710409164,
0.010354979895055294,
0.044690847396850586,
-0.013403698801994324,
0.043197598308324814,
0.03029164858162403,
0.04735736548900604,
0.024229763075709343,
0.07942669093608856,
0.037011273205280304,
0.026860728859901428,
-0.014274761080741882,
-0.003957557491958141,
0.006581855937838554,
-0.0005321926437318325,
0.03484250605106354,
-0.014594743959605694,
0.0753735825419426,
-0.01703905127942562,
0.05663685128092766,
-0.0028798398561775684,
0.013368145562708378,
-0.041277702897787094,
-0.04447752609848976,
-0.03246041759848595,
0.019234485924243927,
0.023518692702054977,
-0.004986389074474573,
0.061578795313835144,
-0.07032497972249985,
0.017341258004307747,
0.04817509651184082,
0.01696794480085373,
-0.0165768563747406,
0.07235153019428253,
-0.005857451818883419,
-0.012132658623158932,
0.0024131990503519773,
0.011803788132965565,
-0.0445486344397068,
-0.036691293120384216,
0.020976610481739044,
0.006070773582905531,
0.02556302212178707,
0.016150211915373802,
-0.027305148541927338,
-0.019696682691574097,
-0.00919948797672987,
0.008790622465312481,
0.004179767332971096,
0.03256707638502121,
-0.031091604381799698,
-0.021598799154162407,
-0.018310092389583588,
-0.07473362237215042,
0.0433398112654686,
0.06239653006196022,
0.01463029719889164,
0.008630631491541862,
-0.0032598187681287527,
0.038540080189704895,
-0.013670350424945354,
-0.018185654655098915,
-0.05521470680832863,
-0.03585578501224518,
0.0378645621240139,
0.03155380114912987,
-0.007546246983110905,
-0.03635353222489357,
-0.0014076994266360998,
-0.026629630476236343,
0.06300093978643417,
-0.009181711822748184,
0.021598799154162407,
0.06428086757659912,
0.04191766679286957,
0.05101938545703888,
0.013137047179043293,
-0.05233486741781235,
-0.03535803407430649,
0.03390033543109894,
0.021829897537827492,
0.03651352599263191,
-0.04053108021616936,
-0.024709736928343773,
0.026362977921962738,
-0.058343421667814255,
0.010470529086887836,
-0.024318646639585495,
0.0519082248210907,
-0.0028953945729881525,
-0.0069418358616530895,
0.03644241765141487,
0.03461140766739845,
0.041739899665117264,
0.04824620485305786,
-0.0018165656365454197,
0.017625685781240463,
0.025189710780978203,
-0.03793566673994064,
0.054005883634090424,
-0.06541858613491058,
-0.04401532933115959,
0.029580576345324516,
-0.04387311637401581,
0.00851952563971281,
-0.03779345378279686,
-0.02319870889186859,
0.015545802190899849,
-0.03397144377231598,
-0.036211319267749786,
-0.040815506130456924,
-0.0037575687747448683,
0.006750735454261303,
0.05471695587038994,
0.006888505537062883,
0.04301982745528221,
-0.010328314267098904,
-0.08070661872625351,
0.024816397577524185,
-0.010043885558843613,
-0.00519526656717062,
0.0179012268781662,
0.08810176700353622,
0.011279372498393059,
-0.03544691577553749,
-0.009137269109487534,
-0.023838674649596214,
-0.02598966471850872,
0.021883226931095123,
0.01130603812634945,
-0.014434752985835075,
-0.008795066736638546,
0.012425975874066353,
-0.008986166678369045,
0.001893228036351502,
-0.009883894585072994,
0.0025398586876690388,
0.073667012155056,
-0.007408476900309324,
-0.017696794122457504,
0.06648518890142441,
-0.014861395582556725,
-0.07857340574264526,
-0.06648518890142441,
0.015821341425180435,
-0.021438807249069214,
-0.03493139147758484,
-0.007319592870771885,
0.03070051409304142,
0.012079328298568726,
-0.0139192258939147,
0.01992778107523918,
0.027660682797431946,
0.0004002555215265602,
0.01839897595345974,
0.006190766580402851,
0.004357535392045975,
0.05158824101090431,
0.015776900574564934,
-0.008630631491541862,
0.02739403210580349,
0.010612742975354195,
0.015065828338265419,
-0.022576522082090378,
0.025794120505452156,
0.03118048794567585,
0.019127825275063515,
0.017110159620642662,
0.020976610481739044,
0.019661128520965576,
0.03836230933666229,
0.006488528102636337,
-0.028567299246788025,
0.050806064158678055,
-0.014319203794002533,
-0.040922168642282486,
0.009537247009575367,
0.028247317299246788,
-0.023252040147781372,
-0.005155268590897322,
0.023394254967570305,
0.021918781101703644,
-0.032424863427877426,
-0.013217042200267315,
-0.047464028000831604,
-0.020123325288295746,
-0.0010804954217746854,
-0.05994333326816559,
0.040957722812891006,
-0.09151490777730942,
-0.02838953211903572,
0.04287761449813843,
-0.011270483955740929,
-0.053579241037368774,
0.047001831233501434,
-0.03553580120205879,
0.03164268285036087,
0.0702538713812828,
0.05485916882753372,
-0.025189710780978203,
0.012514859437942505,
-0.005826342385262251,
-0.037473469972610474,
-0.0034486970398575068,
0.0053597018122673035,
0.00650630472227931,
0.03157157823443413,
0.027998441830277443,
-0.017705682665109634,
-0.05560579523444176,
-0.0005121937138028443,
0.0050797173753380775,
0.0213321465998888,
0.024940835312008858,
0.03077162243425846,
-0.0047464026138186455,
0.021438807249069214,
-0.061223261058330536,
-0.04757068678736687,
-0.0014910281170159578,
-0.053721457719802856,
0.0329759418964386,
-0.018523413687944412,
0.0017554579535499215,
0.02778512053191662,
-0.036175765097141266,
-0.0021121047902852297,
-0.0141769889742136,
-0.020567744970321655,
-0.004426420666277409,
0.07565801590681076,
-0.039464469999074936,
-0.00555969076231122,
0.0021643240470439196,
-0.006737403105944395,
0.005497471895068884,
0.042308758944272995,
0.04479750990867615,
-0.02225654013454914,
0.035731345415115356,
0.005839675199240446,
0.024443084374070168,
-0.044157542288303375,
-0.02934947796165943,
0.01932336948812008,
-0.004259762819856405,
0.017741234973073006,
-0.005835230927914381,
-0.05905449390411377,
0.010043885558843613,
0.011617131531238556,
-0.017305703833699226,
-0.031962666660547256,
0.03198044374585152,
-0.03219376504421234,
0.024887504056096077,
0.010577189736068249,
-0.04821065068244934,
-0.011030497960746288,
0.03907338157296181,
-0.000742180913221091,
-0.016390198841691017,
0.0149058373644948,
0.018132325261831284,
0.03839786350727081,
-0.0452241525053978,
-0.0174301415681839,
-0.057383473962545395,
-0.03599799796938896,
0.04426420480012894,
0.01511027105152607,
0.03436253219842911,
-0.010674961842596531,
0.05258374288678169,
-0.014514748007059097,
-0.034202542155981064,
-0.05098383128643036,
0.03125159442424774,
-0.0010666073067113757,
-0.04099327698349953,
0.012870395556092262,
0.02595411241054535,
0.0018165656365454197,
-0.03967779129743576,
0.018523413687944412,
-0.024371977895498276,
0.057454582303762436,
-0.05660129711031914,
-0.0037331257481127977,
-0.011732680723071098,
-0.015590243972837925,
-0.047464028000831604,
-0.01703905127942562,
0.022896504029631615,
-0.023838674649596214,
0.009359478950500488,
0.03509138152003288,
-0.022576522082090378,
-0.03436253219842911,
-0.02650519274175167,
0.06634297966957092,
0.03439808636903763,
-0.0035198042169213295,
0.0358913354575634,
0.06314315646886826,
-0.007741791661828756,
0.02177656628191471,
0.018087882548570633,
-0.027607353404164314,
-0.009750568307936192,
0.0027665128000080585,
-0.040922168642282486,
-0.010239430703222752,
-0.027216263115406036,
0.01694127917289734,
0.03201599791646004,
-0.0050797173753380775,
-0.042699847370386124,
-0.009999443776905537,
-0.03550024703145027,
-0.02122548595070839,
0.04109993577003479,
-0.0034264761488884687,
-0.008235097862780094,
0.031002720817923546,
-0.012417087331414223,
-0.03390033543109894,
0.0014299204340204597,
0.026789620518684387,
0.054610297083854675,
0.0006421864964067936,
-0.031429361552000046,
-0.020425530150532722,
0.014816953800618649,
-0.041846562176942825,
0.014594743959605694,
-0.0026865173131227493,
-0.009448363445699215,
-0.06484972685575485,
-0.004861951805651188,
0.05325926095247269,
-0.021047718822956085,
-0.03413143381476402,
-0.033242594450712204,
0.029900558292865753,
-0.0014321425696834922,
-0.07142713665962219,
-0.010959390550851822,
-0.0003341480914968997,
0.010248319245874882,
0.013705904595553875,
-0.05290372297167778,
0.018772289156913757,
-0.018576744943857193,
-0.049455028027296066,
-0.033242594450712204,
-0.0240697730332613,
0.05720570683479309,
-0.05329481139779091,
-0.008172878995537758,
-0.018541190773248672,
0.02085217274725437,
-0.009092827327549458,
-0.01703016459941864,
0.0042997607961297035,
-0.04383756220340729,
-0.03836230933666229,
-0.012568189762532711,
0.050806064158678055,
0.04390867054462433,
0.006324092857539654,
-0.029598353430628777,
0.03985556215047836,
0.051766008138656616,
0.05916115269064903,
0.04195322096347809,
-0.04589967057108879,
0.06001443788409233,
0.03393588960170746,
0.004928614944219589,
0.03480695188045502,
-0.004550857935100794,
0.0038486747071146965,
0.009110604412853718,
-0.027145156636834145,
-0.07736458629369736,
-0.01536803413182497,
0.021438807249069214,
0.05617465451359749,
-0.021883226931095123,
-0.0018465640023350716,
-0.05069940164685249,
0.07501804828643799,
-0.022789843380451202,
-0.07217376679182053,
0.029918335378170013,
0.09535469859838486,
-0.03407810255885124,
0.04525970295071602,
-0.0174301415681839,
0.03246041759848595,
-0.0575612410902977,
0.04479750990867615,
-0.0018776733195409179,
-0.03903782740235329,
-0.061223261058330536,
0.09030608832836151,
0.0008005110430531204,
0.03971334546804428,
-0.07871562242507935,
-0.03253152221441269,
-0.04444197192788124,
0.012337091378867626,
-0.06314315646886826,
-0.01746569573879242,
-0.016443530097603798,
0.0041553243063390255,
0.0397488996386528,
0.000021387699234765023,
-0.014576966874301434
] |
725,076 | tf_keras.src.engine.functional | _conform_to_reference_input | Set shape and dtype based on `keras.Input`s. | def _conform_to_reference_input(self, tensor, ref_input):
"""Set shape and dtype based on `keras.Input`s."""
if isinstance(tensor, tf.Tensor):
# Allow (None,) and (None, 1) Tensors to be passed interchangeably.
# Use the shape specified by the `keras.Input`.
t_shape = tensor.shape
t_rank = t_shape.rank
ref_shape = ref_input.shape
ref_rank = ref_shape.rank
keras_history = getattr(tensor, "_keras_history", None)
if t_rank is not None and ref_rank is not None:
# Should squeeze last dimension. True if tensor is (BATCH, ...,
# 1) and reference is (BATCH, ...).
if t_rank == ref_rank + 1 and t_shape[-1] == 1:
tensor = tf.squeeze(tensor, axis=-1)
# Should expand last_dimension. True if tensor is (BATCH, ...)
# and reference is (BATCH, ..., 1).
elif t_rank == ref_rank - 1 and ref_shape[-1] == 1:
tensor = tf.expand_dims(tensor, axis=-1)
if keras_history is not None: # Restore keras history.
tensor._keras_history = keras_history
# Dtype casting.
tensor = tf.cast(tensor, dtype=ref_input.dtype)
elif tf_utils.is_extension_type(tensor):
# Dtype casting (If the extension type has a non-variant dtype and
# supports being cast). Only cast if necessary (since some
# extension types may not implement tf.cast).
tensor_dtype = getattr(tensor, "dtype", None)
ref_input_dtype = getattr(ref_input, "dtype", None)
if (
ref_input_dtype is not None
and tensor_dtype is not None
and tensor_dtype != ref_input_dtype
and ref_input_dtype != tf.variant
):
tensor = tf.cast(tensor, dtype=ref_input_dtype)
return tensor
| (self, tensor, ref_input) | [
0.0010930983116850257,
-0.037653058767318726,
-0.023374000564217567,
0.02499289996922016,
-0.027703192085027695,
0.02803060971200466,
-0.04547470808029175,
0.04765749350190163,
0.05125909298658371,
-0.0067848265171051025,
-0.005265971180051565,
-0.039763085544109344,
-0.014424577355384827,
-0.004176851827651262,
0.05838952586054802,
0.0353793241083622,
0.03246894106268883,
0.005015860311686993,
0.02219165861606598,
-0.029685890302062035,
0.030704522505402565,
-0.019517745822668076,
-0.037507541477680206,
-0.01650732010602951,
-0.021482251584529877,
0.05318721756339073,
0.028376217931509018,
-0.01412444468587637,
-0.032832738012075424,
-0.004281444009393454,
-0.019335845485329628,
-0.006539263296872377,
0.03314196690917015,
0.03030434623360634,
0.023755988106131554,
-0.06239129975438118,
-0.01772604137659073,
0.06686601042747498,
-0.020390858873724937,
-0.03352395445108414,
-0.02422892488539219,
-0.029449421912431717,
-0.005106810014694929,
0.014797470532357693,
0.010941214859485626,
0.06497426331043243,
-0.04703903943300247,
0.021445872262120247,
-0.04136379435658455,
0.009567879140377045,
0.03899911046028137,
-0.09145873785018921,
0.02126397378742695,
0.015570539981126785,
-0.07530611753463745,
-0.029704079031944275,
-0.03026796691119671,
0.0024419918190687895,
-0.012414595112204552,
-0.028430787846446037,
0.0005533703370019794,
0.015052128583192825,
0.0189356692135334,
-0.043728478252887726,
-0.015570539981126785,
-0.04307364299893379,
0.005325088277459145,
-0.03736202046275139,
0.027521293610334396,
0.026502659544348717,
-0.09749777615070343,
-0.013342279940843582,
0.029885979369282722,
-0.020754657685756683,
0.0292129535228014,
-0.05064063519239426,
0.04747559502720833,
-0.002526120049878955,
0.006971272639930248,
-0.04121827706694603,
0.021555012091994286,
-0.0017519131070002913,
0.006571095436811447,
-0.010768410749733448,
-0.0037493896670639515,
0.0033355699852108955,
-0.015379546210169792,
0.06122714653611183,
-0.0602085143327713,
-0.05406033247709274,
0.013915261253714561,
-0.016752881929278374,
-0.01257830485701561,
0.022282607853412628,
-0.0027353037148714066,
0.010059005580842495,
-0.021555012091994286,
-0.05697071552276611,
-0.034760866314172745,
0.02519298903644085,
-0.047766633331775665,
0.055770181119441986,
-0.05129547044634819,
0.02521117776632309,
-0.016143521293997765,
-0.03619786724448204,
0.0049794805236160755,
-0.03596140071749687,
-0.038671690970659256,
-0.01767147146165371,
-0.01741681434214115,
-0.0332329161465168,
-0.00959516316652298,
0.028776396065950394,
0.025574976578354836,
-0.004511090926826,
-0.010222714394330978,
0.0015336344949901104,
0.011768854223191738,
-0.0003251441812608391,
0.022500885650515556,
0.03838065266609192,
0.020281720906496048,
-0.02721206657588482,
0.023737797513604164,
0.011859804391860962,
0.040781717747449875,
0.03403327241539955,
0.008435558527708054,
-0.022573646157979965,
-0.04929458349943161,
-0.004370119422674179,
-0.07654303312301636,
0.13002128899097443,
0.03294187784194946,
0.072177454829216,
-0.061772845685482025,
0.04129103571176529,
-0.04150931537151337,
0.0104955630376935,
0.06053593382239342,
0.030559003353118896,
0.054787930101156235,
-0.047839391976594925,
-0.0041700308211147785,
0.0006252772291190922,
0.007812554948031902,
-0.0016609637532383204,
-0.04445607587695122,
-0.011277727782726288,
-0.026848267763853073,
0.004697537515312433,
0.024629103019833565,
0.009522403590381145,
-0.010595607571303844,
0.037580300122499466,
-0.03536113351583481,
-0.09262288361787796,
0.04223690927028656,
0.02713930606842041,
-0.0323416143655777,
0.015452305786311626,
0.004438331350684166,
0.008890305645763874,
0.0064392187632620335,
0.0184900164604187,
0.014179014600813389,
-0.04947648197412491,
0.008290039375424385,
0.006084516178816557,
0.04751197621226311,
0.0013267246540635824,
0.07170452177524567,
0.009167701005935669,
0.01007719524204731,
0.016943875700235367,
-0.026975596323609352,
-0.03798047825694084,
-0.021864239126443863,
0.039690326899290085,
0.031632207334041595,
0.006293699610978365,
0.00003607778489822522,
-0.023610468953847885,
-0.015015749260783195,
0.0484214685857296,
-0.0560976006090641,
0.02013620175421238,
0.046638861298561096,
0.03456077724695206,
-0.0013983473181724548,
0.057771071791648865,
0.012478260323405266,
-0.0051659271121025085,
0.0012346383882686496,
-0.054751548916101456,
-0.03943566605448723,
0.03186867758631706,
0.011623336002230644,
0.04321916401386261,
-0.028903724625706673,
-0.03830789402127266,
0.026539040729403496,
0.0334148146212101,
-0.044637974351644516,
-0.01697116158902645,
0.03496095538139343,
0.010059005580842495,
-0.023683227598667145,
-0.05256876349449158,
-0.07068588584661484,
-0.0075897290371358395,
0.002000887179747224,
-0.02830345928668976,
0.014733805321156979,
-0.020954744890332222,
-0.06442856788635254,
-0.03954480588436127,
-0.008108140900731087,
-0.0031673135235905647,
0.10739307105541229,
0.020463619381189346,
-0.017589617520570755,
-0.010832075960934162,
0.030413486063480377,
-0.05729813128709793,
-0.006903060711920261,
0.009658828377723694,
0.015361356548964977,
-0.016289040446281433,
0.006948535330593586,
-0.02226441726088524,
-0.03150487691164017,
0.017553238198161125,
0.0443105548620224,
-0.0009538320009596646,
-0.0046156831085681915,
-0.06104524806141853,
0.0519866868853569,
0.023319430649280548,
-0.02830345928668976,
0.021718719974160194,
0.0271574966609478,
-0.04820319265127182,
-0.021736910566687584,
0.02113664522767067,
0.01568877510726452,
0.028321648016572,
-0.03397870063781738,
-0.04460159316658974,
-0.04223690927028656,
-0.023519519716501236,
-0.002195291453972459,
0.00949511956423521,
0.00682120630517602,
0.013778836466372013,
-0.022773733362555504,
-0.06479236483573914,
0.002576142316684127,
0.011877994053065777,
-0.02703016623854637,
0.028539927676320076,
0.0698491558432579,
0.053951192647218704,
-0.05315084010362625,
-0.09364151954650879,
-0.0292129535228014,
0.03594321012496948,
-0.01761690154671669,
-0.012596494518220425,
0.08905766904354095,
0.07792545855045319,
-0.03123202919960022,
-0.02930390276014805,
0.013342279940843582,
-0.045620229095220566,
0.05846228450536728,
0.07312332838773727,
0.04041792079806328,
0.03117746114730835,
-0.015361356548964977,
-0.09124045819044113,
-0.0034242456313222647,
0.02200975827872753,
-0.04351020231842995,
-0.036634426563978195,
0.015643300488591194,
-0.001589341089129448,
0.005120452027767897,
-0.030649954453110695,
0.04791215434670448,
0.016361800953745842,
0.051950305700302124,
0.03639795631170273,
-0.10739307105541229,
-0.0024829190224409103,
-0.049622002989053726,
-0.02321029081940651,
0.045692987740039825,
0.039690326899290085,
-0.00006821206625318155,
0.04856698960065842,
0.0020224875770509243,
0.02812155894935131,
-0.016552794724702835,
-0.0898580253124237,
0.009149511344730854,
-0.028885535895824432,
-0.028467167168855667,
0.0459112673997879,
0.006812111474573612,
0.02903105318546295,
-0.0800354853272438,
-0.020609138533473015,
0.045802127569913864,
-0.006475598551332951,
0.04227329045534134,
0.01859915629029274,
0.05624311789870262,
0.08338242769241333,
0.011996228247880936,
0.02526574768126011,
-0.01668921858072281,
0.003294642549008131,
-0.10368233919143677,
-0.06453770399093628,
0.0380532369017601,
-0.016443654894828796,
-0.010059005580842495,
0.06264595687389374,
-0.011832519434392452,
-0.037798576056957245,
0.01504303328692913,
0.018826529383659363,
-0.03914462774991989,
-0.04052706062793732,
0.011541481129825115,
0.011277727782726288,
0.0037243785336613655,
0.022555455565452576,
0.003062721574679017,
0.06031765416264534,
0.03443345054984093,
-0.019626883789896965,
-0.010668366216123104,
-0.0009890749352052808,
0.002924023661762476,
0.0343061201274395,
0.005616126582026482,
0.053732916712760925,
-0.03507009521126747,
-0.0070440322160720825,
0.009322315454483032,
-0.01741681434214115,
-0.018608251586556435,
0.026666369289159775,
-0.01897204853594303,
0.008994897827506065,
-0.012778392992913723,
-0.03014063648879528,
0.04212776944041252,
0.02211889810860157,
0.0500221811234951,
-0.020809227600693703,
0.05427861213684082,
0.04594764485955238,
-0.0021816492080688477,
-0.027921471744775772,
-0.006293699610978365,
0.02504746988415718,
-0.023701418191194534,
-0.026466280221939087,
0.017389528453350067,
0.027685003355145454,
-0.020536378026008606,
0.046711619943380356,
-0.0580621063709259,
0.030486244708299637,
0.01924489624798298,
-0.019954301416873932,
0.016871117055416107,
0.05114995315670967,
0.004779391922056675,
0.009476928971707821,
-0.024683671072125435,
0.006002661772072315,
-0.060717832297086716,
-0.019626883789896965,
0.024538151919841766,
0.01859915629029274,
-0.016852926462888718,
-0.03208695352077484,
0.0006895102560520172,
-0.03223247453570366,
-0.04041792079806328,
0.00046071564429439604,
0.01261468417942524,
0.06068145111203194,
-0.005061334930360317,
-0.026884647086262703,
-0.010122669860720634,
-0.012432785704731941,
-0.033887751400470734,
0.04085448011755943,
-0.0017143965233117342,
0.06904879957437515,
0.008171805180609226,
0.07858029752969742,
-0.03241437301039696,
0.01904480718076229,
-0.020645517855882645,
0.02517479844391346,
0.004354203585535288,
0.04954924434423447,
-0.0021316269412636757,
-0.008039928041398525,
-0.006925798021256924,
-0.05489706993103027,
0.015743345022201538,
0.02119121514260769,
0.008849378675222397,
0.06340993195772171,
0.0037198311183601618,
0.04820319265127182,
0.0382351353764534,
-0.006675687152892351,
0.010450088419020176,
0.0670115277171135,
-0.00724412128329277,
0.03135935962200165,
-0.009858916513621807,
-0.0330510176718235,
0.013978925533592701,
-0.048639748245477676,
-0.014179014600813389,
0.029413040727376938,
0.04827595129609108,
0.024592721834778786,
-0.029431231319904327,
0.04558384791016579,
0.017262199893593788,
0.004272348713129759,
0.051841169595718384,
-0.0020963840652257204,
-0.0344880186021328,
0.008089950308203697,
-0.02130035310983658,
0.05795297026634216,
-0.10768411308526993,
-0.032632652670145035,
0.0400177426636219,
-0.04121827706694603,
0.034651726484298706,
-0.028358029201626778,
-0.01557963527739048,
-0.0443105548620224,
-0.014188108965754509,
0.008249112404882908,
-0.003988131880760193,
-0.01361512765288353,
0.003474267665296793,
0.029449421912431717,
0.008035381324589252,
-0.01993611268699169,
0.010213620029389858,
-0.0015097602736204863,
0.043764859437942505,
-0.008053570985794067,
-0.007003105245530605,
0.027466723695397377,
0.1043371707201004,
-0.000032027695851866156,
0.016516413539648056,
-0.0010811612010002136,
-0.021736910566687584,
0.014770185574889183,
0.03490638732910156,
0.017480477690696716,
-0.0121053671464324,
0.002869454212486744,
-0.003096827771514654,
-0.05504258722066879,
-0.04045430198311806,
0.01817169412970543,
-0.002141858683899045,
0.03132297843694687,
-0.05853504687547684,
0.0006082242471165955,
0.018808338791131973,
0.0780709832906723,
-0.07101330161094666,
0.080763079226017,
0.03592501953244209,
0.01743500307202339,
-0.027375774458050728,
-0.04049067944288254,
0.022373557090759277,
0.008212732151150703,
0.0380532369017601,
0.07410558313131332,
0.047839391976594925,
-0.00325144175440073,
-0.04831232875585556,
0.008512865751981735,
0.017644187435507774,
0.014688330702483654,
-0.02826707810163498,
-0.0006428986671380699,
-0.023646848276257515,
-0.012196317315101624,
-0.0486033670604229,
0.042673464864492416,
0.09727949649095535,
0.017780611291527748,
0.014370008371770382,
-0.013205855153501034,
0.016789263114333153,
0.022719165310263634,
0.014870230108499527,
-0.02017258107662201,
-0.011268632486462593,
0.05515172705054283,
-0.02428349480032921,
-0.07392368465662003,
0.02604791335761547,
-0.013887976296246052,
-0.014997558668255806,
-0.01741681434214115,
0.056643296033144,
-0.004820318892598152,
0.003701641224324703,
-0.02126397378742695,
0.0025534050073474646,
0.021409492939710617,
0.0011903004487976432,
0.04140017554163933,
0.05100443214178085,
-0.014451862312853336,
-0.034797247499227524,
-0.0004831687838304788,
-0.04751197621226311,
0.0017848822753876448,
0.03692546486854553,
0.02108207531273365,
0.0023896959610283375,
0.05238686501979828,
0.0003046805504709482,
0.010213620029389858,
-0.06515616178512573,
-0.012787488289177418,
-0.09975332021713257,
-0.01113220863044262,
0.04314640536904335,
0.07246849685907364,
-0.03115927055478096,
-0.03414241224527359,
0.01922670751810074,
0.01704392023384571,
0.018444541841745377,
0.0094678346067667,
-0.003205966902896762,
0.020572757348418236,
0.05820762738585472,
0.009267745539546013,
0.013542368076741695,
-0.02401064708828926,
-0.027466723695397377,
-0.006075420882552862,
-0.021591391414403915,
0.014251773245632648,
0.026557229459285736,
-0.015306786634027958,
0.03397870063781738,
-0.015506875701248646,
-0.011959847994148731,
0.014233583584427834,
-0.04209139198064804,
-0.011195872910320759,
-0.0007673857035115361,
-0.01565239392220974,
0.005452417768537998,
0.012059892527759075,
-0.030358916148543358,
0.004517912399023771,
0.061663705855607986,
-0.03321472555398941,
0.004151840694248676,
0.04452883452177048,
-0.09902572631835938,
-0.025338508188724518,
-0.050567876547575,
-0.007194099016487598,
-0.026448091492056847,
0.0006485830526798964,
0.020772846415638924,
-0.02210070751607418,
-0.036743566393852234,
-0.019808782264590263,
0.022337177768349648,
-0.030959181487560272,
0.015961622819304466,
-0.010704746469855309,
-0.002212344668805599,
0.024447202682495117,
-0.0022907883394509554,
-0.05657053738832474,
-0.030813662335276604,
0.004135924857109785,
-0.00003129939068458043,
-0.06959449499845505,
0.008403725922107697,
0.045874886214733124,
-0.03848979249596596,
-0.008144520223140717,
-0.027412153780460358,
-0.0251020397990942,
-0.08818455785512924,
0.044637974351644516,
0.0004612840712070465,
-0.0006269825389608741,
0.07996273040771484,
0.02226441726088524,
0.0032628104090690613,
-0.02522936835885048,
-0.03492457792162895,
0.005743455607444048,
-0.008890305645763874,
-0.07545163482427597,
-0.0030559003353118896,
-0.028667256236076355,
0.08607453107833862,
0.0049749333411455154,
0.006093611009418964,
0.004997670650482178,
0.04758473485708237,
-0.05795297026634216,
-0.0006690466543659568,
-0.019572313874959946,
0.024374444037675858,
0.057880207896232605,
-0.024392634630203247,
-0.0017666923813521862,
0.0146064767614007,
-0.005175021942704916,
0.05205944553017616,
-0.054751548916101456,
0.04154569283127785,
-0.05849866569042206,
0.01560692023485899,
0.06162732467055321,
-0.04623868316411972,
0.07130434364080429,
0.04907630383968353,
-0.020991126075387,
0.11801596730947495,
-0.000519264314789325,
-0.006443766411393881,
-0.03830789402127266,
0.002664817962795496,
-0.001705301576294005,
0.0008935780497267842,
0.011395961977541447,
-0.03761667758226395,
0.02226441726088524,
-0.02622981183230877,
0.02202794887125492,
-0.0125510198995471,
-0.012205411680042744,
-0.02517479844391346,
0.024429013952612877,
-0.06242768093943596,
-0.043692100793123245,
-0.03625243902206421,
-0.0671934261918068,
0.04059981927275658,
-0.08127240091562271,
0.0521685853600502,
0.04398313909769058,
0.025502216070890427,
-0.06246405839920044,
0.001755323726683855,
-0.0008213869296014309,
-0.0073350705206394196,
0.05511534586548805,
0.024865571409463882,
-0.04438331723213196,
0.0167983565479517,
-0.003087732708081603,
-0.01797160506248474,
-0.027866901829838753,
0.07257763296365738,
-0.017016636207699776,
0.019390415400266647,
-0.06239129975438118,
-0.08163619786500931,
-0.04911268502473831,
-0.056643296033144,
0.01595252752304077,
-0.03441525995731354,
0.004333739634603262,
0.06588375568389893,
-0.018499111756682396,
-0.022700974717736244,
-0.02311934158205986,
0.026611799374222755,
0.04696628078818321,
-0.04802129417657852,
-0.022882873192429543,
0.009126774035394192,
-0.0005198327708058059,
-0.008294587023556232,
-0.0075897290371358395,
0.0464569628238678,
-0.03903549164533615,
-0.020609138533473015,
-0.0189356692135334,
-0.030668143182992935,
0.0077443430200219154,
-0.021536821499466896,
0.009285935200750828,
0.0029194762464612722,
-0.009667922742664814,
0.05191392824053764,
0.0010942352237179875,
-0.014733805321156979,
0.00836279895156622,
0.0025556785985827446,
-0.011941658332943916,
-0.006257319822907448,
-0.028776396065950394,
0.05398757383227348,
0.05769830942153931,
-0.0018928847275674343,
0.04343743994832039,
0.013378659263253212,
0.007080412004143,
0.017353149130940437,
-0.045620229095220566,
0.015734249725937843,
-0.041800353676080704,
-0.015206743031740189,
0.0014949809992685914,
-0.04340106248855591,
0.0001536192576168105,
0.05064063519239426,
0.006857586093246937,
0.0032832738943398,
-0.0723593533039093,
0.005670696031302214,
-0.051695648580789566,
0.03432431071996689,
-0.0016188996378332376,
-0.02712111547589302,
-0.07268677651882172,
0.10390061140060425,
-0.01926308684051037,
-0.016516413539648056,
-0.0036402505356818438,
-0.04041792079806328,
-0.02401064708828926,
-0.009513309225440025,
-0.02712111547589302,
0.025647735223174095,
-0.016925686970353127,
-0.02515660971403122,
0.013333184644579887,
-0.0074351150542497635,
0.005043145269155502
] |
725,087 | tf_keras.src.engine.functional | _flatten_to_reference_inputs | Maps `tensors` to their respective `keras.Input`. | def _flatten_to_reference_inputs(self, tensors):
"""Maps `tensors` to their respective `keras.Input`."""
if self._enable_dict_to_input_mapping and isinstance(tensors, dict):
ref_inputs = self._nested_inputs
if not tf.nest.is_nested(ref_inputs):
ref_inputs = [self._nested_inputs]
if isinstance(ref_inputs, dict):
# In the case that the graph is constructed with dict input
# tensors, We will use the original dict key to map with the
# keys in the input data. Note that the model.inputs is using
# nest.flatten to process the input tensors, which means the
# dict input tensors are ordered by their keys.
ref_input_names = sorted(ref_inputs.keys())
else:
ref_input_names = [
inp._keras_history.layer.name for inp in ref_inputs
]
# Raise an warning if there are more input data comparing to input
# tensor
if len(tensors) > len(ref_input_names):
warnings.warn(
"Input dict contained keys {} which did not match any "
"model input. They will be ignored by the model.".format(
[n for n in tensors.keys() if n not in ref_input_names]
),
stacklevel=2,
)
try:
# Flatten in the order `Input`s were passed during Model
# construction.
return [tensors[n] for n in ref_input_names]
except KeyError:
# TODO(b/151582614)
return tf.nest.flatten(tensors)
# Otherwise both self.inputs and tensors will already be in same order.
return tf.nest.flatten(tensors)
| (self, tensors) | [
-0.017303060740232468,
-0.07611145079135895,
-0.03856949508190155,
0.03392720967531204,
-0.09123098850250244,
0.012807567603886127,
-0.01051394920796156,
0.02005540393292904,
0.111414834856987,
0.041431933641433716,
-0.017917750403285027,
-0.019284747540950775,
-0.050459615886211395,
-0.011202034540474415,
0.06873517483472824,
0.0012030031066387892,
-0.021853601559996605,
-0.008715751580893993,
0.010679089464247227,
-0.03240424767136574,
0.012660776264965534,
-0.038459401577711105,
-0.01948658563196659,
-0.006481767166405916,
-0.025890370830893517,
0.01054147258400917,
0.011257081292569637,
-0.0011519701220095158,
-0.040404390543699265,
0.0013004819629713893,
-0.021908648312091827,
0.0192663986235857,
0.05893683061003685,
0.0027408746536821127,
0.018403997644782066,
-0.06913884729146957,
-0.03989062085747719,
0.051964230835437775,
-0.004445033613592386,
-0.035450175404548645,
0.03170698881149292,
-0.058973528444767,
0.030092280358076096,
-0.008770798332989216,
0.016284694895148277,
0.07390957325696945,
-0.04844123125076294,
0.0042592501267790794,
0.04363380745053291,
-0.030440909788012505,
0.017238840460777283,
-0.05801938474178314,
0.018807675689458847,
0.0557074174284935,
-0.04363380745053291,
-0.03020237386226654,
0.002151414519175887,
-0.05526703968644142,
-0.03662450611591339,
-0.052808281034231186,
0.0012672244338318706,
-0.02027559094130993,
0.006669844035059214,
0.010376332327723503,
-0.01397272665053606,
-0.045138418674468994,
-0.0009656135807745159,
-0.01425713486969471,
-0.016761766746640205,
0.001661726855672896,
-0.09548794478178024,
-0.03205561637878418,
-0.02284444496035576,
-0.07255175709724426,
-0.009513931348919868,
0.0012832797365263104,
0.059230413287878036,
0.007399214431643486,
0.016835162416100502,
-0.017504898831248283,
-0.03163359314203262,
-0.027615170925855637,
-0.03728507086634636,
0.022385720163583755,
0.004091816022992134,
-0.01563330739736557,
-0.00832583662122488,
0.0557074174284935,
-0.017110398039221764,
-0.04667973145842552,
-0.02005540393292904,
0.022238928824663162,
-0.04121174290776253,
0.0370098352432251,
0.01704617589712143,
0.03277122601866722,
-0.042753055691719055,
-0.07853351533412933,
-0.04326682537794113,
-0.00792674720287323,
0.039523642510175705,
-0.004396867472678423,
-0.041688818484544754,
0.01328464038670063,
-0.01802784390747547,
-0.03556026890873909,
-0.014174564741551876,
-0.04242277517914772,
0.0037248372100293636,
0.01811959035694599,
0.004302829038351774,
-0.005967996548861265,
0.009403837844729424,
0.046202659606933594,
-0.00031852631946094334,
-0.03174368664622307,
0.013734189793467522,
0.008307487703859806,
0.01904621161520481,
0.04374390095472336,
-0.0006582686328329146,
0.027780313044786453,
-0.008445104584097862,
-0.001446126727387309,
0.016679197549819946,
0.05728542432188988,
0.05211102217435837,
0.028587665408849716,
0.014963570050895214,
-0.06627640873193741,
-0.011064417660236359,
-0.0018555376445874572,
-0.06594613194465637,
0.09879075735807419,
0.05335875228047371,
0.01908290944993496,
-0.03223910927772522,
0.06833149492740631,
0.02794545330107212,
0.04135853797197342,
0.026330744847655296,
-0.026991307735443115,
0.026459187269210815,
0.04535860940814018,
-0.04579898342490196,
-0.03596394509077072,
0.033945560455322266,
0.011945167556405067,
-0.02170681022107601,
-0.037615351378917694,
-0.020037055015563965,
0.0352666862308979,
-0.020972851663827896,
0.06554245203733444,
-0.07684540748596191,
0.05383582413196564,
-0.026642676442861557,
-0.06605622172355652,
0.04653294011950493,
0.008972637355327606,
-0.01921135187149048,
-0.006940491031855345,
0.08381801098585129,
-0.056037697941064835,
-0.004192735534161329,
0.00680746091529727,
-0.005977171007543802,
-0.030789541080594063,
0.00498174037784338,
-0.019101258367300034,
0.019009513780474663,
0.004639991093426943,
0.05376242846250534,
-0.008123998530209064,
0.025266505777835846,
-0.01536724716424942,
-0.0012408478651195765,
-0.04954217001795769,
-0.04671642929315567,
0.08051519840955734,
-0.0321473628282547,
0.0033922623842954636,
-0.02644083835184574,
-0.04708340764045715,
-0.016972780227661133,
0.033505186438560486,
-0.017202142626047134,
0.015596608631312847,
0.0631570890545845,
0.0016215885989367962,
0.0006364792352542281,
0.03636762127280235,
0.032697830349206924,
0.01895446702837944,
-0.01842234656214714,
-0.015569085255265236,
-0.04950547218322754,
0.009770816192030907,
0.013697491958737373,
0.02205543965101242,
-0.0727352425456047,
-0.04330352693796158,
0.02572523057460785,
0.0439273901283741,
-0.04634945094585419,
0.018972815945744514,
0.04414757713675499,
-0.010816706344485283,
-0.013091976754367352,
-0.004676688928157091,
-0.04007411003112793,
-0.029193181544542313,
0.019945310428738594,
-0.057138632982969284,
0.010064399801194668,
0.03559696674346924,
-0.03405565395951271,
-0.02497292309999466,
-0.03559696674346924,
-0.0016410843236371875,
0.052808281034231186,
-0.04007411003112793,
-0.024385755881667137,
-0.026807818561792374,
-0.0009398103575222194,
-0.00872492603957653,
-0.013468130491673946,
0.020844409242272377,
0.010082748718559742,
0.0021812315098941326,
0.019009513780474663,
-0.0032523516565561295,
-0.05937720462679863,
-0.006623971275985241,
0.05156055465340614,
0.010780008509755135,
0.007091869600117207,
-0.10091923177242279,
0.1114882305264473,
0.028569316491484642,
-0.014660811983048916,
0.007945096120238304,
0.007128567434847355,
-0.02763351984322071,
-0.020477429032325745,
0.005119357258081436,
0.006688192952424288,
-0.0007219165563583374,
-0.024679340422153473,
-0.02895464561879635,
0.021321481093764305,
0.05299177020788193,
0.005371655337512493,
0.051744043827056885,
0.030092280358076096,
-0.014211262576282024,
0.009367140009999275,
-0.0493219830095768,
0.0020699910819530487,
-0.03271618112921715,
0.03787223622202873,
0.02935832180082798,
0.026495885103940964,
0.04455125331878662,
-0.03565201163291931,
-0.04902839660644531,
0.0037638286594301462,
-0.004807425197213888,
-0.01054147258400917,
-0.04047778621315956,
0.07409306615591049,
0.06612961739301682,
-0.00215829536318779,
0.02644083835184574,
0.03915666043758392,
-0.018761802464723587,
0.06723055988550186,
0.06381765007972717,
-0.03776214271783829,
0.05526703968644142,
-0.012348844669759274,
-0.04223928600549698,
-0.03816581889986992,
-0.02368849702179432,
0.030000535771250725,
-0.06253322958946228,
0.005059723276644945,
-0.03466117009520531,
0.020000357180833817,
-0.07479032874107361,
0.09622190147638321,
0.059450604021549225,
0.04954217001795769,
-0.03787223622202873,
-0.10414864867925644,
-0.061799269169569016,
-0.06785441935062408,
-0.005463400389999151,
0.03768874704837799,
0.03390886262059212,
0.0112479068338871,
0.05123027041554451,
0.051120176911354065,
-0.0030872111674398184,
0.050899989902973175,
-0.07423985749483109,
0.024459151551127434,
-0.021137991920113564,
-0.0014736501034349203,
0.03082623891532421,
-0.011146987788379192,
0.004756965674459934,
-0.04260626435279846,
-0.05919371545314789,
-0.00854602362960577,
-0.07589126378297806,
0.06557915359735489,
0.03552357107400894,
0.016881035640835762,
0.07350590080022812,
0.0246242918074131,
0.0219269972294569,
-0.03401895612478256,
0.02581697516143322,
-0.07603805512189865,
-0.011633235029876232,
0.07438664883375168,
0.011880946345627308,
-0.0005014424095861614,
-0.005825791973620653,
-0.0033555645495653152,
-0.06645990163087845,
0.012541508302092552,
0.005073484964668751,
-0.010825881734490395,
0.010000178590416908,
0.0035826326347887516,
0.023266470059752464,
-0.004456501454114914,
-0.02306463196873665,
-0.002018384635448456,
0.0026445426046848297,
-0.010110272094607353,
0.011752502992749214,
-0.023266470059752464,
0.03787223622202873,
0.054129406809806824,
0.026899563148617744,
0.02440410479903221,
0.028972994536161423,
-0.015413119457662106,
-0.011394699104130268,
0.00458494434133172,
-0.01763334311544895,
0.0013452074490487576,
0.06844159215688705,
-0.01815628819167614,
-0.014605765230953693,
0.01908290944993496,
-0.035358428955078125,
0.07192789018154144,
-0.027468379586935043,
0.017330585047602654,
-0.03710157796740532,
0.08095557242631912,
0.012229575775563717,
0.014284658245742321,
-0.005206515081226826,
0.018000321462750435,
0.05273488536477089,
0.0008698549936525524,
0.009050619788467884,
-0.0037156627513468266,
0.03627587854862213,
-0.06062493473291397,
0.046386148780584335,
-0.007179027423262596,
0.012293796986341476,
0.004277599509805441,
0.01770673878490925,
0.003752360586076975,
0.06128549575805664,
0.002752342727035284,
0.009660722687840462,
0.0018509504152461886,
-0.0027156448923051357,
-0.0010223806602880359,
-0.04770727455615997,
0.024165568873286247,
0.01073413621634245,
0.022642605006694794,
-0.0396704338490963,
0.024679340422153473,
-0.019119607284665108,
-0.010596519336104393,
-0.0337437205016613,
0.03816581889986992,
0.051303666085004807,
-0.02444080263376236,
-0.04462464898824692,
-0.045945774763822556,
-0.017468200996518135,
-0.04271635785698891,
0.014890174381434917,
-0.021394876763224602,
0.01577092334628105,
-0.0203673355281353,
0.09614850580692291,
0.02581697516143322,
-0.010036876425147057,
-0.021321481093764305,
0.0176700409501791,
0.025083016604185104,
0.018633360043168068,
0.02803719788789749,
-0.0060046943835914135,
-0.04110164940357208,
-0.0235967505723238,
0.010981847532093525,
0.023761892691254616,
0.009743292815983295,
0.03502814844250679,
-0.03304646164178848,
0.01452319510281086,
0.0001880767522379756,
-0.016550753265619278,
-0.044000785797834396,
0.04774397239089012,
-0.004302829038351774,
0.06194606050848961,
-0.016596626490354538,
-0.06150568649172783,
0.048294439911842346,
-0.0513770654797554,
-0.01151396706700325,
0.048294439911842346,
0.03842270374298096,
0.033853814005851746,
-0.003649147693067789,
-0.008445104584097862,
-0.004690450616180897,
-0.039303455501794815,
0.04946877434849739,
-0.039119962602853775,
-0.018101239576935768,
-0.0042913611978292465,
-0.036074038594961166,
0.09974490106105804,
-0.036074038594961166,
0.026459187269210815,
0.0006852186634205282,
-0.05801938474178314,
0.024771085008978844,
-0.05291837453842163,
-0.01270664855837822,
0.004889995325356722,
0.010357983410358429,
0.05123027041554451,
0.0019392548128962517,
0.019229700788855553,
-0.013844284228980541,
-0.03583550080657005,
0.06036804988980293,
-0.012624078430235386,
0.04201909899711609,
-0.019982008263468742,
0.034074001014232635,
-0.0029381257481873035,
-0.05354224145412445,
0.009059795178472996,
0.10165318846702576,
-0.00044582216651178896,
0.008142347447574139,
-0.0022397188004106283,
-0.03264278545975685,
0.009009335190057755,
0.04796415939927101,
0.001880767522379756,
-0.008701990358531475,
-0.01425713486969471,
-0.004580357111990452,
-0.09020344167947769,
0.008844194933772087,
-0.007445087190717459,
-0.0054404642432928085,
0.021358178928494453,
-0.025339901447296143,
-0.03882637992501259,
0.044881533831357956,
0.030092280358076096,
-0.020092101767659187,
0.008495564572513103,
0.04282645136117935,
0.04025759920477867,
-0.008023078553378582,
-0.03383546695113182,
-0.02080771140754223,
-0.0003827476466540247,
0.010917626321315765,
0.03409235179424286,
0.020789362490177155,
0.020128799602389336,
-0.003892271313816309,
0.05746891722083092,
0.0033647390082478523,
0.056001000106334686,
-0.011073592118918896,
0.00796803180128336,
-0.007518482860177755,
-0.009816689416766167,
-0.04414757713675499,
-0.01762416772544384,
0.07302882522344589,
0.0015906246844679117,
0.024734387174248695,
-0.03656946122646332,
-0.000328847614582628,
0.006252405233681202,
0.003681258298456669,
-0.019101258367300034,
0.038019027560949326,
0.005853315349668264,
-0.051303666085004807,
-0.02418391779065132,
0.028404176235198975,
-0.01806454174220562,
-0.016000285744667053,
0.024917876347899437,
0.02077101357281208,
-0.00872492603957653,
0.01131212804466486,
-0.014238785952329636,
-0.0203673355281353,
-0.014358054846525192,
-0.02306463196873665,
-0.012660776264965534,
0.0793408676981926,
-0.08697403222322464,
-0.0686250776052475,
0.03768874704837799,
-0.006541401147842407,
0.02431236021220684,
0.01410116907209158,
0.008665292523801327,
0.04708340764045715,
0.02945006638765335,
-0.03985392302274704,
-0.00023882306413725019,
-0.03636762127280235,
-0.002525274408981204,
-0.06668008863925934,
-0.004607880488038063,
0.03455107659101486,
0.05952399969100952,
-0.003674377454444766,
-0.05908362194895744,
-0.009880910627543926,
0.002926657674834132,
-0.04389069229364395,
0.022018741816282272,
0.05959739536046982,
0.029431717470288277,
0.006931316573172808,
0.004328059032559395,
-0.016614975407719612,
-0.02675277180969715,
-0.06987280398607254,
0.0033853815402835608,
-0.019963659346103668,
0.035982292145490646,
0.0015218161279335618,
-0.02785370871424675,
0.06891866028308868,
0.019798519089818,
-0.012991057708859444,
0.013825934380292892,
-0.04029429703950882,
-0.03423914313316345,
0.016192950308322906,
-0.027119750156998634,
0.02550504170358181,
-0.0005986345349811018,
-0.01952328346669674,
0.009096493013203144,
0.09658887982368469,
-0.024238964542746544,
0.0123304957523942,
0.04033099487423897,
-0.0663498044013977,
-0.049835752695798874,
-0.0003827476466540247,
0.009513931348919868,
-0.03405565395951271,
0.047450389713048935,
0.010330460034310818,
-0.024789433926343918,
-0.04077136889100075,
-0.005545970518141985,
-0.01763334311544895,
-0.048110950738191605,
0.009229522198438644,
-0.025266505777835846,
0.014807603321969509,
0.006472592707723379,
-0.03368867561221123,
-0.07266184687614441,
0.007128567434847355,
-0.013936028815805912,
0.00905520748347044,
0.005578081123530865,
0.03449602797627449,
0.013642445206642151,
0.011697456240653992,
0.0005992079386487603,
0.008316662162542343,
-0.005715698469430208,
-0.020752664655447006,
0.061799269169569016,
-0.0029564748983830214,
-0.003502356121316552,
0.055377136915922165,
-0.009880910627543926,
-0.048294439911842346,
0.0040895226411521435,
-0.035578615963459015,
0.010568995960056782,
-0.004500080365687609,
-0.03264278545975685,
0.026771120727062225,
0.026734422892332077,
0.060955215245485306,
-0.018917769193649292,
0.020257242023944855,
0.03223910927772522,
0.04330352693796158,
-0.007802891544997692,
0.021449923515319824,
-0.02669772505760193,
-0.0654323622584343,
0.001575716189108789,
-0.04557879641652107,
-0.04723019897937775,
-0.03157854452729225,
-0.020422382280230522,
0.03185378015041351,
-0.05442298948764801,
-0.012367193587124348,
-0.03612908348441124,
0.019688425585627556,
0.040624577552080154,
-0.06638650596141815,
0.050055939704179764,
-0.008133172988891602,
0.029064739122986794,
0.0794142633676529,
0.019725123420357704,
-0.008798321709036827,
-0.05589090660214424,
0.013523177243769169,
0.0184682197868824,
-0.023982079699635506,
-0.011440571397542953,
-0.015596608631312847,
0.015220454894006252,
-0.010165318846702576,
0.026642676442861557,
-0.003993190359324217,
-0.0018991164397448301,
0.02660597860813141,
0.03185378015041351,
-0.07306552678346634,
-0.06675348430871964,
0.01802784390747547,
-0.0578358955681324,
0.004711093381047249,
0.00872492603957653,
0.06231303885579109,
0.05908362194895744,
0.014715858735144138,
-0.06069833040237427,
-0.04715680330991745,
-0.016633324325084686,
0.022330673411488533,
0.07956105470657349,
-0.0032362963538616896,
-0.02932162396609783,
0.0015722757671028376,
0.030899634584784508,
-0.026532582938671112,
0.027615170925855637,
0.06268002092838287,
-0.05768910422921181,
0.06539566069841385,
-0.08477215468883514,
-0.04484483599662781,
0.021064596250653267,
0.003961079753935337,
-0.019945310428738594,
-0.0008589602657593787,
0.006224881857633591,
0.06668008863925934,
-0.006422133184969425,
-0.03392720967531204,
-0.04774397239089012,
-0.008743274956941605,
0.034294191747903824,
-0.05082659423351288,
0.02546834386885166,
-0.023138027638196945,
0.03135835751891136,
0.008123998530209064,
-0.037266720086336136,
0.05082659423351288,
-0.02086275815963745,
0.02422061562538147,
-0.020844409242272377,
0.015789272263646126,
0.025174761191010475,
0.014376403763890266,
-0.010614868253469467,
0.025009620934724808,
-0.01851409114897251,
0.008114824071526527,
-0.002752342727035284,
-0.010780008509755135,
0.010743310675024986,
-0.00229247217066586,
-0.05075319856405258,
-0.008532262407243252,
-0.0006359058315865695,
0.044881533831357956,
0.03537677973508835,
-0.004935868084430695,
0.015358072705566883,
-0.022642605006694794,
-0.020697617903351784,
0.05567071959376335,
0.010559821501374245,
0.0012695180485025048,
-0.04245947301387787,
0.011477269232273102,
-0.0492485836148262,
-0.0481843464076519,
0.07809313386678696,
0.03174368664622307,
-0.023009585216641426,
0.034863006323575974,
-0.06557915359735489,
0.003431253833696246,
-0.04495492950081825,
0.052588094025850296,
0.050276126712560654,
-0.011376350186765194,
-0.06701037287712097,
0.05053301155567169,
0.008422168903052807,
-0.01740398071706295,
-0.039119962602853775,
-0.024862829595804214,
-0.05060640722513199,
0.030000535771250725,
-0.04161542281508446,
0.01222040131688118,
-0.01018366776406765,
0.0008302900241687894,
0.009743292815983295,
0.0012970415409654379,
-0.010211191140115261
] |
725,098 | tf_keras.src.engine.functional | _get_save_spec | null | def _get_save_spec(self, dynamic_batch=True, inputs_only=True):
if getattr(self, "_has_explicit_input_shape", True):
# Functional models and Sequential models that have an explicit
# input shape should use the batch size set by the input layer.
dynamic_batch = False
return super()._get_save_spec(dynamic_batch, inputs_only)
| (self, dynamic_batch=True, inputs_only=True) | [
0.053024835884571075,
-0.04618406668305397,
-0.028426416218280792,
0.02087675780057907,
-0.03700396418571472,
0.006840771064162254,
-0.04260418191552162,
0.028692249208688736,
0.03998129442334175,
-0.01301695965230465,
0.0322544127702713,
-0.015374013222754002,
-0.06543038040399551,
-0.02403130941092968,
0.03220124542713165,
0.008488936349749565,
0.033796243369579315,
-0.021886922419071198,
-0.009605434723198414,
-0.022471755743026733,
0.03555074334144592,
-0.010420656763017178,
-0.06504049152135849,
0.012494154274463654,
0.04235607013106346,
0.061779607087373734,
0.01672976091504097,
-0.008045881055295467,
0.042994070798158646,
0.02069953642785549,
-0.02688458561897278,
0.0021310951560735703,
0.07099515199661255,
0.04930317401885986,
0.00005922401032876223,
-0.009791518561542034,
-0.007784478832036257,
0.10073301196098328,
-0.05213872715830803,
-0.04777906462550163,
0.002072390401735902,
-0.016472790390253067,
0.051146283745765686,
0.018448814749717712,
-0.019494425505399704,
0.033193688839673996,
-0.02665419690310955,
0.013858764432370663,
-0.02465158700942993,
0.01880325935781002,
0.004073891788721085,
-0.013397987000644207,
-0.02816058322787285,
0.05355650559067726,
-0.0716685950756073,
-0.0504019521176815,
0.005954660940915346,
-0.0036884339060634375,
-0.022861644625663757,
-0.021337535232305527,
-0.029826471582055092,
-0.0013003668282181025,
0.0435611791908741,
-0.07209393382072449,
-0.027664361521601677,
-0.054548949003219604,
-0.027540307492017746,
-0.03220124542713165,
-0.00029047802672721446,
0.054726168513298035,
-0.05118172988295555,
-0.06982548534870148,
0.023800920695066452,
0.04738917574286461,
-0.02683141827583313,
-0.06302016228437424,
0.01771334372460842,
-0.025785809382796288,
0.0379609651863575,
-0.049196843057870865,
-0.0028909347020089626,
0.014399291947484016,
-0.02968469448387623,
-0.007531937211751938,
-0.011147267185151577,
-0.03439880162477493,
0.038598962128162384,
0.025342753157019615,
0.02980874851346016,
-0.04409284517168999,
0.012006794102489948,
0.05419450253248215,
0.06805326789617538,
0.036720409989356995,
0.026423808187246323,
0.005830605514347553,
-0.04288773611187935,
-0.037819184362888336,
0.01092573907226324,
-0.01848425902426243,
-0.08067147433757782,
-0.035993799567222595,
-0.021195758134126663,
0.008683880791068077,
-0.004855884239077568,
-0.004705245606601238,
0.022790756076574326,
-0.058447834104299545,
-0.07170404493808746,
-0.012582765892148018,
0.03220124542713165,
0.022294534370303154,
-0.01771334372460842,
0.028922637924551964,
0.013273932039737701,
-0.0011164989555254579,
0.02245403453707695,
0.018271593376994133,
0.006056563463062048,
-0.02963152714073658,
-0.0657493844628334,
0.054548949003219604,
-0.05125261843204498,
-0.023641422390937805,
0.049196843057870865,
0.04030029475688934,
0.053450170904397964,
0.038669850677251816,
0.04866517707705498,
-0.002352622803300619,
0.013176459819078445,
-0.00573756406083703,
-0.018236149102449417,
0.037996407598257065,
-0.004109336528927088,
0.02032736875116825,
-0.021461591124534607,
0.004355231765657663,
-0.0055248974822461605,
0.012706820853054523,
0.027274474501609802,
0.02232997864484787,
0.04391562566161156,
0.018909592181444168,
-0.052953947335481644,
0.016472790390253067,
0.02178058959543705,
-0.05518694594502449,
-0.017872843891382217,
-0.006131882779300213,
0.005578063894063234,
0.033317744731903076,
-0.04643217846751213,
-0.019919758662581444,
-0.022259090095758438,
0.009747212752699852,
-0.018165260553359985,
-0.05440716817975044,
0.035993799567222595,
-0.034540578722953796,
-0.06706082075834274,
-0.016694316640496254,
0.011856155470013618,
-0.013832180760800838,
-0.015187929384410381,
0.011182711459696293,
-0.025821253657341003,
-0.029046693816781044,
0.02525414153933525,
0.027965638786554337,
0.0287276953458786,
0.03030497021973133,
0.04629040136933327,
-0.028550472110509872,
0.018820982426404953,
0.08109681308269501,
0.03571024164557457,
-0.03413296863436699,
0.0027137126307934523,
0.07017993181943893,
0.0674152672290802,
-0.007093312684446573,
-0.0013967312406748533,
0.01958303712308407,
0.011147267185151577,
0.025059198960661888,
-0.06355182826519012,
0.009880129247903824,
-0.0043818154372274876,
0.0379609651863575,
-0.02002609148621559,
0.09754301607608795,
0.0013479952467605472,
0.012405543588101864,
-0.0182007048279047,
-0.026140252128243446,
0.029826471582055092,
0.021709701046347618,
-0.01922859251499176,
0.02002609148621559,
-0.014204347506165504,
-0.045049846172332764,
0.00186304678209126,
-0.004953356459736824,
-0.045475177466869354,
0.030801191926002502,
0.008426908403635025,
-0.03390257805585861,
-0.05812883377075195,
-0.03863440826535225,
-0.09938612580299377,
-0.015223374590277672,
0.001599429058842361,
0.012042238377034664,
0.09045413136482239,
-0.031120192259550095,
-0.021816033869981766,
-0.00567553611472249,
-0.04540428891777992,
-0.014408152550458908,
0.07379525899887085,
0.026601029559969902,
0.01977798156440258,
-0.012768848799169064,
0.03902429714798927,
-0.023198366165161133,
0.012184016406536102,
-0.029188470914959908,
-0.01903364807367325,
0.0009653063607402146,
-0.03345952183008194,
0.027593472972512245,
0.009490241296589375,
0.0490550622344017,
-0.0041337041184306145,
0.060078274458646774,
-0.00916238036006689,
-0.10186723619699478,
0.06947104632854462,
-0.0038612254429608583,
-0.03789007291197777,
0.009490241296589375,
-0.030623970553278923,
-0.05391094833612442,
-0.034416522830724716,
0.009658602066338062,
0.029064416885375977,
0.0563211664557457,
-0.01502843014895916,
-0.025413641706109047,
0.030872080475091934,
-0.013495459221303463,
-0.014620819129049778,
0.04944495111703873,
0.0066502573899924755,
0.038244519382715225,
-0.03161641210317612,
-0.04281684756278992,
0.007243951316922903,
0.016198094934225082,
-0.04370295628905296,
0.10739656537771225,
-0.02628203108906746,
0.06216949597001076,
-0.011147267185151577,
-0.06312649697065353,
-0.0018065572949126363,
0.0287808608263731,
-0.051926061511039734,
0.05444261431694031,
0.007137618027627468,
0.07578014582395554,
-0.06645826995372772,
-0.05228050425648689,
0.030163193121552467,
-0.03262658044695854,
0.005684397183358669,
0.01612720638513565,
0.005471730604767799,
-0.026849141344428062,
0.004665370564907789,
-0.047849953174591064,
0.06893938034772873,
0.015187929384410381,
0.005897063761949539,
-0.048098064959049225,
0.006198341026902199,
-0.03852807357907295,
-0.003535579890012741,
-0.036791298538446426,
-0.025449085980653763,
0.050295617431402206,
0.022790756076574326,
0.0009043862810358405,
-0.07117237895727158,
-0.040867406874895096,
0.01076623983681202,
-0.06085805222392082,
0.0231274776160717,
0.00882565788924694,
-0.011953627690672874,
0.03618874400854111,
-0.012892904691398144,
0.031013859435915947,
0.02513008750975132,
-0.06706082075834274,
0.004118197597563267,
-0.04685750976204872,
-0.020274203270673752,
0.014168903231620789,
-0.04398651421070099,
0.007403451018035412,
0.012130849063396454,
0.02890491671860218,
0.01612720638513565,
-0.013105570338666439,
0.0394141860306263,
0.01607404090464115,
0.04629040136933327,
0.1052699014544487,
-0.0055337585508823395,
0.021816033869981766,
-0.016091762110590935,
-0.010332045145332813,
-0.06677726656198502,
-0.0365077443420887,
0.023021144792437553,
0.005126147996634245,
-0.06893938034772873,
0.04267507046461105,
-0.01625126227736473,
-0.011856155470013618,
0.03546213358640671,
0.03675585240125656,
-0.020717257633805275,
0.018962759524583817,
0.029915081337094307,
-0.017048761248588562,
0.02780614048242569,
-0.04005218297243118,
0.02980874851346016,
-0.01487779151648283,
0.0015573387499898672,
0.007500923238694668,
-0.016924705356359482,
-0.011164989322423935,
0.04278140142560005,
-0.013238486833870411,
-0.017128510400652885,
0.029560638591647148,
-0.04370295628905296,
-0.025697197765111923,
0.0143638476729393,
0.007323701400309801,
0.012972653843462467,
0.023712310940027237,
-0.03011002577841282,
0.033317744731903076,
-0.02245403453707695,
-0.032697468996047974,
0.039095185697078705,
0.0036529896315187216,
0.02335786633193493,
0.050472840666770935,
0.046822067350149155,
0.04820439964532852,
0.024970587342977524,
-0.0015374013455584645,
0.013770153746008873,
-0.02550225332379341,
-0.03845718502998352,
-0.019565314054489136,
0.00291308737359941,
-0.024438921362161636,
-0.01396509725600481,
0.06971915811300278,
-0.07875747978687286,
-0.006694563198834658,
0.013796736486256123,
-0.00751421507447958,
0.0033938023261725903,
0.014806902036070824,
0.0038435033056885004,
0.02220592275261879,
0.029915081337094307,
-0.03156324848532677,
-0.03973318263888359,
-0.029223917052149773,
0.0007725773612037301,
-0.057349056005477905,
0.03244935721158981,
0.0007354714907705784,
-0.05596672371029854,
0.002715928014367819,
-0.011723238974809647,
-0.03517857566475868,
0.010686489753425121,
0.06932926923036575,
-0.01490437425673008,
0.04753095284104347,
-0.04306495934724808,
-0.062275830656290054,
0.021514756605029106,
0.04575873538851738,
-0.019210869446396828,
-0.017066484317183495,
0.006052133161574602,
0.0575617216527462,
-0.029223917052149773,
0.030748026445508003,
0.029560638591647148,
0.010021907277405262,
-0.025573141872882843,
0.041469961404800415,
0.03145691379904747,
0.051926061511039734,
-0.03326457738876343,
-0.006517340894788504,
0.012396682053804398,
0.021550200879573822,
0.049019619822502136,
0.1066167876124382,
0.03473552316427231,
0.040123071521520615,
0.06110616400837898,
0.055222392082214355,
-0.033796243369579315,
0.06791149079799652,
-0.01686267741024494,
0.044695399701595306,
-0.027487140148878098,
-0.015125902369618416,
-0.07035715132951736,
0.012875181622803211,
-0.013991680927574635,
0.006162896752357483,
0.05933394283056259,
-0.04171806946396828,
-0.059121277183294296,
0.042497847229242325,
0.014992985874414444,
-0.015719596296548843,
0.010420656763017178,
0.05394639074802399,
-0.007487631868571043,
-0.028550472110509872,
-0.0007399020832963288,
0.052847616374492645,
-0.015657568350434303,
-0.013823320157825947,
0.0321480818092823,
-0.03742929548025131,
0.03583429753780365,
-0.02853275090456009,
0.02785930596292019,
-0.0435611791908741,
0.08159302920103073,
-0.014115736819803715,
-0.04983483999967575,
-0.07120782136917114,
0.0010572402970865369,
0.03838629648089409,
-0.013353681191802025,
-0.007660422939807177,
0.03693307563662529,
-0.056250277906656265,
-0.01049154531210661,
0.0023415463510900736,
-0.015843652188777924,
0.039095185697078705,
0.040725626051425934,
0.02860363945364952,
0.0019018141319975257,
-0.019264036789536476,
-0.03742929548025131,
0.00043336331145837903,
0.046396732330322266,
0.06060994043946266,
-0.010597879067063332,
-0.02550225332379341,
0.017110789194703102,
-0.023836364969611168,
-0.08627169579267502,
0.03271519020199776,
0.03439880162477493,
-0.0036707117687910795,
-0.06341005116701126,
-0.008852241560816765,
-0.028922637924551964,
0.037322964519262314,
0.010119379498064518,
0.026671918109059334,
0.0685494914650917,
-0.006490757688879967,
-0.012635932303965092,
-0.04143451526761055,
0.04448273405432701,
0.010571295395493507,
0.05603761225938797,
0.05316661670804024,
0.006743298843502998,
0.004784995224326849,
-0.004705245606601238,
0.0068850768730044365,
-0.028089694678783417,
-0.016951289027929306,
-0.04154084995388985,
-0.020114703103899956,
-0.06263027340173721,
0.015684152022004128,
-0.04721195623278618,
0.011315627954900265,
-0.0028754277154803276,
0.05281217023730278,
0.030872080475091934,
-0.04604228958487511,
0.06613926589488983,
0.006920521147549152,
0.019990647211670876,
0.03966229408979416,
0.025714918971061707,
-0.00885667186230421,
-0.05128806084394455,
-0.07542570680379868,
0.027735251933336258,
0.022436311468482018,
-0.008267408236861229,
-0.011457405984401703,
0.08612991869449615,
0.0032298718579113483,
0.05231595039367676,
0.017669038847088814,
0.06613926589488983,
0.10356856882572174,
-0.03156324848532677,
-0.03328230232000351,
0.04820439964532852,
0.010287740267813206,
-0.019494425505399704,
-0.011678933165967464,
-0.03606468811631203,
-0.007186354137957096,
0.043100401759147644,
0.022418590262532234,
0.026636473834514618,
0.02707953006029129,
0.03055308200418949,
0.005250203423202038,
-0.006428729742765427,
-0.03340635821223259,
-0.04660939797759056,
-0.011918182484805584,
0.01818298175930977,
-0.007797770202159882,
0.03618874400854111,
-0.014532208442687988,
0.058447834104299545,
0.019512148573994637,
-0.0364014096558094,
0.020433703437447548,
-0.02658330835402012,
-0.01880325935781002,
0.025821253657341003,
-0.007368006743490696,
-0.00447485689073801,
0.026423808187246323,
-0.04994117468595505,
0.02087675780057907,
-0.05830605328083038,
0.018962759524583817,
0.015152485109865665,
0.05142983794212341,
0.010908016934990883,
-0.009747212752699852,
0.007438895758241415,
-0.024722475558519363,
-0.0022684421855956316,
0.01660570688545704,
-0.048700619488954544,
0.008085755631327629,
0.0224008671939373,
0.03232530131936073,
0.02427942119538784,
0.034593746066093445,
0.014629680663347244,
-0.05603761225938797,
0.007336992770433426,
-0.021372979506850243,
-0.06128338351845741,
0.005640091840177774,
0.000865065143443644,
0.04976395145058632,
-0.0067876046523451805,
-0.04799173027276993,
0.008931991644203663,
-0.005086272954940796,
-0.035745687782764435,
-0.03448741137981415,
-0.030748026445508003,
-0.05398183688521385,
-0.033016469329595566,
0.028993528336286545,
0.015196790918707848,
0.06138971820473671,
0.0379609651863575,
-0.06291382759809494,
-0.04370295628905296,
0.04320673644542694,
-0.019618481397628784,
-0.012609348632395267,
-0.03778374195098877,
-0.000896632787771523,
-0.01848425902426243,
-0.06418982893228531,
-0.021514756605029106,
0.015037290751934052,
-0.023836364969611168,
0.0017334532458335161,
0.05848327651619911,
-0.07230659574270248,
0.020841313526034355,
0.0027668792754411697,
-0.013052403926849365,
-0.0041337041184306145,
-0.0644024908542633,
0.0037105868104845285,
-0.01564870774745941,
-0.027788417413830757,
0.007266104221343994,
-0.05511605739593506,
0.03718118742108345,
0.012024516239762306,
0.04944495111703873,
-0.029046693816781044,
0.07769414782524109,
-0.03700396418571472,
-0.0633746087551117,
0.02440347708761692,
-0.012981515377759933,
0.018448814749717712,
0.008369311690330505,
0.010358628816902637,
-0.022914811968803406,
-0.024846531450748444,
-0.029099861159920692,
-0.02220592275261879,
0.025750363245606422,
-0.010845989920198917,
0.06302016228437424,
-0.005316661670804024,
-0.05252861604094505,
0.023924976587295532,
-0.000783099967520684,
-0.05944027751684189,
0.062027718871831894,
0.00718192383646965,
0.008254117332398891,
-0.04373840242624283,
0.010651045478880405,
-0.06702537834644318,
-0.03415068984031677,
-0.01910453662276268,
-0.00535210594534874,
0.024775642901659012,
-0.01928175985813141,
0.02980874851346016,
-0.058199722319841385,
-0.0634809359908104,
0.030163193121552467,
-0.05603761225938797,
-0.0575617216527462,
-0.02160336822271347,
-0.030694859102368355,
-0.05384005978703499,
-0.015125902369618416,
-0.024970587342977524,
0.008382602594792843,
0.025519974529743195,
0.022666700184345245,
-0.022897088900208473,
-0.0032852538861334324,
-0.04540428891777992,
-0.027416251599788666,
0.040548406541347504,
0.03470007702708244,
-0.04855884239077568,
-0.020061535760760307,
0.01372584793716669,
0.03643685206770897,
0.04370295628905296,
0.03436335548758507,
-0.004034016747027636,
0.030287249013781548,
-0.038492631167173386,
0.0021144805941730738,
-0.0730154886841774,
-0.006269230041652918,
0.025892142206430435,
-0.00168139417655766,
0.023960420861840248,
-0.016393039375543594,
-0.028975805267691612,
-0.05181972682476044,
-0.008413616567850113,
0.012768848799169064,
0.06379994004964828,
-0.08790213614702225,
0.011891599744558334,
-0.03250252455472946,
-0.01735003851354122,
0.025661753490567207,
0.042072515934705734,
0.021195758134126663,
-0.017491815611720085,
-0.043171290308237076,
0.008249686099588871,
0.02513008750975132,
0.040796514600515366,
0.000060573944210773334,
-0.016331011429429054,
-0.007376867812126875,
0.008099047467112541,
-0.018537426367402077,
-0.0067300074733793736,
-0.05054372921586037,
-0.0031545525416731834,
-0.03108474798500538,
-0.032768357545137405,
0.08393236249685287,
0.014842347241938114,
0.06064538657665253,
-0.0322544127702713,
-0.034221578389406204,
0.0032298718579113483,
0.045120734721422195,
0.02500603161752224,
0.0321480818092823,
-0.05384005978703499,
-0.0007974992040544748,
-0.05695916712284088,
0.026317475363612175,
0.03827996179461479,
-0.036046966910362244,
0.05763261020183563,
-0.029064416885375977,
0.013477737084031105,
0.057703498750925064,
0.012635932303965092,
-0.0025231989566236734,
-0.06121249496936798,
0.025271864607930183,
0.019441258162260056,
0.025590864941477776,
-0.008816797286272049,
0.05812883377075195,
-0.00036108994390815496,
-0.0028399834409356117,
-0.03278607875108719,
-0.031244248151779175,
0.0013513180892914534,
-0.01832476072013378,
-0.04058384895324707,
0.025466809049248695,
0.008307283744215965,
0.02798336185514927,
0.0012361238477751613,
0.007248382084071636,
-0.001213971059769392
] |
725,102 | tf_keras.src.engine.functional | _graph_network_add_loss | null | def _graph_network_add_loss(self, symbolic_loss):
new_nodes, new_layers = _map_subgraph_network(
self.inputs, [symbolic_loss]
)
# Losses must be keyed on inputs no matter what in order to be supported
# in DistributionStrategy.
add_loss_layer = base_layer.AddLoss(
unconditional=False, dtype=symbolic_loss.dtype
)
add_loss_layer(symbolic_loss)
new_nodes.extend(add_loss_layer.inbound_nodes)
new_layers.append(add_loss_layer)
self._insert_layers(new_layers, new_nodes)
| (self, symbolic_loss) | [
-0.06680051982402802,
-0.01587909832596779,
0.0018276683986186981,
0.07322901487350464,
-0.008240885101258755,
0.007948283106088638,
-0.0529303252696991,
-0.010420111939311028,
0.07930814474821091,
-0.003967590630054474,
-0.02981916442513466,
-0.01308409683406353,
0.003718661144375801,
-0.026255536824464798,
-0.013992472551763058,
0.055026575922966,
0.012594971805810928,
0.017215456813573837,
-0.038885448127985,
-0.021399224177002907,
-0.013739175163209438,
-0.03502485156059265,
-0.018918661400675774,
-0.012289268895983696,
-0.023984599858522415,
0.0355139784514904,
-0.01622847281396389,
0.006118431221693754,
-0.05017026141285896,
-0.04433569684624672,
-0.009206033311784267,
-0.07937801629304886,
-0.01368676871061325,
-0.018062692135572433,
-0.0005808360874652863,
0.058380577713251114,
-0.03126906976103783,
0.010489987209439278,
-0.010848096571862698,
0.030133601278066635,
0.008900330401957035,
0.031426288187503815,
0.0390251986682415,
0.04884263873100281,
0.04248401150107384,
0.02145162969827652,
-0.027356069535017014,
0.03067513182759285,
-0.025347162038087845,
-0.043008074164390564,
-0.055166326463222504,
-0.01483097206801176,
0.03616032004356384,
0.011546846479177475,
0.027513287961483,
0.002869242802262306,
0.04227438569068909,
0.005384743679314852,
0.018621692433953285,
-0.03326050937175751,
0.019687285646796227,
-0.009459330700337887,
-0.04531394690275192,
-0.03630007058382034,
0.008376267738640308,
-0.01794041134417057,
-0.0633067637681961,
-0.042728573083877563,
0.037138570100069046,
0.016682660207152367,
0.005616204347461462,
-0.012760925106704235,
-0.02265697345137596,
-0.02660491317510605,
-0.010280362330377102,
-0.030779944732785225,
0.05834563821554184,
-0.08203326910734177,
0.015005660243332386,
0.021783536300063133,
-0.007411119062453508,
-0.04803907498717308,
-0.038291510194540024,
0.07127251476049423,
-0.016700129956007004,
-0.019757160916924477,
0.024840569123625755,
-0.009206033311784267,
-0.03153110295534134,
-0.029696881771087646,
-0.012053440324962139,
-0.0157917533069849,
-0.009607815183699131,
0.016796207055449486,
0.022639505565166473,
-0.01248142495751381,
-0.02901560068130493,
-0.06645113974809647,
0.0760938972234726,
-0.012673581019043922,
0.02286659926176071,
0.010603534057736397,
-0.03189794719219208,
0.047445137053728104,
0.017625972628593445,
-0.03811682015657425,
0.02746088244020939,
-0.03165338188409805,
-0.04024801030755043,
-0.007105415686964989,
-0.002198879374191165,
0.031496163457632065,
-0.007860939018428326,
-0.03518206998705864,
-0.020490849390625954,
0.01072581484913826,
0.03616032004356384,
-0.006197040434926748,
-0.005904438905417919,
0.04440557211637497,
-0.01821991056203842,
0.009887315332889557,
0.028054818511009216,
0.03675425797700882,
-0.005681712180376053,
-0.007795431651175022,
0.03058778867125511,
-0.04842338711023331,
0.03961913660168648,
-0.06334169954061508,
-0.011712799780070782,
0.016752535477280617,
-0.008585892617702484,
0.06491389125585556,
-0.026482632383704185,
-0.05003051087260246,
-0.06414526700973511,
0.047515012323856354,
0.007179657928645611,
0.01787053607404232,
0.013747910037636757,
-0.027827724814414978,
-0.010594799183309078,
-0.0003278121002949774,
-0.02459600567817688,
-0.0029937077779322863,
-0.06142013892531395,
-0.0073456112295389175,
0.015075534582138062,
-0.041435886174440384,
0.006821548566222191,
-0.000422252545831725,
-0.05520126223564148,
0.05904439091682434,
-0.03502485156059265,
0.04734032601118088,
-0.013241316191852093,
0.017460020259022713,
0.03588082268834114,
0.02001919224858284,
-0.00019365751359146088,
-0.0534893274307251,
0.024613475427031517,
-0.038885448127985,
-0.057157762348651886,
-0.040352821350097656,
0.07798051834106445,
-0.0012490159133449197,
-0.016394425183534622,
0.03616032004356384,
0.02022881805896759,
-0.06012745201587677,
0.05397845059633255,
0.05153282359242439,
0.001460824627429247,
-0.011739002540707588,
0.047445137053728104,
0.038605947047472,
0.00784783810377121,
0.009799971245229244,
0.04161057248711586,
-0.008773681707680225,
-0.028613818809390068,
0.008083665743470192,
-0.010682143270969391,
-0.0015306995483115315,
-0.02559172548353672,
-0.0016540726646780968,
-0.01515414472669363,
-0.008035627193748951,
0.028334319591522217,
0.03895532339811325,
0.02573147416114807,
0.010175549425184727,
0.025574255734682083,
0.0049873292446136475,
-0.003489383729174733,
0.0467463880777359,
-0.027356069535017014,
0.06225864216685295,
-0.029137881472706795,
0.010123142972588539,
-0.015293894335627556,
0.01515414472669363,
0.003404223592951894,
-0.04559344798326492,
-0.05261588841676712,
0.033417727798223495,
-0.060092516243457794,
-0.04024801030755043,
-0.005079040303826332,
0.03696388378739357,
0.048143886029720306,
0.0470258854329586,
-0.014490331523120403,
-0.034570664167404175,
-0.07979726791381836,
0.04367188736796379,
0.04496457427740097,
-0.060022640973329544,
-0.05055457353591919,
-0.028840912505984306,
-0.06072138994932175,
0.0018309438601136208,
-0.014097284525632858,
-0.008764947764575481,
0.06652101874351501,
0.013136503286659718,
0.03839632123708725,
0.05453745275735855,
-0.012446487322449684,
0.012560034170746803,
-0.04017813503742218,
-0.04038776084780693,
0.04796919971704483,
0.043217699974775314,
-0.017285332083702087,
-0.024264099076390266,
0.07993701845407486,
0.05062444880604744,
-0.07476627081632614,
-0.06557770073413849,
-0.04692107439041138,
-0.017625972628593445,
0.025556787848472595,
0.04091182351112366,
0.0027775319758802652,
0.05090394988656044,
-0.03755782172083855,
0.06742939352989197,
0.011634190566837788,
-0.010175549425184727,
0.0077386582270264626,
0.0194427240639925,
-0.0009826173773035407,
-0.038850508630275726,
-0.07176164537668228,
-0.04569826275110245,
0.014237035065889359,
-0.0384661965072155,
-0.026412757113575935,
0.08685464411973953,
-0.05911426618695259,
0.050938889384269714,
-0.030867289751768112,
-0.02646516263484955,
0.00018683378584682941,
0.03336532041430473,
0.05338451266288757,
0.01344220619648695,
0.020001724362373352,
0.0787491425871849,
-0.02489297464489937,
-0.01358195673674345,
0.04831857606768608,
0.014621347188949585,
-0.018481941893696785,
0.07246039062738419,
0.0226744432002306,
-0.0005240626051090658,
0.049576323479413986,
-0.0006245079566724598,
-0.006144634447991848,
-0.0038060047663748264,
-0.027548225596547127,
0.05492176488041878,
0.010559861548244953,
-0.04845832288265228,
-0.029137881472706795,
-0.04803907498717308,
-0.0062014078721404076,
0.061524953693151474,
0.06250320374965668,
0.07455664128065109,
0.012918143533170223,
0.025504380464553833,
-0.03254428878426552,
0.061245452612638474,
-0.0050222668796777725,
0.04926188662648201,
0.04845832288265228,
-0.0067342049442231655,
0.008013791404664516,
-0.04318276047706604,
-0.07588426768779755,
-0.07944789528846741,
0.034430913627147675,
0.05191713944077492,
-0.009773768484592438,
0.02043844200670719,
0.0037448641378432512,
0.0313040092587471,
-0.00014780204219277948,
0.0376276969909668,
0.031426288187503815,
-0.03919988498091698,
-0.0033583680633455515,
-0.05733245238661766,
0.012088377960026264,
0.04695601016283035,
-0.025714006274938583,
-0.0273735374212265,
-0.05024013668298721,
-0.027338599786162376,
-0.03390685096383095,
0.0005682804039679468,
0.06313207745552063,
-0.017285332083702087,
0.011992299929261208,
0.00037885361234657466,
0.021556442603468895,
-0.06673064082860947,
-0.020141473039984703,
-0.009424393065273762,
-0.04583800956606865,
-0.010559861548244953,
0.007175290957093239,
-0.040422696620225906,
0.009913518093526363,
-0.03367975726723671,
-0.023041287437081337,
0.04175032302737236,
-0.020403504371643066,
0.02045591175556183,
0.04262376204133034,
-0.05956845358014107,
-0.03287619724869728,
-0.007782330270856619,
-0.09656727313995361,
0.04824870079755783,
-0.05527113750576973,
0.03933963552117348,
-0.07777089625597,
0.002397586591541767,
0.04503444954752922,
0.05911426618695259,
0.003325614146888256,
0.015678206458687782,
-0.001892084488645196,
-0.04538382217288017,
0.03081488236784935,
0.014306909404695034,
0.026936819776892662,
0.025329694151878357,
0.008642666041851044,
0.01405361294746399,
0.05541088804602623,
-0.008428674191236496,
0.033138226717710495,
-0.05069432407617569,
0.006183939054608345,
-0.023757506161928177,
0.027146443724632263,
0.051008760929107666,
-0.05425795167684555,
-0.00044490734580904245,
0.007432954851537943,
-0.04063232243061066,
0.02938244491815567,
-0.044650137424468994,
0.004480735398828983,
-0.013494612649083138,
-0.03236960247159004,
0.01622847281396389,
0.07588426768779755,
-0.007070478517562151,
0.06763901561498642,
-0.0376276969909668,
0.03745301067829132,
-0.03287619724869728,
0.01104025263339281,
-0.004729665350168943,
0.0904182717204094,
0.03605550900101662,
-0.02974928915500641,
-0.04685119912028313,
0.0172678641974926,
0.020490849390625954,
-0.023932192474603653,
-0.006537681445479393,
-0.027984945103526115,
-0.013162706047296524,
-0.0003158023173455149,
0.024630943313241005,
-0.0000842730951262638,
-0.043427322059869766,
-0.053594138473272324,
0.0918157696723938,
-0.0010372073156759143,
0.03294606879353523,
-0.051078636199235916,
0.04080700874328613,
-0.03247441351413727,
-0.0047689699567854404,
0.009686424396932125,
-0.02552185021340847,
0.07483614236116409,
-0.02194075472652912,
0.005507024936378002,
-0.008695072494447231,
0.008734377101063728,
0.009389455430209637,
0.011747737415134907,
0.0374879464507103,
-0.0067560407333076,
-0.021608849987387657,
-0.035636257380247116,
0.011276081204414368,
-0.08517764508724213,
0.012935612350702286,
-0.009441861882805824,
0.004365005064755678,
0.05677345022559166,
-0.0548868253827095,
0.021905817091464996,
-0.05037988722324371,
0.021119723096489906,
-0.030640194192528725,
-0.011564315296709538,
0.007725556381046772,
0.0036771728191524744,
0.00195868406444788,
0.008699439465999603,
0.03058778867125511,
-0.012001033872365952,
-0.009668955579400063,
-0.0063018533401191235,
0.0050615714862942696,
-0.010123142972588539,
0.008293291553854942,
-0.0391649454832077,
-0.0384661965072155,
0.04209969937801361,
0.06690532714128494,
-0.03032575733959675,
0.019844504073262215,
-0.0016038500471040606,
-0.09314339607954025,
-0.03174072504043579,
0.03766263276338577,
-0.043427322059869766,
0.041505761444568634,
-0.02145162969827652,
0.06662582606077194,
-0.03182807192206383,
-0.023355724290013313,
0.06564757972955704,
-0.029644476249814034,
0.006236345507204533,
0.03326050937175751,
0.026552505791187286,
-0.012394080869853497,
0.03752288594841957,
-0.07798051834106445,
-0.017791926860809326,
-0.05789145082235336,
0.03381950780749321,
0.007210228126496077,
-0.006441602949053049,
0.00019311161304358393,
0.04524407535791397,
0.0012599339243024588,
-0.03118172660470009,
-0.028054818511009216,
0.01784433238208294,
0.11096152663230896,
0.022429879754781723,
-0.0017359574558213353,
0.013905128464102745,
0.03616032004356384,
-0.04552357271313667,
-0.028072288259863853,
0.006459071766585112,
0.007502830121666193,
-0.018062692135572433,
0.0069176265969872475,
-0.02574894391000271,
0.01243775337934494,
0.07993701845407486,
-0.018202442675828934,
-0.02508513070642948,
-0.010586065240204334,
-0.08853164315223694,
0.013136503286659718,
0.008533486165106297,
0.041435886174440384,
-0.031426288187503815,
0.044370636343955994,
0.00031744001898914576,
0.011931159533560276,
0.021119723096489906,
0.023111162707209587,
0.04796919971704483,
0.06089607626199722,
0.013040425255894661,
-0.021766068413853645,
-0.00845050998032093,
0.044789884239435196,
0.050938889384269714,
0.018604222685098648,
0.013634363189339638,
0.011232408694922924,
0.010358971543610096,
-0.05652888864278793,
0.003543973434716463,
0.004048383794724941,
-0.05628432705998421,
-0.020997442305088043,
0.04699094966053963,
-0.008529119193553925,
0.0024827467277646065,
0.05439770221710205,
0.01211458072066307,
-0.002834305400028825,
-0.009861111640930176,
0.036998823285102844,
0.08699439465999603,
0.007079212460666895,
-0.08510777354240417,
-0.05341945216059685,
-0.04824870079755783,
-0.009485533460974693,
0.0066992673091590405,
-0.021573912352323532,
-0.056738514453172684,
0.06547289341688156,
-0.001436805003322661,
0.009162361733615398,
-0.05946363881230354,
-0.0711677074432373,
-0.06536807864904404,
0.06501870602369308,
-0.03376710042357445,
0.004146645776927471,
0.0929337739944458,
-0.011319752782583237,
-0.04845832288265228,
0.0342562273144722,
-0.0393046960234642,
0.04863301292061806,
-0.025486912578344345,
-0.06110570207238197,
0.04898238554596901,
0.010489987209439278,
-0.018848786130547523,
-0.026709726080298424,
-0.04954138770699501,
-0.0157917533069849,
0.01659531705081463,
0.05534101277589798,
0.022499755024909973,
-0.007970118895173073,
0.010271627455949783,
-0.03546157106757164,
-0.029295101761817932,
-0.015494785271584988,
0.020490849390625954,
0.015783019363880157,
0.01650797203183174,
0.015608332119882107,
-0.00813607219606638,
0.02644769474864006,
-0.00910995528101921,
0.0751156434416771,
0.015922769904136658,
0.006354259327054024,
-0.06299232691526413,
0.04706082493066788,
-0.0031443757470697165,
0.008018158376216888,
0.02272684872150421,
0.007035540882498026,
0.030186006799340248,
0.010944174602627754,
-0.01634201966226101,
-0.03568866476416588,
-0.039793822914361954,
0.007227696944028139,
0.006170837674289942,
0.04887757450342178,
-0.03675425797700882,
0.028491538017988205,
0.002474012318998575,
0.019634880125522614,
0.02594109997153282,
0.004443614277988672,
0.014193362556397915,
-0.03766263276338577,
-0.0619092658162117,
-0.05649395287036896,
-0.04398632422089577,
0.06323689222335815,
-0.00993972085416317,
-0.0356537289917469,
-0.02110225521028042,
-0.027268726378679276,
-0.016010113060474396,
0.01490958221256733,
0.057437263429164886,
-0.021276943385601044,
0.02574894391000271,
-0.011092659085988998,
-0.024002067744731903,
0.013005487620830536,
-0.005262462422251701,
0.0011452952167019248,
0.05652888864278793,
-0.0015983909834176302,
-0.01380031555891037,
0.018115097656846046,
-0.07357839494943619,
0.006445970386266708,
-0.037208445370197296,
-0.011817612685263157,
-0.0007702629081904888,
-0.015355034731328487,
0.03598563373088837,
0.027757851406931877,
0.03448332101106644,
0.009415658190846443,
-0.04395138472318649,
-0.03345266357064247,
-0.03189794719219208,
-0.03465800732374191,
0.009965924546122551,
0.026325412094593048,
0.020403504371643066,
0.014865909703075886,
0.004002528265118599,
-0.005786525085568428,
-0.006459071766585112,
0.026866944506764412,
0.006725470535457134,
0.010420111939311028,
0.06522832810878754,
0.026255536824464798,
0.005445884075015783,
0.011127596721053123,
0.04940163716673851,
-0.0053367046639323235,
0.0016224106075242162,
-0.025853756815195084,
0.07155201584100723,
0.03696388378739357,
-0.0053410716354846954,
0.01587909832596779,
0.0016857348382472992,
-0.07406751811504364,
0.046012699604034424,
-0.0010115500772371888,
-0.06725470721721649,
-0.07455664128065109,
-0.02272684872150421,
0.005271196831017733,
0.006572618614882231,
-0.014752362854778767,
0.01629834808409214,
0.02339066192507744,
0.01465628482401371,
-0.05090394988656044,
-0.03381950780749321,
0.03261416405439377,
-0.016927223652601242,
-0.07225076854228973,
-0.010568596422672272,
0.01994931697845459,
-0.0059917825274169445,
0.03222985193133354,
-0.00221962365321815,
-0.03354000672698021,
-0.0045942822471261024,
0.015451112762093544,
0.01994931697845459,
0.01551225408911705,
-0.04671144858002663,
0.010393909178674221,
0.00609659543260932,
-0.05499164015054703,
-0.016097456216812134,
-0.028072288259863853,
0.016857348382472992,
0.0380469486117363,
-0.017748255282640457,
-0.018534347414970398,
0.06798838824033737,
0.004528774414211512,
-0.04423088580369949,
-0.03755782172083855,
-0.01569567620754242,
0.02723378874361515,
-0.04098169878125191,
-0.038571011275053024,
0.02760063111782074,
0.009022611193358898,
-0.031705789268016815,
-0.03202022612094879,
0.030779944732785225,
-0.022325068712234497,
-0.0753951445221901,
0.01801028661429882,
0.0015427094185724854,
-0.04112144932150841,
0.059813015162944794,
0.031076913699507713,
-0.035147134214639664,
-0.01683114469051361,
0.035199541598558426,
-0.058170951902866364,
0.023355724290013313,
-0.025923632085323334,
0.03046550787985325,
0.044789884239435196,
0.001370205427519977,
0.0395841971039772,
-0.006852118764072657,
0.01583542488515377,
-0.005926274694502354,
0.055795200169086456,
0.03636994585394859,
0.019565004855394363,
0.061524953693151474,
-0.04031788557767868,
-0.009503002278506756,
-0.022272661328315735,
-0.01576555147767067,
-0.009773768484592438,
-0.04115638509392738,
0.06197914108633995,
-0.005498290527611971,
0.031496163457632065,
0.06411033123731613,
-0.010166814550757408,
0.014935784973204136,
0.012664847075939178,
0.029644476249814034,
0.012918143533170223,
0.020683005452156067,
0.021573912352323532,
0.005502657499164343,
-0.077491395175457,
0.03940951079130173,
-0.044370636343955994,
0.06411033123731613,
-0.017372675240039825,
-0.0017042953986674547,
0.021049849689006805,
-0.04395138472318649,
0.019268035888671875
] |
725,103 | tf_keras.src.engine.functional | _graph_network_add_metric | null | def _graph_network_add_metric(self, value, aggregation, name):
new_nodes, new_layers = _map_subgraph_network(self.inputs, [value])
add_metric_layer = base_layer.AddMetric(
aggregation, name, dtype=value.dtype
)
add_metric_layer(value)
new_nodes.extend(add_metric_layer.inbound_nodes)
new_layers.append(add_metric_layer)
self._insert_layers(new_layers, new_nodes)
| (self, value, aggregation, name) | [
-0.021777059882879257,
-0.019074294716119766,
0.008009309880435467,
0.05384873226284981,
-0.007910323329269886,
0.028628656640648842,
-0.024892987683415413,
-0.03453342616558075,
0.013109274208545685,
-0.016345705837011337,
-0.014236860908567905,
0.03918149322271347,
0.01759379915893078,
-0.006451346445828676,
0.04248678684234619,
0.030505100265145302,
0.03653037175536156,
-0.000054906649893382564,
0.007152860518544912,
0.03379317745566368,
-0.026683354750275612,
-0.07836298644542694,
0.0245831161737442,
-0.027096515521407127,
0.02203528583049774,
0.02083023078739643,
-0.0057842624373734,
-0.028628656640648842,
-0.02530614845454693,
0.009752335958182812,
-0.0686192587018013,
-0.08352750539779663,
-0.008297662250697613,
-0.02398058958351612,
0.050233565270900726,
0.023016545921564102,
-0.05708516389131546,
-0.020589221268892288,
-0.049476101994514465,
-0.007927538827061653,
0.06390233337879181,
0.014262683689594269,
-0.03790757805109024,
0.0288352370262146,
0.09337452799081802,
0.04816775768995285,
0.009003479965031147,
0.03158964961767197,
-0.029386119917035103,
-0.07368049025535583,
-0.07388707250356674,
0.004841737914830446,
0.013866736553609371,
0.07120151817798615,
-0.007475642953068018,
0.03573847934603691,
0.06218082457780838,
-0.01370319351553917,
0.009003479965031147,
0.05687858164310455,
-0.03560075908899307,
0.012076369486749172,
-0.03649594262242317,
-0.0422457754611969,
-0.05484720319509506,
-0.03408583253622055,
-0.05467505380511284,
-0.021863136440515518,
-0.044690314680337906,
0.031262561678886414,
0.03162407875061035,
-0.027027655392885208,
0.02532336488366127,
-0.05646542087197304,
-0.017154814675450325,
0.03363824263215065,
0.0239117294549942,
0.0029846623074263334,
0.03191673383116722,
-0.017292534932494164,
0.03026408888399601,
0.014288505539298058,
0.03296685591340065,
-0.020485930144786835,
0.05426189303398132,
0.028525367379188538,
-0.04599865898489952,
0.035772908478975296,
-0.020434284582734108,
-0.006137171760201454,
0.023274771869182587,
-0.08951835334300995,
0.006033881101757288,
0.06052817776799202,
0.019194800406694412,
0.0027780814561992884,
-0.022586168721318245,
-0.08022221177816391,
0.00118030805606395,
0.024892987683415413,
0.028818022459745407,
-0.021553264930844307,
-0.03265698254108429,
-0.004488829057663679,
0.01026878785341978,
-0.08614419400691986,
0.029403334483504295,
0.011353337205946445,
-0.046928275376558304,
0.04754801467061043,
0.01674165390431881,
0.015708748251199722,
0.008900189772248268,
-0.009149808436632156,
0.019814543426036835,
0.06156108155846596,
0.017938099801540375,
-0.04926952347159386,
0.04517233744263649,
0.04300323873758316,
-0.018334046006202698,
0.012584214098751545,
0.06386789679527283,
0.004488829057663679,
-0.016190771013498306,
0.0037636440247297287,
0.008900189772248268,
-0.03618607297539711,
0.001999099738895893,
-0.043347541242837906,
-0.008452598005533218,
-0.031279776245355606,
-0.006283499766141176,
0.02800891548395157,
0.026562849059700966,
-0.0033354193437844515,
-0.005384012125432491,
-0.00647716922685504,
0.012386240996420383,
0.0681716650724411,
0.017869239673018456,
0.007148556876927614,
0.024135524407029152,
-0.026339052245020866,
0.0008537597605027258,
-0.05618998035788536,
-0.02217300608754158,
0.05188621208071709,
-0.026614494621753693,
-0.07877615094184875,
-0.05798034742474556,
-0.012980161234736443,
0.0051774317398667336,
0.047238145023584366,
0.05639656260609627,
0.04555106908082962,
-0.005448568612337112,
0.0068688117899000645,
0.007690831553190947,
0.03131420910358429,
0.010458153672516346,
-0.02757853828370571,
0.018833283334970474,
-0.02465197630226612,
-0.039904527366161346,
0.005061229690909386,
0.05281582847237587,
0.01933252066373825,
-0.0753331333398819,
0.02248287759721279,
-0.01539027038961649,
-0.09220390021800995,
0.03377596288919449,
0.0518517829477787,
0.02966156043112278,
-0.009519931860268116,
0.025736525654792786,
0.02764739841222763,
0.007187290582805872,
0.02306818962097168,
-0.027922838926315308,
0.012627252377569675,
0.00647716922685504,
0.017628228291869164,
-0.06149221956729889,
-0.020709726959466934,
0.02163933962583542,
-0.0085515845566988,
0.0422457754611969,
-0.012188267894089222,
0.08111739903688431,
-0.003356938250362873,
-0.011095111258327961,
-0.002515551634132862,
0.009364997036755085,
-0.04255564510822296,
0.010595873929560184,
0.05605226010084152,
0.010088029317557812,
0.06879141181707382,
-0.021863136440515518,
-0.011250047013163567,
0.010845492593944073,
0.0449313260614872,
0.04486246407032013,
-0.028043344616889954,
0.010965998284518719,
0.012033332139253616,
-0.042073626071214676,
-0.018626702949404716,
-0.033070143312215805,
0.011189794167876244,
0.044311583042144775,
0.0871770977973938,
-0.06806837767362595,
-0.032106101512908936,
-0.09034467488527298,
0.014804958365857601,
0.0382174514234066,
-0.025288933888077736,
-0.011215616017580032,
0.013066235929727554,
0.027303097769618034,
-0.010492583736777306,
0.019504671916365623,
-0.017920885235071182,
0.04272779822349548,
-0.020485930144786835,
0.045516639947891235,
0.013883952051401138,
0.039215922355651855,
-0.0034882030449807644,
-0.01902264915406704,
-0.019762897863984108,
-0.023997804149985313,
0.036151640117168427,
0.013195348903536797,
-0.018747208639979362,
0.02411830984055996,
0.009304744191467762,
-0.038699470460414886,
-0.06607142835855484,
-0.05474391579627991,
0.012248520739376545,
-0.040420979261398315,
-0.014606984332203865,
-0.007983487099409103,
0.03942250460386276,
-0.011361944489181042,
0.03649594262242317,
0.00032089962041936815,
0.03721897676587105,
0.016302669420838356,
-0.0077726030722260475,
-0.0017247345531359315,
-0.051645200699567795,
-0.09261706471443176,
-0.033139005303382874,
0.05371101200580597,
-0.03176179900765419,
-0.019642392173409462,
0.04162603244185448,
-0.025581590831279755,
0.03573847934603691,
-0.02351578138768673,
-0.035325318574905396,
-0.01479635015130043,
0.054193031042814255,
-0.02404944971203804,
-0.010527013801038265,
-0.011887003667652607,
0.029782066121697426,
0.07209670543670654,
-0.050681158900260925,
-0.028818022459745407,
-0.06948000937700272,
-0.02105402760207653,
0.07684805989265442,
-0.017800379544496536,
-0.03873390331864357,
-0.0001385274954373017,
0.0037033914122730494,
-0.04441487416625023,
-0.023257555440068245,
-0.0265972800552845,
-0.0009866385953500867,
0.0491662323474884,
0.029334474354982376,
-0.06889469921588898,
-0.02060643583536148,
-0.05863451957702637,
-0.024290459230542183,
-0.002231503138318658,
0.06197424232959747,
-0.02398058958351612,
0.019866187125444412,
-0.03191673383116722,
0.03646151348948479,
-0.01037207804620266,
0.0364270843565464,
0.048512060195207596,
0.0009559742175042629,
-0.00619742413982749,
-0.00477287732064724,
-0.03790757805109024,
0.01112093310803175,
0.05281582847237587,
0.012412063777446747,
-0.01068194955587387,
0.018385691568255424,
-0.010122459381818771,
0.040627557784318924,
-0.07189012318849564,
-0.0024789697490632534,
0.048649780452251434,
0.039732374250888824,
0.0015956215793266892,
-0.025943106040358543,
0.03770099952816963,
0.0197801124304533,
0.02134668454527855,
-0.0233608465641737,
-0.08407838642597198,
-0.03587619960308075,
-0.0373222678899765,
-0.007953361608088017,
0.06097576767206192,
0.018299616873264313,
-0.00955436285585165,
-0.03446456417441368,
0.0072776698507368565,
-0.053814299404621124,
0.025357794016599655,
0.0306256040930748,
-0.04661840200424194,
-0.005384012125432491,
-0.009941701777279377,
-0.03140028193593025,
-0.041694894433021545,
0.009296135976910591,
-0.012868262827396393,
0.05267810449004173,
-0.052092794328927994,
0.00011579822603380308,
0.049785975366830826,
0.00516882399097085,
0.019762897863984108,
-0.026941580697894096,
-0.010570051148533821,
0.01063891127705574,
-0.029196754097938538,
0.057257313281297684,
-0.04159160330891609,
-0.01738721877336502,
0.06242183595895767,
0.06493523716926575,
-0.007028051186352968,
-0.09268592298030853,
-0.051438622176647186,
-0.02845650725066662,
0.0022594775073230267,
-0.024169955402612686,
0.04413943365216255,
-0.002043213229626417,
0.02038263902068138,
0.026356268674135208,
0.021983640268445015,
0.04606752097606659,
0.051059890538454056,
-0.029007388278841972,
0.003447317285463214,
-0.06366132199764252,
0.021604910492897034,
0.061320070177316666,
-0.03783871978521347,
0.0068085589446127415,
0.039904527366161346,
-0.0165436789393425,
-0.017783164978027344,
-0.02330920100212097,
0.006296410690993071,
0.06366132199764252,
-0.05815249681472778,
0.030883831903338432,
0.09378768503665924,
0.013840913772583008,
0.059667423367500305,
-0.02143275924026966,
0.0024122612085193396,
-0.037184543907642365,
0.02719980664551258,
0.02914510853588581,
0.051197610795497894,
0.006601978559046984,
-0.046997133642435074,
-0.04024882614612579,
0.026252977550029755,
-0.04878750070929527,
-0.044483732432127,
-0.010802455246448517,
-0.0011200553271919489,
-0.02651120349764824,
0.01187839638441801,
0.057567186653614044,
0.005293633323162794,
-0.05433075129985809,
-0.05904768034815788,
0.06014944612979889,
-0.01644899696111679,
0.02163933962583542,
-0.0015429004561156034,
-0.0594608411192894,
-0.008586014620959759,
0.015898114070296288,
-0.0008193296380341053,
-0.01476192008703947,
0.014934071339666843,
-0.08814114332199097,
0.0047212322242558,
-0.0032106100115925074,
-0.007686527445912361,
0.03205445408821106,
-0.00381959299556911,
0.03677138313651085,
0.0012061306042596698,
-0.06390233337879181,
-0.013444967567920685,
-0.01434875838458538,
-0.011077895760536194,
0.0020399854984134436,
-0.00599514739587903,
-0.020313778892159462,
0.06255955249071121,
-0.013350284658372402,
-0.010096636600792408,
-0.045137908309698105,
-0.010828277096152306,
-0.03250204771757126,
0.02442818135023117,
-0.040558699518442154,
-0.008276144042611122,
-0.002220743801444769,
-0.008396648801863194,
-0.030746109783649445,
-0.0764349028468132,
-0.01909150928258896,
-0.016311276704072952,
0.04517233744263649,
-0.04906294122338295,
-0.012962945736944675,
0.024600330740213394,
-0.03484329581260681,
0.04892522096633911,
0.047685738652944565,
-0.024221599102020264,
0.025874245911836624,
0.004058452323079109,
-0.09461401402950287,
0.0188849288970232,
0.0030449151527136564,
-0.01924644596874714,
0.02869751676917076,
-0.03439570590853691,
0.010776632465422153,
-0.03518759831786156,
0.044380445033311844,
0.07526427507400513,
-0.0006617041653953493,
0.024015018716454506,
0.006119956262409687,
0.0239117294549942,
0.0017021397361531854,
0.004742750898003578,
-0.052023932337760925,
-0.002296059625223279,
-0.02599475160241127,
0.007690831553190947,
0.00989005621522665,
-0.003817441174760461,
0.01161156315356493,
0.051507480442523956,
-0.012833832763135433,
0.027509678155183792,
0.02052036114037037,
0.007170075550675392,
0.10115573555231094,
0.031176486983895302,
-0.03859617933630943,
0.03229546546936035,
0.014701667241752148,
-0.04668726399540901,
-0.005444264970719814,
0.02382565289735794,
0.006305018439888954,
-0.0248069129884243,
0.045137908309698105,
0.019504671916365623,
-0.011077895760536194,
0.04327867925167084,
0.00019904921646229923,
-0.05099102854728699,
0.03245040029287338,
-0.06679446250200272,
-0.003365545766428113,
0.031193701550364494,
0.05484720319509506,
-0.042521215975284576,
0.026425128802657127,
0.008284751325845718,
-0.0033892164938151836,
0.02074415609240532,
0.015476346015930176,
0.004699713550508022,
0.07034076750278473,
-0.008960442617535591,
-0.042658936232328415,
-0.010217142291367054,
-0.019590746611356735,
-0.016285452991724014,
-0.06741420179605484,
0.06252512335777283,
0.03282913193106651,
-0.014985715970396996,
-0.058393508195877075,
0.01576039381325245,
0.019900618121027946,
-0.06858482956886292,
0.003081497037783265,
-0.021622125059366226,
0.03938807547092438,
0.017206460237503052,
0.05422746390104294,
-0.009537147358059883,
0.0467216931283474,
0.008822722360491753,
-0.03362102806568146,
0.031882304698228836,
0.04665283113718033,
-0.10714657604694366,
-0.043863993138074875,
-0.02081301622092724,
0.008121208287775517,
-0.01940138079226017,
-0.012214090675115585,
0.014606984332203865,
0.08779684454202652,
0.020881876349449158,
-0.0045533855445683,
0.05116318166255951,
-0.0999162495136261,
-0.02008998394012451,
0.07498883455991745,
-0.028714733198285103,
-0.023928944021463394,
0.0690668523311615,
0.0016956841573119164,
-0.011318907141685486,
0.0000027739122288039653,
-0.021036813035607338,
0.00762197095900774,
0.014985715970396996,
0.003169724252074957,
0.036977965384721756,
0.047307007014751434,
0.019143154844641685,
-0.039215922355651855,
-0.11389488726854324,
-0.004353260155767202,
0.007854374125599861,
-0.0010565747506916523,
-0.010027776472270489,
-0.06111348792910576,
0.017206460237503052,
-0.027612967416644096,
-0.036668092012405396,
0.020330995321273804,
-0.00814703106880188,
0.041763752698898315,
0.008418167941272259,
-0.03684024512767792,
-0.06455650180578232,
0.020881876349449158,
0.023808438330888748,
0.010225750505924225,
0.03377596288919449,
0.02554715983569622,
-0.048271048814058304,
0.013160918839275837,
-0.018540628254413605,
0.038837190717458725,
-0.021673770621418953,
-0.01532141026109457,
-0.02074415609240532,
0.04785788804292679,
-0.0009204681264236569,
-0.023464137688279152,
-0.05491606518626213,
0.02134668454527855,
0.03969794511795044,
0.03177901357412338,
-0.04844319820404053,
-0.027285881340503693,
-0.00841386429965496,
0.00614577904343605,
-0.02060643583536148,
0.02988535724580288,
-0.02217300608754158,
-0.0224656630307436,
-0.04606752097606659,
-0.011000428348779678,
0.018816068768501282,
0.059598565101623535,
-0.054640624672174454,
-0.009451071731746197,
0.018747208639979362,
-0.03880276158452034,
-0.052919115871191025,
0.023240340873599052,
0.008172852918505669,
-0.03165850788354874,
0.03535974770784378,
0.02621854841709137,
-0.02053757570683956,
-0.007665008772164583,
-0.013944204896688461,
0.001355686574243009,
0.013135096058249474,
-0.013858129270374775,
-0.004424272105097771,
-0.017645444720983505,
-0.02794005535542965,
-0.031641293317079544,
-0.0453789159655571,
-0.03140028193593025,
0.030901046469807625,
-0.04286551848053932,
0.018747208639979362,
0.014443441294133663,
0.005999451037496328,
-0.019762897863984108,
-0.030591174960136414,
-0.010156889446079731,
-0.028336001560091972,
-0.04162603244185448,
0.0016429630341008306,
0.013444967567920685,
0.0017989745829254389,
-0.03677138313651085,
0.00604679249227047,
0.012859655544161797,
0.017111776396632195,
0.004086426459252834,
0.06021830439567566,
0.037942007184028625,
0.11692474037408829,
0.014882425777614117,
-0.005956413224339485,
0.016870766878128052,
-0.0021637186873704195,
-0.027922838926315308,
-0.03425798565149307,
-0.013195348903536797,
0.07987791299819946,
0.014331543818116188,
0.0030449151527136564,
-0.025220073759555817,
-0.002289603929966688,
-0.06855040043592453,
0.01598419062793255,
0.05415860190987587,
-0.04486246407032013,
-0.07216556370258331,
0.005125786177814007,
0.03158964961767197,
-0.03811416029930115,
-0.0315207876265049,
0.04114400967955589,
0.00599514739587903,
-0.048649780452251434,
0.012988768517971039,
-0.03064282052218914,
0.017662659287452698,
0.02583981677889824,
0.017240889370441437,
0.010346255265176296,
0.004962243139743805,
-0.019883403554558754,
-0.001539672608487308,
0.050371285527944565,
-0.003963769413530827,
0.014271290972828865,
-0.03415469452738762,
-0.021398328244686127,
-0.0044199684634804726,
-0.06166437268257141,
0.04293437674641609,
-0.009313351474702358,
0.0008397725177928805,
0.0033182043116539717,
-0.0015203056391328573,
0.010440938174724579,
0.06799951940774918,
-0.013926989398896694,
-0.04486246407032013,
0.05044014751911163,
0.0019840365275740623,
-0.016216592863202095,
-0.024083878844976425,
0.016844943165779114,
-0.009244491346180439,
-0.021518833935260773,
0.013651548884809017,
-0.02539222501218319,
0.018041390925645828,
0.01805860549211502,
0.02172541432082653,
-0.026924366131424904,
0.048580918461084366,
-0.028353216126561165,
0.017697088420391083,
0.04166046157479286,
0.007570325862616301,
0.044828034937381744,
-0.010759416967630386,
-0.03701239451766014,
0.008065259084105492,
0.019453026354312897,
-0.07078835368156433,
0.04166046157479286,
-0.01112954132258892,
0.01649203523993492,
0.09895220398902893,
0.03079775534570217,
0.0426933690905571,
-0.005620719399303198,
0.039353642612695694,
0.005801477935165167,
0.05295354872941971,
0.06045931577682495,
0.015398877672851086,
-0.0050784447230398655,
-0.023171480745077133,
-0.0010608785087242723,
-0.02658006362617016,
0.0008586014737375081,
-0.024824127554893494,
0.03379317745566368,
0.043485261499881744,
-0.03649594262242317,
0.04262450709939003,
0.02921396866440773,
-0.01576039381325245,
-0.030453454703092575,
0.010475368238985538,
0.010862707160413265,
-0.06156108155846596,
0.05536365509033203,
-0.002580108121037483,
0.022896040230989456,
-0.07581515610218048,
0.017378611490130424,
0.007084000390022993,
0.045069046318531036,
-0.040420979261398315,
-0.027526892721652985,
0.06583041697740555,
-0.022052502259612083,
0.041694894433021545
] |
725,106 | tf_keras.src.engine.functional | _handle_deferred_layer_dependencies | Handles layer checkpoint dependencies that are added after init. | def _handle_deferred_layer_dependencies(self, layers):
"""Handles layer checkpoint dependencies that are added after init."""
layer_checkpoint_dependencies = self._layer_checkpoint_dependencies
layer_to_name = {v: k for k, v in layer_checkpoint_dependencies.items()}
for layer in layers:
if layer in layer_to_name:
self._handle_deferred_dependencies(
name=layer_to_name[layer], trackable=layer
)
| (self, layers) | [
-0.03418644517660141,
0.025936322286725044,
-0.06043214723467827,
0.09535767138004303,
-0.030112948268651962,
0.020281551405787468,
-0.03231298178434372,
0.07713864743709564,
0.03626616299152374,
0.029012931510806084,
0.011618922464549541,
0.009943116456270218,
-0.01076812855899334,
-0.08016369491815567,
-0.008843100629746914,
-0.012547061778604984,
-0.05943525955080986,
0.05376330018043518,
-0.00340747251175344,
-0.07624488323926926,
-0.021708134561777115,
-0.009676706045866013,
0.018648715689778328,
0.006900883745402098,
-0.0004858226457145065,
-0.014678343199193478,
0.023908168077468872,
0.018201833590865135,
0.004348502028733492,
0.010656408034265041,
-0.07136356085538864,
0.016173677518963814,
-0.03877557814121246,
0.032003600150346756,
0.008697004057466984,
0.052732035517692566,
0.06644786149263382,
0.0745261088013649,
-0.04296938702464104,
-0.019886232912540436,
-0.005053200293332338,
0.012280651368200779,
0.029786380007863045,
0.008903257548809052,
-0.011722049675881863,
0.01221190020442009,
-0.06792601197957993,
0.04393190145492554,
-0.00945326592773199,
-0.00128371047321707,
-0.00012400696869008243,
-0.04245375469326973,
0.06510721892118454,
0.02793010324239731,
0.02870355173945427,
-0.010673596523702145,
0.022619085386395454,
0.006484080571681261,
0.01677524857223034,
-0.029391061514616013,
0.011670486070215702,
-0.015658045187592506,
0.011455639265477657,
0.03867245092988014,
-0.04076935723423958,
-0.0029971147887408733,
0.023530038073658943,
-0.028823865577578545,
0.007450892124325037,
0.022515960037708282,
-0.03000982105731964,
-0.0019991507288068533,
-0.007369250059127808,
-0.03183172270655632,
0.0021119455341249704,
-0.005401252303272486,
0.029253559187054634,
-0.06091340631246567,
-0.007829022593796253,
-0.019594041630625725,
-0.021381568163633347,
-0.05785398557782173,
-0.04688819870352745,
0.03234735503792763,
0.03880995139479637,
-0.05922900512814522,
0.029597315937280655,
0.010157963261008263,
0.02169094793498516,
-0.011498608626425266,
-0.04138811677694321,
0.024303486570715904,
0.006866508163511753,
0.013311916962265968,
-0.011601734906435013,
0.008697004057466984,
-0.030594205483794212,
-0.0070899492129683495,
-0.03420363366603851,
-0.007223154418170452,
0.03399737924337387,
-0.06909477710723877,
-0.0365411676466465,
0.025695694610476494,
-0.023908168077468872,
-0.06864789873361588,
-0.010003273375332355,
-0.06428220868110657,
-0.04413815587759018,
-0.011318136937916279,
-0.019061220809817314,
-0.07177606970071793,
0.012538467533886433,
-0.02284252643585205,
0.006879399064928293,
-0.026142576709389687,
0.037503682076931,
-0.011627516709268093,
0.003134616883471608,
0.005023121368139982,
-0.006561425514519215,
0.010940006002783775,
-0.04169749468564987,
0.019456539303064346,
-0.0271738413721323,
0.02298002876341343,
0.04162874445319176,
0.07156981527805328,
0.06775413453578949,
-0.07878866791725159,
0.08401375263929367,
0.013243165798485279,
-0.0600883923470974,
-0.0036158740986138582,
0.043966278433799744,
0.013801767490804195,
-0.006028605159372091,
0.006793460343033075,
-0.004193812143057585,
-0.036609917879104614,
-0.009633736684918404,
-0.014025208540260792,
-0.052972663193941116,
0.02148469351232052,
-0.0030078571289777756,
0.03874120116233826,
0.019645605236291885,
-0.07060729712247849,
-0.05957276001572609,
-0.02346128597855568,
0.04929448291659355,
-0.004047716502100229,
-0.05977901443839073,
0.006148919463157654,
-0.052628908306360245,
0.014171304181218147,
-0.05039449781179428,
0.0012675969628617167,
0.007717302069067955,
0.026142576709389687,
-0.011885332874953747,
0.015417416580021381,
-0.028291044756770134,
-0.026812897995114326,
-0.009693894535303116,
-0.0006246675038710237,
-0.03410050645470619,
-0.05871337279677391,
0.005358282942324877,
0.04204124957323074,
0.018064331263303757,
0.07617612928152084,
0.04403502866625786,
-0.0019228801829740405,
0.02971762977540493,
0.0005940517876297235,
0.005414143204689026,
-0.030834833160042763,
-0.054691437631845474,
0.03918808326125145,
0.010828286409378052,
0.013861924409866333,
-0.030456703156232834,
0.03188328817486763,
0.00855950266122818,
0.016182271763682365,
0.014738500118255615,
-0.030903585255146027,
0.002423473633825779,
-0.02591913565993309,
-0.01745416596531868,
0.046716321259737015,
0.04386315122246742,
0.0016242428682744503,
0.01976591907441616,
0.01912997104227543,
0.05971026420593262,
0.042281877249479294,
0.02057374268770218,
-0.03578490763902664,
-0.03915370628237724,
0.020608119666576385,
0.009195448830723763,
-0.008353249169886112,
-0.01087125577032566,
0.0018702426459640265,
-0.0003974668506998569,
-0.013372073881328106,
-0.05163201689720154,
0.0017177013214677572,
-0.013208789750933647,
0.01605336368083954,
-0.014351775869727135,
0.009057947434484959,
0.03188328817486763,
-0.0283769853413105,
-0.01904403232038021,
0.02731134369969368,
0.06823538988828659,
-0.017754951491951942,
-0.0466475673019886,
0.014360370114445686,
-0.014635373838245869,
0.03428957238793373,
-0.008443485014140606,
-0.0187518410384655,
0.06548535078763962,
0.028050417080521584,
0.05173514410853386,
-0.014076772145926952,
-0.011490014381706715,
0.031247340142726898,
-0.052147649228572845,
-0.03420363366603851,
0.11392044275999069,
-0.017479946836829185,
-0.011000163853168488,
-0.026847274973988533,
0.05331641808152199,
-0.021519070491194725,
0.005302422679960728,
-0.02538631483912468,
0.0000945997962844558,
-0.04558192938566208,
-0.00025701065897010267,
0.009547797963023186,
0.008086838759481907,
-0.023306597024202347,
-0.03678179532289505,
0.059985265135765076,
0.026280079036951065,
0.03245048224925995,
0.01894090697169304,
-0.023684727028012276,
-0.02990669384598732,
-0.09941397607326508,
0.032673925161361694,
-0.03442707285284996,
0.0485725961625576,
-0.04864134639501572,
-0.046235062181949615,
0.027861351147294044,
-0.03487395495176315,
0.09707644581794739,
-0.016285398975014687,
-0.022137830033898354,
0.07947618514299393,
-0.07383859902620316,
-0.02222376875579357,
0.007940743118524551,
0.05366017296910286,
0.02273940108716488,
0.01216033659875393,
-0.01216893084347248,
0.005951260216534138,
-0.03736618161201477,
0.020608119666576385,
-0.01464396808296442,
-0.047816336154937744,
0.08153871446847916,
0.08311998844146729,
-0.036575544625520706,
-0.06077590212225914,
0.03245048224925995,
-0.0418349951505661,
-0.005942666437476873,
0.005366876721382141,
-0.029511375352740288,
-0.0418349951505661,
-0.05073825269937515,
0.04898510500788689,
0.050325747579336166,
0.06902602314949036,
0.023237844929099083,
-0.019164348021149635,
-0.0389474555850029,
-0.036609917879104614,
0.026658209040760994,
0.03153953328728676,
0.040081847459077835,
-0.01630258560180664,
0.020401865243911743,
0.07603862881660461,
-0.03277704864740372,
0.006273530889302492,
-0.07184481620788574,
0.029889507219195366,
-0.017909640446305275,
0.01314863283187151,
0.015890080481767654,
0.02672695927321911,
-0.015348665416240692,
-0.005916884634643793,
-0.006716115400195122,
0.03110983781516552,
-0.03253642097115517,
0.010493124835193157,
0.026812897995114326,
-0.014317400753498077,
0.047094449400901794,
-0.030559828504920006,
0.03212391585111618,
-0.05572270229458809,
0.033103618770837784,
0.0023375346790999174,
0.004795383661985397,
0.07036667317152023,
0.01649165153503418,
0.03612866252660751,
-0.01314863283187151,
-0.04100998491048813,
-0.03246767073869705,
0.006591504439711571,
0.017333852127194405,
-0.013372073881328106,
-0.01773776300251484,
0.051425766199827194,
-0.0020711245015263557,
0.05187264457345009,
0.011472826823592186,
0.017282288521528244,
-0.008065354079008102,
-0.07156981527805328,
0.03715992718935013,
-0.019834669306874275,
0.02889261767268181,
0.03181453421711922,
0.01615649089217186,
-0.01837371103465557,
0.04788508638739586,
-0.05173514410853386,
-0.04723195359110832,
-0.020212801173329353,
0.06466033309698105,
0.007236044853925705,
0.028823865577578545,
0.010785317048430443,
-0.03038795106112957,
0.022481584921479225,
-0.014343181625008583,
0.06184154376387596,
-0.00048797111958265305,
-0.01726510003209114,
0.022206580266356468,
0.05654771625995636,
-0.0418349951505661,
0.0687853991985321,
-0.03148796781897545,
0.013217383995652199,
-0.07926993072032928,
-0.0350973978638649,
0.017617449164390564,
-0.005057496950030327,
0.018064331263303757,
-0.040356848388910294,
0.009504828602075577,
0.053591422736644745,
0.03356768563389778,
0.0673416256904602,
0.055035192519426346,
-0.05352267250418663,
-0.010897036641836166,
-0.01726510003209114,
-0.013569733127951622,
-0.023306597024202347,
-0.03105827420949936,
-0.030766082927584648,
-0.027706662192940712,
0.07273858040571213,
0.015855705365538597,
0.13103945553302765,
-0.02476755529642105,
0.012495498172938824,
-0.007205966394394636,
0.047438204288482666,
0.002026006579399109,
0.020470617339015007,
0.009607955813407898,
0.018012767657637596,
-0.011610329151153564,
-0.06799475848674774,
-0.05053200200200081,
0.005663365591317415,
0.02201751433312893,
0.032141104340553284,
0.008379030972719193,
0.006810648366808891,
0.1048453077673912,
0.021983139216899872,
0.03712555021047592,
-0.039359960705041885,
-0.005783679895102978,
-0.03110983781516552,
-0.046853821724653244,
-0.007661441806703806,
-0.006264937110245228,
-0.008495048619806767,
-0.016663528978824615,
0.021003438159823418,
0.013518169522285461,
0.016147896647453308,
0.05417580530047417,
0.037331804633140564,
0.003418214851990342,
-0.029012931510806084,
-0.0022387050557881594,
-0.048538222908973694,
0.07486986368894577,
-0.0071715908125042915,
0.015735389664769173,
0.003274267539381981,
0.03215828910470009,
0.03258798271417618,
-0.08360124379396439,
0.020694058388471603,
0.02365035191178322,
0.015322883613407612,
0.02033311501145363,
-0.00436354149132967,
-0.02129562944173813,
0.01555491890758276,
0.06885414570569992,
-0.02048780396580696,
-0.03691929951310158,
0.023014403879642487,
0.01938778907060623,
0.041525617241859436,
0.02808479219675064,
-0.037297431379556656,
0.035406775772571564,
-0.07810115814208984,
-0.02265346236526966,
-0.0011977717513218522,
-0.05063512921333313,
-0.021415943279862404,
-0.0024299188517034054,
0.0029670363292098045,
0.01765182428061962,
-0.0654165968298912,
0.002328940900042653,
0.0022644868586212397,
-0.0012675969628617167,
-0.01500491052865982,
0.010948600247502327,
0.004011192359030247,
0.012993942946195602,
-0.008817318826913834,
-0.0008003048715181649,
-0.050463251769542694,
-0.01701587811112404,
0.05427893251180649,
0.002513709245249629,
0.031470779329538345,
-0.01468693744391203,
-0.034066133201122284,
-0.02505974844098091,
0.0495351105928421,
0.02014404907822609,
0.06263218075037003,
-0.01504787988960743,
0.018184645101428032,
0.007442298345267773,
-0.015941644087433815,
-0.027414470911026,
0.01264159381389618,
0.003177586244419217,
-0.014240055344998837,
-0.012229087762534618,
0.052628908306360245,
-0.02591913565993309,
-0.04448191076517105,
-0.035114586353302,
0.026658209040760994,
0.04798821359872818,
0.06098215654492378,
-0.0300613846629858,
0.015305696055293083,
-0.013217383995652199,
0.06957603245973587,
-0.022687837481498718,
0.012779096141457558,
-0.014008020982146263,
0.01221190020442009,
0.027912914752960205,
-0.04204124957323074,
-0.00021578690211754292,
-0.011129071936011314,
0.01644868217408657,
0.002507263794541359,
0.020934686064720154,
0.006759084761142731,
-0.008241528645157814,
0.02509412355720997,
0.00983139593154192,
-0.019061220809817314,
-0.006273530889302492,
-0.00849075149744749,
0.01961122825741768,
0.01216893084347248,
0.07225732505321503,
0.025180062279105186,
0.05403830483555794,
0.04001309350132942,
-0.03164265677332878,
0.03439269959926605,
-0.033258307725191116,
-0.029442625120282173,
-0.02096906118094921,
0.025523817166686058,
0.011644704267382622,
0.017875265330076218,
-0.024303486570715904,
0.01749713532626629,
-0.014996316283941269,
-0.02057374268770218,
-0.04620068520307541,
0.0008185668848454952,
-0.07466360926628113,
-0.13433949649333954,
-0.02573006972670555,
0.04379440099000931,
-0.01401661429554224,
0.025884760543704033,
-0.030766082927584648,
0.010622032918035984,
-0.0010527500417083502,
0.022670648992061615,
0.019594041630625725,
-0.03384269028902054,
0.012796283699572086,
-0.041181862354278564,
0.013595514930784702,
-0.02664102055132389,
-0.03518333658576012,
0.031419217586517334,
-0.04943198338150978,
-0.03870682418346405,
-0.0020098930690437555,
-0.004421550314873457,
0.017961204051971436,
0.007545424625277519,
0.05149451643228531,
-0.02538631483912468,
0.024114420637488365,
-0.02500818483531475,
-0.0692666545510292,
0.03049107827246189,
0.0002611733216326684,
0.027947289869189262,
0.02669258415699005,
0.028291044756770134,
-0.020556556060910225,
0.0170674417167902,
-0.013698641210794449,
-0.013990833424031734,
-0.009032165631651878,
0.023839417845010757,
-0.022464396432042122,
0.026073824614286423,
-0.044413160532712936,
0.032003600150346756,
-0.01271893922239542,
-0.010140775702893734,
0.014334588311612606,
0.03980684280395508,
0.0004573554324451834,
-0.005040309391915798,
0.040563102811574936,
0.012959567829966545,
0.00304223271086812,
-0.07528237253427505,
-0.01170486118644476,
-0.025317564606666565,
-0.026262890547513962,
-0.013251759111881256,
0.008056760765612125,
-0.007205966394394636,
0.058678995817899704,
-0.04338189586997032,
0.00198948266915977,
-0.037091176956892014,
0.006784866563975811,
0.00702119804918766,
-0.005070387851446867,
-0.013956457376480103,
-0.01745416596531868,
-0.04259125888347626,
0.020522180944681168,
-0.04558192938566208,
0.017634637653827667,
-0.0018842077115550637,
0.023530038073658943,
0.05352267250418663,
-0.03774430975317955,
-0.050085119903087616,
-0.056238334625959396,
-0.00543562788516283,
0.014996316283941269,
0.013638484291732311,
0.05091013014316559,
0.006776272784918547,
-0.022481584921479225,
0.0014588107587769628,
0.00608446542173624,
-0.011670486070215702,
0.007291905116289854,
0.02664102055132389,
-0.08978883177042007,
0.023306597024202347,
0.007227451074868441,
0.01543460413813591,
0.08525126427412033,
-0.023306597024202347,
0.0034461449831724167,
0.05891962721943855,
-0.030714519321918488,
0.037538059055805206,
-0.013733016327023506,
-0.008800131268799305,
-0.09150761365890503,
-0.0034891143441200256,
0.00886888150125742,
-0.007124324794858694,
-0.02530037611722946,
0.025231625884771347,
0.016551809385418892,
-0.00870130117982626,
-0.012375184334814548,
0.09852021187543869,
0.002754337852820754,
-0.0350973978638649,
-0.03819119185209274,
-0.009848583489656448,
0.02193157561123371,
0.0370224267244339,
0.05891962721943855,
-0.011309542693197727,
0.0019228801829740405,
0.046853821724653244,
-0.029837943613529205,
-0.014901784248650074,
-0.04221312701702118,
-0.02091749757528305,
0.03568178042769432,
-0.00834035873413086,
-0.0365411676466465,
0.0026232812087982893,
-0.06380094587802887,
-0.027723848819732666,
0.011043133214116096,
-0.05341954529285431,
-0.07363234460353851,
0.07975118607282639,
-0.014721312560141087,
-0.001753151067532599,
-0.041422490030527115,
-0.0023074562195688486,
0.07101980596780777,
0.051666393876075745,
0.022876903414726257,
-0.011447045020759106,
0.00568485027179122,
-0.05321329087018967,
0.042625632137060165,
0.019508102908730507,
0.04107873514294624,
-0.029992632567882538,
-0.0121431490406394,
0.06823538988828659,
0.05121951177716255,
-0.006015714257955551,
0.04076935723423958,
0.03568178042769432,
0.028669176623225212,
-0.05125388875603676,
-0.08923882991075516,
-0.06136028841137886,
-0.07844491302967072,
-0.013380668126046658,
-0.03516614809632301,
0.0774136483669281,
-0.03033638931810856,
-0.029116058722138405,
-0.0012074398109689355,
0.0131056634709239,
0.03131609037518501,
-0.06053527444601059,
-0.02605663798749447,
-0.04355377331376076,
0.00616610748693347,
-0.03313799202442169,
-0.05042887479066849,
0.030130134895443916,
-0.029030120000243187,
-0.02817073091864586,
-0.028394171968102455,
0.016173677518963814,
-0.05060075223445892,
-0.012607218697667122,
0.016998689621686935,
0.008997789584100246,
0.008782942779362202,
0.010054836980998516,
0.0033838392700999975,
-0.002657656790688634,
0.02361597679555416,
0.025936322286725044,
-0.03520052507519722,
0.017033066600561142,
0.04121623933315277,
0.03258798271417618,
0.010630627162754536,
-0.05506956949830055,
0.045994434505701065,
0.00827160757035017,
-0.04771320894360542,
0.034220822155475616,
0.03263954818248749,
-0.05596333369612694,
-0.026366017758846283,
-0.008417703211307526,
-0.07473236322402954,
-0.001334199565462768,
0.05149451643228531,
0.0281363558024168,
-0.011550171300768852,
0.03588803485035896,
0.033103618770837784,
-0.027294155210256577,
-0.045135047286748886,
0.033980194479227066,
0.03784743696451187,
-0.02856604941189289,
-0.03836306929588318,
0.020556556060910225,
-0.006110247224569321,
0.016268210485577583,
-0.04272875934839249,
-0.033636435866355896,
-0.07638238370418549,
-0.0006182221113704145,
-0.0687853991985321,
0.02394254319369793,
-0.02105499990284443,
0.09274512529373169,
-0.033292680978775024,
0.017033066600561142,
0.018201833590865135
] |
725,113 | tf_keras.src.engine.functional | _init_graph_network | @tf.__internal__.tracking.no_automatic_dependency_tracking
def _init_graph_network(self, inputs, outputs):
# This method is needed for Sequential to reinitialize graph network
# when layer is added or removed.
self._is_graph_network = True
# Normalize and set self.inputs, self.outputs.
if isinstance(inputs, list) and len(tf.nest.flatten(inputs)) == 1:
inputs = inputs[0]
if isinstance(outputs, list) and len(tf.nest.flatten(outputs)) == 1:
outputs = outputs[0]
self._nested_inputs = inputs
self._nested_outputs = outputs
self.inputs = tf.nest.flatten(inputs)
self.outputs = tf.nest.flatten(outputs)
# Models constructed with a single Tensor or list of Tensors can
# be called with a dict, where the keys of the dict are the names
# of the `Input` objects. Extra keys are ignored with warning.
if not tf.nest.is_nested(self._nested_inputs):
self._enable_dict_to_input_mapping = True
elif isinstance(self._nested_inputs, (list, tuple)) and not any(
tf.nest.is_nested(t) for t in self._nested_inputs
):
self._enable_dict_to_input_mapping = True
elif isinstance(self._nested_inputs, dict) and not any(
tf.nest.is_nested(t) for t in self._nested_inputs.values()
):
self._enable_dict_to_input_mapping = True
else:
self._enable_dict_to_input_mapping = False
if not tf.compat.v1.executing_eagerly_outside_functions():
if any(
not hasattr(tensor, "_keras_history") for tensor in self.outputs
):
base_layer_utils.create_keras_history(self._nested_outputs)
self._validate_graph_inputs_and_outputs()
# A Network does not create weights of its own, thus it is already
# built.
self.built = True
self._build_input_shape = tf.nest.map_structure(
lambda x: x.shape, inputs
)
self._compute_output_and_mask_jointly = True
# `_expects_training_arg` is True since the `training` argument is
# always present in the signature of the `call` method of a graph
# network.
self._call_spec.expects_training_arg = True
self._call_spec.expects_mask_arg = True
# A graph network does not autocast inputs, as its layers will cast them
# instead.
self._autocast = False
self._input_layers = []
self._output_layers = []
self._input_coordinates = []
self._output_coordinates = []
# This is for performance optimization when calling the Network on new
# inputs. Every time the Network is called on a set on input tensors, we
# compute the output tensors, output masks and output shapes in one
# pass, then cache them here. When any of these outputs is queried
# later, we retrieve it from there instead of recomputing it.
self._output_mask_cache = {}
self._output_tensor_cache = {}
self._output_shape_cache = {}
# Build self._output_layers:
for x in self.outputs:
(
layer,
node_index,
tensor_index,
) = x._keras_history
self._output_layers.append(layer)
self._output_coordinates.append((layer, node_index, tensor_index))
# Build self._input_layers:
for x in self.inputs:
(
layer,
node_index,
tensor_index,
) = x._keras_history
# It's supposed to be an input layer, so only one node
# and one tensor output.
assert node_index == 0
assert tensor_index == 0
self._input_layers.append(layer)
self._input_coordinates.append((layer, node_index, tensor_index))
# Keep track of the network's nodes and layers.
nodes, nodes_by_depth, layers, _ = _map_graph_network(
self.inputs, self.outputs
)
self._network_nodes = nodes
self._nodes_by_depth = nodes_by_depth
self._self_tracked_trackables = layers
self._layer_call_argspecs = {}
for layer in self._self_tracked_trackables:
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(
layer.call
)
# Build self.input_names and self.output_names.
self._set_output_names()
self.input_names = []
self._feed_input_names = []
self._feed_inputs = []
self._feed_input_shapes = []
for layer in self._input_layers:
self.input_names.append(layer.name)
if layer.is_placeholder:
self._feed_input_names.append(layer.name)
# Use batch_input_shape here because non-eager composite tensors
# may not have a shape attribute that's meaningful (sparse, for
# instance, has a tensor that's non-constant and needs to be
# fed). This means that input layers that create placeholders
# will need to have the batch_input_shape attr to allow for
# input shape validation.
self._feed_input_shapes.append(layer._batch_input_shape)
self._feed_inputs.append(layer.input)
self._compute_tensor_usage_count()
self._set_save_spec(self._nested_inputs)
tf_utils.assert_no_legacy_layers(self.layers)
# Note that this method is used by both functional and sequential
# models, so we can't just have this method in functional.__init__,
# which will miss the coverage of sequential model.
if self._layout_map is not None:
layout_map_lib._map_functional_model_variable(
self, self._layout_map
)
| (self, inputs, outputs) | [
-0.013987872749567032,
-0.051239367574453354,
-0.0321928933262825,
0.032925453037023544,
-0.05496154725551605,
0.02577807381749153,
-0.10699287056922913,
0.02953985147178173,
0.022491469979286194,
-0.03543990105390549,
0.006568261422216892,
0.013166220858693123,
-0.0350637249648571,
0.025758275762200356,
0.06482136249542236,
0.052427299320697784,
0.018868284299969673,
-0.002860930748283863,
-0.014255156740546227,
-0.043755412101745605,
-0.02011561021208763,
-0.06620728224515915,
-0.00228923955000937,
0.05064540356397629,
0.011285332031548023,
0.012443563900887966,
0.0002201072929892689,
0.001165656023658812,
-0.023204226046800613,
0.002242217306047678,
-0.042963456362485886,
-0.015641074627637863,
0.00701868487522006,
-0.00301189674064517,
0.021699516102671623,
-0.017650656402111053,
-0.016334032639861107,
0.061891138553619385,
-0.06882072985172272,
-0.027619365602731705,
0.03736038878560066,
-0.07099860161542892,
-0.022709256038069725,
0.015720270574092865,
0.015868760645389557,
0.046368855983018875,
-0.01868019439280033,
0.0033286779653280973,
-0.019452348351478577,
-0.06699923425912857,
-0.010602273046970367,
-0.02853011153638363,
0.0023733845446258783,
0.07044423371553421,
-0.015334192663431168,
-0.021204546093940735,
0.023817989975214005,
-0.02957944944500923,
0.014383848756551743,
-0.04244868829846382,
-0.030411001294851303,
-0.012255474925041199,
-0.027163991704583168,
0.0030514944810420275,
-0.05211051553487778,
-0.030232811346650124,
-0.06731601804494858,
-0.04288426414132118,
0.01344340480864048,
0.037300992757081985,
-0.028312325477600098,
-0.03741978481411934,
0.06343544274568558,
-0.015344091691076756,
-0.0023535857908427715,
-0.02605525776743889,
0.0624455064535141,
-0.025401897728443146,
-0.0052912370301783085,
-0.03965705260634422,
-0.03567748889327049,
0.02100655622780323,
-0.026075057685375214,
-0.04304265230894089,
0.02856970950961113,
-0.0064791664481163025,
0.004593328107148409,
0.059594474732875824,
-0.055040743201971054,
-0.05266488343477249,
-0.011364527978003025,
0.0217193141579628,
0.010770563036203384,
0.04850712791085243,
0.018551502376794815,
0.014116564765572548,
-0.05460516735911369,
-0.08545174449682236,
-0.009463840164244175,
-0.02251126803457737,
-0.014027469791471958,
0.016927998512983322,
-0.07824496924877167,
0.031242551282048225,
-0.03854832053184509,
-0.06296027451753616,
-0.05179373547434807,
-0.02494652383029461,
-0.0255998857319355,
-0.038191940635442734,
-0.02835192158818245,
0.009557884186506271,
0.028134135529398918,
0.014878819696605206,
0.03306404501199722,
0.014364049769937992,
0.013641392812132835,
-0.006607858929783106,
-0.00015320890815928578,
0.0018821260891854763,
0.005801056511700153,
0.08442220091819763,
-0.013591895811259747,
-0.018650496378540993,
-0.0010128337889909744,
0.03528151288628578,
0.04094397649168968,
0.016244938597083092,
0.04387420415878296,
-0.08568932861089706,
-0.009453940205276012,
-0.013205818831920624,
0.003440046450123191,
0.10477539896965027,
0.032133497297763824,
0.03011401742696762,
-0.06232671067118645,
0.01868019439280033,
-0.05175413936376572,
0.043755412101745605,
0.06612809002399445,
-0.021778712049126625,
0.02767876163125038,
0.011394225992262363,
-0.03884530067443848,
-0.007731442339718342,
0.002458767034113407,
-0.0330442450940609,
-0.014047268778085709,
-0.08212553709745407,
0.025085115805268288,
-0.028332123532891273,
-0.008810478262603283,
0.04621046409010887,
-0.02512471377849579,
0.03272746503353119,
-0.05262528732419014,
-0.01023599412292242,
0.025005919858813286,
0.011938693933188915,
-0.08212553709745407,
-0.042567480355501175,
0.03835033252835274,
-0.014631333760917187,
-0.017403170466423035,
0.0067068529315292835,
0.013037528842687607,
-0.034133180975914,
-0.012819741852581501,
0.013651291839778423,
0.01450264174491167,
-0.0018598524620756507,
0.04704201593995094,
0.005444678012281656,
0.005142745561897755,
0.0011668934021145105,
0.05108097568154335,
-0.01260195393115282,
-0.03530131280422211,
0.04692322388291359,
0.02247167006134987,
-0.017432868480682373,
-0.03078717738389969,
0.007681945338845253,
-0.029163673520088196,
0.030549591407179832,
-0.0056822639890015125,
-0.0019006875809282064,
0.05274407938122749,
0.01464123371988535,
-0.013591895811259747,
0.06395021826028824,
0.023580403998494148,
0.019026674330234528,
0.028629105538129807,
-0.01839311234652996,
0.009929112158715725,
0.06751400232315063,
0.04003323242068291,
0.009869716130197048,
-0.016393430531024933,
0.008993618190288544,
0.06731601804494858,
0.019095970317721367,
-0.06596969813108444,
-0.014403647743165493,
-0.005627817008644342,
0.012354468926787376,
-0.012255474925041199,
-0.024431753903627396,
-0.08450140058994293,
-0.01595785655081272,
0.07543353736400604,
0.04383460432291031,
0.02316462993621826,
-0.023144830018281937,
-0.04324064031243324,
0.01595785655081272,
0.012057486921548843,
-0.03718220070004463,
0.04284466430544853,
-0.008617440238595009,
-0.046052075922489166,
-0.03660803288221359,
-0.007191924378275871,
-0.032925453037023544,
-0.0009571496048010886,
0.01645282655954361,
0.010042956098914146,
-0.020511586219072342,
0.01457193773239851,
-0.035538896918296814,
-0.018452508375048637,
0.016126146540045738,
0.014383848756551743,
-0.002358535537496209,
-0.0387859046459198,
-0.05302126333117485,
0.052427299320697784,
-0.04403259605169296,
-0.05904010683298111,
-0.05943608283996582,
-0.030034823343157768,
-0.07883893698453903,
-0.014987712725996971,
0.031559333205223083,
0.027480773627758026,
0.03734058886766434,
-0.004219625145196915,
0.0018747015856206417,
-0.008993618190288544,
0.01809612847864628,
-0.01771005243062973,
0.02154112607240677,
-0.007389912847429514,
-0.06664285808801651,
0.010334988124668598,
-0.03294524922966957,
0.07163216173648834,
0.010740864090621471,
-0.023996179923415184,
0.021521326154470444,
-0.014621434733271599,
0.040310416370630264,
0.023204226046800613,
-0.05215011537075043,
0.04114196449518204,
0.014146262779831886,
-0.011107143014669418,
-0.02122434414923191,
0.09867735952138901,
0.09954851120710373,
-0.019303858280181885,
-0.0019105869578197598,
0.010503278113901615,
-0.04997224360704422,
0.04086478054523468,
0.023243824020028114,
-0.0151461036875844,
0.012423764914274216,
0.026570027694106102,
-0.03047039732336998,
-0.051318563520908356,
-0.011958491988480091,
0.012265373952686787,
-0.019878024235367775,
0.02728278562426567,
-0.029876431450247765,
-0.00576145900413394,
-0.04819034785032272,
0.0660884901881218,
0.003902844153344631,
0.04882391169667244,
0.0217193141579628,
-0.013789883814752102,
-0.023758593946695328,
-0.04945747181773186,
0.005073449574410915,
-0.012562356889247894,
-0.012780143879354,
0.011740704998373985,
0.03300464525818825,
0.09289610385894775,
0.010938853025436401,
0.01874949038028717,
-0.03549930080771446,
-0.0016197916120290756,
0.023738795891404152,
0.014987712725996971,
0.010176598094403744,
-0.005370432045310736,
0.016472624614834785,
0.02197670005261898,
-0.0031603879760950804,
0.02068977616727352,
-0.05365482345223427,
0.03342042118310928,
-0.005890151485800743,
0.05349643528461456,
0.07547313719987869,
-0.011324930004775524,
0.0662468820810318,
-0.007102829869836569,
0.03542010486125946,
-0.053892411291599274,
-0.02817373350262642,
0.10651769489049911,
0.013690889813005924,
-0.010770563036203384,
0.013720587827265263,
-0.0016433027340099216,
-0.05674344301223755,
0.021164948120713234,
0.029163673520088196,
-0.047952763736248016,
0.010681468062102795,
0.013918576762080193,
-0.012720746919512749,
0.007711643818765879,
-0.027124395594000816,
0.05975286290049553,
0.04541851207613945,
-0.023580403998494148,
0.022352878004312515,
-0.00791953131556511,
-0.014601635746657848,
0.05135815963149071,
0.022095492109656334,
-0.05820855498313904,
0.06363343447446823,
-0.011374427005648613,
0.0330442450940609,
-0.007543353829532862,
0.062247518450021744,
0.011998089961707592,
0.04684402793645859,
-0.00524174002930522,
-0.020234402269124985,
0.013878978788852692,
-0.029559651389718056,
0.04232989624142647,
0.02684721164405346,
0.018620798364281654,
0.0014205659972503781,
0.07543353736400604,
-0.023461611941456795,
0.03559829294681549,
-0.013799783773720264,
0.03741978481411934,
-0.018690094351768494,
-0.011176439002156258,
-0.05607028305530548,
0.024510949850082397,
0.013324611820280552,
-0.047833967953920364,
0.04573529213666916,
-0.017591258510947227,
0.011483320035040379,
0.033182837069034576,
0.026471033692359924,
0.010132050141692162,
0.041815124452114105,
0.0005181724554859102,
0.02462974190711975,
0.06137636676430702,
-0.030945569276809692,
0.03011401742696762,
-0.02316462993621826,
0.04347822815179825,
-0.03868691250681877,
0.025283103808760643,
0.00919655617326498,
0.017373472452163696,
-0.0054595270194113255,
-0.006320775952190161,
-0.005667414516210556,
0.034469760954380035,
0.08034364879131317,
-0.033182837069034576,
-0.047913163900375366,
-0.07024624198675156,
-0.07499796152114868,
0.06062401086091995,
0.06699923425912857,
0.02896568551659584,
-0.01630433462560177,
0.03613286092877388,
0.03078717738389969,
-0.000769060745369643,
-0.0026431435253471136,
-0.021105550229549408,
-0.00398946413770318,
-0.009953861124813557,
0.03322243317961693,
0.010334988124668598,
0.02068977616727352,
0.0001077334673027508,
-0.011681308969855309,
0.05151655152440071,
0.02126394212245941,
0.010008308105170727,
0.07456238567829132,
0.07123618572950363,
0.028629105538129807,
0.01867029443383217,
0.011701107956469059,
-0.03419257700443268,
0.08846116811037064,
-0.028272727504372597,
0.03860771656036377,
-0.02860930748283863,
-0.027876749634742737,
0.004209726117551327,
-0.05448637530207634,
-0.010780462063848972,
-0.007845285348594189,
0.06181194260716438,
-0.012255474925041199,
-0.009859816171228886,
0.041815124452114105,
0.01317611988633871,
-0.013027628883719444,
0.03043079935014248,
-0.01620534062385559,
-0.041023172438144684,
0.01271084789186716,
-0.02122434414923191,
0.07733422517776489,
-0.03936007246375084,
-0.008760981261730194,
0.032925453037023544,
-0.009152008220553398,
0.06197033450007439,
-0.016838904470205307,
-0.03542010486125946,
0.0016086548566818237,
0.006696953903883696,
0.004801216069608927,
-0.050882987678050995,
0.006518764421343803,
0.005108097568154335,
0.04830913990736008,
-0.004118156153708696,
0.028629105538129807,
-0.0207887701690197,
-0.025322701781988144,
0.08165036886930466,
0.002685216022655368,
-0.053932007402181625,
0.03452915698289871,
0.08125439286231995,
-0.01828421838581562,
0.0069741373881697655,
-0.013413705863058567,
-0.06296027451753616,
-0.03223249316215515,
0.043676216155290604,
-0.011988190934062004,
-0.01771005243062973,
-0.027658963575959206,
0.02100655622780323,
-0.05187293142080307,
-0.035756684839725494,
0.03086637333035469,
0.009904364123940468,
0.06101999059319496,
0.022036096081137657,
-0.012621752917766571,
0.03997383639216423,
0.0019006875809282064,
-0.07432480156421661,
-0.04838833585381508,
0.05222930759191513,
-0.003578638192266226,
-0.03884530067443848,
-0.02132333815097809,
0.015393588691949844,
-0.011641710996627808,
0.029737839475274086,
-0.03365800902247429,
-0.0007678233087062836,
0.02294684201478958,
-0.01809612847864628,
-0.011770403943955898,
0.02409517392516136,
0.06711802631616592,
-0.029203271493315697,
0.019204864278435707,
-0.03662783280014992,
-0.013799783773720264,
-0.017769448459148407,
-0.017046790570020676,
0.04767557978630066,
0.002291714306920767,
-0.006736551411449909,
0.003942441660910845,
0.017581360414624214,
0.01464123371988535,
-0.006464317440986633,
0.002499602036550641,
0.040488604456186295,
0.04094397649168968,
0.0033410522155463696,
-0.049338679760694504,
0.016680512577295303,
0.06046562269330025,
0.0132652148604393,
-0.005820855498313904,
0.05218971148133278,
-0.018650496378540993,
-0.01204758696258068,
0.012592054903507233,
-0.016769608482718468,
0.05951527878642082,
0.0027594617567956448,
-0.05420919135212898,
0.09495518356561661,
-0.032668065279722214,
-0.11475400626659393,
-0.007657196838408709,
0.011503119021654129,
0.019095970317721367,
0.000039230297261383384,
-0.029797237366437912,
0.017967436462640762,
0.03375700116157532,
0.03417277708649635,
0.014898618683218956,
-0.02039279416203499,
-0.0061425864696502686,
-0.04834873974323273,
0.01806643046438694,
0.004061234649270773,
0.0027668862603604794,
0.06062401086091995,
-0.016551820561289787,
-0.011908994987607002,
0.030925769358873367,
-0.014670931734144688,
0.031737521290779114,
-0.017046790570020676,
0.04062719643115997,
-0.027975745499134064,
-0.047952763736248016,
-0.011344728991389275,
-0.0018623273354023695,
-0.07357244938611984,
-0.020709574222564697,
-0.068107970058918,
0.027797555550932884,
0.005563471000641584,
-0.007795788813382387,
0.033677808940410614,
-0.020491788163781166,
-0.009340097196400166,
0.008468949235975742,
-0.02344181202352047,
0.028510313481092453,
0.023857587948441505,
-0.01985822431743145,
0.030034823343157768,
0.00851349625736475,
-0.02441195584833622,
0.006830595899373293,
0.07171135395765305,
-0.00843925029039383,
-0.0033583762124180794,
0.033717405050992966,
-0.008266011252999306,
-0.016215240582823753,
-0.001179886399768293,
0.02963884547352791,
-0.004825964570045471,
-0.01335430983453989,
-0.00690979091450572,
0.01512630470097065,
-0.06525693833827972,
-0.011146740056574345,
0.010374586097896099,
-0.008325407281517982,
-0.08018525689840317,
0.015829162672162056,
0.0127405459061265,
0.0013438455061987042,
0.026570027694106102,
-0.06212872266769409,
-0.032252293080091476,
0.019026674330234528,
0.000639130943454802,
-0.041023172438144684,
0.010572574101388454,
0.027084797620773315,
0.0010153086623176932,
-0.04906149581074715,
-0.032668065279722214,
-0.07163216173648834,
-0.04320104420185089,
0.05634746700525284,
0.05064540356397629,
-0.03791475668549538,
0.05230850353837013,
-0.011790201999247074,
-0.04569569602608681,
-0.01724478043615818,
-0.07297848165035248,
0.0265304297208786,
0.012532657943665981,
-0.04423058405518532,
0.022392474114894867,
0.03904328867793083,
0.03874630853533745,
-0.008795629255473614,
-0.02259046398103237,
-0.010958651080727577,
0.06949388980865479,
-0.08070002496242523,
0.02057098224759102,
0.001967508578673005,
-0.01023599412292242,
-0.011661509983241558,
-0.03631105273962021,
-0.028371721506118774,
-0.005340734031051397,
-0.033677808940410614,
0.01161201298236847,
-0.044151388108730316,
0.025283103808760643,
-0.014651132747530937,
0.08624369651079178,
0.011988190934062004,
-0.05919849872589111,
0.06882072985172272,
0.024689139798283577,
-0.019590940326452255,
0.04569569602608681,
0.016284536570310593,
-0.02825292758643627,
-0.031816717237234116,
0.02383778989315033,
-0.02229348011314869,
0.008434301242232323,
-0.017987236380577087,
0.028767697513103485,
0.007078081369400024,
-0.06347504258155823,
0.015858860686421394,
-0.02706499770283699,
-0.03086637333035469,
0.016472624614834785,
0.02746097557246685,
-0.08727323263883591,
-0.06486096233129501,
0.0012071097735315561,
-0.008211564272642136,
-0.01653202250599861,
-0.018987076357007027,
0.03209390118718147,
0.02322402596473694,
-0.007681945338845253,
-0.044507768005132675,
-0.009978609159588814,
0.04581448808312416,
-0.027876749634742737,
0.01023599412292242,
0.015928156673908234,
-0.016967596486210823,
-0.02627304568886757,
-0.0292824674397707,
0.06969187408685684,
-0.00960738118737936,
0.016393430531024933,
-0.008493697270751,
0.028629105538129807,
-0.010829959064722061,
-0.04276546835899353,
-0.03868691250681877,
-0.0359150730073452,
-0.03050999529659748,
-0.049813851714134216,
-0.02158072218298912,
0.00860259123146534,
-0.029797237366437912,
-0.068266361951828,
-0.005266488529741764,
0.032569073140621185,
0.05757499486207962,
-0.09978609532117844,
0.016175642609596252,
-0.012255474925041199,
-0.006088139954954386,
0.004929908085614443,
-0.03336102515459061,
0.026906607672572136,
-0.061099182814359665,
-0.012423764914274216,
-0.008652088232338428,
0.017304176464676857,
0.024748535826802254,
-0.01286923885345459,
0.0016989869764074683,
0.02348140999674797,
0.030806977301836014,
0.023857587948441505,
0.011255634017288685,
-0.04189432039856911,
-0.0028386570047587156,
-0.030054621398448944,
-0.07388922572135925,
0.053575631231069565,
-0.001529459492303431,
0.018937580287456512,
0.04914069175720215,
-0.04328024014830589,
0.0021865330636501312,
-0.020551184192299843,
-0.037439584732055664,
0.05230850353837013,
0.009057964198291302,
-0.03435096889734268,
-0.0025391997769474983,
0.04098357632756233,
-0.048586323857307434,
-0.07622548937797546,
0.026411637663841248,
-0.007949229329824448,
0.02587706968188286,
0.0623663105070591,
-0.02953985147178173,
0.009543035179376602,
-0.04272587224841118,
0.044507768005132675,
-0.009637080132961273,
-0.007622548844665289,
-0.0021011505741626024,
0.06711802631616592,
0.003930067643523216,
-0.010909154079854488,
-0.01792783848941326,
-0.04114196449518204,
-0.09226254373788834,
0.01974933221936226,
-0.05907970294356346,
0.05650585517287254,
-0.026570027694106102,
0.015621275641024113,
0.0349845290184021,
0.01530449464917183,
0.013809682801365852
] |
|
725,114 | tf_keras.src.engine.functional | _init_set_name | null | def _init_set_name(self, name, zero_based=True):
if not name:
cls_name = self.__class__.__name__
if self.__class__ == Functional:
# Hide the functional class name from user, since its not a
# public visible class. Use "Model" instead,
cls_name = "Model"
self._name = backend.unique_object_name(
generic_utils.to_snake_case(cls_name), zero_based=zero_based
)
else:
self._name = name
| (self, name, zero_based=True) | [
0.00366420135833323,
0.012700778432190418,
-0.0170147567987442,
0.04276464506983757,
-0.012691847048699856,
-0.040835414081811905,
0.020739246159791946,
0.056162092834711075,
0.039191994816064835,
-0.013986933045089245,
-0.012450693175196648,
0.062128420919179916,
0.03908481448888779,
0.004139810800552368,
-0.02132873423397541,
0.012280992232263088,
0.0340295135974884,
0.03488694876432419,
-0.03879900276660919,
-0.025026429444551468,
0.004394362214952707,
-0.008306416682898998,
0.04205011576414108,
0.010816204361617565,
0.018140140920877457,
0.0627714991569519,
-0.02656266838312149,
0.04169284924864769,
0.03188592195510864,
-0.07559732347726822,
-0.03226104751229286,
-0.0036441052798181772,
0.006408445071429014,
0.010566119104623795,
0.05423286184668541,
-0.029724465683102608,
0.00819477066397667,
0.037620026618242264,
-0.026616258546710014,
-0.03987079858779907,
0.10146332532167435,
-0.0036441052798181772,
-0.04973131790757179,
-0.02817036211490631,
-0.012245265766978264,
0.02847403846681118,
0.03740566968917847,
0.06673714518547058,
-0.002556679304689169,
0.03669113665819168,
-0.05973474308848381,
0.011762957088649273,
0.0012225168757140636,
0.014719326980412006,
-0.04072823375463486,
0.007743723690509796,
0.03129643201828003,
0.026384036988019943,
-0.035601478070020676,
0.03206455335021019,
-0.021275144070386887,
0.0009802464628592134,
0.012352445162832737,
-0.026473352685570717,
-0.04151421785354614,
-0.005443828646093607,
0.004057193174958229,
0.022043263539671898,
-0.008016138337552547,
0.07724074274301529,
0.019667450338602066,
0.015174840576946735,
0.02079283632338047,
0.01326347142457962,
0.01570180617272854,
0.03794156759977341,
-0.051767729222774506,
0.00049542635679245,
-0.02720574662089348,
-0.01396907027810812,
0.05269661918282509,
0.0031550985295325518,
-0.08288553357124329,
-0.028384720906615257,
-0.029938824474811554,
-0.009467528201639652,
-0.055697645992040634,
-0.08281407505273819,
0.01070009358227253,
-0.022632751613855362,
-0.053339697420597076,
0.041371311992406845,
0.018175868317484856,
0.03099275752902031,
0.004715900868177414,
-0.03983507305383682,
-0.01895291917026043,
-0.05244653299450874,
0.01872069761157036,
0.026455489918589592,
0.008382335305213928,
-0.010173127055168152,
-0.003335963934659958,
0.011414623819291592,
-0.01697009801864624,
-0.04823080450296402,
-0.014344198629260063,
-0.004724832717329264,
-0.025848139077425003,
-0.0219003576785326,
0.01475505344569683,
0.047480545938014984,
0.03686977177858353,
0.009601502679288387,
-0.020346254110336304,
-0.0273665152490139,
0.03331498056650162,
-0.011253854259848595,
0.040228065103292465,
-0.024829933419823647,
-0.0061628250405192375,
0.007426650729030371,
-0.0818137377500534,
0.00894502829760313,
-0.0035570217296481133,
0.02002471499145031,
0.017104072496294975,
0.007163167465478182,
0.0654509887099266,
-0.009583639912307262,
0.041942935436964035,
-0.007774984464049339,
-0.037548575550317764,
0.016291294246912003,
0.05766260623931885,
0.013066975399851799,
0.0008356656762771308,
0.08088484406471252,
-0.06437919288873672,
0.10317819565534592,
-0.0206320658326149,
-0.024669162929058075,
-0.0072480179369449615,
0.05269661918282509,
0.024204717949032784,
0.007301608100533485,
0.01079834159463644,
0.015728600323200226,
-0.019810356199741364,
-0.01228992361575365,
-0.020846424624323845,
0.052803799510002136,
0.0016735643148422241,
0.02900993637740612,
-0.0259553175419569,
-0.00007215082587208599,
-0.06684432178735733,
-0.024633437395095825,
-0.005930602550506592,
0.004148742184042931,
-0.022007538005709648,
0.00004340214218245819,
-0.043550629168748856,
-0.04108550027012825,
0.0039075883105397224,
-0.045729946345090866,
-0.03251113370060921,
-0.030028142035007477,
-0.013656462542712688,
0.045801401138305664,
0.006497761234641075,
-0.03513703495264053,
-0.004409992601722479,
0.03252899646759033,
0.051267560571432114,
0.010298170149326324,
0.015058728866279125,
0.01440672017633915,
0.029134979471564293,
-0.03433318808674812,
0.05691234767436981,
0.00468017440289259,
-0.04608721286058426,
-0.012638256885111332,
-0.0051535507664084435,
0.005993124097585678,
-0.010074879042804241,
0.0382988303899765,
0.04883815720677376,
0.0411212258040905,
-0.013710052706301212,
0.016720011830329895,
-0.015514242462813854,
0.0017852096352726221,
0.05651935935020447,
0.022722067311406136,
0.04776636138558388,
0.0013118332717567682,
0.04447951912879944,
0.005506350193172693,
0.0055242134258151054,
0.06323594599962234,
0.006640667095780373,
-0.004675708711147308,
0.0006609406555071473,
0.00812331773340702,
0.04169284924864769,
0.042979005724191666,
-0.007283744867891073,
-0.039799343794584274,
-0.014272745698690414,
0.029438653960824013,
-0.027795234695076942,
0.0465516597032547,
0.00643970537930727,
-0.03901336342096329,
0.042943280190229416,
-0.041871484369039536,
0.08167082816362381,
0.033422160893678665,
0.029795918613672256,
0.02350805141031742,
0.051231831312179565,
-0.014299540780484676,
0.0004289973876439035,
-0.0382988303899765,
-0.014683600515127182,
-0.02273993194103241,
-0.014228086918592453,
0.019613860175013542,
-0.006502226926386356,
-0.006729983724653721,
-0.006136029958724976,
-0.04101404547691345,
-0.04094259440898895,
-0.009413938969373703,
0.014165566302835941,
-0.010905520990490913,
-0.09774776548147202,
-0.06462927907705307,
-0.014844370074570179,
0.0006475432310253382,
-0.020882152020931244,
0.016416337341070175,
-0.008382335305213928,
-0.02354377880692482,
-0.04065678268671036,
0.03310062363743782,
-0.026437625288963318,
-0.012138085439801216,
0.04998140409588814,
0.008069728501141071,
-0.052803799510002136,
0.004474746994674206,
-0.00458639208227396,
-0.03190378472208977,
-0.08174227923154831,
-0.02767019160091877,
-0.004086221102625132,
0.007783915847539902,
-0.0819566398859024,
-0.05541183426976204,
-0.04887388274073601,
0.02579454891383648,
-0.0022429556120187044,
-0.03061763010919094,
0.025937454774975777,
-0.0014078482054173946,
-0.038084473460912704,
-0.020614203065633774,
0.08581510186195374,
-0.017568517476320267,
0.013638599775731564,
0.024937111884355545,
0.008065261878073215,
-0.08017031848430634,
-0.025240788236260414,
-0.025080017745494843,
-0.08345715701580048,
0.002190482337027788,
0.055126022547483444,
-0.055126022547483444,
0.01697009801864624,
0.05909166857600212,
-0.006051179487258196,
-0.04215729609131813,
0.013790437020361423,
-0.03890618309378624,
-0.038048744201660156,
-0.046337299048900604,
-0.014889027923345566,
0.04340772330760956,
-0.00339625240303576,
0.0171219352632761,
-0.0011655777925625443,
-0.029724465683102608,
-0.032278914004564285,
0.02431189827620983,
0.007346265949308872,
-0.0204891599714756,
0.031171390786767006,
0.015523173846304417,
-0.0074221850372850895,
-0.016139457002282143,
-0.021346597000956535,
-0.06445064395666122,
-0.04451524466276169,
0.015424925833940506,
0.014317403547465801,
0.03679831698536873,
-0.012852616608142853,
0.05519747734069824,
-0.055054571479558945,
0.050624482333660126,
0.04505114257335663,
0.08567219972610474,
0.026241131126880646,
-0.010557186789810658,
0.03295771777629852,
0.08660108596086502,
0.009333553723990917,
-0.024168992415070534,
-0.08288553357124329,
-0.013504625298082829,
0.0038048746064305305,
0.008493980392813683,
-0.016327019780874252,
-0.03481549397110939,
-0.03486908599734306,
0.03517276048660278,
-0.06352175772190094,
-0.0005967445322312415,
0.014424582943320274,
0.012155949138104916,
-0.03947780653834343,
0.031117800623178482,
0.014165566302835941,
0.00380264176055789,
0.00011918144446099177,
-0.038227379322052,
0.004383197519928217,
-0.004537268076092005,
-0.07220330089330673,
0.014585352502763271,
-0.02713429369032383,
0.014362061396241188,
0.002514254068955779,
-0.04115695133805275,
0.0630573108792305,
-0.02633044682443142,
-0.046944648027420044,
-0.05691234767436981,
-0.019774630665779114,
-0.021310869604349136,
0.04705182835459709,
0.019631722941994667,
-0.01014633197337389,
0.009762272238731384,
-0.017175525426864624,
-0.019113689661026,
0.015139113180339336,
-0.043550629168748856,
0.0009489857475273311,
-0.016952235251665115,
-0.0158536434173584,
-0.03356506675481796,
0.03420814499258995,
0.029295748099684715,
-0.031778741627931595,
-0.05980619788169861,
-0.02804531902074814,
-0.044658150523900986,
-0.013066975399851799,
-0.02022121101617813,
-0.04598003253340721,
0.0519820898771286,
0.07127441465854645,
-0.012147017754614353,
-0.020703518763184547,
-0.061092350631952286,
0.00023292018158826977,
0.009789067320525646,
0.05030294135212898,
0.04651593044400215,
-0.003315867856144905,
0.01358500961214304,
0.0009568009409122169,
0.011628982611000538,
0.08388587087392807,
0.007944685406982899,
0.04869524762034416,
-0.010914452373981476,
0.020149758085608482,
0.032350365072488785,
0.04397934675216675,
-0.02182890474796295,
0.009931973181664944,
-0.036941222846508026,
-0.02132873423397541,
0.04001370444893837,
-0.045194048434495926,
-0.044122256338596344,
0.024812068790197372,
0.04222874715924263,
-0.009431801736354828,
0.028223952278494835,
0.059949103742837906,
0.006587077397853136,
0.001517260679975152,
0.03340429812669754,
0.001699242740869522,
-0.006484363693743944,
-0.060556452721357346,
-0.06141389161348343,
0.043550629168748856,
0.05701952800154686,
0.02652694284915924,
-0.034565411508083344,
0.04980277270078659,
0.0040415627881884575,
-0.030367543920874596,
0.06948808580636978,
0.052339352667331696,
0.0491596944630146,
-0.018542064353823662,
0.02583027444779873,
0.0010623057605698705,
0.003923218697309494,
0.050052858889102936,
0.03565507009625435,
-0.06720158457756042,
0.006515624467283487,
0.016523515805602074,
-0.017497064545750618,
0.02391890622675419,
-0.00785090308636427,
0.0015418226830661297,
-0.00919064786285162,
-0.08009885996580124,
0.0009880616562440991,
0.03628028184175491,
-0.04894533380866051,
0.0004164372803643346,
0.01891719363629818,
-0.05155337229371071,
-0.0017740450566634536,
-0.020381981506943703,
0.04158567264676094,
-0.01106629054993391,
-0.010941247455775738,
0.03951353207230568,
0.045265503227710724,
-0.018559928983449936,
-0.036065924912691116,
0.02434762381017208,
-0.016023345291614532,
-0.05201781541109085,
-0.018488474190235138,
0.024829933419823647,
0.00034721713745966554,
-0.09010228514671326,
0.08360005915164948,
0.0076454756781458855,
0.01841702125966549,
-0.03270763158798218,
0.05787696689367294,
0.061628248542547226,
-0.009771203622221947,
0.0013732381630688906,
-0.05862722173333168,
0.01085193082690239,
0.008426993153989315,
0.027688054367899895,
-0.012325650081038475,
-0.08510057628154755,
-0.014326334930956364,
-0.062271326780319214,
0.009163852781057358,
0.0014681367902085185,
-0.02186463214457035,
0.031492929905653,
0.02767019160091877,
0.04051387682557106,
0.041871484369039536,
0.016827192157506943,
0.015755396336317062,
-0.03333284333348274,
0.008431458845734596,
0.03958498686552048,
-0.03733421489596367,
-0.031743016093969345,
0.004979384131729603,
-0.01762210763990879,
0.049052514135837555,
-0.036976948380470276,
0.04269319400191307,
0.04723046347498894,
0.030778398737311363,
-0.03847746551036835,
0.006582611706107855,
-0.013504625298082829,
-0.024740615859627724,
-0.006855026353150606,
-0.02009616792201996,
0.02357950434088707,
-0.008279621601104736,
-0.06452209502458572,
-0.022311212494969368,
-0.004150975029915571,
-0.05248226225376129,
0.004418923985213041,
-0.03797729313373566,
0.0017483666306361556,
-0.008011672645807266,
0.013718984089791775,
-0.031117800623178482,
-0.04608721286058426,
-0.022900700569152832,
-0.06302158534526825,
0.019971124827861786,
0.031492929905653,
-0.031064210459589958,
-0.04483678564429283,
0.029742330312728882,
-0.0014123140135779977,
0.014638942666351795,
0.0024160060565918684,
-0.009208510629832745,
0.03669113665819168,
0.07156022638082504,
-0.025365831330418587,
0.013879753649234772,
-0.023329418152570724,
0.07859835028648376,
-0.020810699090361595,
0.03245754539966583,
-0.04651593044400215,
-0.01123599149286747,
0.013656462542712688,
0.005573337431997061,
0.02920643240213394,
0.02572309598326683,
0.06655851006507874,
-0.014013728126883507,
0.037584301084280014,
-0.07931287586688995,
-0.04437233880162239,
0.04480106011033058,
-0.00023529263853561133,
-0.01918514259159565,
-0.025365831330418587,
-0.03904908895492554,
-0.08931630104780197,
-0.057233888655900955,
-0.009279964491724968,
-0.019703175872564316,
-0.0007128557772375643,
-0.00145697221159935,
-0.005318786017596722,
0.06352175772190094,
-0.007940219715237617,
0.031242843717336655,
0.07270347326993942,
0.010226717218756676,
0.04072823375463486,
0.0027308459393680096,
-0.016041208058595657,
-0.05358978360891342,
0.04565849527716637,
-0.008525241166353226,
0.0006419609417207539,
-0.045158322900533676,
0.01601441390812397,
0.1095375195145607,
-0.019024372100830078,
0.03790583834052086,
0.04651593044400215,
0.03436891362071037,
-0.03744139522314072,
-0.04383644089102745,
0.0003181893262080848,
0.038691822439432144,
-0.058841582387685776,
-0.019113689661026,
-0.05112465098500252,
-0.054482944309711456,
-0.007189962547272444,
0.0006687558488920331,
-0.04487251117825508,
-0.0494455061852932,
-0.060020558536052704,
-0.008279621601104736,
-0.016907576471567154,
-0.01589830219745636,
-0.03140361234545708,
0.0035369256511330605,
0.0038160390686243773,
-0.06738021969795227,
0.0327254943549633,
0.0027554079424589872,
-0.015335609205067158,
0.01282582152634859,
-0.011289580725133419,
0.061128079891204834,
0.0438007153570652,
0.006060111336410046,
-0.0633431226015091,
0.030778398737311363,
-0.009985562413930893,
0.022311212494969368,
0.0071274410001933575,
0.008034002035856247,
0.029331473633646965,
0.07559732347726822,
0.0009255402255803347,
-0.036441050469875336,
-0.004101851489394903,
-0.0065334876999258995,
0.051732003688812256,
-0.026008907705545425,
-0.05148191750049591,
0.014326334930956364,
0.020114032551646233,
0.02441907860338688,
-0.07631184905767441,
-0.04197866469621658,
0.046837471425533295,
-0.06695149838924408,
0.04108550027012825,
-0.03324352949857712,
-0.01623770408332348,
-0.03653036803007126,
-0.027009250596165657,
-0.0436578094959259,
0.02813463658094406,
0.018935056403279305,
-0.010923383757472038,
0.028259679675102234,
-0.01693437062203884,
0.015014071017503738,
-0.026348309591412544,
-0.0016690983902662992,
0.07188176363706589,
0.03676259145140648,
-0.04151421785354614,
0.021007195115089417,
0.00961043406277895,
0.0019124853424727917,
0.04869524762034416,
-0.0022730999626219273,
-0.06255713850259781,
0.007520433049649,
0.02984950877726078,
-0.013772574253380299,
0.05133901163935661,
-0.018792150542140007,
-0.06069936230778694,
-0.07423971593379974,
0.0061628250405192375,
-0.04233592748641968,
-0.021775314584374428,
-0.04062105715274811,
0.04280037432909012,
0.013084838166832924,
0.029867371544241905,
0.025812411680817604,
0.002371347974985838,
-0.0521249957382679,
-0.06455782800912857,
0.002386978128924966,
-0.027527285739779472,
0.038048744201660156,
0.028795575723052025,
-0.08259972184896469,
-0.015960823744535446,
-0.010834068059921265,
0.07281064987182617,
0.05434003844857216,
0.04340772330760956,
0.004320676438510418,
-0.028563354164361954,
-0.009061139076948166,
-0.001206886605359614,
-0.011512871831655502,
0.07038124650716782,
0.005501884501427412,
-0.01952454447746277,
-0.029474381357431412,
0.07545441389083862,
-0.027348652482032776,
0.013308129273355007,
-0.01014633197337389,
-0.0067433807998895645,
0.034261733293533325,
-0.0343867763876915,
-0.04558704048395157,
0.00785090308636427,
-0.029974551871418953,
-0.018291980028152466,
0.023954633623361588,
0.04422943294048309,
0.02713429369032383,
-0.022257622331380844,
-0.026401899755001068,
-0.025866001844406128,
0.02036411687731743,
-0.027455832809209824,
0.03420814499258995,
0.05033867061138153,
-0.08695835620164871,
0.028456173837184906,
-0.016523515805602074,
0.01826518401503563,
0.00156973407138139,
0.02817036211490631,
-0.0028514231089502573,
0.00425368919968605,
0.058341410011053085,
-0.023400871083140373,
0.01700582355260849,
0.06198551505804062,
-0.0063861156813800335,
0.02220403403043747,
-0.002328922739252448,
0.01662176474928856,
-0.02213258109986782,
-0.04197866469621658,
-0.025544462725520134,
-0.018542064353823662,
0.010226717218756676,
0.006046713795512915,
0.014424582943320274,
-0.04605148732662201,
0.02032839134335518,
0.0876014307141304,
-0.06998825818300247,
0.08502912521362305,
0.0026526942383497953,
-0.032582588493824005,
0.058269958943128586,
-0.05705525353550911,
-0.026759164407849312,
-0.0245798472315073,
0.027830960229039192,
-0.050088584423065186,
0.06255713850259781,
0.038691822439432144,
-0.0043742661364376545,
0.008605626411736012,
0.04255028814077377,
0.05587628111243248,
-0.02774164453148842,
-0.01078047789633274,
0.0030211240518838167,
0.011039495468139648,
-0.07073851674795151,
-0.003994671627879143,
0.03951353207230568,
0.026848481968045235,
-0.018059756606817245,
0.008855711668729782,
-0.0009132592240348458,
0.024740615859627724,
-0.017550654709339142,
0.04330054298043251,
0.02277565747499466,
0.054625850170850754,
0.01796150952577591
] |
725,115 | tf_keras.src.engine.functional | _insert_layers | Inserts Layers into the Network after Network creation.
This is only valid for TF-Keras Graph Networks. Layers added via this
function will be included in the `call` computation and `get_config` of
this Network. They will not be added to the Network's outputs.
Args:
layers: Arbitrary nested structure of Layers. Layers must be reachable
from one or more of the `keras.Input` Tensors that correspond to
this Network's inputs.
relevant_nodes: Nodes from the Layers that should be considered part
of this Network. If `None`, all Nodes will be considered part of
this Network.
Raises:
ValueError: If the layers depend on `Input`s not found in this Model.
| def _insert_layers(self, layers, relevant_nodes=None):
"""Inserts Layers into the Network after Network creation.
This is only valid for TF-Keras Graph Networks. Layers added via this
function will be included in the `call` computation and `get_config` of
this Network. They will not be added to the Network's outputs.
Args:
layers: Arbitrary nested structure of Layers. Layers must be reachable
from one or more of the `keras.Input` Tensors that correspond to
this Network's inputs.
relevant_nodes: Nodes from the Layers that should be considered part
of this Network. If `None`, all Nodes will be considered part of
this Network.
Raises:
ValueError: If the layers depend on `Input`s not found in this Model.
"""
layers = tf.nest.flatten(layers)
tf_utils.assert_no_legacy_layers(layers)
node_to_depth = {}
for depth, nodes in self._nodes_by_depth.items():
node_to_depth.update({node: depth for node in nodes})
# The nodes of these Layers that are relevant to this Network. If not
# provided, assume all Nodes are relevant
if not relevant_nodes:
relevant_nodes = tf.nest.flatten(
[layer._inbound_nodes for layer in layers]
)
network_nodes = set(relevant_nodes + list(node_to_depth.keys()))
def _get_min_depth(node):
"""Gets the minimum depth at which node can be computed."""
min_depth = 0
for layer, node_id, _, _ in node.iterate_inbound():
inbound_node = layer._inbound_nodes[node_id]
if inbound_node in node_to_depth:
min_depth = min(min_depth, node_to_depth[inbound_node])
elif inbound_node not in network_nodes:
continue
else:
# Previous relevant nodes haven't been processed yet.
return None
# New node is one shallower than its shallowest input.
return min_depth - 1
# Insert nodes into `_nodes_by_depth` and other node attrs.
unprocessed_nodes = copy.copy(relevant_nodes)
i = 0
while unprocessed_nodes:
i += 1
# Do a sanity check. This can occur if `Input`s from outside this
# Model are being relied on.
if i > 10000:
raise ValueError(
"Layers could not be added due to missing dependencies."
)
node = unprocessed_nodes.pop(0)
depth = _get_min_depth(node)
if depth is None: # Defer until inbound nodes are processed.
unprocessed_nodes.append(node)
continue
node_key = _make_node_key(
node.layer.name, node.layer._inbound_nodes.index(node)
)
if node_key not in self._network_nodes:
node_to_depth[node] = depth
self._network_nodes.add(node_key)
self._nodes_by_depth[depth].append(node)
# Insert layers and update other layer attrs.
layer_set = set(self._self_tracked_trackables)
deferred_layers = []
for layer in layers:
if layer not in layer_set:
self._self_tracked_trackables.append(layer)
deferred_layers.append(layer)
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(
layer.call
)
layer_set.add(layer)
self._handle_deferred_layer_dependencies(deferred_layers)
self._compute_tensor_usage_count()
| (self, layers, relevant_nodes=None) | [
-0.043536461889743805,
-0.04164528846740723,
-0.061778437346220016,
0.041211891919374466,
-0.027264464646577835,
0.029411736875772476,
-0.08029621094465256,
0.02807215414941311,
0.03358808532357216,
-0.009908977895975113,
0.013238237239420414,
-0.020369548350572586,
-0.014439921826124191,
-0.0025511186104267836,
0.0356171615421772,
0.01593710295855999,
-0.007234735880047083,
-0.004912626929581165,
-0.00904218852519989,
-0.0792718231678009,
-0.002441538730636239,
-0.03583385795354843,
0.018015427514910698,
0.002932801377028227,
0.01725698821246624,
0.02933293767273426,
0.029431438073515892,
0.005796653684228659,
-0.03203180432319641,
0.02210312709212303,
-0.044797249138355255,
-0.018035126850008965,
-0.033391088247299194,
-0.026949267834424973,
0.012066101655364037,
-0.010076425969600677,
0.005939476657658815,
0.06248762831091881,
-0.06831875443458557,
-0.045900434255599976,
0.011563757434487343,
-0.025885481387376785,
-0.01753278449177742,
-0.01799572817981243,
0.004540794063359499,
0.03343048691749573,
-0.0012170756235718727,
0.04550644010305405,
-0.022457722574472427,
-0.03518376499414444,
0.00431424705311656,
-0.043418265879154205,
0.022969916462898254,
0.04129069298505783,
0.008992939256131649,
-0.049761585891246796,
-0.002122648758813739,
-0.054331932216882706,
0.026161277666687965,
-0.03055432438850403,
0.027028067037463188,
0.0008427802240476012,
-0.03502616658806801,
0.018222276121377945,
-0.06363021582365036,
0.0009006483014672995,
-0.09156446903944016,
-0.031086217612028122,
0.01121901161968708,
0.028958642855286598,
-0.023363912478089333,
-0.03618845343589783,
0.045348841696977615,
-0.02535358816385269,
-0.012410847470164299,
0.031559012830257416,
0.04164528846740723,
-0.03766593709588051,
0.01768053136765957,
-0.019877055659890175,
-0.03411997854709625,
0.004420132841914892,
-0.00674224179238081,
0.014824067242443562,
0.07911422848701477,
-0.01624245010316372,
-0.008791016414761543,
0.029766332358121872,
-0.02243802323937416,
-0.07647445797920227,
-0.01857687160372734,
0.008195099420845509,
-0.01414442528039217,
0.02172883227467537,
0.060241859406232834,
0.025846080854535103,
-0.017296386882662773,
-0.08581214398145676,
0.004356108605861664,
-0.008963389322161674,
0.006358096841722727,
-0.003871002234518528,
-0.049643389880657196,
0.027028067037463188,
-0.03232730180025101,
-0.08210858702659607,
-0.055829111486673355,
0.003011600347235799,
-0.07820803672075272,
0.00010203858983004466,
-0.03593235835433006,
-0.03827662765979767,
0.006668367888778448,
0.001360514434054494,
0.030613422393798828,
0.01144555862993002,
0.0302785262465477,
0.009071738459169865,
0.02393520437180996,
0.012883640825748444,
-0.0032381475903093815,
0.039773810654878616,
-0.011810004711151123,
-0.0062891473062336445,
-0.0065009198151528835,
-0.009613481350243092,
0.05275594815611839,
0.018803417682647705,
0.01566130667924881,
-0.12426606565713882,
0.016380347311496735,
-0.00762380613014102,
-0.04302426800131798,
0.05346514284610748,
0.014686169102787971,
-0.00395472627133131,
-0.06851575523614883,
0.02415190264582634,
-0.021571233868598938,
0.004420132841914892,
0.023915505036711693,
-0.06173903867602348,
0.018468521535396576,
0.004447220358997583,
-0.06335441768169403,
-0.02289111725986004,
-0.02127573825418949,
-0.046727824956178665,
-0.031401414424180984,
-0.03894641995429993,
0.006771791726350784,
-0.01640004850924015,
-0.029076842591166496,
0.04570343717932701,
-0.041605886071920395,
0.032780397683382034,
-0.04432445392012596,
-0.007899602875113487,
0.009756304323673248,
-0.013957277871668339,
-0.05192856118083,
-0.028643447905778885,
0.04199988394975662,
-0.02393520437180996,
-0.007658280432224274,
0.00806212518364191,
-0.004242835100740194,
-0.031519610434770584,
-0.015257461927831173,
0.018074527382850647,
0.06540319323539734,
0.04073909670114517,
0.06855515390634537,
0.01425277441740036,
0.02730386331677437,
-0.028131254017353058,
0.04322126880288124,
-0.046333830803632736,
-0.032898593693971634,
0.025708183646202087,
0.019532309845089912,
0.000895723351277411,
0.0017126476159319282,
0.007554857060313225,
-0.025885481387376785,
0.008736842311918736,
0.0036296802572906017,
-0.0015205750241875648,
0.002333190059289336,
-0.00044478356721810997,
0.014696018770337105,
0.07127372175455093,
0.04081789776682854,
0.043418265879154205,
0.0014454696793109179,
0.01640004850924015,
-0.009386934340000153,
0.06114804744720459,
0.022516822442412376,
0.04184228554368019,
-0.020192250609397888,
0.0021460424177348614,
0.08108419924974442,
0.015769654884934425,
-0.013573132455348969,
-0.04393045976758003,
-0.012588145211338997,
-0.013297336176037788,
-0.0626058280467987,
-0.016075002029538155,
-0.049328193068504333,
-0.015671156346797943,
0.0709979236125946,
0.0413694903254509,
0.0016646294388920069,
-0.03869032487273216,
-0.0386706218123436,
0.028466148301959038,
0.019315611571073532,
-0.038552425801754,
0.015346110798418522,
0.011248561553657055,
-0.043142467737197876,
-0.04558523744344711,
0.001225694315508008,
-0.030889218673110008,
0.017237287014722824,
0.0036075180396437645,
0.018192725256085396,
-0.035203464329242706,
0.01055906992405653,
-0.04097549617290497,
-0.05882347375154495,
-0.0014196137199178338,
0.053346943110227585,
-0.014242924749851227,
-0.019502758979797363,
-0.059414468705654144,
0.0905400812625885,
-0.04660962522029877,
-0.050746574997901917,
-0.03258339688181877,
-0.020369548350572586,
-0.039123717695474625,
-0.01089396607130766,
0.0206256452947855,
-0.000987450359389186,
0.0007898371550254524,
-0.010470421053469181,
0.03402148187160492,
0.007082062773406506,
-0.005880377721041441,
0.007663205731660128,
0.028210053220391273,
-0.03435637801885605,
-0.024289799854159355,
-0.006175873801112175,
-0.02430950105190277,
0.04330006614327431,
-0.01500136498361826,
-0.052361954003572464,
0.023836705833673477,
-0.02399430423974991,
0.0545683279633522,
-0.00672746729105711,
-0.04842200502753258,
0.044915445148944855,
0.012755592353641987,
-0.008234498091042042,
-0.005402658600360155,
0.0798628181219101,
0.10425111651420593,
0.011484958231449127,
-0.024782294407486916,
0.009145611897110939,
-0.05385913699865341,
0.03406088054180145,
0.03441547602415085,
-0.004511244595050812,
0.0053041595965623856,
0.04404865577816963,
-0.04708242043852806,
-0.08486655354499817,
-0.001186910318210721,
-0.015730256214737892,
0.002657004864886403,
0.013139737769961357,
-0.03894641995429993,
-0.02090144157409668,
-0.04751581326127052,
0.025550585240125656,
-0.008441345766186714,
0.044954847544431686,
0.028485849499702454,
-0.030810419470071793,
-0.01325793657451868,
-0.09542562067508698,
0.029411736875772476,
0.012400996871292591,
0.020428648218512535,
0.003001750446856022,
0.004841215442866087,
0.05571091175079346,
-0.003174123354256153,
0.042433276772499084,
-0.028367649763822556,
-0.002785053104162216,
0.013001839630305767,
-0.02580668218433857,
0.027934255078434944,
-0.020093752071261406,
0.001356820808723569,
0.032563697546720505,
-0.05299234762787819,
0.04042390361428261,
-0.06126624345779419,
0.023895805701613426,
0.03536106273531914,
0.020586246624588966,
0.0742286816239357,
-0.013051088899374008,
0.05980846285820007,
-0.05137696862220764,
0.04172408580780029,
-0.012469946406781673,
-0.03794173151254654,
0.1284424215555191,
-0.00027795127243734896,
-0.0007122693350538611,
0.014085326343774796,
-0.021354537457227707,
-0.05271654948592186,
-0.0012330816825851798,
0.031401414424180984,
-0.07525306940078735,
0.0065009198151528835,
0.016193199902772903,
-0.047555215656757355,
0.027481161057949066,
0.015365811064839363,
0.012243399396538734,
0.052361954003572464,
-0.02486109361052513,
0.006845665629953146,
0.023974604904651642,
-0.04042390361428261,
0.06741257011890411,
0.039557114243507385,
-0.07942941784858704,
0.05299234762787819,
-0.010775767266750336,
0.0008193867979571223,
-0.012942740693688393,
0.008978164754807949,
0.017631283029913902,
0.043694060295820236,
0.008874740451574326,
-0.014607369899749756,
0.026890167966485023,
-0.03346988931298256,
0.05448952689766884,
0.03136201202869415,
0.03370628505945206,
0.018409423530101776,
0.07040692865848541,
-0.02151213400065899,
0.03343048691749573,
-0.010687118396162987,
0.0330955907702446,
-0.05799608677625656,
-0.01458767056465149,
-0.032839495688676834,
0.020605945959687233,
0.019778557121753693,
-0.05618370696902275,
0.027422061190009117,
0.003151961136609316,
0.03153930976986885,
0.029864832758903503,
0.026161277666687965,
0.025432387366890907,
0.043812260031700134,
-0.021019641309976578,
-0.0012706343550235033,
0.04708242043852806,
-0.03908431902527809,
0.04223627969622612,
-0.029431438073515892,
0.06158144026994705,
-0.02945113740861416,
0.04456084966659546,
0.0028269151225686073,
0.01362238172441721,
0.029628435149788857,
-0.014922565780580044,
0.007968551479279995,
0.014686169102787971,
0.016380347311496735,
-0.0495251901447773,
-0.04586103558540344,
-0.00472055422142148,
-0.0739922896027565,
0.053504541516304016,
0.0629604235291481,
0.04054209962487221,
-0.027816057205200195,
-0.0007602875120937824,
0.07954762130975723,
0.0042773098684847355,
0.04972218722105026,
-0.0660729855298996,
0.02592488005757332,
0.002785053104162216,
0.015671156346797943,
0.013297336176037788,
-0.0033095593098551035,
0.007077137939631939,
0.023501809686422348,
0.011544058099389076,
-0.01174105517566204,
0.023147214204072952,
0.0056242807768285275,
0.019039815291762352,
0.08415736258029938,
0.02476259507238865,
-0.021472735330462456,
-0.0109432153403759,
0.03731134161353111,
-0.01824197545647621,
0.01463691983371973,
-0.004319171886891127,
0.0062201982364058495,
0.04093609377741814,
-0.03055432438850403,
0.016636444255709648,
-0.021433336660265923,
0.051692161709070206,
-0.022674420848488808,
0.00396211352199316,
0.034829169511795044,
0.004257610067725182,
0.028702545911073685,
0.015671156346797943,
-0.02427010051906109,
-0.03248490020632744,
0.0011456640204414725,
-0.011790304444730282,
0.04184228554368019,
-0.05594731122255325,
0.017119089141488075,
0.02332451194524765,
-0.01386862900108099,
0.039892006665468216,
0.013927727937698364,
-0.027205364778637886,
0.0031002492178231478,
0.015316560864448547,
-0.001905951532535255,
-0.07324369996786118,
0.0060626002959907055,
0.02145303599536419,
0.054725926369428635,
0.003632142674177885,
0.06678217649459839,
-0.01753278449177742,
-0.002117723925039172,
0.05539571866393089,
-0.01706983894109726,
-0.02476259507238865,
0.00991390272974968,
0.08021741360425949,
-0.017394885420799255,
-0.01414442528039217,
-0.020251350477337837,
-0.018291223794221878,
0.016774343326687813,
0.04913119599223137,
-0.017059989273548126,
-0.0013260398991405964,
-0.0150506142526865,
0.02369880862534046,
-0.02486109361052513,
-0.013809530064463615,
-0.0035090192686766386,
0.00572277931496501,
0.05496232211589813,
0.005688305012881756,
-0.00006333164492389187,
0.035203464329242706,
-0.003004212863743305,
-0.06327562034130096,
-0.057641491293907166,
0.03346988931298256,
0.031184716150164604,
-0.040502700954675674,
-0.010854566469788551,
-0.014548270963132381,
-0.016626594588160515,
0.05795668438076973,
-0.031736310571432114,
0.010431021451950073,
0.03886762261390686,
-0.003863614983856678,
-0.011997152119874954,
0.0065895686857402325,
0.04944638907909393,
-0.02492019347846508,
0.05110117048025131,
-0.008076900616288185,
0.028131254017353058,
0.04042390361428261,
-0.025964280590415,
0.06099044904112816,
-0.013927727937698364,
0.012726043350994587,
0.04093609377741814,
0.023245712742209435,
0.03644455224275589,
0.03687794506549835,
0.0000896492856554687,
0.026811368763446808,
0.0548047237098217,
0.040660299360752106,
-0.05129816755652428,
0.03811902925372124,
0.03516406565904617,
-0.0035976681392639875,
-0.033115290105342865,
0.046727824956178665,
0.0035385689698159695,
0.011376610025763512,
0.013001839630305767,
-0.009160387329757214,
-0.0032110605388879776,
0.023363912478089333,
-0.03760683536529541,
0.07726244628429413,
-0.008810716681182384,
-0.09676520526409149,
-0.028269151225686073,
-0.004410283174365759,
-0.02497929148375988,
0.01872461847960949,
-0.022812318056821823,
-0.008953539654612541,
0.03185450658202171,
0.046452026814222336,
0.004368421155959368,
-0.07659265398979187,
-0.02492019347846508,
-0.04062090069055557,
0.04196048155426979,
0.0017495846841484308,
0.04554583877325058,
0.08065080642700195,
-0.05220435559749603,
-0.024467097595334053,
-0.014873316511511803,
-0.01796617917716503,
0.03205150365829468,
-0.007963626645505428,
0.015011214651167393,
-0.01673494465649128,
-0.013996677473187447,
-0.024329200387001038,
-0.04393045976758003,
-0.06169964000582695,
-0.02151213400065899,
-0.022300126031041145,
0.06496980041265488,
0.02651587314903736,
0.05035258084535599,
0.05110117048025131,
-0.03447457402944565,
-0.04806740581989288,
-0.021137839183211327,
-0.03987230733036995,
0.05303174629807472,
0.011957752518355846,
-0.06351201981306076,
0.00864326860755682,
0.015710556879639626,
0.019512608647346497,
-0.0043585714884102345,
0.06406360864639282,
-0.02669317089021206,
-0.014814217574894428,
0.042590875178575516,
0.008791016414761543,
0.019167864695191383,
-0.00750068249180913,
0.034376077353954315,
0.020724143832921982,
-0.007091912440955639,
0.002219916321337223,
-0.0058508277870714664,
-0.06063585355877876,
0.010125675238668919,
-0.009544532746076584,
0.007968551479279995,
-0.06827935576438904,
0.01827152445912361,
0.01712893880903721,
0.01184940431267023,
0.032228801399469376,
-0.040660299360752106,
-0.027697859331965446,
-0.02403370290994644,
-0.03065282292664051,
-0.03392298147082329,
0.05378033593297005,
0.02381700649857521,
0.007476057857275009,
-0.05925687029957771,
-0.028485849499702454,
-0.04759461432695389,
-0.039557114243507385,
0.032445501536130905,
0.07781404256820679,
-0.035538360476493835,
0.032977394759655,
-0.004799353424459696,
-0.029569335281848907,
-0.0038562275003641844,
-0.025018692016601562,
-0.003863614983856678,
0.021413635462522507,
-0.05326814204454422,
0.014489171095192432,
0.01524761226028204,
0.03742953762412071,
0.0012767905136570334,
-0.024604996666312218,
-0.01339583471417427,
0.02696896716952324,
-0.05523812025785446,
0.034376077353954315,
-0.02029074914753437,
-0.00623004836961627,
-0.01894131675362587,
-0.019729306921362877,
-0.029529936611652374,
-0.008820566348731518,
-0.04775221273303032,
0.018379872664809227,
-0.021433336660265923,
0.012726043350994587,
-0.028091853484511375,
0.07229810953140259,
0.02850554883480072,
-0.07552886754274368,
0.025058090686798096,
0.026220377534627914,
-0.019995253533124924,
0.05200735852122307,
0.009918827563524246,
-0.041448287665843964,
0.0010508588748052716,
0.05090417340397835,
-0.03323348984122276,
-0.013198837637901306,
-0.017601732164621353,
0.032662197947502136,
0.03390328213572502,
-0.039557114243507385,
-0.004168961197137833,
0.021768230944871902,
-0.07682905346155167,
0.004343796521425247,
0.061226844787597656,
-0.10015356540679932,
-0.11347059905529022,
0.009751379489898682,
0.0031888980884104967,
-0.008096599951386452,
-0.03536106273531914,
-0.011681956239044666,
0.04515184462070465,
0.004661455284804106,
-0.02972693368792534,
-0.002340577309951186,
0.023285113275051117,
-0.038178130984306335,
0.00977600459009409,
-0.02155153453350067,
0.02679166942834854,
-0.052125558257102966,
-0.011337210424244404,
0.055001720786094666,
0.0218864306807518,
0.023166915401816368,
0.012499496340751648,
0.019266363233327866,
0.005959176458418369,
-0.08021741360425949,
-0.06248762831091881,
-0.02068474516272545,
-0.02503839135169983,
-0.01657734625041485,
-0.03516406565904617,
0.032977394759655,
0.0035582685377448797,
-0.07407108694314957,
-0.047003619372844696,
0.03703554347157478,
0.043142467737197876,
-0.1010991558432579,
0.017877530306577682,
-0.0003672157763503492,
0.017847979441285133,
-0.03368658572435379,
-0.027993354946374893,
0.03800083324313164,
-0.040384501218795776,
-0.02354121021926403,
0.010431021451950073,
0.039222218096256256,
-0.01747368462383747,
-0.020093752071261406,
0.0019527383847162127,
0.011022014543414116,
0.02381700649857521,
0.033824484795331955,
0.0010274654487147927,
-0.006949089467525482,
0.013188987039029598,
0.019226962700486183,
-0.09337685257196426,
0.040660299360752106,
-0.007008188404142857,
0.042433276772499084,
0.07860203087329865,
-0.00587052758783102,
0.015503709204494953,
-0.001137660932727158,
-0.03786293417215347,
-0.00984002836048603,
0.017513083294034004,
-0.0438910573720932,
-0.02298961579799652,
0.05027377977967262,
-0.05878407508134842,
-0.06193603575229645,
0.002154660876840353,
0.03077102079987526,
-0.007062362972646952,
0.07623805850744247,
0.006904765032231808,
0.004154186230152845,
-0.003986738156527281,
0.04211807996034622,
-0.008707292377948761,
0.001872708206064999,
-0.021196939051151276,
0.05133756622672081,
0.007658280432224274,
0.021256038919091225,
-0.01055906992405653,
-0.026890167966485023,
-0.10275393724441528,
0.03815842792391777,
-0.09479523450136185,
0.056262508034706116,
-0.006254673004150391,
0.038907021284103394,
-0.004991426132619381,
0.027382662519812584,
0.040108706802129745
] |
725,118 | tf_keras.src.engine.sequential | _is_layer_name_unique | null | def _is_layer_name_unique(self, layer):
for ref_layer in self.layers:
if layer.name == ref_layer.name and ref_layer is not layer:
return False
return True
| (self, layer) | [
0.015642687678337097,
-0.03727986663579941,
-0.023356061428785324,
0.08651416748762131,
-0.032909244298934937,
-0.006361589767038822,
-0.04114951193332672,
0.05113457143306732,
0.06543843448162079,
0.026966577395796776,
-0.00234294799156487,
-0.012403588742017746,
0.0189336109906435,
-0.04743767902255058,
0.0027942624874413013,
-0.04135681316256523,
-0.017275193706154823,
0.04135681316256523,
-0.009492718614637852,
-0.05572977289557457,
0.02510085515677929,
0.045779261738061905,
0.024668976664543152,
0.00529916537925601,
0.016255956143140793,
0.042151469737291336,
0.046470269560813904,
0.027813060209155083,
-0.009907322935760021,
0.027916712686419487,
-0.07055188715457916,
-0.03266739100217819,
0.0327710397541523,
0.026690173894166946,
0.03201093152165413,
0.004521782044321299,
-0.0016249478794634342,
0.03385937958955765,
0.012809555977582932,
-0.11906062811613083,
0.04163321480154991,
0.00998506136238575,
-0.013172334991395473,
0.014994868077337742,
-0.002191790146753192,
0.03147540241479874,
-0.02050565369427204,
0.06270895153284073,
-0.06630219519138336,
-0.00843893177807331,
0.00047857683966867626,
-0.022457750514149666,
0.003532777074724436,
0.07031003385782242,
-0.01347465068101883,
-0.06578393280506134,
0.022060422226786613,
0.05134187266230583,
-0.02510085515677929,
-0.009691383689641953,
-0.07151930034160614,
-0.0012351763434708118,
0.023632464930415154,
-0.018553556874394417,
-0.021490341052412987,
-0.023131484165787697,
-0.03655431047081947,
-0.016791487112641335,
-0.011427540332078934,
0.03714166581630707,
-0.023062383756041527,
0.03529322147369385,
-0.0015623252838850021,
-0.009829584509134293,
-0.039214689284563065,
-0.032511912286281586,
0.07003363221883774,
0.023960692808032036,
0.018778134137392044,
-0.0585283562541008,
-0.038938283920288086,
-0.04491550102829933,
-0.009319966658949852,
0.011937158182263374,
0.004875923506915569,
-0.01846718229353428,
-0.0011574379168450832,
0.034844063222408295,
-0.012204923667013645,
-0.03178635612130165,
-0.014243396930396557,
0.03506864234805107,
0.012939119711518288,
0.0007687460747547448,
0.013664677739143372,
-0.016998790204524994,
-0.021317588165402412,
-0.011237513273954391,
0.008870812132954597,
-0.06422916799783707,
-0.009380429983139038,
-0.011876695789396763,
-0.02276870422065258,
0.051860131323337555,
-0.02038472890853882,
0.006288170348852873,
0.006832338869571686,
-0.027467556297779083,
-0.08001869171857834,
0.004664302337914705,
-0.024910828098654747,
-0.024720801040530205,
0.041944168508052826,
0.004664302337914705,
0.04698852449655533,
-0.08409564197063446,
0.01726655475795269,
0.002329991664737463,
-0.06084322929382324,
-0.029108701273798943,
0.022181348875164986,
0.04709217697381973,
-0.008931274525821209,
-0.011868057772517204,
0.035517796874046326,
-0.004245378542691469,
0.04128771275281906,
0.04664302244782448,
0.029696056619286537,
0.0034939078614115715,
0.0342567078769207,
0.06263984739780426,
-0.04681577533483505,
0.03192455694079399,
0.004368464462459087,
0.014070644974708557,
0.01673966273665428,
0.045779261738061905,
-0.05030536279082298,
0.048785146325826645,
0.005903797224164009,
0.01751704514026642,
-0.02681110054254532,
0.05680083483457565,
0.00378542672842741,
0.029626956209540367,
-0.09328604489564896,
-0.013267348520457745,
0.013431462459266186,
-0.010477405041456223,
-0.01046012993901968,
-0.04146046191453934,
-0.009250866249203682,
0.02073023095726967,
-0.062121596187353134,
-0.002893594792112708,
-0.04761043190956116,
-0.02366701513528824,
0.006888483185321093,
-0.02256140299141407,
-0.021507615223526955,
-0.007190799340605736,
-0.009440893307328224,
-0.02933327853679657,
-0.049268852919340134,
-0.05614437907934189,
0.00039166101487353444,
-0.046262968331575394,
0.003202388994395733,
0.051998332142829895,
0.015504485927522182,
0.038592781871557236,
0.051307324320077896,
0.02769213542342186,
-0.009579095058143139,
0.028262216597795486,
-0.0002629068330861628,
-0.024081619456410408,
-0.028400417417287827,
0.01872630976140499,
-0.012930481694638729,
-0.025619111955165863,
-0.03323747217655182,
0.004051032941788435,
0.01070198230445385,
-0.026361944153904915,
0.000016482288629049435,
-0.019676445052027702,
0.03344477340579033,
0.004621114116162062,
-0.003858846379444003,
0.04664302244782448,
0.003660181537270546,
-0.01555631123483181,
0.05016716197133064,
-0.02503175474703312,
0.031630877405405045,
0.042566075921058655,
0.0327710397541523,
-0.027052951976656914,
-0.03966384381055832,
-0.032857418060302734,
-0.03800542652606964,
0.035932403057813644,
-0.022734154015779495,
-0.024772627279162407,
-0.002787784207612276,
-0.00007618630479555577,
-0.0025200187228620052,
0.01015781331807375,
0.005817421246320009,
-0.017508408054709435,
0.055971626192331314,
0.07601085305213928,
0.04028575122356415,
0.018639933317899704,
-0.07082828879356384,
0.015055330470204353,
0.03945654258131981,
0.0057915085926651955,
-0.02276870422065258,
-0.01323279831558466,
0.07684005796909332,
-0.0022500939667224884,
-0.019192740321159363,
-0.030957145616412163,
0.06350360810756683,
0.08658327162265778,
0.012973669916391373,
-0.02064385637640953,
0.009527268819510937,
-0.045295555144548416,
-0.002884957240894437,
0.017491133883595467,
0.018985437229275703,
-0.0478522852063179,
-0.0019132276065647602,
-0.0021853118669241667,
0.11215055733919144,
-0.046055663377046585,
-0.0011563582811504602,
-0.028901398181915283,
0.019503694027662277,
-0.008395743556320667,
-0.04076945781707764,
-0.040251199156045914,
0.0000796953245298937,
0.02658652327954769,
-0.04412084445357323,
0.02017742581665516,
0.012602253817021847,
0.05455505847930908,
-0.030387064442038536,
-0.01077108271420002,
0.013647402636706829,
-0.08644506335258484,
-0.09287144243717194,
-0.03175180405378342,
0.017862549051642418,
-0.027467556297779083,
-0.08934730291366577,
0.024306196719408035,
0.018225328996777534,
0.08361193537712097,
-0.008650553412735462,
-0.029454205185174942,
0.042151469737291336,
-0.0016260275151580572,
-0.022509576752781868,
-0.04657392203807831,
0.07407602667808533,
0.014545712620019913,
-0.0012891612714156508,
0.021645817905664444,
0.02207769639790058,
-0.041875068098306656,
0.05966851860284805,
-0.008616002276539803,
-0.027882162481546402,
0.02230227366089821,
0.04484640061855316,
-0.018899060785770416,
-0.016359608620405197,
0.017067890614271164,
-0.02556728571653366,
-0.006944627501070499,
0.012360400520265102,
-0.04398264363408089,
-0.026033716276288033,
-0.005648988299071789,
0.01019236445426941,
0.030818944796919823,
0.04425904527306557,
0.0006807505851611495,
-0.09307873994112015,
0.05389860272407532,
0.0039214687421917915,
-0.005437367130070925,
0.013509200885891914,
0.015089881606400013,
-0.027502108365297318,
0.025740038603544235,
0.007419695612043142,
-0.0570426881313324,
-0.022475026547908783,
-0.02954057976603508,
-0.028210390359163284,
0.02112756110727787,
0.014234758913516998,
0.048508740961551666,
0.00011890191672137007,
0.012386313639581203,
-0.04007844999432564,
-0.015366284176707268,
0.06160333752632141,
0.03624335676431656,
0.04322253167629242,
-0.009000375866889954,
-0.013785604387521744,
0.11097583919763565,
-0.008568495512008667,
-0.006806426215916872,
-0.10171633958816528,
-0.002273847348988056,
-0.007596766110509634,
-0.03821272775530815,
0.06512747704982758,
-0.029696056619286537,
-0.01172985602170229,
0.028003089129924774,
-0.03498226776719093,
-0.058148302137851715,
0.02523905783891678,
0.005946985445916653,
-0.0051005007699131966,
-0.014537075534462929,
0.0033341122325509787,
-0.0023990925401449203,
0.06305445730686188,
0.0011574379168450832,
-0.012429501861333847,
0.02366701513528824,
-0.03976749628782272,
-0.031129898503422737,
0.01661873608827591,
0.032511912286281586,
-0.01867448352277279,
0.05455505847930908,
0.002009321004152298,
0.0001776105782482773,
-0.04443179816007614,
0.03479224070906639,
0.02202587202191353,
0.02727752923965454,
0.05324214696884155,
0.08451024442911148,
-0.015409472398459911,
0.021663092076778412,
0.014718464575707912,
0.05379495024681091,
0.09556636959314346,
-0.05389860272407532,
0.02010832540690899,
-0.018432632088661194,
0.03341022506356239,
-0.015392197296023369,
0.05037446320056915,
-0.03183818235993385,
-0.03532776981592178,
-0.07317771762609482,
-0.06402186304330826,
0.008922637440264225,
0.006828020326793194,
-0.06858251988887787,
-0.05686993524432182,
-0.001627107267268002,
0.05683538690209389,
-0.017301106825470924,
0.04643572121858597,
-0.02898777462542057,
0.038938283920288086,
0.032373711466789246,
0.054589610546827316,
0.04895789921283722,
0.0029691739473491907,
-0.019918298348784447,
0.0015752817271277308,
-0.04246242344379425,
0.03486134111881256,
-0.002880638465285301,
0.061568789184093475,
-0.013517838902771473,
0.010365115478634834,
0.029592406004667282,
0.0003290384483989328,
-0.031561776995658875,
-0.0507199689745903,
-0.00378542672842741,
-0.061430588364601135,
0.03220095857977867,
-0.03793632611632347,
-0.01901998743414879,
-0.0024314834736287594,
0.017439307644963264,
-0.009717295877635479,
0.02694930136203766,
-0.011064761318266392,
0.07884398102760315,
-0.003966816235333681,
-0.006374546326696873,
-0.040389399975538254,
-0.042773377150297165,
-0.04712672531604767,
-0.06181064248085022,
-0.0028892760165035725,
0.035932403057813644,
0.05020171031355858,
-0.005627394188195467,
0.012584978714585304,
0.012662716209888458,
0.007329000625759363,
0.048992447555065155,
-0.003616993548348546,
0.051860131323337555,
-0.019607344642281532,
-0.028331317007541656,
-0.026379220187664032,
0.00591243477538228,
0.02364973910152912,
0.00842597521841526,
-0.06384911388158798,
-0.025653662160038948,
0.0950135663151741,
-0.03518956899642944,
0.08070970326662064,
-0.006646630819886923,
-0.0140879200771451,
-0.022889630869030952,
-0.03669251129031181,
0.04443179816007614,
0.030456164851784706,
0.004456999711692333,
-0.05324214696884155,
-0.003977613057941198,
0.007519027683883905,
0.01825987920165062,
0.005238702520728111,
0.04014755040407181,
0.03076711855828762,
0.017879825085401535,
0.00653002317994833,
0.016031378880143166,
-0.04723037779331207,
-0.08257542550563812,
0.030870771035552025,
-0.02050565369427204,
-0.0634690597653389,
0.008754204027354717,
-0.014070644974708557,
0.021248487755656242,
-0.05251658707857132,
0.04436269775032997,
-0.004154684022068977,
0.043533485382795334,
-0.01634233258664608,
-0.008788754232227802,
0.02468625083565712,
-0.0012751251924782991,
0.039421990513801575,
0.020954810082912445,
0.031233549118041992,
-0.02843496762216091,
0.017793448641896248,
0.008348236791789532,
0.0020503494888544083,
-0.012766367755830288,
0.021352138370275497,
0.09535906463861465,
-0.004241059999912977,
0.014105195179581642,
-0.046539369970560074,
0.00833096168935299,
-0.032166410237550735,
-0.03183818235993385,
0.018087128177285194,
0.03007611073553562,
-0.035517796874046326,
0.025860963389277458,
0.02366701513528824,
-0.053034842014312744,
-0.04539920762181282,
-0.026310119777917862,
-0.03180363029241562,
0.06536933034658432,
0.01634233258664608,
-0.02297600731253624,
0.006339996121823788,
0.04384443908929825,
-0.005618756636977196,
-0.014347047545015812,
0.008788754232227802,
0.03498226776719093,
0.02366701513528824,
0.018000751733779907,
0.04512280598282814,
-0.02865954488515854,
-0.022595953196287155,
-0.03164815530180931,
-0.00875852257013321,
-0.008879449218511581,
-0.015167620033025742,
0.0020687044598162174,
0.05320759490132332,
0.03512046858668327,
0.04000934585928917,
0.04090765863656998,
-0.02475535124540329,
-0.07172660529613495,
0.023027831688523293,
0.009164489805698395,
0.056317128241062164,
0.008719653822481632,
-0.01217037346214056,
-0.015219445340335369,
-0.007635635323822498,
0.0025329752825200558,
0.009881410747766495,
0.002595597878098488,
-0.014347047545015812,
-0.016169581562280655,
-0.0015590861439704895,
-0.000605711480602622,
-0.032511912286281586,
-0.013526475988328457,
0.015262633562088013,
0.003968975506722927,
-0.05085816979408264,
-0.0471612773835659,
-0.09494446218013763,
-0.007588128559291363,
0.005381222814321518,
-0.031129898503422737,
0.03938744217157364,
-0.06616398692131042,
-0.03658885881304741,
0.05956486612558365,
0.04460454732179642,
0.0019283434376120567,
-0.05341489613056183,
0.022267723456025124,
0.006892802193760872,
0.06236344575881958,
-0.009078114293515682,
-0.07766927033662796,
0.039905697107315063,
0.02447894960641861,
-0.04149501398205757,
0.01587590202689171,
-0.00782566238194704,
0.03410123288631439,
0.021093010902404785,
-0.0026236700359731913,
0.05572977289557457,
-0.0069705406203866005,
-0.03246008977293968,
-0.06671679764986038,
-0.02380521595478058,
-0.031406302005052567,
0.05372584983706474,
0.06958448141813278,
-0.029626956209540367,
-0.016610099002718925,
0.013621489517390728,
0.014554350636899471,
0.014951679855585098,
0.010045524686574936,
0.05013260990381241,
0.009682745672762394,
-0.019590068608522415,
-0.046539369970560074,
0.004664302337914705,
0.030387064442038536,
0.022371375933289528,
0.02024652622640133,
0.006024723406881094,
-0.01190260797739029,
-0.020609306171536446,
0.008693740703165531,
-0.013517838902771473,
-0.06699319928884506,
-0.02413344569504261,
-0.007976820692420006,
0.013949718326330185,
-0.03983659669756889,
-0.01496895495802164,
0.021162111312150955,
0.029454205185174942,
-0.01616094261407852,
0.000023179800336947665,
0.05154917761683464,
0.024375297129154205,
-0.008222991600632668,
-0.008123659528791904,
-0.0062493011355400085,
-0.00661639915779233,
-0.00967410858720541,
-0.029160525649785995,
-0.02824494056403637,
-0.018208052963018417,
-0.006931671407073736,
0.00932860467582941,
0.028348591178655624,
-0.02022925205528736,
-0.08990010619163513,
-0.006206113379448652,
-0.03807452693581581,
-0.009820947423577309,
0.016800126060843468,
-0.005372585263103247,
-0.0025696849916130304,
0.01839808002114296,
0.005808783695101738,
-0.010062799789011478,
-0.001946698292158544,
-0.019538244232535362,
-0.020402003079652786,
0.04944160208106041,
-0.007104423362761736,
0.057802796363830566,
-0.019918298348784447,
0.007372188847512007,
-0.012749092653393745,
-0.054451409727334976,
-0.04560650885105133,
0.03980204463005066,
-0.03147540241479874,
0.030594367533922195,
0.01035647839307785,
-0.027104778215289116,
0.0282276663929224,
-0.04460454732179642,
-0.04408629238605499,
0.005808783695101738,
0.030110660940408707,
0.017257917672395706,
0.038454581052064896,
0.07690916210412979,
-0.02707022801041603,
0.03475768864154816,
-0.025947339832782745,
-0.045433759689331055,
0.030248863622546196,
0.07794567197561264,
-0.030801668763160706,
0.07003363221883774,
0.02694930136203766,
-0.042289674282073975,
0.01514170691370964,
0.016281869262456894,
-0.039352890104055405,
-0.0001093195824068971,
-0.04539920762181282,
-0.018709033727645874,
0.04664302244782448,
0.0014133267104625702,
0.01077108271420002,
0.04491550102829933,
-0.08236812055110931,
-0.022336825728416443,
0.021023910492658615,
-0.1241740882396698,
-0.0023321511689573526,
0.011531191878020763,
-0.06588758528232574,
0.029903359711170197,
-0.005860609468072653,
-0.012576340697705746,
0.0500289611518383,
0.01901998743414879,
-0.023891592398285866,
-0.03748716786503792,
0.01131525170058012,
-0.009484081529080868,
0.010978384874761105,
0.025999166071414948,
0.05306939408183098,
-0.033963028341531754,
-0.029523305594921112,
0.09936691075563431,
0.0008238107548095286,
-0.03318564593791962,
-0.011194325052201748,
0.014079282060265541,
0.08340463042259216,
-0.04902699962258339,
-0.020350176841020584,
-0.0008470243192277849,
0.03669251129031181,
-0.03501681610941887,
-0.008862174116075039,
0.025930065661668777,
0.004979574587196112,
-0.01881268620491028,
0.027156604453921318,
0.024668976664543152,
0.056109827011823654,
-0.05728454142808914,
0.006905758287757635,
0.024012519046664238,
-0.002161558484658599,
-0.055902525782585144,
-0.052896641194820404,
0.029454205185174942,
0.01730974391102791,
-0.00199960358440876,
-0.06467832624912262,
-0.013198247179389,
-0.017439307644963264,
-0.013362362049520016,
-0.0027618715539574623,
0.016428709030151367,
0.018484456464648247,
-0.0477486327290535,
0.03501681610941887,
-0.042151469737291336,
0.01190260797739029,
-0.029281452298164368,
-0.03897283598780632,
-0.00939770508557558,
0.02052292972803116,
-0.02154216542840004,
0.06568028777837753,
-0.03918013721704483,
0.09010741114616394,
0.03339294716715813,
-0.004260494373738766,
0.01874358393251896,
0.03817817568778992,
-0.04778318479657173,
-0.027122054249048233,
0.0274848323315382,
-0.10109443217515945,
0.018570832908153534,
-0.015150343999266624,
-0.003148403950035572,
0.027294805273413658,
0.032909244298934937,
-0.0135696642100811,
-0.03769447281956673,
-0.06923897564411163,
0.05880475789308548,
0.0070353224873542786,
-0.03404940664768219,
-0.01503805536776781,
0.04999440908432007,
0.011194325052201748,
-0.04512280598282814,
0.014131108298897743,
0.014537075534462929,
-0.04581381380558014,
0.027467556297779083,
-0.04111495986580849,
0.04184051975607872,
-0.018294429406523705,
-0.0011833506869152188,
0.0010089792776852846,
0.0031764761079102755,
0.012593615800142288
] |
725,120 | tf_keras.src.engine.functional | _lookup_dependency | null | def _lookup_dependency(self, name, cached_dependencies=None):
if cached_dependencies:
return cached_dependencies.get(name)
# Fall back to slow lookup (`layer_checkpoint_dependencies` does a
# thorough check of all layer to see if they contain weights.)
layer_dependencies = self._layer_checkpoint_dependencies
if name in layer_dependencies:
return layer_dependencies[name]
return super()._lookup_dependency(name)
| (self, name, cached_dependencies=None) | [
0.014201151207089424,
-0.04509124532341957,
-0.024273255839943886,
0.0467497743666172,
0.016792600974440575,
-0.009493348188698292,
0.005809169262647629,
0.06589195877313614,
0.06703219562768936,
-0.01042627077549696,
0.038664449006319046,
0.007929840125143528,
-0.013492820784449577,
-0.08175163716077805,
-0.0037252106703817844,
-0.006012165918946266,
0.02736572176218033,
0.033844348043203354,
-0.017345445230603218,
-0.035278283059597015,
0.02270110882818699,
-0.013017721474170685,
0.04795911908149719,
-0.052727386355400085,
-0.009769769385457039,
-0.004230543505400419,
0.08244269341230392,
0.004962628241628408,
0.010322612710297108,
0.01347554475069046,
-0.08748738467693329,
0.02873055264353752,
-0.026761049404740334,
0.03507096692919731,
-0.018848486244678497,
0.06309319287538528,
0.0429835319519043,
0.03171936050057411,
0.031995780766010284,
-0.037627868354320526,
0.0016585285775363445,
0.016300225630402565,
0.04882293567061424,
-0.006634114310145378,
-0.0016747250920161605,
0.012447602115571499,
-0.07055656611919403,
0.027624865993857384,
-0.02643279917538166,
-0.015220454894006252,
0.06001800298690796,
-0.08513779938220978,
0.014002473093569279,
0.007130809128284454,
0.03344699367880821,
-0.02885148674249649,
0.0017168362392112613,
0.021405383944511414,
0.023927729576826096,
0.03748965635895729,
0.03166753053665161,
-0.04968675225973129,
0.017881011590361595,
0.0483737513422966,
-0.05103430524468422,
-0.00830559991300106,
0.03541649505496025,
-0.03330878168344498,
-0.010201678611338139,
0.006115823984146118,
-0.02228647843003273,
0.012533984147012234,
0.004347159061580896,
-0.07010738551616669,
0.010771797969937325,
-0.0017870212905108929,
0.04820098727941513,
-0.06596106290817261,
-0.0003390481579117477,
-0.01675804890692234,
0.01843385398387909,
-0.04129045084118843,
-0.02562081068754196,
-0.040806714445352554,
0.009476072154939175,
-0.038733553141355515,
0.039770133793354034,
0.0035610853228718042,
0.010642224922776222,
-0.005606172140687704,
-0.05120706930756569,
0.024549677968025208,
0.0021951748058199883,
0.055318839848041534,
0.039528265595436096,
-0.027279339730739594,
-0.015557343140244484,
-0.019539538770914078,
-0.01005482953041792,
0.038906317204236984,
0.016723496839404106,
0.01791556365787983,
-0.024687888100743294,
0.07283704727888107,
0.016490265727043152,
-0.05922329053282738,
0.00878501869738102,
0.0009879906428977847,
0.03693681210279465,
-0.0251025203615427,
-0.02712385170161724,
-0.03714412823319435,
-0.008940505795180798,
-0.006776643916964531,
0.020662501454353333,
-0.020178765058517456,
-0.022960254922509193,
-0.03432808443903923,
0.002880829619243741,
0.06875982880592346,
-0.038906317204236984,
0.015453685075044632,
0.011134600266814232,
0.02919701300561428,
-0.007320848759263754,
0.020023277029395103,
0.002803086070343852,
-0.0030190402176231146,
0.09108085930347443,
-0.05037780478596687,
0.10849540680646896,
-0.017708247527480125,
-0.032168544828891754,
0.026484627276659012,
0.02384134754538536,
0.08859306573867798,
0.03970102593302727,
0.061607424169778824,
-0.02879965677857399,
0.0328250452876091,
0.021146239712834358,
-0.012248924933373928,
-0.024981586262583733,
-0.014771269634366035,
0.02855778858065605,
-0.028074050322175026,
0.03997744992375374,
-0.015470962040126324,
-0.030268145725131035,
-0.02562081068754196,
0.007700928021222353,
-0.013086826540529728,
-0.02786673605442047,
-0.004297489300370216,
-0.03755876049399376,
-0.01912490837275982,
-0.04775180295109749,
0.006206525024026632,
-0.030544567853212357,
-0.007618865463882685,
-0.016792600974440575,
0.0345008485019207,
-0.07207688689231873,
-0.06571919471025467,
-0.0010781515156850219,
-0.0045695919543504715,
-0.016974003985524178,
-0.013950644060969353,
-0.01497858576476574,
0.03966647386550903,
-0.03852623701095581,
0.02529256045818329,
0.021405383944511414,
0.016317501664161682,
-0.011324640363454819,
-0.024860652163624763,
-0.008003263734281063,
-0.018762104213237762,
0.012879511341452599,
0.03311874344944954,
0.034932758659124374,
0.005187220871448517,
-0.06976185739040375,
0.005131072830408812,
-0.004854651167988777,
0.04519490525126457,
0.04605872184038162,
0.0005320572527125478,
0.04778635501861572,
0.030389079824090004,
0.0007779751322232187,
0.03317056968808174,
0.05898142233490944,
-0.02771124802529812,
-0.026812879368662834,
-0.016835791990160942,
0.009000972844660282,
0.009916618466377258,
-0.005653682164847851,
0.0059387413784861565,
-0.025327112525701523,
-0.023530373349785805,
-0.005537066608667374,
0.08458495885133743,
-0.03368886187672615,
0.010858179070055485,
0.0276421420276165,
-0.0059905704110860825,
-0.04574774578213692,
0.025327112525701523,
-0.054627783596515656,
-0.014149322174489498,
0.00020556144590955228,
-0.03237586095929146,
0.02949071116745472,
0.025603534653782845,
-0.03970102593302727,
0.0005587816121987998,
-0.00027466678875498474,
-0.005740063730627298,
0.006141738500446081,
-0.0008265648502856493,
0.049168460071086884,
0.06851796060800552,
-0.02855778858065605,
-0.04954854026436806,
0.01611882448196411,
0.030959200114011765,
-0.01004619151353836,
-0.033775243908166885,
0.046162378042936325,
0.0033559289295226336,
0.038906317204236984,
-0.029853513464331627,
0.07836547493934631,
-0.044331084936857224,
-0.039079077541828156,
0.014261618256568909,
0.05753020942211151,
0.009450157172977924,
-0.008556107059121132,
0.01258581317961216,
0.06088181957602501,
0.02907607890665531,
-0.0008632770623080432,
-0.03121834434568882,
0.0017978190444409847,
-0.044434744864702225,
-0.03600389137864113,
0.0016639274545013905,
0.037178680300712585,
0.04032297432422638,
0.0259145088493824,
-0.025672640651464462,
0.0015192381106317043,
-0.11001572757959366,
-0.020817989483475685,
-0.025931784883141518,
0.024549677968025208,
0.016697581857442856,
-0.05908507853746414,
0.012542622163891792,
0.039251841604709625,
0.031823016703128815,
-0.03232403099536896,
-0.017017195001244545,
0.00927739404141903,
-0.01952226273715496,
-0.06596106290817261,
0.02907607890665531,
0.024549677968025208,
0.020887093618512154,
0.04740627482533455,
0.000284249777905643,
0.01451212540268898,
-0.10967019945383072,
0.024169597774744034,
0.08569063991308212,
-0.019453158602118492,
0.05379851907491684,
0.0207834355533123,
-0.03686770796775818,
-0.06789601594209671,
0.03603844344615936,
-0.08126790076494217,
-0.0207834355533123,
-0.006353373639285564,
-0.047268062829971313,
-0.003453108249232173,
0.0018183346837759018,
0.054973311722278595,
-0.00295857316814363,
0.01747501641511917,
-0.037524208426475525,
-0.05870500206947327,
-0.02741754986345768,
-0.04985951632261276,
0.0413595549762249,
0.0846540629863739,
0.06768869608640671,
-0.013570564799010754,
0.0012082640314474702,
0.03569291532039642,
-0.0065477327443659306,
-0.010236230678856373,
-0.027106575667858124,
0.020403357222676277,
-0.04543677344918251,
-0.01471944060176611,
0.05642452463507652,
0.005001500248908997,
-0.0551806278526783,
-0.001994337420910597,
-0.006340416613966227,
0.005740063730627298,
-0.04104858264327049,
-0.02251107059419155,
0.0450221411883831,
0.011298726312816143,
0.08900769799947739,
-0.03652217984199524,
0.03862989321351051,
-0.0779508426785469,
0.049272119998931885,
-0.03586567938327789,
0.015531429089605808,
0.008245132863521576,
0.012749938294291496,
0.034708164632320404,
0.003232835093513131,
-0.01016712561249733,
-0.03356792777776718,
0.010607671923935413,
0.04215426743030548,
-0.010003000497817993,
0.027624865993857384,
0.05303836241364479,
-0.003582680830731988,
0.05279649421572685,
-0.02425597980618477,
0.03610754758119583,
-0.008335833437740803,
-0.046266037970781326,
0.026190930977463722,
-0.027141129598021507,
0.017440464347600937,
0.05835947394371033,
0.013147294521331787,
0.01912490837275982,
0.015306836925446987,
-0.06368058919906616,
-0.03512279689311981,
0.015963338315486908,
0.025828126817941666,
0.004893523175269365,
0.014840375632047653,
-0.004113928414881229,
-0.028592340648174286,
-0.008188984356820583,
-0.005407494027167559,
0.0029780089389532804,
-0.01488356664776802,
-0.025361666455864906,
0.010469461791217327,
-0.010832265019416809,
-0.014244341291487217,
-0.00015440728748217225,
0.006444074679166079,
0.026933813467621803,
-0.08700364083051682,
-0.06357692927122116,
0.024048663675785065,
-0.029456159099936485,
0.0009987883968278766,
-0.03669494390487671,
-0.04554042965173721,
0.01819198578596115,
0.027210233733057976,
0.0898369625210762,
0.00483737513422966,
-0.0008109081536531448,
0.0043126060627400875,
-0.04405466467142105,
0.023115741088986397,
-0.03368886187672615,
0.005217454396188259,
-0.04671522229909897,
-0.06568463891744614,
0.07003828138113022,
0.009026886895298958,
0.05217454582452774,
-0.04118679091334343,
0.04965220019221306,
-0.0027296615298837423,
-0.022545622661709785,
-0.02788401208817959,
0.05390217900276184,
-0.011514680460095406,
-0.026225483044981956,
-0.01002027653157711,
-0.009381052106618881,
-0.0329287014901638,
-0.01722451113164425,
0.016697581857442856,
-0.015090882778167725,
0.02263200469315052,
0.04681887850165367,
0.10925556719303131,
-0.01764778047800064,
0.0018885198514908552,
-0.0829264298081398,
0.00941560510545969,
-0.030717331916093826,
-0.03232403099536896,
-0.03852623701095581,
0.02384134754538536,
0.016429798677563667,
-0.032686833292245865,
0.019850512966513634,
0.01604108139872551,
0.02867872267961502,
0.005675277207046747,
0.03519190475344658,
-0.04934122413396835,
-0.01658528484404087,
-0.015021776780486107,
-0.01661119982600212,
0.0517253614962101,
-0.010884094052016735,
0.02574174478650093,
-0.02954253926873207,
-0.025603534653782845,
0.016965365037322044,
-0.08258090168237686,
0.04785545915365219,
0.000047813617129577324,
0.035623811185359955,
-0.015384580008685589,
-0.022079162299633026,
-0.02741754986345768,
0.054627783596515656,
0.038664449006319046,
-0.01319048460572958,
0.0038763785269111395,
-0.06720495969057083,
0.002046166453510523,
0.004582548979669809,
0.021284449845552444,
-0.014209789223968983,
-0.030250869691371918,
-0.0018572064582258463,
-0.01306955050677061,
0.025016138330101967,
-0.039424605667591095,
-0.03171936050057411,
-0.03258317708969116,
-0.03894086927175522,
0.004811460617929697,
-0.00964883528649807,
0.00279444782063365,
-0.009294670075178146,
0.04764814302325249,
0.015833765268325806,
-0.05797939375042915,
-0.02924884296953678,
-0.028834210708737373,
-0.003379683941602707,
-0.028834210708737373,
-0.010806350037455559,
0.0036150740925222635,
0.08085326850414276,
-0.02954253926873207,
-0.011065495200455189,
-0.04488392919301987,
-0.03742055222392082,
0.02142265997827053,
0.00610286695882678,
0.0346045084297657,
0.026691943407058716,
-0.019902342930436134,
-0.009942533448338509,
-0.009821598418056965,
-0.03748965635895729,
-0.02579357475042343,
0.04180873930454254,
-0.015531429089605808,
-0.05075788497924805,
0.03894086927175522,
0.0022081320639699697,
-0.029577093198895454,
-0.0641297698020935,
0.03738599643111229,
0.02959436923265457,
0.02907607890665531,
0.020869817584753036,
0.012248924933373928,
0.04540221765637398,
0.0055197905749082565,
0.0378006286919117,
0.030043553560972214,
0.005718468222767115,
-0.008569064550101757,
0.04412376880645752,
0.06070905551314354,
-0.031650252640247345,
-0.03583112731575966,
-0.01725042425096035,
0.01564372517168522,
0.04799367114901543,
0.055837128311395645,
0.024912480264902115,
0.038042500615119934,
0.015324112959206104,
0.01687898300588131,
-0.022390136495232582,
-0.019971448928117752,
-0.05262373015284538,
0.017431825399398804,
-0.029628921300172806,
-0.0026864707469940186,
0.02270110882818699,
0.08126790076494217,
0.0361766554415226,
-0.05017048865556717,
-0.007078980095684528,
-0.023063912987709045,
-0.006461350712925196,
-0.03558925911784172,
0.005506833083927631,
0.0004742894961964339,
0.026346417143940926,
-0.010789074003696442,
-0.04070305451750755,
0.007100575603544712,
0.017043108120560646,
-0.06426798552274704,
-0.025603534653782845,
-0.014710802584886551,
-0.12390590459108353,
-0.01929767057299614,
0.019954171031713486,
-0.008914590813219547,
0.03558925911784172,
0.005968975368887186,
0.008586340583860874,
0.02562081068754196,
-0.01474535558372736,
0.03284231945872307,
-0.055387943983078,
0.002384134801104665,
-0.02976713329553604,
0.008668403141200542,
-0.012870872393250465,
-0.07152404636144638,
0.05113796517252922,
-0.021975504234433174,
-0.05735744535923004,
0.008011902682483196,
-0.017777353525161743,
0.028920592740178108,
0.06288587301969528,
0.03842257708311081,
0.024566954001784325,
0.026761049404740334,
-0.0013022040948271751,
-0.055146075785160065,
0.02741754986345768,
-0.03249679505825043,
0.04526400938630104,
0.004552315454930067,
0.027624865993857384,
0.012197095900774002,
0.016628475859761238,
0.040392082184553146,
0.021146239712834358,
0.03322239965200424,
0.044434744864702225,
-0.01183429267257452,
0.024065939709544182,
-0.003360247937962413,
0.006556370761245489,
-0.03144293650984764,
0.03484637662768364,
0.06243668869137764,
0.025413494557142258,
-0.007208552677184343,
-0.021923674270510674,
0.04301808401942253,
-0.010028914548456669,
-0.0024553996045142412,
-0.03425898030400276,
-0.051345281302928925,
0.018986696377396584,
0.003738167928531766,
0.015039053745567799,
0.004457295406609774,
-0.05034325271844864,
0.06274766474962234,
0.02344399318099022,
0.003176686819642782,
-0.015807850286364555,
-0.04177418723702431,
0.0310455821454525,
-0.01142829842865467,
-0.010814988054335117,
0.04474571719765663,
-0.07532484084367752,
-0.016844430938363075,
-0.017932839691638947,
0.011350554414093494,
-0.022614728659391403,
-0.01814015582203865,
0.004746674094349146,
-0.006124462466686964,
-0.02268383279442787,
-0.018520236015319824,
0.004014589358121157,
0.025759022682905197,
-0.04263800382614136,
0.015591896139085293,
0.0035286922939121723,
0.03621120750904083,
0.02729661576449871,
0.032911427319049835,
-0.01143693644553423,
0.04467661306262016,
0.027728524059057236,
-0.0844467431306839,
0.04422742873430252,
0.03306691348552704,
0.014192512258887291,
0.07822726666927338,
0.01751820743083954,
0.0015797052765265107,
-0.026881983503699303,
-0.01116915326565504,
0.05856679007411003,
-0.01668030582368374,
-0.04671522229909897,
-0.03600389137864113,
-0.031823016703128815,
0.03514007478952408,
-0.04509124532341957,
0.03156387060880661,
-0.0233230572193861,
-0.0014868449652567506,
0.0033710456918925047,
0.008810932748019695,
0.10745882987976074,
0.006500222720205784,
-0.08907680213451385,
-0.02085254155099392,
-0.015764659270644188,
0.03196122869849205,
0.08776380121707916,
0.02095619961619377,
0.00797303020954132,
0.02902425080537796,
0.021111685782670975,
-0.05386762693524361,
-0.024515125900506973,
-0.02660556323826313,
-0.06112368777394295,
0.01321639958769083,
-0.003176686819642782,
-0.02603544294834137,
-0.00584372179582715,
-0.09930440038442612,
-0.03831892088055611,
0.01004619151353836,
-0.08043863624334335,
-0.021509042009711266,
0.02833319641649723,
-0.05158714950084686,
-0.03831892088055611,
-0.029507987201213837,
0.01594606041908264,
0.04509124532341957,
0.004500486422330141,
-0.0033040998969227076,
0.024325085803866386,
0.005295197945088148,
-0.007869372144341469,
0.1207270622253418,
0.03351609781384468,
0.0725606232881546,
-0.01702583208680153,
-0.011091410182416439,
0.005342707969248295,
0.008167389780282974,
0.00038277890416793525,
0.03600389137864113,
0.03064822591841221,
0.0172763392329216,
0.01463305950164795,
-0.0690016970038414,
-0.05137983337044716,
-0.004303968045860529,
0.0345008485019207,
-0.03242768719792366,
0.03479454666376114,
-0.020075106993317604,
0.0064699891954660416,
-0.0026519179809838533,
-0.00457822997123003,
0.0008044295245781541,
-0.042016055434942245,
-0.008854123763740063,
-0.059983450919389725,
-0.0032004418317228556,
-0.02228647843003273,
-0.08361747860908508,
0.08216626942157745,
0.010745882987976074,
-0.0292661190032959,
-0.007342444267123938,
-0.03652217984199524,
-0.04588595777750015,
-0.025154350325465202,
0.07546304911375046,
-0.017777353525161743,
-0.008607936091721058,
0.016455713659524918,
-0.007968711666762829,
-0.02384134754538536,
0.04205061122775078,
0.04325995221734047,
-0.07152404636144638,
-0.057806629687547684,
0.07615410536527634,
0.00655205175280571,
0.027953116223216057,
0.010702691972255707,
0.054455019533634186,
0.035053692758083344,
-0.03254862129688263,
0.0015321953687816858,
-0.019885066896677017,
-0.007014193572103977,
-0.0015408335020765662,
0.011350554414093494,
0.005191539879888296,
-0.04129045084118843,
0.05155259743332863,
0.0326695591211319,
-0.016447074711322784,
-0.017259063199162483,
0.01031397469341755,
0.00584372179582715,
-0.06817243248224258,
0.011082771234214306,
0.02124989777803421,
0.008085327222943306,
0.006465670187026262,
0.032980531454086304,
-0.05628631263971329,
-0.03387890011072159,
-0.02736572176218033,
0.0027987670619040728,
-0.06005255505442619,
-0.03583112731575966,
-0.033844348043203354,
-0.02095619961619377,
-0.0045177629217505455,
0.055906232446432114,
-0.0535566508769989,
-0.03565836325287819,
-0.0010479179909452796
] |
725,133 | tf_keras.src.engine.functional | _run_internal_graph | Computes output tensors for new inputs.
# Note:
- Can be run on non-Keras tensors.
Args:
inputs: Tensor or nested structure of Tensors.
training: Boolean learning phase.
mask: (Optional) Tensor or nested structure of Tensors.
Returns:
output_tensors
| def _run_internal_graph(self, inputs, training=None, mask=None):
"""Computes output tensors for new inputs.
# Note:
- Can be run on non-Keras tensors.
Args:
inputs: Tensor or nested structure of Tensors.
training: Boolean learning phase.
mask: (Optional) Tensor or nested structure of Tensors.
Returns:
output_tensors
"""
inputs = self._flatten_to_reference_inputs(inputs)
if mask is None:
masks = [None] * len(inputs)
else:
masks = self._flatten_to_reference_inputs(mask)
for input_t, mask in zip(inputs, masks):
input_t._keras_mask = mask
# Dictionary mapping reference tensors to computed tensors.
tensor_dict = {}
tensor_usage_count = self._tensor_usage_count
for x, y in zip(self.inputs, inputs):
y = self._conform_to_reference_input(y, ref_input=x)
x_id = str(id(x))
tensor_dict[x_id] = [y] * tensor_usage_count[x_id]
nodes_by_depth = self._nodes_by_depth
depth_keys = list(nodes_by_depth.keys())
depth_keys.sort(reverse=True)
for depth in depth_keys:
nodes = nodes_by_depth[depth]
for node in nodes:
if node.is_input:
continue # Input tensors already exist.
if any(t_id not in tensor_dict for t_id in node.flat_input_ids):
continue # Node is not computable, try skipping.
args, kwargs = node.map_arguments(tensor_dict)
outputs = node.layer(*args, **kwargs)
# Update tensor_dict.
for x_id, y in zip(
node.flat_output_ids, tf.nest.flatten(outputs)
):
tensor_dict[x_id] = [y] * tensor_usage_count[x_id]
output_tensors = []
for x in self.outputs:
x_id = str(id(x))
assert x_id in tensor_dict, "Could not compute output " + str(x)
output_tensors.append(tensor_dict[x_id].pop())
return tf.nest.pack_sequence_as(self._nested_outputs, output_tensors)
| (self, inputs, training=None, mask=None) | [
-0.0070323217660188675,
-0.07019384205341339,
-0.02099531516432762,
0.06671927124261856,
-0.05858727917075157,
0.04184277728199959,
-0.10098450630903244,
0.007674564141780138,
0.057995863258838654,
-0.016125362366437912,
0.009088421240448952,
-0.0037864570040255785,
-0.03476424887776375,
0.013861343264579773,
0.016781466081738472,
0.027463942766189575,
0.01562635414302349,
0.021143170073628426,
-0.005170281045138836,
-0.0223629679530859,
-0.05803282558917999,
-0.053745049983263016,
0.024654710665345192,
0.07034169882535934,
-0.01249369140714407,
0.03128967434167862,
0.02339794859290123,
-0.05566715449094772,
-0.03892265260219574,
-0.016689058393239975,
-0.025819063186645508,
-0.024081774055957794,
0.01642107218503952,
-0.01326992642134428,
0.015201273374259472,
0.0006549484678544104,
-0.023564284667372704,
0.0946267694234848,
-0.06479716300964355,
-0.007448161952197552,
0.03803552687168121,
-0.0761449784040451,
0.005022427067160606,
-0.02655833400785923,
0.023324020206928253,
0.036150384694337845,
-0.0017419088399037719,
-0.000626648252364248,
-0.009693699888885021,
-0.07732781767845154,
0.011717455461621284,
-0.07799316197633743,
0.015312164090573788,
0.047756947576999664,
-0.03646457567811012,
0.0057570780627429485,
0.03716688230633736,
-0.014036920852959156,
0.028498923406004906,
-0.062061857432127,
-0.019331954419612885,
-0.020865943282842636,
-0.03454246744513512,
0.02838803268969059,
-0.02467319183051586,
-0.01606067642569542,
-0.058476388454437256,
-0.029016412794589996,
-0.020699607208371162,
0.03785070776939392,
-0.04701767861843109,
-0.04125135764479637,
0.06945457309484482,
-0.03962496295571327,
-0.008141228929162025,
-0.05185990780591965,
0.025116754695773125,
-0.02764876000583172,
-0.012983458116650581,
-0.04236026480793953,
0.03315633535385132,
-0.0007872087880969048,
-0.011532638221979141,
-0.02256626822054386,
0.043543100357055664,
-0.0026590677443891764,
0.03258339688181877,
0.03609493747353554,
-0.062431491911411285,
-0.051675088703632355,
0.0217900313436985,
-0.005170281045138836,
0.0024141839239746332,
0.04239723086357117,
0.013972233980894089,
0.025560317561030388,
-0.056369464844465256,
-0.07529482245445251,
-0.01156036090105772,
-0.03703751042485237,
0.027741169556975365,
0.03796159848570824,
-0.0473133847117424,
0.02787054143846035,
0.01823228783905506,
-0.03367382287979126,
-0.04857014864683151,
-0.03855301812291145,
-0.004271604120731354,
-0.012964976951479912,
-0.019498290494084358,
0.020607197657227516,
-0.009190070442855358,
-0.004197677131742239,
0.03053192049264908,
0.007087767124176025,
-0.005433646496385336,
-0.02079201489686966,
-0.022492339834570885,
0.005442887544631958,
0.005576880648732185,
0.06339254230260849,
-0.009023734368383884,
-0.03202894330024719,
-0.018842186778783798,
0.022788049653172493,
0.04361702874302864,
0.0499008372426033,
0.03154841810464859,
-0.07725388556718826,
-0.0172157883644104,
0.010257394053041935,
0.01198544166982174,
0.10771188139915466,
0.040142450481653214,
0.020329970866441727,
-0.039587996900081635,
0.031437527388334274,
-0.04871800169348717,
0.013750452548265457,
0.01923954486846924,
-0.03156689926981926,
0.0022848115768283606,
0.034320686012506485,
-0.009702940471470356,
-0.025578798726201057,
0.029496939852833748,
-0.0010875379666686058,
0.014961009845137596,
-0.0672367587685585,
0.011292374692857265,
-0.0052303471602499485,
0.009656735695898533,
0.07592319697141647,
-0.012290391139686108,
0.03236161544919014,
-0.0026267245411872864,
-0.03493058681488037,
0.0051656607538461685,
-0.0020445482805371284,
-0.06686712056398392,
-0.03550352156162262,
0.017724039033055305,
-0.014138570986688137,
-0.02286197617650032,
0.005743216723203659,
0.045354317873716354,
-0.01302042230963707,
-0.014822396449744701,
0.014277184382081032,
0.009231654927134514,
-0.0180289875715971,
0.001330688945017755,
0.015071901492774487,
0.006607240531593561,
0.01723427139222622,
0.010155744850635529,
0.00852934643626213,
-0.013195998966693878,
0.037739817053079605,
-0.018842186778783798,
0.0020110500045120716,
-0.0294045303016901,
-0.011320097371935844,
-0.029367566108703613,
0.05174901708960533,
0.012807881459593773,
-0.030883073806762695,
0.03097548335790634,
-0.008524726144969463,
-0.046906787902116776,
0.04912460222840309,
0.026891006156802177,
0.04365399107336998,
0.034043461084365845,
-0.01276167668402195,
-0.028240177780389786,
0.060102786868810654,
0.011163001880049706,
0.025190681219100952,
-0.026650743559002876,
-0.005678530316799879,
0.07270736992359161,
0.04054905101656914,
-0.05888298898935318,
0.006819780915975571,
0.004659721627831459,
0.05866120755672455,
-0.01858344115316868,
-0.020385416224598885,
-0.061100803315639496,
-0.022695640102028847,
0.04631536826491356,
0.059548333287239075,
0.009555086493492126,
0.021974850445985794,
-0.051675088703632355,
0.030846109613776207,
0.002370289759710431,
-0.03238010033965111,
-0.004400976467877626,
-0.012521414086222649,
-0.035096921026706696,
-0.053227558732032776,
-0.011098315939307213,
-0.027500905096530914,
0.03361837938427925,
0.029922019690275192,
0.04317346587777138,
-0.07074829936027527,
0.033489007502794266,
-0.022825011983513832,
-0.029349084943532944,
0.009813831187784672,
0.007221760228276253,
-0.0056508076377213,
-0.03106789104640484,
-0.04620447754859924,
0.07799316197633743,
0.015423054806888103,
-0.0583285354077816,
-0.06812388449907303,
-0.006140575278550386,
-0.06823477149009705,
-0.00801185704767704,
0.02495041862130165,
0.027537869289517403,
0.028314104303717613,
-0.014517446979880333,
-0.004782163538038731,
-0.040068525820970535,
-0.04339524731040001,
-0.014554411172866821,
0.02389695681631565,
0.007508227601647377,
-0.004634309094399214,
0.0034029597882181406,
-0.017742520198225975,
0.051638126373291016,
0.003160386346280575,
-0.012299632653594017,
0.03461639583110809,
-0.05204472690820694,
0.03496754914522171,
0.01553394552320242,
-0.06830870360136032,
0.02186395972967148,
0.03389560431241989,
-0.03313785046339035,
-0.015617113560438156,
0.04128832370042801,
0.07969348877668381,
-0.03106789104640484,
-0.013935270719230175,
0.0012509862426668406,
-0.0115880835801363,
0.04021637886762619,
0.0742228776216507,
0.0011776366736739874,
-0.006801299285143614,
0.027796614915132523,
-0.020588716492056847,
-0.06930671632289886,
-0.03071673773229122,
0.005345858167856932,
-0.022141186520457268,
0.033470526337623596,
0.01777024194598198,
0.004832988604903221,
-0.07954563200473785,
0.06317076086997986,
-0.0022316763643175364,
0.04790480434894562,
0.00016604734992142767,
-0.010543862357735634,
-0.005373580846935511,
-0.08708620071411133,
-0.012650785967707634,
-0.02234448678791523,
0.015718763694167137,
0.01725275255739689,
-0.0016598958754912019,
0.057478372007608414,
0.005798662081360817,
0.0304579921066761,
-0.00911614391952753,
0.004558071959763765,
0.017520738765597343,
0.011264652013778687,
-0.0013387748040258884,
-0.008649478666484356,
-0.026428962126374245,
0.01487784180790186,
-0.009074559435248375,
-0.003585467580705881,
-0.0639839619398117,
0.03764741122722626,
0.019276509061455727,
0.06150740385055542,
0.07352056354284286,
0.004359392449259758,
0.09181754291057587,
0.013436262495815754,
0.051675088703632355,
-0.03724081069231033,
-0.03962496295571327,
0.10216734558343887,
0.026891006156802177,
-0.014517446979880333,
0.010469934903085232,
0.01115376129746437,
-0.023490356281399727,
0.033230260014534,
0.020847460255026817,
-0.05319059640169144,
-0.0022744154557585716,
0.03764741122722626,
-0.008298324421048164,
-0.006681167520582676,
-0.03683421015739441,
0.03178868070244789,
0.06520376354455948,
-0.012022405862808228,
0.027685724198818207,
0.0010592376347631216,
0.008718784898519516,
0.017021730542182922,
0.04287775605916977,
-0.03676028177142143,
0.04173188656568527,
0.009217793121933937,
0.04908763989806175,
-0.007790075149387121,
0.039846744388341904,
0.015561668202280998,
0.04886585846543312,
0.017151102423667908,
-0.026355035603046417,
0.0028461958281695843,
-0.012225705198943615,
0.05999189615249634,
0.001105442177504301,
0.020422380417585373,
-0.009074559435248375,
0.07961955666542053,
-0.04860711097717285,
0.016910839825868607,
-0.011495674028992653,
0.03966192528605461,
-0.04025334119796753,
-0.017539219930768013,
-0.07115489989519119,
-0.01692008040845394,
0.0223629679530859,
-0.024506855756044388,
0.05703480914235115,
-0.049568165093660355,
0.0013861344195902348,
0.030698256567120552,
0.041953667998313904,
0.02683556079864502,
0.04860711097717285,
-0.002885469701141119,
-0.010460694320499897,
0.06317076086997986,
-0.01430490706115961,
0.006297670304775238,
0.004842229187488556,
0.04047512263059616,
-0.024285074323415756,
0.02681707963347435,
0.01435111090540886,
0.02498738281428814,
-0.01014650333672762,
-0.055593229830265045,
-0.006353115662932396,
0.034302204847335815,
0.0700090229511261,
-0.03855301812291145,
-0.0852380245923996,
-0.044023629277944565,
-0.04202759265899658,
0.0003788767207879573,
0.06339254230260849,
0.04151010513305664,
-0.04712856933474541,
0.03663090988993645,
0.03445005789399147,
0.010109540075063705,
0.002809232333675027,
-0.021161651238799095,
-0.010460694320499897,
0.011357060633599758,
0.04184277728199959,
0.009675217792391777,
0.01692008040845394,
-0.0017211168305948377,
-0.008182813413441181,
0.062394529581069946,
0.03236161544919014,
0.037481073290109634,
0.06472323089838028,
0.09314823150634766,
0.031640827655792236,
0.01568179950118065,
-0.01408312562853098,
-0.04949423670768738,
0.03238010033965111,
-0.040068525820970535,
0.04321042820811272,
-0.029016412794589996,
-0.058993879705667496,
-0.0041468520648777485,
-0.030809147283434868,
-0.009176209568977356,
-0.01039600744843483,
0.06209881976246834,
0.01433262974023819,
0.014905564486980438,
0.05041832849383354,
0.03387712314724922,
0.0213095061480999,
0.05677606537938118,
-0.06461234390735626,
-0.011126038618385792,
0.02371213771402836,
-0.039070505648851395,
0.08568158745765686,
-0.06132258474826813,
-0.0097214225679636,
0.04834836721420288,
-0.021642178297042847,
0.05466913804411888,
-0.02313920296728611,
-0.03814641758799553,
0.0202560443431139,
0.0005686038639396429,
-0.01705869287252426,
-0.06708890199661255,
0.042175449430942535,
-0.004135300870984793,
0.035374149680137634,
-0.029293639585375786,
0.04650018736720085,
-0.023878473788499832,
-0.044245410710573196,
0.06823477149009705,
-0.017345162108540535,
-0.02896096743643284,
0.027519388124346733,
0.08849082142114639,
-0.004971602000296116,
-0.01574648730456829,
-0.005091733764857054,
-0.01433262974023819,
-0.015376850962638855,
0.010996665805578232,
-0.00446797301992774,
-0.05441039428114891,
-0.03258339688181877,
-0.017668593674898148,
-0.06487108767032623,
-0.011948478408157825,
0.023324020206928253,
-0.015709523111581802,
0.030883073806762695,
0.04834836721420288,
0.015691041946411133,
0.04735035076737404,
-0.02258474938571453,
-0.04727642238140106,
-0.025393981486558914,
0.0531536340713501,
-0.008404594846069813,
-0.0430995374917984,
-0.019405880942940712,
0.006533313542604446,
0.007656082045286894,
0.024765601381659508,
-0.038220345973968506,
0.0036617049481719732,
0.010543862357735634,
-0.04834836721420288,
0.006953774020075798,
0.05344934016466141,
0.05577804520726204,
0.018158359453082085,
0.021180132403969765,
-0.02363821119070053,
0.022529304027557373,
-0.031123336404561996,
-0.04365399107336998,
0.02975568361580372,
-0.0005319290794432163,
-0.014545169658958912,
0.0005971929058432579,
0.022935902699828148,
0.005299653857946396,
0.02415570244193077,
-0.0262441448867321,
0.030809147283434868,
0.03465335816144943,
-0.006098991259932518,
-0.03788767382502556,
0.03761044517159462,
0.03650153800845146,
-0.022769566625356674,
0.011976201087236404,
0.030310139060020447,
-0.00959204975515604,
-0.03530022129416466,
0.002996360417455435,
0.004384804982692003,
0.01814911887049675,
0.000890013761818409,
-0.055851973593235016,
0.07784530520439148,
-0.04232330247759819,
-0.09684459120035172,
0.014360352419316769,
-0.005308894440531731,
0.015986749902367592,
0.025874508544802666,
-0.01630094088613987,
0.059844039380550385,
0.033008478581905365,
0.036908138543367386,
0.027667241171002388,
0.01801050640642643,
-0.02703886106610298,
-0.040844760835170746,
0.009361027739942074,
0.022122705355286598,
0.04158402979373932,
0.0379246361553669,
0.00901449378579855,
-0.03550352156162262,
0.014314147643744946,
-0.0421384833753109,
0.028831595554947853,
-0.026613779366016388,
0.03672331944108009,
-0.016864635050296783,
-0.062061857432127,
0.00099397380836308,
-0.0263365525752306,
-0.05725659057497978,
-0.022991348057985306,
-0.028240177780389786,
0.007411198224872351,
-0.014970251359045506,
0.010811847634613514,
0.06605391949415207,
-0.038220345973968506,
0.004920776933431625,
0.014369593001902103,
-0.009310202673077583,
0.001966000534594059,
0.040918685495853424,
-0.04735035076737404,
0.01866661012172699,
-0.021124687045812607,
-0.0030079116113483906,
0.007762352470308542,
0.061655256897211075,
-0.007480504922568798,
-0.009227034635841846,
0.034339167177677155,
0.004121439531445503,
0.0029709478840231895,
0.0007693045772612095,
0.02262171357870102,
-0.002897020895034075,
0.018352419137954712,
0.011883791536092758,
-0.02160521410405636,
-0.07544267177581787,
0.01765011064708233,
0.013288408517837524,
-0.029108822345733643,
-0.07407502084970474,
0.00894518755376339,
0.015469259582459927,
-0.01522899605333805,
-0.007133971434086561,
-0.05951136723160744,
-0.02600388042628765,
-0.021679140627384186,
0.0021450428757816553,
-0.03716688230633736,
-0.0016691368073225021,
0.011126038618385792,
0.006034304853528738,
-0.021900923922657967,
0.012299632653594017,
-0.04136224836111069,
-0.05418861284852028,
0.05326452478766441,
0.05818067863583565,
-0.020052744075655937,
0.015857378020882607,
0.014295665547251701,
-0.06804995983839035,
-0.06121169403195381,
-0.051157597452402115,
0.024562301114201546,
0.028277141973376274,
-0.04176884889602661,
0.032989997416734695,
0.05023350939154625,
0.011754419654607773,
-0.0013942201621830463,
-0.017400607466697693,
0.017382124438881874,
0.07015687972307205,
-0.10408945381641388,
0.028979448601603508,
-0.008820435032248497,
-0.04210152104496956,
-0.004008238669484854,
-0.014628337696194649,
-0.029127303510904312,
-0.037998564541339874,
-0.045576099306344986,
0.016116121783852577,
-0.05123152583837509,
0.02315768413245678,
-0.014665301889181137,
0.05448432266712189,
0.04812658578157425,
-0.05492788553237915,
0.07932385057210922,
0.011929996311664581,
0.00480988621711731,
0.053005777299404144,
0.04313649982213974,
-0.012170259840786457,
-0.017123380675911903,
0.010451452806591988,
-0.010331321507692337,
0.0031164921820163727,
-0.019405880942940712,
-0.002665998414158821,
0.007480504922568798,
-0.07592319697141647,
-0.0069676353596150875,
-0.009411852806806564,
-0.023471875116229057,
0.031104855239391327,
0.011264652013778687,
-0.047202493995428085,
-0.06731068342924118,
-0.025412462651729584,
-0.03530022129416466,
-0.0360579751431942,
-0.016984766349196434,
0.040844760835170746,
0.016531962901353836,
-0.014997974038124084,
-0.06779120862483978,
-0.004539589863270521,
0.02705734223127365,
-0.022751085460186005,
0.02339794859290123,
-0.006334634032100439,
-0.020422380417585373,
-0.017640870064496994,
-0.03267580643296242,
0.04916156455874443,
-0.03476424887776375,
-0.014110848307609558,
-0.015875859186053276,
0.040844760835170746,
-0.01799202337861061,
-0.032490991055965424,
-0.01155111938714981,
-0.014277184382081032,
-0.02339794859290123,
-0.03289758786559105,
-0.04631536826491356,
0.015894340351223946,
-0.037998564541339874,
-0.06768032163381577,
-0.0341913141310215,
0.010617788881063461,
0.0630229115486145,
-0.0732618197798729,
0.009915481321513653,
0.007605257444083691,
0.016744503751397133,
0.011772900819778442,
-0.016605889424681664,
0.038516052067279816,
-0.021771550178527832,
0.007947170175611973,
-0.029552385210990906,
0.009005253203213215,
0.04232330247759819,
0.005064011085778475,
0.011098315939307213,
0.021956369280815125,
0.03862694278359413,
0.046980712562799454,
0.025892989709973335,
-0.04332131892442703,
0.0011487588053569198,
-0.00894518755376339,
-0.08531194925308228,
0.054040759801864624,
0.017400607466697693,
0.027186715975403786,
0.05437343195080757,
-0.0473133847117424,
-0.03578075021505356,
-0.039292287081480026,
-0.019110172986984253,
0.052968814969062805,
-0.025190681219100952,
-0.040844760835170746,
-0.009333305060863495,
0.012281150557100773,
-0.027279123663902283,
-0.07651461660861969,
0.008506244979798794,
0.02550487220287323,
-0.004976222291588783,
0.05581501126289368,
-0.030679773539304733,
0.032472506165504456,
-0.03568834066390991,
0.0852380245923996,
0.006865985691547394,
-0.04332131892442703,
-0.0310309287160635,
0.10578977316617966,
0.01062703039497137,
0.021217096596956253,
-0.019054727628827095,
-0.04531735181808472,
-0.07507304102182388,
-0.00003035778718185611,
-0.020607197657227516,
0.02890552207827568,
-0.01115376129746437,
-0.00663496321067214,
0.004239261150360107,
0.0018308524740859866,
0.022492339834570885
] |
725,141 | tf_keras.src.engine.functional | _set_output_names | Assigns unique names to the Network's outputs.
Output layers with multiple output tensors would otherwise lead to
duplicate names in self.output_names.
| def _set_output_names(self):
"""Assigns unique names to the Network's outputs.
Output layers with multiple output tensors would otherwise lead to
duplicate names in self.output_names.
"""
uniquified = []
output_names = set()
prefix_count = {}
for layer in self._output_layers:
proposal = layer.name
while proposal in output_names:
existing_count = prefix_count.get(layer.name, 1)
proposal = f"{layer.name}_{existing_count}"
prefix_count[layer.name] = existing_count + 1
output_names.add(proposal)
uniquified.append(proposal)
self.output_names = uniquified
| (self) | [
-0.05994502082467079,
-0.045725006610155106,
-0.038098230957984924,
-0.025125587359070778,
-0.04654470458626747,
0.044014327228069305,
-0.06978142261505127,
0.02231009677052498,
0.06700156629085541,
-0.017088964581489563,
0.004797918256372213,
0.008388560265302658,
0.005933915264904499,
0.020563779398798943,
0.0552762933075428,
-0.02494739182293415,
0.045404255390167236,
0.036405373364686966,
-0.02566017396748066,
-0.00896324124187231,
0.004033904056996107,
0.01562775857746601,
0.02966957725584507,
-0.019744079560041428,
-0.030952585861086845,
-0.02462664060294628,
-0.003178565064445138,
-0.016242533922195435,
-0.00013051439600531012,
0.013070651330053806,
-0.11753785610198975,
-0.049003805965185165,
0.004134139511734247,
-0.00017722115444485098,
0.039416879415512085,
0.0013175341300666332,
0.020403403788805008,
0.071420818567276,
0.014888247475028038,
-0.02008265070617199,
0.08881271630525589,
-0.09330324828624725,
-0.013409223407506943,
0.030863488093018532,
-0.0019891089759767056,
0.07220488041639328,
-0.025963107123970985,
0.026693709194660187,
-0.012206402607262135,
-0.018461070954799652,
-0.008531116880476475,
-0.02034994401037693,
0.005167674273252487,
0.05855509266257286,
0.012402418069541454,
0.0007461943314410746,
0.06575419753789902,
-0.00958692654967308,
-0.018942197784781456,
-0.015592120587825775,
-0.06418607383966446,
0.006722431164234877,
0.03799131512641907,
-0.01969061978161335,
-0.014692232012748718,
-0.04576064646244049,
-0.012322230264544487,
0.0029535931535065174,
-0.0038891201838850975,
0.06240411847829819,
0.008482113480567932,
-0.05363689363002777,
0.019744079560041428,
-0.0108253862708807,
0.02402077428996563,
0.025161227211356163,
0.006789254490286112,
0.016376180574297905,
-0.007404029835015535,
-0.014745690859854221,
-0.04087808355689049,
0.03162973001599312,
-0.041911620646715164,
-0.0039915828965604305,
0.03526492044329643,
-0.025945287197828293,
-0.006183389574289322,
0.003918076865375042,
-0.042695678770542145,
-0.03649447113275528,
-0.02460882067680359,
0.020100470632314682,
0.028992433100938797,
0.05000170320272446,
-0.03339386731386185,
-0.001071958220563829,
-0.08346685022115707,
-0.06397224217653275,
-0.0071946498937904835,
-0.04266003891825676,
-0.046437788754701614,
0.0037577010225504637,
-0.008936512283980846,
0.04098500311374664,
-0.0097829420119524,
-0.05730772390961647,
-0.002626158529892564,
0.0031251064501702785,
-0.03702905774116516,
-0.008851869031786919,
0.009328543208539486,
0.011707454919815063,
0.06251103430986404,
-0.051819298416376114,
0.10050234943628311,
-0.06746487319469452,
-0.025232505053281784,
-0.017026595771312714,
0.03695777803659439,
0.014540765434503555,
-0.024858294054865837,
0.08182744681835175,
0.0033656705636531115,
0.0034035369753837585,
-0.03339386731386185,
0.011698544956743717,
0.031540632247924805,
0.04458455368876457,
0.037064697593450546,
-0.014567495323717594,
-0.02494739182293415,
0.0267828069627285,
-0.0743432268500328,
0.04740004613995552,
0.052674636244773865,
0.009083523415029049,
-0.04601011797785759,
0.017311709001660347,
0.023290172219276428,
0.05855509266257286,
0.03629845753312111,
0.03496198728680611,
-0.006459592841565609,
0.05206876993179321,
0.01680385135114193,
0.034231387078762054,
0.050251174718141556,
0.03072093240916729,
-0.004241056740283966,
-0.07334533333778381,
-0.003555003320798278,
-0.021846788004040718,
-0.03321567177772522,
-0.014736780896782875,
-0.05206876993179321,
0.02599874697625637,
-0.04579628258943558,
0.005871546920388937,
-0.03405319154262543,
-0.023290172219276428,
-0.015449563972651958,
-0.057022612541913986,
-0.010281889699399471,
-0.028778599575161934,
-0.015494112856686115,
-0.0267828069627285,
0.046972375363111496,
0.009631475433707237,
0.019245130941271782,
0.004452663939446211,
-0.005822543054819107,
-0.010834296233952045,
-0.0012406873283907771,
0.03759928420186043,
0.01936986856162548,
0.007159010507166386,
0.027424311265349388,
-0.018336333334445953,
-0.04162650555372238,
0.04668726399540901,
0.018674904480576515,
-0.06247539818286896,
-0.050643205642700195,
0.014291292056441307,
-0.004265558440238237,
-0.025713633745908737,
0.04921764135360718,
0.035942062735557556,
0.018657086417078972,
-0.005564159248024225,
0.026497693732380867,
0.028404388576745987,
-0.019334228709340096,
0.02717483788728714,
0.05741463974118233,
-0.03906048834323883,
-0.015405015088617802,
-0.010558092966675758,
0.0662887841463089,
-0.0709218755364418,
-0.05263899639248848,
0.02271994575858116,
-0.005002843216061592,
0.050108619034290314,
0.02913499064743519,
-0.016313811764121056,
0.012366779148578644,
-0.012170763686299324,
-0.014139825478196144,
-0.016064338386058807,
0.03184356540441513,
-0.000408736290410161,
0.07355916500091553,
0.02815491333603859,
-0.013418133370578289,
-0.004989478271454573,
-0.004904835484921932,
0.039345599710941315,
0.021240921691060066,
-0.019209492951631546,
-0.02179332822561264,
0.005221132654696703,
0.03287709876894951,
0.016848400235176086,
-0.07883375883102417,
-0.02671152912080288,
0.010468995198607445,
0.019120393320918083,
0.004071770701557398,
-0.011199597269296646,
0.03838334605097771,
0.003307756967842579,
-0.0341244675219059,
0.004029449541121721,
-0.006989724934101105,
-0.0059472802095115185,
-0.020189568400382996,
-0.05659494176506996,
0.004506122786551714,
-0.01778392679989338,
-0.06760743260383606,
-0.0374210886657238,
-0.0016471961280331016,
-0.007457488216459751,
-0.020884530618786812,
0.01949460431933403,
0.01758791133761406,
0.022880323231220245,
-0.019120393320918083,
0.04187598079442978,
0.05092832073569298,
0.014692232012748718,
-0.023931676521897316,
-0.017026595771312714,
0.003604007186368108,
-0.03916740417480469,
-0.08767226338386536,
-0.019049115478992462,
0.0322890542447567,
-0.021169643849134445,
-0.046117037534713745,
0.005029572639614344,
-0.016572196036577225,
-0.0232367143034935,
0.034373942762613297,
-0.03257416561245918,
0.029366644099354744,
0.002341045532375574,
-0.09023828059434891,
-0.010878845117986202,
0.07890503853559494,
0.03394627198576927,
-0.06532652676105499,
-0.006290306802839041,
-0.013640877790749073,
-0.00423214677721262,
0.0628674253821373,
0.020207388326525688,
-0.07042292505502701,
0.022826863452792168,
0.11197815090417862,
-0.05035809427499771,
-0.0216507725417614,
0.0018732819007709622,
0.03599552437663078,
0.02140129916369915,
0.000267154275206849,
0.032912738621234894,
0.02159731462597847,
-0.056880053132772446,
0.04397868737578392,
0.010540273040533066,
-0.0075911348685622215,
-0.007653503678739071,
-0.06219028681516647,
0.0034636780619621277,
-0.04180470108985901,
-0.019922275096178055,
0.014077456668019295,
0.036191537976264954,
-0.048148468136787415,
0.013248846866190434,
0.03157627210021019,
-0.017365166917443275,
-0.017249340191483498,
-0.009515647776424885,
0.0188352819532156,
-0.0028867695946246386,
0.027157017961144447,
0.007150101009756327,
0.02289814129471779,
0.03629845753312111,
-0.043158989399671555,
0.011965838260948658,
0.047685157507658005,
0.024519722908735275,
0.03398191183805466,
0.03841898590326309,
0.009194895625114441,
0.0728820264339447,
-0.04911072179675102,
-0.017097873613238335,
-0.058198701590299606,
-0.004058406222611666,
0.0006259122746996582,
-0.0011393384775146842,
0.003906939644366503,
0.020510319620370865,
0.011377792805433273,
-0.036405373364686966,
-0.10584822297096252,
-0.09793633222579956,
-0.026337318122386932,
0.036993417888879776,
-0.014816968701779842,
-0.003294392256066203,
0.03164754807949066,
-0.0111906873062253,
0.0442638024687767,
0.00906124897301197,
-0.006539780646562576,
0.019975733011960983,
-0.09337452799081802,
0.03118424117565155,
0.004419252276420593,
0.05046501010656357,
-0.018202686682343483,
0.044085606932640076,
-0.03526492044329643,
0.00988094974309206,
-0.008130176924169064,
0.061726976186037064,
0.02147257700562477,
0.07377300411462784,
0.117894247174263,
0.0428025983273983,
-0.023646563291549683,
-0.017088964581489563,
0.009150346741080284,
0.02193588577210903,
0.008771681226789951,
-0.0550268180668354,
0.06258231401443481,
-0.011065950617194176,
0.02790543995797634,
-0.042838238179683685,
0.071420818567276,
0.009480008855462074,
0.03282364085316658,
-0.06297434866428375,
-0.05445659160614014,
-0.014469487592577934,
0.007920796982944012,
-0.03551439568400383,
-0.0679994598031044,
0.06953194737434387,
0.0006014103419147432,
-0.0034881799947470427,
0.012126214802265167,
-0.07469961792230606,
0.004027221817523241,
-0.005568614229559898,
0.015788136050105095,
0.059446070343256,
0.003942579030990601,
-0.01609106734395027,
0.041769061237573624,
-0.035870786756277084,
0.044869668781757355,
0.038775376975536346,
0.05534757301211357,
0.035425297915935516,
0.010798657312989235,
0.012135124765336514,
0.02893897518515587,
-0.016376180574297905,
-0.07017344981431961,
0.03710033744573593,
-0.06878352165222168,
0.008887508884072304,
-0.031148601323366165,
-0.06297434866428375,
-0.009301813319325447,
0.061726976186037064,
-0.026034384965896606,
-0.00813908688724041,
0.053387418389320374,
0.06671645492315292,
0.011163958348333836,
-0.05463479086756706,
-0.09487137198448181,
-0.05855509266257286,
-0.007199104409664869,
-0.0753411278128624,
0.039416879415512085,
0.06589675694704056,
0.016901858150959015,
-0.01765918917953968,
0.07904759794473648,
-0.008054443635046482,
-0.0022664261050522327,
0.07081495225429535,
0.07181285321712494,
0.07698052376508713,
0.06162006035447121,
-0.03955943509936333,
-0.022862503305077553,
0.05495554208755493,
-0.004927109926939011,
0.031344614923000336,
-0.040129661560058594,
0.004846922121942043,
0.013444862328469753,
-0.06290306895971298,
0.08788610249757767,
-0.03072093240916729,
0.05085704103112221,
0.004815737716853619,
-0.04490530490875244,
0.04465583339333534,
0.003924759570509195,
0.004109637346118689,
-0.04415688291192055,
0.03635191544890404,
0.034373942762613297,
0.03321567177772522,
-0.026800626888871193,
0.014353659935295582,
-0.025428520515561104,
-0.00968493428081274,
0.010611551813781261,
0.0025348332710564137,
-0.006842713337391615,
-0.07961782068014145,
0.08261150866746902,
0.008606850169599056,
-0.015307007357478142,
-0.005252317059785128,
-0.0171246025711298,
-0.019922275096178055,
-0.011912379413843155,
0.04515478014945984,
0.04180470108985901,
0.06183389201760292,
-0.04383613169193268,
-0.04722185060381889,
0.058376897126436234,
-0.012589523568749428,
0.004806827753782272,
0.03277018293738365,
0.029633937403559685,
-0.027406493201851845,
0.017249340191483498,
-0.0037220618687570095,
-0.0799742117524147,
-0.05887584388256073,
-0.0011371111031621695,
0.038490261882543564,
-0.048397939652204514,
-0.024733558297157288,
-0.02507212944328785,
0.01194801926612854,
-0.0029647303745150566,
0.005377054214477539,
-0.017284978181123734,
0.03392845392227173,
0.039808910340070724,
-0.029580479487776756,
0.017115693539381027,
-0.027673786506056786,
-0.04294515401124954,
-0.03079221025109291,
-0.03104168362915516,
-0.015912871807813644,
-0.02284468337893486,
0.020047010853886604,
0.046758539974689484,
-0.0006303671398200095,
-0.04547553136944771,
0.0011098248651251197,
0.020439041778445244,
-0.022417014464735985,
0.028974615037441254,
-0.036334093660116196,
0.046580344438552856,
0.02644423581659794,
-0.003067192854359746,
-0.04387177154421806,
-0.04458455368876457,
0.013810163363814354,
-0.028475666418671608,
-0.02402077428996563,
-0.02665807120501995,
0.010130423121154308,
0.010050235316157341,
0.007421849295496941,
-0.0162068959325552,
-0.013462682254612446,
0.006312581244856119,
0.05709388852119446,
-0.011912379413843155,
0.028849877417087555,
-0.06710848212242126,
0.0029224087484180927,
-0.0033545333426445723,
0.03492634743452072,
0.0011053700000047684,
-0.002022520639002323,
-0.007114461623132229,
0.01694640703499317,
-0.05948171019554138,
0.0008029941818676889,
-0.05171237885951996,
0.043943051248788834,
0.0030204164795577526,
-0.005724535323679447,
-0.00005464202695293352,
-0.018282875418663025,
0.003220886457711458,
0.012259861454367638,
-0.0038646182511001825,
0.0008993312367238104,
0.008611305616796017,
-0.08532007783651352,
0.01375670451670885,
0.052745915949344635,
-0.004838012158870697,
0.03991582617163658,
0.01758791133761406,
-0.005608708597719669,
-0.05730772390961647,
-0.02271994575858116,
-0.026747168973088264,
-0.06992397457361221,
0.0049761137925088406,
0.001749658607877791,
0.0074797626584768295,
0.015431744046509266,
-0.01375670451670885,
0.03585296496748924,
0.002127210609614849,
0.0066556078381836414,
0.01680385135114193,
-0.007359480485320091,
0.037385448813438416,
0.010798657312989235,
-0.03551439568400383,
0.001973517006263137,
-0.04094936326146126,
0.016046518459916115,
0.014068547636270523,
-0.019013477489352226,
0.008081173524260521,
-0.040200941264629364,
-0.04023658111691475,
-0.004345746710896492,
0.0895254984498024,
-0.006339310668408871,
0.058448176831007004,
0.0016304902965202928,
0.011440161615610123,
0.05488426238298416,
0.01089666411280632,
-0.016313811764121056,
0.04287387430667877,
0.03168318793177605,
-0.005007298197597265,
0.015921782702207565,
0.015449563972651958,
-0.016919678077101707,
-0.09159256517887115,
0.0029535931535065174,
0.008170271292328835,
-0.027406493201851845,
-0.025054309517145157,
0.016456369310617447,
-0.022238818928599358,
0.004305652808398008,
0.0388822928071022,
-0.005483971443027258,
0.011636176146566868,
0.026301680132746696,
-0.013640877790749073,
0.014228923246264458,
0.03920304402709007,
-0.035407476127147675,
-0.005252317059785128,
-0.011796552687883377,
-0.012553883716464043,
0.046366509050130844,
-0.012901365756988525,
0.016385091468691826,
0.0053503247909247875,
-0.06643134355545044,
-0.044335078448057175,
-0.06162006035447121,
0.028244011104106903,
0.006954085547477007,
-0.04547553136944771,
-0.009212715551257133,
0.01640290953218937,
0.035282742232084274,
-0.022292276844382286,
-0.011743093840777874,
-0.013088471256196499,
0.0053503247909247875,
-0.0008414176409132779,
-0.006989724934101105,
0.08589030802249908,
-0.0034169016871601343,
-0.005893821362406015,
-0.03394627198576927,
0.012384598143398762,
-0.07541240006685257,
0.017240429297089577,
-0.009203805588185787,
-0.010388806462287903,
-0.021151823922991753,
-0.010103694163262844,
-0.0782635360956192,
0.051569823175668716,
0.0007790491217747331,
0.029295366257429123,
0.0028444482013583183,
-0.011502529494464397,
0.012259861454367638,
0.017409715801477432,
-0.017311709001660347,
0.03020416386425495,
-0.03408883139491081,
-0.0006325945723801851,
0.037314172834157944,
0.034177929162979126,
0.048077188432216644,
0.03884665295481682,
-0.022292276844382286,
-0.05912531912326813,
0.0065976944752037525,
0.009729483164846897,
-0.048683054745197296,
-0.027994537726044655,
-0.00804107915610075,
0.0017207018099725246,
-0.0012195265153422952,
0.029045892879366875,
0.016821669414639473,
-0.0075287665240466595,
-0.026159122586250305,
-0.035354018211364746,
0.01181437261402607,
-0.028172733262181282,
-0.02861822210252285,
0.017249340191483498,
-0.0640791580080986,
-0.005769084673374891,
-0.0445132739841938,
0.024858294054865837,
0.07209796458482742,
0.026372957974672318,
-0.034302663058042526,
-0.034373942762613297,
-0.0023744571954011917,
0.001829846645705402,
-0.0225061122328043,
0.025677993893623352,
0.01659892499446869,
-0.035817328840494156,
-0.01181437261402607,
0.0667877346277237,
0.030417999252676964,
-0.029331006109714508,
-0.020136108621954918,
0.007096642162650824,
0.021294381469488144,
-0.020367763936519623,
0.034694693982601166,
0.023379269987344742,
-0.04918200150132179,
-0.049003805965185165,
-0.03255634754896164,
0.04925328120589256,
-0.007332751527428627,
-0.05192621424794197,
-0.039416879415512085,
-0.002993687056005001,
0.05730772390961647,
-0.022826863452792168,
-0.0035728230141103268,
0.005760174710303545,
-0.011547078378498554,
-0.024591000750660896,
-0.014264562167227268,
-0.01582377403974533,
0.008116812445223331,
-0.017115693539381027,
-0.02717483788728714,
0.0044281622394919395,
0.026889724656939507,
-0.01831851340830326,
0.018282875418663025,
0.007960891351103783,
0.04878997057676315,
0.02854694426059723,
0.036191537976264954,
-0.051569823175668716,
0.0038089321460574865,
0.0005220575840212405,
0.005189948715269566,
0.015057533048093319,
0.03891793265938759,
-0.029331006109714508,
0.04832666367292404,
-0.03734980896115303,
0.021846788004040718,
0.024573180824518204,
-0.0215260349214077,
0.07569751888513565,
-0.026212582364678383,
-0.015280277468264103,
-0.014023998752236366,
0.008348466828465462,
-0.07947526127099991,
0.0028689501341432333,
0.03838334605097771,
-0.00017471527098678052,
-0.0031629728619009256,
0.06707284599542618,
0.0008726018713787198,
-0.008482113480567932,
-0.02685408666729927,
0.039880190044641495,
0.01145798061043024,
-0.030899127945303917,
-0.026337318122386932,
0.056488022208213806,
-0.02394949644804001,
0.06119238957762718,
0.012037117034196854,
-0.009310723282396793,
-0.0484335795044899,
-0.02140129916369915,
0.00230540637858212,
0.03129115700721741,
-0.03695777803659439,
0.04465583339333534,
0.03873973712325096,
0.03143371269106865,
-0.059446070343256
] |
725,151 | tf_keras.src.engine.functional | _trackable_children | null | def _trackable_children(self, save_type="checkpoint", **kwargs):
dependencies = self._layer_checkpoint_dependencies
dependencies.update(super()._trackable_children(save_type, **kwargs))
return dependencies
| (self, save_type='checkpoint', **kwargs) | [
-0.03105040080845356,
-0.0005829577567055821,
-0.06464619934558868,
0.07046923786401749,
-0.013189010322093964,
0.015159080736339092,
-0.02097340300679207,
0.06558764725923538,
0.03223592787981033,
-0.007483651861548424,
0.053732357919216156,
-0.010643609799444675,
0.04288825765252113,
-0.06227514147758484,
-0.013119273819029331,
-0.028382958844304085,
-0.015019606798887253,
-0.007509803399443626,
0.008281269110739231,
-0.022124063223600388,
-0.009920088574290276,
0.0011844394030049443,
0.017068130895495415,
-0.09163442254066467,
-0.03954087942838669,
0.020955968648195267,
0.012116803787648678,
0.050908010452985764,
0.011053314432501793,
0.040761277079582214,
-0.09442389756441116,
-0.009902654215693474,
-0.036123767495155334,
-0.016301024705171585,
-0.000872802163939923,
0.05484815314412117,
-0.0036023519933223724,
0.09560942649841309,
-0.027162563055753708,
0.0077713169157505035,
0.004515470936894417,
0.01780908741056919,
-0.05659157782793045,
0.02186254970729351,
-0.006834226194769144,
0.00263475114479661,
-0.0022838867735117674,
0.06356527656316757,
0.05592907592654228,
-0.0415981225669384,
0.027214864268898964,
-0.04379483684897423,
0.05376722663640976,
0.04466655105352402,
0.030440201982855797,
-0.00870840810239315,
0.021601036190986633,
0.012639831751585007,
0.04498036578297615,
0.030004344880580902,
0.04142377898097038,
-0.003517359960824251,
0.034380342811346054,
0.0055571673437952995,
-0.008747635409235954,
-0.03455468267202377,
-0.005805605556815863,
-0.041144829243421555,
-0.04459681361913681,
0.039819829165935516,
-0.0396803542971611,
-0.07301463931798935,
0.021409260109066963,
0.025558611378073692,
-0.01671944558620453,
-0.054604072123765945,
0.06265869736671448,
-0.016771748661994934,
0.01228242926299572,
0.000032791373087093234,
-0.01867208257317543,
-0.027598418295383453,
-0.040865883231163025,
0.015446745790541172,
0.024146437644958496,
-0.024739202111959457,
0.025105319917201996,
-0.01286647655069828,
0.01807931810617447,
0.0338747501373291,
-0.0706435814499855,
0.042225755751132965,
0.0014230706728994846,
0.01412174291908741,
-0.022908605635166168,
-0.015307271853089333,
-0.0464448444545269,
0.00030292008887045085,
-0.046654053032398224,
0.0035021051298826933,
-0.024425385519862175,
0.010966143570840359,
-0.022594789043068886,
0.06248435378074646,
-0.007318026386201382,
-0.0880080983042717,
-0.03404908999800682,
-0.05641723424196243,
-0.018811555579304695,
-0.01426121685653925,
-0.0512566976249218,
0.0048118531703948975,
0.038634300231933594,
-0.004933892749249935,
-0.0030488146003335714,
-0.012264994904398918,
0.0037570809945464134,
-0.03558330610394478,
0.020328335464000702,
-0.0329158641397953,
-0.021932287141680717,
0.05854421108961105,
-0.007644918747246265,
0.01542059425264597,
-0.02862703986465931,
0.03751850500702858,
0.03220105916261673,
0.08131334185600281,
-0.011445585638284683,
-0.08717124909162521,
0.029481317847967148,
-0.04142377898097038,
-0.05240735784173012,
0.012831607833504677,
0.019421754404902458,
0.008045906201004982,
0.0638442263007164,
-0.004820570349693298,
-0.047909319400787354,
-0.04515470936894417,
-0.03200928494334221,
-0.017573723569512367,
0.01011186558753252,
0.012840325012803078,
0.0027938387356698513,
0.02911519818007946,
-0.008778145536780357,
-0.03558330610394478,
-0.08242913335561752,
-0.040656670928001404,
0.03309020772576332,
-0.027057956904172897,
-0.04703760892152786,
-0.0027764043770730495,
-0.048118531703948975,
0.015699543058872223,
-0.045607998967170715,
0.012892628088593483,
-0.011393282562494278,
0.03852969408035278,
-0.06691265106201172,
0.009405777789652348,
-0.0015570964897051454,
-0.0036415790673345327,
-0.005657414440065622,
0.00599302351474762,
0.0064855413511395454,
-0.06855147331953049,
-0.009937522932887077,
0.05784684419631958,
0.01827109418809414,
0.0041602482087910175,
0.0783843919634819,
0.02097340300679207,
-0.01867208257317543,
-0.003983726259320974,
0.033037904649972916,
-0.038843508809804916,
-0.012552659958600998,
0.06325145810842514,
0.026343151926994324,
-0.03253231197595596,
-0.005461278837174177,
0.004423941019922495,
0.04459681361913681,
0.002571551827713847,
0.0318872444331646,
-0.01711171679198742,
0.02447768673300743,
-0.007104456890374422,
-0.01030364166945219,
0.0387040376663208,
0.04288825765252113,
-0.01837570033967495,
-0.0031141929794102907,
0.014444276690483093,
0.000636350130662322,
0.019369451329112053,
-0.07029489427804947,
0.004968761466443539,
-0.023135250434279442,
-0.011672230437397957,
0.007806185632944107,
-0.045991551131010056,
-0.03898298367857933,
0.05435999110341072,
-0.030440201982855797,
-0.007697221357375383,
-0.00672526191920042,
0.005304370541125536,
-0.04829287528991699,
0.033125076442956924,
-0.022908605635166168,
-0.025767821818590164,
0.022751696407794952,
-0.07012055814266205,
-0.04194680601358414,
0.02235070988535881,
0.05819552764296532,
0.016684576869010925,
0.0011463019764050841,
0.012509074993431568,
-0.055475786328315735,
0.001399098546244204,
-0.033020470291376114,
-0.02011912502348423,
0.02398952841758728,
-0.015490331687033176,
0.02283886820077896,
-0.08082518726587296,
-0.025279663503170013,
0.014313519932329655,
-0.08758967369794846,
0.011393282562494278,
0.05369749292731285,
0.03295073285698891,
-0.03251487761735916,
0.014662204310297966,
0.011524039320647717,
0.019282281398773193,
-0.030597109347581863,
-0.04110996425151825,
-0.0011201505549252033,
0.015725694596767426,
0.01229114644229412,
-0.037657979875802994,
0.05059419572353363,
-0.017835238948464394,
0.019909914582967758,
0.008677897974848747,
0.04152838513255119,
-0.033822447061538696,
-0.01896846480667591,
-0.02834809198975563,
0.002700129523873329,
-0.07915149629116058,
0.031956981867551804,
-0.012055784463882446,
0.028365524485707283,
-0.035077713429927826,
-0.006699110846966505,
0.0406218022108078,
0.002162936609238386,
0.047909319400787354,
-0.02677900902926922,
-0.016039511188864708,
0.03657705709338188,
-0.05871855467557907,
-0.08968178182840347,
0.010321076028048992,
0.08758967369794846,
0.005060291383415461,
-0.015751846134662628,
0.01828852854669094,
-0.017172737047076225,
-0.06297251582145691,
-0.010870255529880524,
0.014330954290926456,
-0.048223137855529785,
0.004227805882692337,
0.04177246242761612,
-0.026534929871559143,
0.0032907146960496902,
-0.0103908134624362,
-0.04369023069739342,
-0.0425395704805851,
-0.02958592213690281,
-0.0010961785446852446,
-0.06007842719554901,
-0.05777710676193237,
-0.01655382104218006,
0.0541507825255394,
0.02582012489438057,
0.013807926326990128,
0.044631682336330414,
-0.022995775565505028,
-0.04477115347981453,
0.02052011340856552,
0.028086576610803604,
0.0580560527741909,
0.027633287012577057,
-0.002798197092488408,
0.020380638539791107,
-0.009074527770280838,
0.03462442010641098,
-0.0017543213907629251,
0.05948566272854805,
-0.043097466230392456,
0.011279960162937641,
-0.007697221357375383,
0.013127990998327732,
0.0012443696614354849,
0.06401856988668442,
0.03605403006076813,
-0.024338213726878166,
-0.06757515668869019,
-0.02679644338786602,
-0.02864447422325611,
-0.0031839299481362104,
0.05442972853779793,
-0.04944353550672531,
0.02785993181169033,
-0.03267178684473038,
0.03800666704773903,
0.03152112290263176,
-0.0006701290258206427,
0.04892050847411156,
0.013633583672344685,
0.023361895233392715,
-0.028574736788868904,
-0.049478404223918915,
-0.0358099490404129,
0.02252505160868168,
0.0007000940968282521,
-0.06910936534404755,
0.03936653584241867,
0.03985469788312912,
0.022803999483585358,
0.06645936518907547,
0.008080774918198586,
0.031974416226148605,
0.030998097732663155,
-0.04215601831674576,
0.03326455131173134,
-0.04815340042114258,
0.017835238948464394,
0.06412317603826523,
0.0396803542971611,
0.02358854003250599,
0.10418707877397537,
-0.04121456667780876,
-0.015839016065001488,
-0.05833500251173973,
0.023466501384973526,
0.005069008097052574,
-0.008028472773730755,
0.007396480534225702,
-0.054115913808345795,
-0.01788754016160965,
0.005395900458097458,
0.062449485063552856,
0.0376928485929966,
-0.0009125740616582334,
0.030597109347581863,
0.03619350492954254,
-0.03591455519199371,
0.0773383378982544,
0.004373817704617977,
0.05132643133401871,
-0.05697512999176979,
-0.013964834623038769,
0.03532179072499275,
0.004829287528991699,
0.016492800787091255,
-0.0022315841633826494,
0.023327026516199112,
0.047839581966400146,
0.020153993740677834,
0.06122908741235733,
0.05115209147334099,
-0.03169546648859978,
-0.014644769951701164,
-0.023675711825489998,
-0.017373230308294296,
0.0003426919865887612,
0.019107937812805176,
0.05352314934134483,
-0.02010169066488743,
0.07601333409547806,
0.036611925810575485,
0.06736594438552856,
-0.010382096283137798,
-0.03975009173154831,
-0.02339676395058632,
0.02099083736538887,
-0.041458647698163986,
0.053069859743118286,
0.02630828320980072,
-0.00672090332955122,
-0.035077713429927826,
0.01073078066110611,
-0.041075095534324646,
-0.012448054738342762,
-0.02592473104596138,
0.009981107898056507,
0.005138745531439781,
-0.02003195323050022,
0.05523170530796051,
0.010878972709178925,
-0.023327026516199112,
-0.018305962905287743,
0.00034296439844183624,
0.014540164731442928,
0.017355795949697495,
0.023832621052861214,
-0.03894811496138573,
0.024442819878458977,
-0.009798048995435238,
0.027162563055753708,
-0.0016148474533110857,
0.0256457831710577,
0.033020470291376114,
0.0285398680716753,
0.0038093836046755314,
0.022856302559375763,
0.02407670021057129,
-0.06028763949871063,
0.06914423406124115,
-0.010661044158041477,
0.014426842331886292,
0.022019458934664726,
0.029551055282354355,
-0.019404320046305656,
-0.026064204052090645,
0.006097629200667143,
0.01729477569460869,
0.04292312264442444,
-0.028557302430272102,
-0.05017577111721039,
0.060496848076581955,
-0.016126681119203568,
0.041354041546583176,
0.0193345844745636,
0.0014535806840285659,
0.07102713733911514,
0.017922408878803253,
-0.021810246631503105,
0.029272105544805527,
-0.023361895233392715,
0.003918347880244255,
-0.054813284426927567,
-0.0060017406940460205,
0.06694751977920532,
-0.02294347435235977,
-0.03919219598174095,
-0.024442819878458977,
-0.005879701115190983,
-0.022106628865003586,
-0.032654352486133575,
-0.021304653957486153,
0.039819829165935516,
-0.0013555129989981651,
-0.0348336324095726,
-0.03270665556192398,
0.01865464821457863,
-0.06227514147758484,
-0.031503692269325256,
-0.04187706857919693,
-0.011933743953704834,
0.0006074746488593519,
0.08584624528884888,
0.004356383346021175,
-0.00672526191920042,
-0.05052445828914642,
-0.014487861655652523,
0.001481911283917725,
0.017434250563383102,
-0.020537547767162323,
-0.012029632925987244,
-0.03540896251797676,
0.019962215796113014,
-0.014426842331886292,
-0.032061588019132614,
-0.03141652047634125,
0.013964834623038769,
-0.019421754404902458,
-0.02350137010216713,
-0.011524039320647717,
0.001343526877462864,
-0.0032558462116867304,
-0.02602933533489704,
-0.014801678247749805,
-0.010817952454090118,
0.03415369614958763,
0.0667034387588501,
0.023867487907409668,
0.03985469788312912,
0.0035456905607134104,
0.03779745474457741,
0.0064768241718411446,
0.005979947745800018,
0.010530287399888039,
0.07238700985908508,
0.0599389523267746,
-0.057114604860544205,
-0.007444425020366907,
0.009562686085700989,
0.0016867637168616056,
-0.026465192437171936,
0.02688361331820488,
0.04846721515059471,
-0.00025647415895946324,
0.042818520218133926,
0.014749376103281975,
-0.012552659958600998,
-0.027598418295383453,
-0.015708260238170624,
0.044143520295619965,
0.0512915663421154,
0.01700711064040661,
-0.001872002612799406,
0.0285398680716753,
0.07301463931798935,
-0.058265265077352524,
0.034868501126766205,
-0.023867487907409668,
-0.06328632682561874,
0.01984017714858055,
0.0015745307318866253,
0.023832621052861214,
0.07413043081760406,
-0.02815631404519081,
0.010207753628492355,
-0.0096672922372818,
-0.031032966449856758,
-0.016867637634277344,
0.02639545500278473,
-0.018724385648965836,
-0.016606124117970467,
-0.02088623121380806,
0.035339225083589554,
-0.00943192932754755,
-0.02426847629249096,
-0.01169838197529316,
-0.007431349251419306,
0.01552520040422678,
0.07963965833187103,
-0.028295788913965225,
-0.030597109347581863,
0.011245091445744038,
0.016684576869010925,
-0.01229114644229412,
-0.052477095276117325,
-0.03713495284318924,
0.06074092909693718,
-0.04567773640155792,
-0.011724533513188362,
-0.05230275169014931,
-0.012744436971843243,
0.013720755465328693,
0.04382970556616783,
0.021740511059761047,
-0.018898727372288704,
-0.005862266756594181,
-0.026848746463656425,
-0.03926193341612816,
0.028853684663772583,
0.010774366557598114,
-0.01654510386288166,
0.037971798330545425,
0.06168237701058388,
0.01693737506866455,
-0.02428591065108776,
-0.052860647439956665,
0.047072477638721466,
-0.013267464935779572,
-0.030422767624258995,
-0.006341708358377218,
-0.032061588019132614,
-0.04229549318552017,
-0.010957426391541958,
0.005722792819142342,
0.008839164860546589,
0.031765203922986984,
0.02815631404519081,
0.014086874201893806,
0.02679644338786602,
0.07392121851444244,
0.010033410973846912,
0.04400404915213585,
-0.060217902064323425,
0.049094848334789276,
0.021444128826260567,
-0.03587968647480011,
0.005177972372621298,
-0.08751993626356125,
-0.05230275169014931,
0.015891319140791893,
-0.03859943151473999,
-0.017730632796883583,
0.039506010711193085,
-0.0025606555864214897,
0.01568210870027542,
0.008538424037396908,
-0.04940866678953171,
-0.0753856971859932,
-0.008512272499501705,
0.0217753779143095,
-0.025576045736670494,
0.027633287012577057,
-0.03530435636639595,
0.034973107278347015,
0.05571986362338066,
-0.08333572000265121,
-0.07266595214605331,
-0.0464448444545269,
0.0023405482061207294,
0.024704333394765854,
-0.004576490726321936,
0.0285224337130785,
-0.035164881497621536,
-0.022891171276569366,
0.008935052901506424,
0.03685600683093071,
-0.04198167473077774,
0.010913840495049953,
-0.02235070988535881,
-0.08884494006633759,
0.023553673177957535,
0.016022076830267906,
0.01344180665910244,
0.043655361980199814,
-0.008725842460989952,
-0.008390232920646667,
0.03373527526855469,
-0.07182911038398743,
0.0032645633909851313,
-0.02554117701947689,
-0.012875193729996681,
-0.057323817163705826,
-0.029812568798661232,
0.032166190445423126,
-0.001481911283917725,
-0.0270753912627697,
-0.029080329462885857,
0.018898727372288704,
-0.011332262307405472,
0.011759402230381966,
0.06638962775468826,
-0.03511258214712143,
0.013232596218585968,
0.012238843366503716,
-0.044631682336330414,
0.01528983749449253,
0.007814902812242508,
0.09309889376163483,
0.014008420519530773,
0.006088912021368742,
0.04104022681713104,
-0.05205867066979408,
0.011245091445744038,
-0.004101407248526812,
-0.006494258064776659,
0.044457338750362396,
0.026813877746462822,
-0.0016660605324432254,
-0.01314542442560196,
-0.015743128955364227,
-0.028661908581852913,
-0.02669183723628521,
-0.016178984194993973,
-0.027981972321867943,
0.018131621181964874,
0.021879984065890312,
-0.04480602219700813,
-0.06921397149562836,
-0.04306259751319885,
0.09365679323673248,
0.02834809198975563,
0.004615717567503452,
-0.0019057814497500658,
0.0001599047682248056,
-0.044840890914201736,
0.04104022681713104,
0.048711296170949936,
0.07531595975160599,
-0.02494841255247593,
0.01752142235636711,
0.04041259363293648,
-0.002126978477463126,
0.023257290944457054,
0.02677900902926922,
0.05955540016293526,
0.012927496805787086,
0.022211235016584396,
-0.023327026516199112,
-0.03521718457341194,
-0.06178698316216469,
0.024808937683701515,
-0.04246983304619789,
0.04121456667780876,
-0.027825063094496727,
-0.03783232346177101,
0.051814593374729156,
0.01088768895715475,
-0.002180370967835188,
-0.029760265722870827,
0.004249598365277052,
-0.01914280652999878,
0.028574736788868904,
-0.03009151667356491,
-0.02609907276928425,
0.01344180665910244,
-0.08005807548761368,
-0.05097774788737297,
-0.036228373646736145,
0.08138307929039001,
-0.05404617637395859,
-0.02601190097630024,
0.02294347435235977,
0.003244949970394373,
0.017957277595996857,
0.04797905683517456,
0.015403159894049168,
-0.019369451329112053,
0.06917910277843475,
0.059136975556612015,
-0.022036893293261528,
0.03558330610394478,
-0.019561229273676872,
0.014287368394434452,
-0.03455468267202377,
-0.01730349287390709,
0.014749376103281975,
0.028940856456756592,
-0.020380638539791107,
-0.010129299946129322,
0.0018022656440734863,
-0.08242913335561752,
-0.041632991284132004,
0.07148042321205139,
-0.018340831622481346,
-0.018532607704401016,
0.051396168768405914,
0.011611211113631725,
-0.007339819334447384,
0.0055266572162508965,
0.02390235662460327,
-0.00339749944396317,
-0.06903962790966034,
0.024983281269669533,
0.03657705709338188,
0.01693737506866455,
-0.032724086195230484,
0.022490182891488075,
0.047630373388528824,
0.022908605635166168,
-0.052093539386987686,
-0.011724533513188362,
-0.06502975523471832,
-0.021635904908180237,
-0.09198310226202011,
-0.02011912502348423,
-0.03392704948782921,
0.08828704059123993,
0.011253808625042439,
-0.01000725943595171,
0.010207753628492355
] |
725,156 | tf_keras.src.engine.functional | _validate_graph_inputs_and_outputs | Validates the inputs and outputs of a Graph Network. | def _validate_graph_inputs_and_outputs(self):
"""Validates the inputs and outputs of a Graph Network."""
# Check for redundancy in inputs.
if len({id(i) for i in self.inputs}) != len(self.inputs):
raise ValueError(
"The list of inputs passed to the model "
"contains the same input multiple times. "
"All inputs should only appear once."
f"Received inputs={self.inputs}"
)
for x in self.inputs:
# Check that x has appropriate `_keras_history` metadata.
if not hasattr(x, "_keras_history"):
cls_name = self.__class__.__name__
raise ValueError(
f"Input tensors to a {cls_name} model "
"must come from `tf.keras.Input`. "
f"Received inputs={x} (missing previous layer metadata)."
)
# Check that x is an input tensor.
layer = x._keras_history.layer
if len(layer._inbound_nodes) > 1 or (
layer._inbound_nodes and not layer._inbound_nodes[0].is_input
):
cls_name = self.__class__.__name__
logging.warning(
f"{cls_name} model inputs must come from "
"`tf.keras.Input` (thus holding past layer metadata). "
"They cannot be the output of "
"a previous non-Input layer. "
"Here, a tensor specified as "
f'input to "{self.name}" was not an Input tensor, '
f'it was generated by layer "{layer.name}".\n'
"Note that input tensors are "
"instantiated via `tensor = tf.keras.Input(shape)`.\n"
f"The tensor that caused the issue was: {x}"
)
# Check compatibility of batch sizes of Input Layers.
input_batch_sizes = set(
[
training_utils.get_static_batch_size(x._keras_history.layer)
for x in self.inputs
]
)
input_batch_sizes.discard(None)
if len(input_batch_sizes) > 1:
logging.warning(
"Found incompatible static batch sizes among the "
f"inputs. Batch sizes: {sorted(input_batch_sizes)}"
)
for x in self.outputs:
if not hasattr(x, "_keras_history"):
cls_name = self.__class__.__name__
raise ValueError(
f"Output tensors of a {cls_name} model must be "
"the output of a TensorFlow `Layer` "
f"(thus holding past layer metadata). Found: {x}"
)
| (self) | [
-0.0326530747115612,
-0.06117236986756325,
-0.05241179093718529,
0.035611193627119064,
-0.07702485471963882,
0.0044419183395802975,
-0.08957789093255997,
0.043575357645750046,
0.04683687537908554,
0.004185927100479603,
0.02193937823176384,
-0.02195833995938301,
0.03966912627220154,
0.02070682868361473,
0.04475102201104164,
0.009514332748949528,
0.012297050096094608,
0.0031832957174628973,
0.028955427929759026,
-0.03109816648066044,
-0.027002310380339622,
-0.038777898997068405,
-0.027722878381609917,
0.032311756163835526,
0.007181969936937094,
0.05536990612745285,
0.00668895011767745,
0.00826756190508604,
0.0035080250818282366,
0.05207046866416931,
-0.06686106324195862,
-0.02028965763747692,
0.06212048605084419,
0.015122432261705399,
0.0022292551584541798,
-0.010201715864241123,
-0.006371331866830587,
0.001419801963493228,
-0.10315489768981934,
-0.0006790872430428863,
0.026907499879598618,
-0.05176706984639168,
0.023323625326156616,
0.027438443154096603,
0.024101080372929573,
0.035421572625637054,
-0.027267783880233765,
0.047329895198345184,
-0.06879521161317825,
-0.05574915185570717,
-0.0008722656639292836,
-0.021199848502874374,
0.029145050793886185,
0.06507860124111176,
0.007878834381699562,
-0.004005785100162029,
0.020024186000227928,
-0.017464276403188705,
0.0006844204035587609,
-0.03138260170817375,
-0.030036278069019318,
-0.0066036200150847435,
0.013178796507418156,
-0.02404419332742691,
-0.023551173508167267,
-0.040048372000455856,
-0.047747064381837845,
-0.06413049250841141,
-0.02421485260128975,
0.040427617728710175,
-0.04949159547686577,
-0.03638864681124687,
0.03346845507621765,
0.01504658255726099,
-0.014534601010382175,
-0.04243762046098709,
0.05408047139644623,
0.05237386375665665,
0.008291264064610004,
-0.03530779853463173,
0.007802985142916441,
0.01442082691937685,
-0.016667859628796577,
-0.03989667445421219,
0.047329895198345184,
-0.014724223874509335,
-0.025409478694200516,
0.055673304945230484,
-0.04437177628278732,
-0.027476368471980095,
-0.011841954663395882,
-0.017691822722554207,
0.0028040497563779354,
0.023247776553034782,
0.03318402171134949,
0.058024629950523376,
-0.05665934458374977,
-0.07638013362884521,
-0.016032623127102852,
-0.0273436326533556,
-0.01858305186033249,
0.04012422263622284,
-0.06219633296132088,
0.04122403264045715,
-0.01505606435239315,
-0.07565956562757492,
-0.03932780399918556,
-0.06128614395856857,
-0.020156921818852425,
-0.011898841708898544,
-0.03530779853463173,
0.0008444148115813732,
-0.0062907421961426735,
0.02781769074499607,
0.03966912627220154,
-0.014648374170064926,
0.0028538256883621216,
-0.001585722086019814,
-0.03244449198246002,
-0.01231601182371378,
0.01108346227556467,
0.08669562637805939,
-0.009087680839002132,
-0.011197236366569996,
0.08131033182144165,
0.005873571615666151,
0.0421721488237381,
-0.0034416569396853447,
0.01860201358795166,
-0.046305928379297256,
-0.022716831415891647,
-0.00949062965810299,
0.0037616456393152475,
0.09648016840219498,
0.028955427929759026,
0.043575357645750046,
-0.03069995902478695,
0.016648896038532257,
-0.013614929281175137,
0.033752888441085815,
0.06189293786883354,
0.03430279716849327,
0.022678907960653305,
0.003247293410822749,
-0.049832917749881744,
-0.026262782514095306,
-0.022204849869012833,
-0.020972300320863724,
-0.0026452403981238604,
-0.04911234974861145,
0.02738155797123909,
-0.015065545216202736,
0.0166204534471035,
-0.005816684570163488,
-0.040655165910720825,
0.016876444220542908,
-0.050667259842157364,
-0.045888759195804596,
0.03619902580976486,
-0.01703762449324131,
-0.06644389033317566,
-0.04027592018246651,
0.058214250952005386,
-0.028955427929759026,
-0.011367897503077984,
0.033354680985212326,
-0.007594400085508823,
0.01169025618582964,
-0.002974710427224636,
0.01762545481324196,
-0.0036052067298442125,
-0.0029841915238648653,
0.025428440421819687,
-0.018848523497581482,
-0.03401836007833481,
-0.006115340627729893,
0.048998575657606125,
-0.010220678523182869,
-0.011168792843818665,
0.03866412490606308,
0.01862097531557083,
-0.03117401711642742,
-0.025238817557692528,
0.0009984835051000118,
-0.029505334794521332,
0.03801940754055977,
-0.026679951697587967,
0.02133258432149887,
0.018696824088692665,
0.001693570171482861,
-0.02504919469356537,
0.045850835740566254,
0.00804949551820755,
0.03756431117653847,
-0.0007122713141143322,
-0.02046031877398491,
0.01046718843281269,
0.07448390126228333,
0.06572332233190536,
-0.019237250089645386,
0.020782677456736565,
-0.019682863727211952,
0.049794990569353104,
0.008926501497626305,
-0.05935199186205864,
-0.005992086138576269,
-0.03824695199728012,
-0.005939939524978399,
-0.02320985123515129,
-0.03308920934796333,
-0.05294273421168327,
-0.0017314947908744216,
0.012704739347100258,
0.02425277791917324,
0.010315489955246449,
0.011007613502442837,
0.011007613502442837,
-0.026793725788593292,
-0.013823514804244041,
-0.03134467825293541,
0.09640432149171829,
-0.03564911708235741,
-0.029391560703516006,
-0.05502858757972717,
0.014676817692816257,
-0.017720267176628113,
0.006252817343920469,
0.05324612930417061,
0.010893839411437511,
0.0004936123150400817,
0.016260169446468353,
-0.03724195063114166,
0.007049234118312597,
0.047974612563848495,
-0.01181351114064455,
0.007656027562916279,
-0.01684800162911415,
-0.0843442976474762,
0.05745575949549675,
-0.019322581589221954,
-0.06830219179391861,
-0.04812631011009216,
-0.020346544682979584,
-0.04202045127749443,
0.019948337227106094,
-0.00934367161244154,
0.019474279135465622,
0.022716831415891647,
-0.025959385558962822,
-0.023513248190283775,
-0.03426486998796463,
0.02298230491578579,
0.010789547115564346,
-0.011879879049956799,
0.010220678523182869,
-0.04550951346755028,
-0.032311756163835526,
-0.04319611191749573,
0.0986797958612442,
-0.007641805801540613,
-0.0016070547280833125,
0.06075520068407059,
-0.020612016320228577,
0.06371331959962845,
0.008106381632387638,
-0.032292790710926056,
0.042513471096754074,
0.027457406744360924,
-0.017824558541178703,
-0.0059351990930736065,
0.1065681129693985,
0.07611466199159622,
-0.05453556776046753,
0.020630979910492897,
0.010230159386992455,
-0.03365807607769966,
0.022489285096526146,
0.021598055958747864,
-0.02218588814139366,
0.00475953659042716,
0.01338738203048706,
-0.038341764360666275,
-0.026907499879598618,
-0.01935102418065071,
0.01964494027197361,
-0.027495330199599266,
0.03796251863241196,
-0.1144564226269722,
-0.006807464640587568,
-0.02588353492319584,
0.042096298187971115,
-0.023323625326156616,
0.03322194516658783,
-0.011917803436517715,
-0.07842805981636047,
-0.005361589603126049,
-0.04873310402035713,
-0.019076071679592133,
-0.0024212482385337353,
-0.009585441090166569,
0.005129301454871893,
0.056545570492744446,
0.05897274240851402,
-0.003095594933256507,
-0.006608360446989536,
-0.027210896834731102,
0.017284134402871132,
0.013548561371862888,
0.013605448417365551,
-0.021996265277266502,
-0.013368419371545315,
0.025712875649333,
0.014752667397260666,
-0.008471406064927578,
0.0372798778116703,
-0.04228592291474342,
0.0426272451877594,
0.029941467568278313,
0.013605448417365551,
0.0852544903755188,
-0.007281522266566753,
0.08836430311203003,
0.011453227140009403,
0.010211196728050709,
-0.06951577961444855,
-0.024157967418432236,
0.07270144671201706,
0.022129001095891,
-0.023664947599172592,
0.0060063074342906475,
-0.026812687516212463,
-0.06959163397550583,
0.026604102924466133,
0.014999177306890488,
-0.022091075778007507,
0.009087680839002132,
0.0013403974007815123,
-0.003131149336695671,
0.06610256433486938,
0.0011792178265750408,
0.05639387294650078,
0.002148665254935622,
0.00917775183916092,
-0.01034393347799778,
-0.02129465900361538,
-0.020782677456736565,
0.021199848502874374,
0.014819035306572914,
-0.04221007227897644,
0.06405463814735413,
-0.03348741680383682,
0.05540783330798149,
0.011216199025511742,
-0.008618364110589027,
0.027097122743725777,
0.018924372270703316,
-0.004731093067675829,
-0.02442343905568123,
0.014183797873556614,
0.00002870269599952735,
0.04990876466035843,
0.008333929814398289,
0.023740796372294426,
0.017198802903294563,
0.05237386375665665,
0.005641283467411995,
0.0560525506734848,
-0.03449241816997528,
0.043802905827760696,
0.017189322039484978,
-0.032046280801296234,
-0.016440311446785927,
0.014534601010382175,
-0.004418215248733759,
-0.05100857838988304,
0.06978125125169754,
0.026281744241714478,
0.03088958188891411,
0.02070682868361473,
0.02484061010181904,
0.01987248659133911,
0.04744366928935051,
-0.012875399552285671,
0.02698334865272045,
0.04118610918521881,
-0.04702649638056755,
0.008684732019901276,
-0.011633369140326977,
0.018469277769327164,
-0.019170882180333138,
0.022906454280018806,
-0.020327582955360413,
0.006001567002385855,
-0.0001924376847455278,
-0.028993353247642517,
-0.006466143298894167,
0.049415744841098785,
0.07038804888725281,
-0.05601462721824646,
-0.06158954277634621,
-0.07376333326101303,
-0.047140270471572876,
0.00386356795206666,
0.0447130985558033,
-0.005740835331380367,
-0.022678907960653305,
-0.005314183887094259,
0.05954161286354065,
-0.00615800591185689,
-0.012382379733026028,
-0.0018523794133216143,
-0.02923986315727234,
0.030415523797273636,
0.028310710564255714,
0.02112399972975254,
0.0136718163266778,
-0.024385513737797737,
-0.008381335064768791,
0.016971256583929062,
0.03073788434267044,
0.012107426300644875,
0.06860559433698654,
0.07061559706926346,
0.02404419332742691,
0.02279268205165863,
-0.01307450421154499,
-0.0623101070523262,
0.08297901600599289,
-0.03638864681124687,
0.0259404219686985,
0.002851455472409725,
-0.02108607441186905,
-0.010391338728368282,
-0.07376333326101303,
-0.02546636573970318,
-0.01920880749821663,
0.03282373771071434,
0.015691300854086876,
0.010087941773235798,
0.06906068325042725,
0.005243075080215931,
-0.03134467825293541,
0.042323846369981766,
0.02047928050160408,
-0.023456361144781113,
-0.032691001892089844,
0.021199848502874374,
0.03610421344637871,
-0.036464497447013855,
0.01703762449324131,
-0.0013439528411254287,
-0.01674370840191841,
0.02654721587896347,
-0.04641970247030258,
-0.01536894217133522,
-0.0005359812057577074,
-0.00917775183916092,
0.013510636985301971,
-0.06541992723941803,
-0.0036241691559553146,
0.0102491220459342,
0.021598055958747864,
-0.027893539518117905,
0.027760803699493408,
-0.03564911708235741,
-0.030434487387537956,
0.05999670922756195,
0.024935420602560043,
-0.010078460909426212,
0.09162581712007523,
0.04327196255326271,
-0.014591488055884838,
0.022716831415891647,
0.0031927768141031265,
-0.0648510530591011,
-0.022261736914515495,
0.04873310402035713,
0.001205291016958654,
-0.014183797873556614,
0.005522768944501877,
0.012268606573343277,
-0.02635759301483631,
-0.007181969936937094,
0.03820902854204178,
0.006859610788524151,
0.05419424548745155,
-0.011585963889956474,
-0.03136363998055458,
0.0026570919435471296,
-0.004475102294236422,
-0.06397879123687744,
-0.046305928379297256,
0.030206939205527306,
0.005091376602649689,
-0.030339675024151802,
-0.07160163670778275,
0.0010014462750405073,
-0.015596489422023296,
0.01966390199959278,
-0.004593616351485252,
0.034985437989234924,
0.04133780673146248,
0.011453227140009403,
-0.01078006625175476,
0.05521820858120918,
0.03724195063114166,
-0.011244642548263073,
-0.007205673027783632,
-0.02696438692510128,
-0.007177229505032301,
-0.07194295525550842,
0.01096968911588192,
0.05100857838988304,
0.019057108089327812,
-0.0014008396537974477,
-0.042361773550510406,
-0.007096639834344387,
0.011614407412707806,
0.011036057025194168,
0.023342587053775787,
0.06655766069889069,
0.01663941517472267,
-0.002702127443626523,
-0.07440805435180664,
-0.005906755570322275,
0.06834012269973755,
-0.03925195336341858,
-0.02360806055366993,
0.032065246254205704,
-0.0421721488237381,
-0.0312877893447876,
0.024897495284676552,
0.0007276781252585351,
0.04664725065231323,
-0.0602242574095726,
-0.03697647899389267,
0.06488898396492004,
-0.0023762129712849855,
-0.11407718062400818,
0.030680997297167778,
-0.00373320234939456,
0.01962597668170929,
0.0017658639699220657,
0.0019448206294327974,
0.017710786312818527,
0.028993353247642517,
0.01523620542138815,
0.03054826147854328,
-0.07038804888725281,
0.0013818774605169892,
-0.05984501168131828,
0.007921499200165272,
0.012894362211227417,
-0.00980350747704506,
0.03094646893441677,
-0.0015904626343399286,
0.0045722839422523975,
0.05954161286354065,
0.032482415437698364,
0.023532209917902946,
-0.0003029523359145969,
-0.017397908493876457,
-0.02381664514541626,
-0.07179125398397446,
-0.04228592291474342,
-0.020630979910492897,
-0.04869518056511879,
-0.05700066685676575,
-0.05533198267221451,
0.07076729089021683,
-0.0006287186406552792,
0.014126911759376526,
0.025978347286581993,
-0.04657140001654625,
0.003702388610690832,
-0.04346158355474472,
-0.03178080916404724,
0.027533255517482758,
-0.008940722793340683,
-0.040617238730192184,
0.05916236713528633,
0.02635759301483631,
-0.0014565414749085903,
-0.011927285231649876,
0.08229637145996094,
-0.004892272874712944,
-0.038948558270931244,
0.012790068984031677,
-0.009699215181171894,
0.024139003828167915,
-0.0015430569183081388,
0.04793668910861015,
-0.024101080372929573,
-0.014525119215250015,
0.01451563835144043,
0.021654943004250526,
-0.02108607441186905,
-0.051425751298666,
-0.024328626692295074,
-0.020536167547106743,
-0.0463438555598259,
0.03255826607346535,
0.03737468644976616,
-0.027684953063726425,
0.048581406474113464,
-0.05487688630819321,
-0.046495553106069565,
-0.0040437099523842335,
0.003925195429474115,
-0.028348634019494057,
0.013150352984666824,
0.026850612834095955,
-0.014705261215567589,
-0.053397830575704575,
-0.013415825553238392,
-0.038739971816539764,
-0.06227218359708786,
0.05745575949549675,
0.032728925347328186,
0.009234638884663582,
0.08085523545742035,
-0.027040235698223114,
-0.03447345644235611,
-0.009087680839002132,
-0.05487688630819321,
0.02592146024107933,
-0.007106120698153973,
-0.007845650427043438,
-0.004622059874236584,
-0.013785590417683125,
0.0493398979306221,
-0.02886061556637287,
0.013766627758741379,
-0.03197043389081955,
0.07088106870651245,
-0.05597670003771782,
0.010068980045616627,
-0.005295221693813801,
-0.04330988600850105,
-0.000508130295202136,
-0.031439486891031265,
-0.002578872488811612,
-0.051084429025650024,
-0.01046718843281269,
0.011073981411755085,
-0.02171183004975319,
-0.015169837512075901,
-0.014724223874509335,
0.12226889282464981,
-0.02235654927790165,
-0.041261959820985794,
0.09086732566356659,
0.014809554442763329,
-0.025618063285946846,
0.0632202997803688,
0.011671293526887894,
-0.008826949633657932,
-0.03348741680383682,
0.009794026613235474,
-0.0311550535261631,
0.023152964189648628,
0.002619167324155569,
0.04513026773929596,
0.02779872715473175,
-0.012932286597788334,
0.04657140001654625,
-0.017132434993982315,
-0.014904365874826908,
0.012410823255777359,
0.013728703372180462,
-0.09655601531267166,
-0.0609448216855526,
0.0267558004707098,
-0.00616274680942297,
-0.019739750772714615,
-0.007641805801540613,
0.029182976111769676,
0.021199848502874374,
-0.04198252409696579,
-0.047102347016334534,
-0.03661619499325752,
0.011026576161384583,
-0.030187977477908134,
-0.0019223028793931007,
0.0011175903491675854,
-0.02635759301483631,
-0.01943635381758213,
-0.0006464958423748612,
0.031211940571665764,
0.02698334865272045,
-0.0011667738435789943,
-0.009244119748473167,
0.061551615595817566,
-0.002321696374565363,
-0.04433384910225868,
-0.028083162382245064,
-0.03308920934796333,
0.01860201358795166,
-0.04406837746500969,
-0.013605448417365551,
0.0005232408875599504,
-0.030150052160024643,
-0.043347813189029694,
0.04050346836447716,
0.04046554118394852,
0.03462515398859978,
-0.08540618419647217,
-0.002331177471205592,
-0.021256735548377037,
0.0008147861808538437,
0.005276259034872055,
-0.05184292048215866,
0.04141365736722946,
-0.033335719257593155,
0.0077840229496359825,
-0.018260691314935684,
0.05791085585951805,
0.005162485409528017,
-0.009964686818420887,
-0.012875399552285671,
-0.0273436326533556,
-0.003934676758944988,
0.004792720545083284,
-0.0027803468983620405,
-0.04577498510479927,
0.034378644078969955,
-0.006513549014925957,
-0.07683522999286652,
0.06416841596364975,
0.012827994301915169,
0.011747143231332302,
0.06143784150481224,
-0.03928988054394722,
0.05719028785824776,
0.006139043718576431,
-0.016990218311548233,
0.009334190748631954,
-0.006115340627729893,
0.003991563338786364,
-0.0110645005479455,
0.07755579799413681,
-0.054042547941207886,
-0.021901452913880348,
-0.013690778985619545,
0.0028135308530181646,
0.032880622893571854,
0.04076894000172615,
-0.018848523497581482,
-0.029126089066267014,
-0.05920029059052467,
0.041489508002996445,
-0.021256735548377037,
-0.008286523632705212,
-0.0301121287047863,
0.06803672015666962,
0.014079505577683449,
-0.014600968919694424,
-0.023096077144145966,
0.00007651583291590214,
-0.037924595177173615,
0.024935420602560043,
-0.023570135235786438,
0.06390294432640076,
-0.02028965763747692,
0.02448032610118389,
0.03155326098203659,
0.025826647877693176,
0.03720402717590332
] |
725,158 | tf_keras.src.engine.sequential | add | Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
| @tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def add(self, layer):
"""Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
"""
# If we are passed a TF-Keras tensor created by keras.Input(), we can
# extract the input layer from its keras history and use that without
# any loss of
# generality.
if hasattr(layer, "_keras_history"):
origin_layer = layer._keras_history[0]
if isinstance(origin_layer, input_layer.InputLayer):
layer = origin_layer
if isinstance(layer, tf.Module):
if not isinstance(layer, base_layer.Layer):
layer = functional.ModuleWrapper(layer)
else:
raise TypeError(
"The added layer must be an instance of class Layer. "
f"Received: layer={layer} of type {type(layer)}."
)
tf_utils.assert_no_legacy_layers([layer])
if not self._is_layer_name_unique(layer):
raise ValueError(
"All layers added to a Sequential model "
f'should have unique names. Name "{layer.name}" is already '
"the name of a layer in this model. Update the `name` argument "
"to pass a unique name."
)
self.built = False
set_inputs = False
self._maybe_create_attribute("_self_tracked_trackables", [])
if not self._self_tracked_trackables:
if isinstance(layer, input_layer.InputLayer):
# Case where the user passes an Input or InputLayer layer via
# `add`.
set_inputs = True
else:
batch_shape, dtype = training_utils.get_input_shape_and_dtype(
layer
)
if batch_shape:
# Instantiate an input layer.
x = input_layer.Input(
batch_shape=batch_shape,
dtype=dtype,
name=layer.name + "_input",
)
# This will build the current layer
# and create the node connecting the current layer
# to the input layer we just created.
layer(x)
set_inputs = True
if set_inputs:
outputs = tf.nest.flatten(layer._inbound_nodes[-1].outputs)
if len(outputs) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = outputs
self.inputs = layer_utils.get_source_inputs(self.outputs[0])
self.built = True
self._has_explicit_input_shape = True
elif self.outputs:
# If the model is being built continuously on top of an input layer:
# refresh its output.
output_tensor = layer(self.outputs[0])
if len(tf.nest.flatten(output_tensor)) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = [output_tensor]
self.built = True
if set_inputs or self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
self._graph_initialized = True
else:
self._self_tracked_trackables.append(layer)
self._handle_deferred_layer_dependencies([layer])
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
| (self, layer) | [
-0.034134022891521454,
-0.027482764795422554,
-0.05422433465719223,
0.07228610664606094,
-0.01937837153673172,
0.029218723997473717,
-0.09417089074850082,
0.04927002266049385,
0.027424249798059464,
-0.03434858098626137,
0.0005104864831082523,
-0.014833671040832996,
-0.009065020829439163,
-0.015301794745028019,
0.03421204164624214,
0.0653032585978508,
0.018334846943616867,
-0.0005772307049483061,
-0.01946614496409893,
-0.06982845813035965,
0.036182064563035965,
-0.01943688839673996,
0.001943201175890863,
0.025239670649170876,
0.011342247948050499,
0.0329442098736763,
0.00045319009223021567,
0.020421897992491722,
-0.024459464475512505,
-0.01151779480278492,
-0.030447548255324364,
-0.060544002801179886,
-0.02473253756761551,
-0.014667876996099949,
0.01853965036571026,
-0.0023369614500552416,
-0.02490808442234993,
0.05203975364565849,
-0.04907497018575668,
-0.031832415610551834,
0.039927054196596146,
-0.007007227279245853,
0.00921618565917015,
0.0031330157071352005,
-0.0032256650738418102,
0.014102227985858917,
-0.018061773851513863,
0.04224816709756851,
-0.028984662145376205,
-0.04131191968917847,
0.019592929631471634,
-0.012883155606687069,
0.038308124989271164,
0.011898145079612732,
-0.01735958829522133,
-0.05871051922440529,
0.0256882905960083,
-0.06959439814090729,
0.010259712114930153,
-0.010552288964390755,
0.007148639764636755,
0.01940762996673584,
-0.009260072372853756,
0.014072969555854797,
-0.02611740306019783,
-0.023562228307127953,
-0.05465344712138176,
-0.04166301339864731,
0.030369527637958527,
0.02648800238966942,
-0.028867630288004875,
-0.04829476401209831,
0.04131191968917847,
-0.004783639218658209,
-0.031149733811616898,
-0.007470474578440189,
0.06635653972625732,
-0.04166301339864731,
0.043496496975421906,
-0.055589694529771805,
-0.04326243698596954,
0.015301794745028019,
-0.019339362159371376,
0.027775341644883156,
0.022528454661369324,
-0.009001629427075386,
-0.0012135864235460758,
0.03657216578722,
-0.031949445605278015,
-0.03674771264195442,
-0.020655959844589233,
0.035948000848293304,
-0.0017737500602379441,
0.02332816645503044,
0.029004165902733803,
-0.019027279689908028,
-0.018783465027809143,
-0.04763159155845642,
-0.032983217388391495,
-0.016667155548930168,
0.006612247787415981,
0.020968042314052582,
-0.04302837327122688,
0.03302222862839699,
-0.0374889075756073,
-0.03292470425367355,
-0.030428042635321617,
-0.015545609407126904,
-0.0483727864921093,
0.002986727049574256,
-0.00843597948551178,
-0.03456313535571098,
-0.0026673299726098776,
0.006114866118878126,
-0.011332495138049126,
-0.021670227870345116,
0.029706351459026337,
-0.03142280504107475,
-0.020226847380399704,
-0.003357324982061982,
0.0250836294144392,
0.0598418191075325,
-0.02859455905854702,
-0.03251509368419647,
0.01124472264200449,
0.004086330067366362,
0.04279431328177452,
0.006685391999781132,
0.06323571503162384,
-0.10454763472080231,
0.006919453851878643,
-0.006480588112026453,
-0.034914229065179825,
0.08652487397193909,
0.02533719688653946,
0.018003258854150772,
-0.04365253821015358,
0.007733794394880533,
-0.05422433465719223,
0.03846416622400284,
0.04813872277736664,
-0.029784372076392174,
0.029452785849571228,
0.02623443491756916,
-0.020109815523028374,
-0.029004165902733803,
-0.04072676599025726,
-0.029764868319034576,
-0.0024539923761039972,
-0.04431571438908577,
0.014833671040832996,
-0.018968764692544937,
-0.005246886983513832,
0.051610641181468964,
-0.021494681015610695,
0.04614919796586037,
-0.046110186725854874,
0.007080371491611004,
0.04287233203649521,
-0.013312269002199173,
-0.04517393931746483,
-0.023074598982930183,
0.04267727956175804,
-0.041936084628105164,
-0.02412787824869156,
0.005100598093122244,
-0.021202104166150093,
0.004069263115525246,
-0.01454109326004982,
0.054497405886650085,
0.005563845857977867,
0.019427135586738586,
0.10790251940488815,
0.025902846828103065,
-0.011498289182782173,
-0.004698304459452629,
0.02769732102751732,
0.010445010848343372,
-0.022821031510829926,
0.015789423137903214,
0.04322342574596405,
-0.006266031414270401,
-0.047007426619529724,
-0.006134371273219585,
-0.016940228641033173,
0.025259176269173622,
-0.020812001079320908,
-0.0009752577752806246,
0.02732672356069088,
0.006422072649002075,
0.016550125554203987,
0.0556287057697773,
0.05246886983513832,
0.012590577825903893,
-0.008123897016048431,
0.0067682890221476555,
-0.008138526231050491,
0.058437447994947433,
0.04131191968917847,
0.008553010411560535,
-0.02278202213346958,
0.0142095061019063,
0.061753321439027786,
0.039634477347135544,
-0.0640939399600029,
-0.004420355893671513,
-0.006977969314903021,
-0.012015176005661488,
-0.039263878017663956,
-0.021962804719805717,
-0.0429113432765007,
-0.009933000430464745,
0.06179233267903328,
0.06140223145484924,
0.020226847380399704,
-0.056018806993961334,
-0.0574231781065464,
0.02274301089346409,
0.07786457985639572,
-0.014775155112147331,
0.03378292918205261,
0.03257361054420471,
-0.03417303413152695,
-0.0025112887378782034,
0.01667690835893154,
-0.038308124989271164,
0.0411168672144413,
0.02666354738175869,
0.03136429190635681,
-0.02545422874391079,
0.0031964073423296213,
-0.03446561098098755,
-0.019631939008831978,
0.00015482217713724822,
0.02436194010078907,
0.004293572623282671,
-0.02442045509815216,
-0.04497889056801796,
0.044822849333286285,
-0.05223480612039566,
-0.025415217503905296,
-0.020636454224586487,
-0.008826082572340965,
-0.031344786286354065,
-0.04248223081231117,
0.015565114095807076,
-0.0050957221537828445,
0.050947465002536774,
-0.04080478474497795,
0.01233701128512621,
0.012180970050394535,
0.03795703127980232,
-0.008314073085784912,
0.03300272300839424,
-0.0020443841349333525,
-0.07579703629016876,
0.013546330854296684,
-0.06698070466518402,
0.03945893049240112,
0.006461082957684994,
-0.04969913512468338,
0.04466680809855461,
0.006573237478733063,
0.058983590453863144,
-0.015028722584247589,
-0.055940788239240646,
0.020968042314052582,
-0.004049757961183786,
0.011264227330684662,
0.008484742604196072,
0.06674664467573166,
0.052273817360401154,
0.0031842165626585484,
-0.007855701260268688,
0.009586784057319164,
-0.06545930355787277,
0.019085794687271118,
0.04158499091863632,
-0.033568374812603,
0.023542722687125206,
0.03746940568089485,
-0.039322394877672195,
-0.054263342171907425,
0.009196680970489979,
-0.05882754921913147,
0.005427309777587652,
0.025532249361276627,
-0.024030352011322975,
-0.024771546944975853,
-0.04115587845444679,
0.045915137976408005,
0.01612101122736931,
0.07450969517230988,
0.02787286788225174,
-0.011810371652245522,
0.0012812449131160975,
-0.08036123961210251,
0.010484021157026291,
0.016023484990000725,
-0.01874445378780365,
0.029881898313760757,
0.03901031240820885,
0.039205361157655716,
0.008036124520003796,
-0.006192886736243963,
-0.05929567292332649,
-0.0004510567232500762,
0.01357558835297823,
-0.045251961797475815,
-0.015487093478441238,
0.013351279310882092,
0.06487414985895157,
0.011927402578294277,
-0.04099983721971512,
0.03674771264195442,
-0.025707794353365898,
0.01923208311200142,
-0.01635507307946682,
0.027229197323322296,
0.05956874415278435,
-0.031539835035800934,
0.04622722044587135,
-0.02194330096244812,
-0.007646020967513323,
0.0009648956474848092,
-0.04396462067961693,
0.12358466535806656,
-0.021182598546147346,
-0.017671670764684677,
0.03452412411570549,
-0.014336289837956429,
-0.03493373468518257,
0.018003258854150772,
0.03276866301894188,
-0.10259711742401123,
0.0017835026374086738,
-0.0005668685771524906,
-0.0008813892491161823,
0.01940762996673584,
-0.005827165208756924,
0.023893816396594048,
0.04868486896157265,
-0.04388660192489624,
0.007021856028586626,
-0.01393643394112587,
-0.021553197875618935,
0.05028429254889488,
0.04060973599553108,
-0.019992785528302193,
0.028887135908007622,
0.004812897183001041,
-0.016686661168932915,
-0.03224202245473862,
0.03411451727151871,
0.011000907979905605,
0.05586276575922966,
-0.0028477527666836977,
-0.015136000700294971,
0.03495324030518532,
-0.049855176359415054,
0.0743536502122879,
0.004812897183001041,
0.004369155038148165,
0.014131485484540462,
0.06776091456413269,
-0.022645486518740654,
0.026195423677563667,
-0.0287115890532732,
0.0032402940560132265,
-0.0073339384980499744,
-0.02401084639132023,
-0.04614919796586037,
0.0513765811920166,
0.03588948771357536,
-0.04661732167005539,
0.032554104924201965,
0.03271014615893364,
-0.0038230104837566614,
0.023991340771317482,
0.02830198034644127,
0.034368082880973816,
0.047553569078445435,
-0.030213486403226852,
0.01402420736849308,
0.060426972806453705,
-0.02237241342663765,
0.01462886668741703,
-0.04903596267104149,
0.0756019800901413,
-0.020148826763033867,
0.050206270068883896,
-0.0018493325915187597,
0.026448991149663925,
0.01457035169005394,
0.00422530435025692,
-0.034251052886247635,
0.009601413272321224,
0.05609682947397232,
-0.026039382442831993,
-0.031110722571611404,
0.0004303324967622757,
-0.03916635364294052,
0.07033558934926987,
0.010766846127808094,
0.026312455534934998,
-0.015565114095807076,
-0.00628553656861186,
0.04021963104605675,
-0.02697562985122204,
-0.015467588789761066,
-0.02139715664088726,
-0.003708417760208249,
-0.04747555032372475,
-0.0006119742756709456,
0.004452051594853401,
0.011537299491465092,
0.025356702506542206,
-0.02291855774819851,
-0.015184763818979263,
0.01324400119483471,
0.02678057923913002,
0.05539464205503464,
0.011166702024638653,
0.056018806993961334,
0.028984662145376205,
0.030447548255324364,
-0.04946507513523102,
0.11141344904899597,
0.003476794110611081,
0.017642414197325706,
-0.012502804398536682,
-0.04384759068489075,
0.036123547703027725,
-0.016081999987363815,
-0.03113022819161415,
-0.03602602332830429,
0.03547987714409828,
0.002244312083348632,
-0.0023089228197932243,
0.07649922370910645,
0.0014311907580122352,
0.0053200311958789825,
0.022684495896100998,
0.017515629529953003,
-0.006587866228073835,
0.0037108559627085924,
0.007533866446465254,
0.07060866057872772,
-0.0208510123193264,
-0.006383062340319157,
0.05289798229932785,
-0.03222251683473587,
0.06456206738948822,
0.017613155767321587,
-0.018481135368347168,
-0.03077913634479046,
0.0010868029203265905,
-0.018178805708885193,
-0.05808635428547859,
0.018617670983076096,
-0.01103016547858715,
0.07271522283554077,
0.006144124083220959,
0.027482764795422554,
-0.016452599316835403,
-0.020655959844589233,
0.0647181048989296,
-0.010415753349661827,
-0.06136322021484375,
0.017340082675218582,
0.09042590111494064,
-0.02163121849298477,
0.017691176384687424,
-0.01490193884819746,
-0.05036231130361557,
-0.0014823918463662267,
0.05047934129834175,
-0.012717361561954021,
-0.010805856436491013,
-0.0021065569017082453,
0.04540800303220749,
-0.04927002266049385,
-0.053483135998249054,
0.008518876507878304,
-0.004183855839073658,
0.08574466407299042,
0.010435258038341999,
0.006948711816221476,
0.06066103279590607,
0.026566023007035255,
-0.09198631346225739,
-0.03912734240293503,
0.029550310224294662,
0.033587876707315445,
-0.026741567999124527,
-0.03216399997472763,
0.024810558184981346,
-0.022625980898737907,
0.039263878017663956,
-0.024283919483423233,
0.00897237192839384,
0.017232805490493774,
-0.01989525929093361,
0.013107464648783207,
0.026624538004398346,
0.03374391794204712,
-0.023055093362927437,
0.017554640769958496,
-0.0268976092338562,
0.006256278604269028,
-0.01121546421200037,
0.016033237800002098,
0.04072676599025726,
0.012219980359077454,
0.015584619715809822,
-0.008489619009196758,
-0.017086517065763474,
0.01233701128512621,
-0.0017444923287257552,
-0.0010307255433872342,
0.04357451945543289,
0.059763796627521515,
0.03317826986312866,
-0.0507914237678051,
0.03165686875581741,
0.021689733490347862,
0.0005181056912988424,
-0.015096990391612053,
0.06050499156117439,
0.023425692692399025,
0.003891278523951769,
0.014229010790586472,
-0.010415753349661827,
0.03982952982187271,
-0.00976232998073101,
-0.04829476401209831,
0.044471755623817444,
-0.028204455971717834,
-0.1360679715871811,
-0.05402928218245506,
0.012931917794048786,
0.013595093972980976,
0.02447897009551525,
-0.01308795902878046,
-0.020285362377762794,
0.02617591805756092,
0.015321299433708191,
-0.007007227279245853,
-0.08090738952159882,
-0.0317348875105381,
-0.06924330443143845,
0.03930288925766945,
-0.0075143612921237946,
0.025863835588097572,
0.04092181846499443,
-0.017125526443123817,
-0.017496123909950256,
0.04845080524682999,
-0.017895979806780815,
0.029043177142739296,
-0.015243278816342354,
0.04267727956175804,
-0.012883155606687069,
-0.045915137976408005,
-0.03101319819688797,
-0.01577967032790184,
-0.04248223081231117,
-0.029881898313760757,
-0.025181155651807785,
0.005281020887196064,
0.0021809202153235674,
-0.020265856757760048,
0.0066658868454396725,
-0.0247910525649786,
-0.033392827957868576,
0.02067546546459198,
-0.007134010549634695,
0.04287233203649521,
0.021533692255616188,
-0.03276866301894188,
0.027482764795422554,
0.003957108594477177,
-0.006446453742682934,
0.013400042429566383,
0.045017898082733154,
-0.022528454661369324,
-0.001126422779634595,
0.03959546610713005,
-0.052624911069869995,
-0.00044069462455809116,
-0.03302222862839699,
0.004495938308537006,
0.014521588571369648,
-0.025473732501268387,
0.01016218587756157,
0.00118798587936908,
-0.047124456614255905,
-0.0014372861478477716,
0.023542722687125206,
0.030018433928489685,
-0.04782664030790329,
0.004737314768135548,
-0.00014133618969935924,
-0.0069730933755636215,
0.005349289160221815,
-0.04751455783843994,
-0.04747555032372475,
-0.008748061954975128,
-0.029101692140102386,
-0.025298187509179115,
0.006329422816634178,
0.011478784494102001,
-0.022528454661369324,
-0.06971142441034317,
-0.06335274875164032,
-0.08379414677619934,
-0.03046705387532711,
0.05180569365620613,
0.08777320384979248,
-0.0287115890532732,
0.07248115539550781,
-0.033704910427331924,
-0.04521295055747032,
0.00832382496446371,
-0.035265322774648666,
0.022450434044003487,
0.02600037306547165,
-0.051610641181468964,
0.02937476523220539,
0.025122640654444695,
0.03372441604733467,
0.04384759068489075,
-0.025844331830739975,
-0.013858413323760033,
0.07302730530500412,
-0.060426972806453705,
0.02315261960029602,
0.025980867445468903,
0.02170923911035061,
0.007923969067633152,
-0.04552503302693367,
-0.044705815613269806,
-0.023562228307127953,
-0.02291855774819851,
0.035167794674634933,
-0.018588412553071976,
0.008031248115003109,
-0.03210548684000969,
0.0864468514919281,
0.00781181501224637,
-0.04197509586811066,
0.03953694924712181,
0.0024405824951827526,
-0.016793938353657722,
0.061207178980112076,
0.010620557703077793,
0.0029599072877317667,
-0.013838907703757286,
0.02061695046722889,
-0.01607224904000759,
0.01075709331780672,
-0.022840537130832672,
0.02145567163825035,
0.01958317682147026,
-0.043496496975421906,
0.018724950030446053,
0.005710134282708168,
-0.05473146587610245,
0.006797546986490488,
0.026702558621764183,
-0.10384544730186462,
-0.09557526558637619,
-0.04556404426693916,
-0.003449974348768592,
0.00619776314124465,
-0.04505690932273865,
0.007075495086610317,
0.04614919796586037,
0.0068804435431957245,
-0.04443274438381195,
-0.04123390093445778,
0.03945893049240112,
-0.03251509368419647,
0.022508949041366577,
-0.010327979922294617,
-0.00015489837096538395,
-0.02139715664088726,
-0.008567639626562595,
0.07025757431983948,
-0.056018806993961334,
0.025805320590734482,
0.004152160137891769,
0.00898212380707264,
0.02648800238966942,
-0.06503018736839294,
-0.05192272365093231,
-0.06538128107786179,
-0.05473146587610245,
-0.060973115265369415,
-0.024888578802347183,
0.036786723881959915,
-0.007075495086610317,
-0.026527011767029762,
0.001959049142897129,
0.021007053554058075,
0.07275423407554626,
-0.11593864858150482,
-0.019748970866203308,
0.012044433504343033,
-0.02956981584429741,
-0.013926681131124496,
-0.011166702024638653,
0.016608640551567078,
-0.03567492961883545,
-0.013019691221415997,
-0.0417020246386528,
0.01834459975361824,
-0.02073398046195507,
-0.033470846712589264,
0.03161785751581192,
0.009143041446805,
0.034251052886247635,
0.029550310224294662,
0.007870330475270748,
-0.01193715538829565,
-0.001955391839146614,
0.002087051747366786,
-0.0683460682630539,
0.03157884627580643,
-0.0017006057314574718,
0.03214449808001518,
0.047007426619529724,
-0.04322342574596405,
0.019817238673567772,
0.026448991149663925,
-0.02079249545931816,
0.0011197178391739726,
0.03046705387532711,
-0.014911691658198833,
-0.06257253885269165,
0.03288569301366806,
-0.0653032585978508,
-0.062299467623233795,
0.004069263115525246,
0.03155934065580368,
0.018812723457813263,
0.06947736442089081,
-0.009021134115755558,
-0.015526103787124157,
-0.01940762996673584,
0.039322394877672195,
-0.01716453768312931,
-0.018929753452539444,
0.0058759283274412155,
0.07306631654500961,
-0.005110350903123617,
-0.014765403233468533,
-0.010113423690199852,
-0.016852455213665962,
-0.09339068830013275,
0.00934296939522028,
-0.09721369296312332,
0.09385880827903748,
-0.04103884845972061,
0.04490086808800697,
0.019661197438836098,
-0.012532062828540802,
0.023289155215024948
] |
725,164 | tf_keras.src.engine.sequential | build | null | @generic_utils.default
def build(self, input_shape=None):
if self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
else:
if input_shape is None:
raise ValueError("You must provide an `input_shape` argument.")
self._build_graph_network_for_inferred_shape(input_shape)
if not self.built:
input_shape = tuple(input_shape)
self._build_input_shape = input_shape
super().build(input_shape)
self.built = True
| (self, input_shape=None) | [
-0.043715089559555054,
-0.05427782982587814,
-0.005873997695744038,
-0.0028868867084383965,
-0.05724097415804863,
0.017813725396990776,
-0.07432262599468231,
0.006287965923547745,
0.06375989317893982,
-0.031862515956163406,
0.018667807802557945,
0.06051786243915558,
-0.002732193097472191,
0.04971110075712204,
0.05434754863381386,
0.04071708768606186,
0.011887436732649803,
0.015042314305901527,
-0.024123478680849075,
0.031304746866226196,
-0.0328560397028923,
-0.03451191261410713,
-0.0107370400801301,
0.002799735404551029,
0.05316229164600372,
0.0611104890704155,
-0.008959153667092323,
0.020532846450805664,
-0.025448178872466087,
-0.034686215221881866,
-0.029614010825753212,
0.0021221342030912638,
0.018650377169251442,
0.04985054209828377,
0.06362044811248779,
0.028655346482992172,
-0.007978701032698154,
0.0854082703590393,
-0.026947181671857834,
-0.005939361173659563,
0.027644392102956772,
-0.08157361298799515,
-0.019138425588607788,
0.03562745079398155,
0.016611037775874138,
-0.011259947903454304,
-0.002784484066069126,
0.017238527536392212,
-0.08554771542549133,
-0.06679275631904602,
-0.0034359400160610676,
-0.002581857144832611,
-0.025186724960803986,
0.02475096844136715,
-0.07418318837881088,
-0.009037589654326439,
0.0217181034386158,
0.0032202403526753187,
0.01812746934592724,
0.021334636956453323,
-0.04026389867067337,
-0.009133456274867058,
0.009081165306270123,
-0.01793573796749115,
-0.03583661466836929,
-0.03723103553056717,
-0.08073696494102478,
-0.026999471709132195,
0.022955652326345444,
0.03193223476409912,
0.023966606706380844,
0.03409358859062195,
0.01966133341193199,
-0.00008933008211897686,
0.017194950953125954,
-0.0017179700080305338,
0.01819719187915325,
-0.02333911694586277,
-0.0108590517193079,
-0.057415276765823364,
-0.03810254856944084,
0.017255956307053566,
-0.04441229999065399,
-0.037719082087278366,
0.010893912054598331,
-0.02163095213472843,
-0.0001257566036656499,
0.05870511382818222,
-0.04500493034720421,
-0.05396408215165138,
0.01265436876565218,
0.02546560950577259,
-0.0014663205947726965,
0.03820712864398956,
0.0006144166691228747,
0.019312728196382523,
-0.0027888414915651083,
-0.04782863333821297,
0.0012549787061288953,
0.008994014002382755,
-0.04702683910727501,
-0.03208910673856735,
-0.09098595380783081,
-0.016358299180865288,
-0.019208146259188652,
-0.02217129059135914,
0.04510951042175293,
-0.02586650475859642,
-0.021700672805309296,
-0.04050792381167412,
-0.03177536278963089,
-0.035139404237270355,
0.04259955510497093,
0.03174050152301788,
-0.004416392184793949,
0.0026711872778832912,
0.02278134971857071,
-0.003937060013413429,
-0.012872247025370598,
0.02956172078847885,
-0.07094115763902664,
0.07704174518585205,
-0.0015349522000178695,
0.005076562985777855,
0.02940484695136547,
0.01688120700418949,
0.0029871107544749975,
-0.022903360426425934,
0.03719617426395416,
-0.10465127974748611,
0.00659299548715353,
0.036150358617305756,
-0.0015632763970643282,
0.016942212358117104,
-0.019521890208125114,
0.05047802999615669,
-0.08178278058767319,
-0.06107562780380249,
-0.05141926556825638,
0.0646662637591362,
0.039880432188510895,
-0.04026389867067337,
0.03653382509946823,
-0.013011688366532326,
-0.009560497477650642,
0.04479576647281647,
0.012837385758757591,
-0.03376241400837898,
-0.0023095093201845884,
0.008017919026315212,
0.0378933846950531,
-0.023513419553637505,
0.02581421472132206,
0.005172429606318474,
-0.009665078483521938,
0.009020159021019936,
-0.0285507645457983,
-0.0020654858089983463,
0.026180250570178032,
0.013804765418171883,
-0.034686215221881866,
0.006287965923547745,
0.021996987983584404,
-0.013403869234025478,
-0.04814237728714943,
-0.009412339888513088,
0.07167322933673859,
-0.05385950207710266,
-0.034023866057395935,
-0.0009003818267956376,
0.003963205497711897,
-0.07711146771907806,
0.04029875993728638,
-0.013203421607613564,
-0.036603543907403946,
-0.013011688366532326,
0.0014271024847403169,
0.03597605600953102,
-0.03313492238521576,
0.024681247770786285,
-0.006257463246583939,
0.0007402413175441325,
-0.02363543212413788,
-0.002692975103855133,
0.00873691774904728,
0.06658358871936798,
-0.02692975103855133,
0.0046800244599580765,
0.05926288291811943,
0.02414090931415558,
-0.02712148427963257,
0.045283813029527664,
-0.014284097589552402,
-0.01959161087870598,
0.04350592941045761,
-0.04169318079948425,
0.011782855726778507,
0.031147873029112816,
-0.049885403364896774,
0.042564693838357925,
0.041449155658483505,
-0.017700428143143654,
0.019086133688688278,
0.026127958670258522,
-0.024681247770786285,
0.021055754274129868,
-0.016750479117035866,
0.02712148427963257,
0.051105521619319916,
-0.026738017797470093,
-0.0581124871969223,
-0.018249481916427612,
0.020689718425273895,
0.048177238553762436,
-0.02485555037856102,
-0.05762443691492081,
-0.06546805799007416,
0.014214376918971539,
-0.03147904947400093,
0.0005387039855122566,
0.0535457581281662,
0.012872247025370598,
0.026459133252501488,
-0.06250490993261337,
-0.012689229100942612,
-0.028515905141830444,
-0.004109183792024851,
-0.03946210816502571,
-0.023408839479088783,
-0.01192229799926281,
-0.0033052130602300167,
-0.1106472909450531,
0.0017778865294530988,
0.03709159418940544,
-0.016245001927018166,
0.00472360011190176,
0.0021221342030912638,
-0.03398900479078293,
-0.0047715334221720695,
0.029125964269042015,
-0.034477055072784424,
-0.04845612123608589,
-0.02858562581241131,
-0.08610548079013824,
-0.0023857667110860348,
0.009342619217932224,
0.007547302171587944,
0.011756709776818752,
-0.0010360110318288207,
0.016497740522027016,
-0.06107562780380249,
-0.008776135742664337,
-0.013735044747591019,
-0.015112034976482391,
0.022607047110795975,
-0.0038259420543909073,
0.008505966514348984,
-0.09328675270080566,
0.02900395169854164,
-0.00083011609967798,
-0.0003240938822273165,
0.05500989779829979,
0.02414090931415558,
0.09753973037004471,
-0.014519406482577324,
-0.046259909868240356,
0.0006443749298341572,
0.0005122862057760358,
-0.030746977776288986,
-0.02217129059135914,
0.04252983257174492,
0.0863843634724617,
0.012183750979602337,
-0.006192099768668413,
0.04026389867067337,
-0.04280871897935867,
-0.035592589527368546,
0.0687100812792778,
0.012968112714588642,
0.01399649865925312,
0.058321647346019745,
-0.02607566863298416,
-0.020131949335336685,
0.006789085920900106,
-0.05619515851140022,
-0.002801914233714342,
0.027208635583519936,
-0.015617512166500092,
-0.023408839479088783,
-0.01873752847313881,
0.052255917340517044,
0.03775394335389137,
-0.0007587609579786658,
0.05776388198137283,
-0.025639912113547325,
-0.047758910804986954,
0.029387418180704117,
0.06274893134832382,
0.014327673241496086,
-0.014545551501214504,
0.025029852986335754,
-0.017238527536392212,
0.009150885976850986,
-0.022694198414683342,
-0.0007091937004588544,
-0.014214376918971539,
0.0060744453221559525,
-0.011094360612332821,
-0.010928772389888763,
0.041658319532871246,
-0.02935255691409111,
0.02713891491293907,
-0.01798802800476551,
-0.0011416820343583822,
0.024175770580768585,
-0.02368772216141224,
0.03583661466836929,
-0.04057764261960983,
0.07899393886327744,
0.04015931859612465,
-0.03757964074611664,
0.008353452198207378,
-0.03677784651517868,
-0.026598576456308365,
-0.1146911084651947,
-0.014711138792335987,
0.038974061608314514,
0.008065852336585522,
-0.0280452873557806,
0.05581169202923775,
0.016079414635896683,
0.00657992297783494,
0.046050745993852615,
0.023670293390750885,
-0.059646349400281906,
0.0037061090115457773,
0.05692722648382187,
-0.015826676040887833,
-0.0007571268943138421,
-0.057973042130470276,
0.04239039123058319,
0.03576689213514328,
-0.01777886413037777,
0.006662716623395681,
0.03866031393408775,
-0.005595113150775433,
0.044830627739429474,
-0.04026389867067337,
0.005534107331186533,
0.017848586663603783,
-0.029282836243510246,
0.023774873465299606,
-0.01475471444427967,
0.005080920644104481,
0.05019914731383324,
0.024733537808060646,
-0.05162842944264412,
-0.024472083896398544,
0.009769660420715809,
0.023513419553637505,
0.0282893106341362,
0.01722109690308571,
0.04123999550938606,
0.018354063853621483,
0.05215133726596832,
-0.0005909947212785482,
0.024419793859124184,
-0.00955178216099739,
0.028707638382911682,
-0.00803099200129509,
-0.018249481916427612,
-0.07390429824590683,
-0.036045778542757034,
0.019330156967043877,
0.0031962739303708076,
0.0909162312746048,
-0.027748974040150642,
-0.005791203584522009,
0.026459133252501488,
-0.009691224433481693,
-0.018110040575265884,
0.052116475999355316,
0.061912283301353455,
0.02980574406683445,
0.022554755210876465,
-0.02112547494471073,
-0.0006977550801821053,
0.03845115378499031,
0.01305526401847601,
-0.004985054023563862,
-0.01581796072423458,
0.02813243865966797,
0.028167299926280975,
0.007821829058229923,
0.0014968235045671463,
0.014083649963140488,
0.06909354776144028,
0.03020663931965828,
-0.04374995082616806,
-0.021108044311404228,
-0.014074934646487236,
-0.0813644528388977,
-0.006126736290752888,
0.061598535627126694,
0.0064056203700602055,
-0.027766402810811996,
-0.01101592369377613,
0.06944215297698975,
0.0014020465314388275,
0.003969741519540548,
0.05682264640927315,
0.016384443268179893,
-0.053057711571455,
0.03177536278963089,
-0.024228060618042946,
-0.03477336838841438,
0.05047802999615669,
0.01717752031981945,
0.05141926556825638,
0.02469867840409279,
0.034477055072784424,
0.09286842495203018,
0.08429273217916489,
0.0005670281243510544,
0.041449155658483505,
0.04490035027265549,
0.001392242033034563,
0.0540686659514904,
0.010301283560693264,
0.014693709090352058,
-0.02536102756857872,
0.04803779348731041,
-0.014406109228730202,
0.037300754338502884,
-0.0012397272512316704,
-0.021038323640823364,
0.025064712390303612,
0.019469600170850754,
-0.019155854359269142,
-0.0077041746117174625,
0.04838639870285988,
-0.020271392539143562,
0.020131949335336685,
-0.03257715329527855,
-0.012183750979602337,
0.024332642555236816,
0.013438730500638485,
0.048212096095085144,
-0.057066671550273895,
-0.008035349659621716,
0.03388442471623421,
0.014310243539512157,
0.05061747506260872,
0.005242150742560625,
-0.04117027297616005,
-0.007843616418540478,
0.022711629047989845,
-0.012314477935433388,
-0.009839381091296673,
-0.009717369452118874,
0.015173041261732578,
0.006645286455750465,
-0.02445465326309204,
-0.0017081653932109475,
-0.008994014002382755,
-0.03674298897385597,
0.05441727116703987,
0.007808756083250046,
-0.03768422082066536,
0.011129220947623253,
0.0793425440788269,
-0.004566728137433529,
0.013456160202622414,
-0.02243274450302124,
-0.014005213975906372,
-0.05490531772375107,
0.02794070541858673,
0.019469600170850754,
-0.0018552332185208797,
-0.04587644338607788,
-0.018929261714220047,
0.0063097537495195866,
-0.04946707561612129,
0.038730036467313766,
-0.014153370633721352,
0.03214139863848686,
-0.02480325847864151,
-0.00729892123490572,
0.033169783651828766,
0.03193223476409912,
-0.053057711571455,
0.030537813901901245,
0.041762903332710266,
-0.025430748239159584,
0.04922305420041084,
-0.0015425779856741428,
-0.0017898697406053543,
-0.015547791495919228,
0.03935752436518669,
0.011643413454294205,
-0.025448178872466087,
0.029213115572929382,
-0.030799267813563347,
0.014179516583681107,
0.006553777493536472,
0.03010205738246441,
0.008505966514348984,
0.02374001406133175,
-0.03388442471623421,
-0.01293325237929821,
-0.043924253433942795,
0.013299288228154182,
0.015260192565619946,
0.016933497041463852,
0.019940216094255447,
-0.011268663220107555,
-0.010519161820411682,
0.03904378041625023,
-0.02182268537580967,
0.005734555423259735,
0.054731015115976334,
0.06051786243915558,
-0.01974848471581936,
-0.03140932694077492,
-0.024018896743655205,
0.029683731496334076,
0.04838639870285988,
-0.01859808713197708,
0.027557240799069405,
-0.002257218584418297,
0.014336388558149338,
-0.04692225903272629,
-0.019086133688688278,
0.11190226674079895,
-0.01245392020791769,
-0.01596611738204956,
0.02698204107582569,
0.06553777307271957,
-0.117201067507267,
-0.01974848471581936,
-0.016541317105293274,
0.006357687059789896,
-0.03757964074611664,
-0.013299288228154182,
-0.010196701623499393,
0.053266871720552444,
0.054033804684877396,
0.04573700204491615,
-0.007573447655886412,
-0.038625456392765045,
-0.061912283301353455,
0.02964887209236622,
-0.03376241400837898,
0.07244016230106354,
0.08059751987457275,
-0.045702140778303146,
0.00927289854735136,
0.022066708654165268,
-0.008222725242376328,
0.02743522822856903,
-0.006841376889497042,
0.02525644563138485,
-0.05288340896368027,
-0.0012462635058909655,
0.003775829914957285,
0.02091631107032299,
-0.08519911020994186,
-0.004449073690921068,
-0.027295786887407303,
0.030380941927433014,
0.019713623449206352,
-0.042913299053907394,
-0.0035928122233599424,
-0.01708165369927883,
0.06205172464251518,
0.018528366461396217,
-0.058879416435956955,
0.05727583169937134,
-0.021543800830841064,
-0.004069965798407793,
-0.010676033794879913,
-0.006466626189649105,
-0.0007021126220934093,
0.0399152934551239,
0.022293301299214363,
-0.03451191261410713,
-0.04971110075712204,
-0.03214139863848686,
-0.01566108874976635,
-0.015164325945079327,
-0.010432010516524315,
-0.013421299867331982,
0.002603644970804453,
0.055951133370399475,
-0.0484909825026989,
-0.011381959542632103,
-0.029997477307915688,
-0.03995015472173691,
0.03337894752621651,
-0.02964887209236622,
-0.08275887370109558,
0.023269396275281906,
0.012166321277618408,
0.040229037404060364,
-0.02056770585477352,
-0.033169783651828766,
-0.02884707972407341,
0.04305274039506912,
-0.010327428579330444,
-0.028725067153573036,
0.044133417308330536,
0.003370576538145542,
-0.01783115603029728,
0.006649644114077091,
-0.03949696943163872,
-0.06386446952819824,
-0.07153378427028656,
0.046608515083789825,
0.0631323978304863,
-0.03268173709511757,
0.060099534690380096,
-0.03677784651517868,
-0.005865282379090786,
-0.02440236322581768,
-0.05602085590362549,
0.0474800281226635,
0.006710649933665991,
-0.061354514211416245,
-0.0003159234474878758,
0.03398900479078293,
0.053824640810489655,
-0.0373704768717289,
-0.017438974231481552,
-0.0328560397028923,
0.0343550406396389,
-0.05703181028366089,
0.026441704481840134,
0.04678281769156456,
0.001043636817485094,
-0.00980452075600624,
-0.07801783829927444,
-0.015181755647063255,
0.00634025689214468,
-0.07641425728797913,
0.0265288557857275,
-0.06138937547802925,
-0.00008592573431087658,
0.009848096407949924,
-0.004928405862301588,
0.03438990190625191,
-0.02658114582300186,
0.014580411836504936,
0.012776380404829979,
0.0161578506231308,
0.12605564296245575,
0.02086402103304863,
-0.004527510143816471,
-0.0285507645457983,
0.0214740801602602,
-0.020846590399742126,
0.007198697421699762,
0.018005458638072014,
0.04490035027265549,
0.009839381091296673,
-0.048072654753923416,
0.027644392102956772,
-0.03086899034678936,
-0.04765433073043823,
-0.007015679497271776,
-0.01990535669028759,
-0.0934261903166771,
-0.007926410995423794,
-0.007294563576579094,
-0.026232540607452393,
-0.007364284712821245,
-0.02985803410410881,
0.02142178826034069,
0.010527877137064934,
0.012854816392064095,
-0.04517923295497894,
0.02788841538131237,
0.03932266682386398,
-0.020044798031449318,
0.016053268685936928,
0.02025396190583706,
-0.0560905747115612,
-0.015626227483153343,
-0.023112524300813675,
0.05058261379599571,
-0.025169294327497482,
0.04678281769156456,
0.011033354327082634,
0.056055713444948196,
-0.016933497041463852,
-0.00977837573736906,
-0.012262187898159027,
-0.0737648606300354,
-0.06626984477043152,
-0.04667823389172554,
0.005734555423259735,
0.054940178990364075,
-0.03465135768055916,
-0.05919316038489342,
0.0036821423564106226,
0.01878982037305832,
0.04001987725496292,
-0.051349543035030365,
0.04374995082616806,
0.004178904928267002,
0.024576665833592415,
0.0002547813637647778,
-0.02860305644571781,
-0.008000489324331284,
-0.034877948462963104,
0.018824679777026176,
-0.03310006111860275,
-0.012976828031241894,
0.03517426550388336,
-0.03883461654186249,
-0.02818473055958748,
-0.015085889957845211,
0.008627978153526783,
0.016384443268179893,
-0.010109550319612026,
0.009011444635689259,
-0.019277866929769516,
0.022066708654165268,
-0.06546805799007416,
0.06375989317893982,
0.004211586434394121,
-0.02267676778137684,
0.015129465609788895,
-0.026127958670258522,
-0.02318224497139454,
0.007904622703790665,
-0.007795683573931456,
0.004331419710069895,
0.025796784088015556,
-0.019208146259188652,
0.015181755647063255,
-0.029544290155172348,
-0.012941967695951462,
-0.047410305589437485,
0.02576192282140255,
0.07390429824590683,
-0.02227587252855301,
0.05996009334921837,
-0.03601091727614403,
-0.012697944417595863,
-0.0003251832677051425,
-0.009464630857110023,
0.024890409782528877,
0.0318276546895504,
-0.006815231405198574,
0.06651387363672256,
-0.0224850345402956,
-0.011329668574035168,
-0.018249481916427612,
-0.0393923856317997,
-0.09726084768772125,
0.00512885395437479,
-0.06274893134832382,
0.031897373497486115,
-0.022519895806908607,
0.006492771673947573,
0.03369269147515297,
0.03775394335389137,
-0.01427538227289915
] |
725,166 | tf_keras.src.engine.sequential | call | null | def call(self, inputs, training=None, mask=None):
# If applicable, update the static input shape of the model.
if not self._has_explicit_input_shape:
if not tf.is_tensor(inputs) and not isinstance(inputs, tf.Tensor):
# This is a Sequential with multiple inputs. This is technically
# an invalid use case of Sequential, but we tolerate it for
# backwards compatibility.
self._use_legacy_deferred_behavior = True
self._build_input_shape = tf.nest.map_structure(
_get_shape_tuple, inputs
)
else:
self._build_graph_network_for_inferred_shape(
inputs.shape, inputs.dtype
)
if self._graph_initialized:
if not self.built:
self._init_graph_network(self.inputs, self.outputs)
return super().call(inputs, training=training, mask=mask)
outputs = inputs # handle the corner case where self.layers is empty
for layer in self.layers:
# During each iteration, `inputs` are the inputs to `layer`, and
# `outputs` are the outputs of `layer` applied to `inputs`. At the
# end of each iteration `inputs` is set to `outputs` to prepare for
# the next layer.
kwargs = {}
argspec = self._layer_call_argspecs[layer].args
if "mask" in argspec:
kwargs["mask"] = mask
if "training" in argspec:
kwargs["training"] = training
outputs = layer(inputs, **kwargs)
inputs = outputs
def _get_mask_from_keras_tensor(kt):
return getattr(kt, "_keras_mask", None)
mask = tf.nest.map_structure(_get_mask_from_keras_tensor, outputs)
return outputs
| (self, inputs, training=None, mask=None) | [
-0.021304521709680557,
-0.06071217358112335,
-0.01743616908788681,
-0.004723486956208944,
-0.09085864573717117,
0.016492901369929314,
-0.11784183233976364,
0.026182839646935463,
0.1263788789510727,
0.027326194569468498,
0.007922500371932983,
-0.015330490656197071,
-0.00514033529907465,
0.024925148114562035,
0.030699092894792557,
0.038149960339069366,
0.0017841107910498977,
0.012129095382988453,
-0.04859260469675064,
-0.026849796995520592,
-0.021361690014600754,
-0.017540978267788887,
-0.006088367663323879,
0.08102578669786453,
0.05080309137701988,
0.06730552017688751,
0.02336256206035614,
-0.017969734966754913,
-0.011147715151309967,
0.011833728291094303,
0.032814301550388336,
0.02385801635682583,
-0.017379002645611763,
0.010242559015750885,
0.014654004946351051,
0.005778708960860968,
-0.05560518428683281,
0.07980620861053467,
-0.032204508781433105,
0.010356894694268703,
0.014339582063257694,
-0.06639083474874496,
0.03146132826805115,
0.0034538861364126205,
-0.008598985150456429,
-0.004004125948995352,
-0.003544401843100786,
0.03218545392155647,
0.0025129998102784157,
-0.0652855932712555,
-0.008827656507492065,
-0.023305393755435944,
0.003358606481924653,
-0.011176299303770065,
-0.05911147594451904,
-0.035672686994075775,
0.015797359868884087,
-0.004373334348201752,
0.02446780540049076,
-0.0487450510263443,
-0.013272450305521488,
-0.028164654970169067,
-0.0063265664502978325,
0.010976212099194527,
-0.055490847676992416,
-0.04306638613343239,
-0.06364678591489792,
-0.04653456434607506,
0.012110039591789246,
0.034834228456020355,
-0.02827898971736431,
0.01947515457868576,
0.0340910479426384,
-0.02970818430185318,
-0.03818807005882263,
-0.03047042153775692,
0.03298580273985863,
-0.010404534637928009,
-0.026392454281449318,
-0.038569189608097076,
0.012843692675232887,
0.027535809203982353,
-0.05160344019532204,
-0.027726368978619576,
0.013825071975588799,
-0.0037301969714462757,
-0.001659056288190186,
0.020866235718131065,
-0.02648773416876793,
-0.023667456582188606,
0.021437913179397583,
0.012110039591789246,
-0.0016650112811475992,
0.013491594232618809,
-0.013196227140724659,
0.0693635642528534,
-0.0452006496489048,
-0.06372300535440445,
-0.0053404225036501884,
-0.015092290937900543,
-0.03037514165043831,
0.05621497333049774,
-0.05183211341500282,
0.01278652437031269,
-0.001961569068953395,
-0.03361465036869049,
-0.033728983253240585,
-0.048897501081228256,
-0.02174280770123005,
0.005292782559990883,
0.0018234136514365673,
0.0440191812813282,
-0.007498505990952253,
-0.001892491360194981,
0.02250504493713379,
0.0016102255322039127,
0.005426174029707909,
-0.029898744076490402,
-0.059378258883953094,
-0.0013660715194419026,
-0.03675887733697891,
0.10717051476240158,
0.004878316540271044,
-0.020351726561784744,
-0.005883516278117895,
0.056824762374162674,
0.016245175153017044,
0.02616378292441368,
0.07473733276128769,
-0.08133067935705185,
0.007993959821760654,
0.015111347660422325,
0.043371282517910004,
0.06985901296138763,
0.028507661074399948,
0.04119890555739403,
-0.06052161380648613,
-0.013529705815017223,
-0.09543206542730331,
0.04485764354467392,
0.022733716294169426,
0.009213538840413094,
0.046763237565755844,
0.05724399536848068,
-0.020866235718131065,
-0.0037278151139616966,
0.058273013681173325,
-0.03492950648069382,
-0.005388062447309494,
-0.03012741543352604,
0.03769261762499809,
0.0014411042211577296,
0.025115707889199257,
0.07797683775424957,
-0.03959820792078972,
0.029231786727905273,
-0.024734588339924812,
-0.036606427282094955,
0.02063756436109543,
0.01057603769004345,
-0.07721459865570068,
0.028050318360328674,
0.026278117671608925,
0.022581269964575768,
-0.028412381187081337,
-0.014263358898460865,
-0.027154691517353058,
-0.013691680505871773,
0.00429234653711319,
-0.010337838903069496,
0.061588745564222336,
0.037120938301086426,
0.05739644169807434,
-0.011119130998849869,
-0.0005925201112404466,
-0.03944576159119606,
0.015082763507962227,
-0.019913440570235252,
0.00184723362326622,
0.023210113868117332,
-0.009851912036538124,
0.01876055635511875,
0.012205318547785282,
-0.013320090249180794,
-0.037787895649671555,
0.056176863610744476,
-0.029231786727905273,
-0.01514945924282074,
-0.020847180858254433,
-0.036511149257421494,
-0.04386673495173454,
0.06772474944591522,
0.026792628690600395,
0.027955040335655212,
-0.006307510659098625,
-0.04154191166162491,
0.004387626424431801,
0.05587196722626686,
-0.009637533687055111,
0.018484245985746384,
0.000636586919426918,
0.008503706194460392,
0.05655797943472862,
0.02793598361313343,
-0.059454482048749924,
0.00027973498799838126,
0.012014759704470634,
0.04729680344462395,
-0.020961515605449677,
-0.038550134748220444,
-0.03849296644330025,
-0.01950373686850071,
0.033652760088443756,
0.0340910479426384,
0.008918171748518944,
0.020103998482227325,
-0.008451301604509354,
-0.0021426004823297262,
0.02572549693286419,
-0.036434926092624664,
-0.012862748466432095,
-0.015797359868884087,
-0.04485764354467392,
-0.06010238081216812,
-0.004175629001110792,
-0.02479175664484501,
0.01244351826608181,
0.0149779561907053,
0.010090111754834652,
-0.038169015198946,
-0.00027720414800569415,
-0.06475202739238739,
-0.020790012553334236,
-0.004004125948995352,
-0.05114609748125076,
0.0031084974762052298,
-0.017150331288576126,
-0.06921111047267914,
0.05267057195305824,
-0.005502397660166025,
-0.030794372782111168,
-0.028145598247647285,
0.0005529195186682045,
-0.06231287121772766,
0.01100479532033205,
0.021380746737122536,
-0.0010046045063063502,
0.019198842346668243,
-0.015340018086135387,
0.009556545875966549,
-0.02869822084903717,
0.01502559520304203,
-0.013577345758676529,
0.042532820254564285,
-0.035081956535577774,
0.01506370771676302,
-0.016835907474160194,
-0.00440191850066185,
0.04783036932349205,
0.029574792832136154,
-0.017178915441036224,
0.036187198013067245,
-0.011643169447779655,
0.008851476013660431,
0.010118694975972176,
-0.028545772656798363,
-0.010299726389348507,
0.012043343856930733,
0.004273290745913982,
0.0050117080099880695,
0.008241686969995499,
0.08369361609220505,
-0.003968396224081516,
-0.001948468154296279,
0.03189961612224579,
-0.005392826162278652,
0.007789108902215958,
0.031366050243377686,
0.001029019826091826,
-0.034662723541259766,
0.047106243669986725,
-0.0027297609485685825,
-0.07111670821905136,
-0.055071618407964706,
0.030927764251828194,
-0.025363434106111526,
0.07919641584157944,
0.03944576159119606,
0.0007812928524799645,
-0.05796811729669571,
0.09680408984422684,
0.0065171257592737675,
0.03563457727432251,
-0.03506289795041084,
-0.040741562843322754,
-0.026430565863847733,
-0.04916428402066231,
0.003534873714670539,
0.004263762850314379,
-0.005592913366854191,
0.032033007591962814,
-0.041427578777074814,
0.04028422385454178,
0.01223390270024538,
0.033462200313806534,
-0.021685641258955002,
-0.011586001142859459,
0.02633528597652912,
0.0005073639331385493,
0.0351581797003746,
-0.014139494858682156,
-0.027326194569468498,
0.0077748168259859085,
-0.04493386670947075,
-0.014634949155151844,
-0.04512442648410797,
0.06299888342618942,
0.06471391767263412,
0.06757230311632156,
0.04390484839677811,
0.01523521076887846,
0.061398185789585114,
-0.018188878893852234,
0.049049947410821915,
-0.0998530387878418,
0.01858905330300331,
0.04733491316437721,
0.053013578057289124,
-0.06505692005157471,
0.03273807466030121,
0.031213602051138878,
0.008165462873876095,
0.020199278369545937,
0.02075190097093582,
-0.07496600598096848,
0.012834164313971996,
0.03925520181655884,
0.026773571968078613,
0.024334413930773735,
-0.04207547754049301,
0.03443405404686928,
0.04215170443058014,
-0.0440191812813282,
-0.010471230372786522,
0.025249099358916283,
0.03647303581237793,
0.047106243669986725,
0.04097023606300354,
-0.0480971522629261,
0.03883597254753113,
-0.0034777061082422733,
0.0352153480052948,
0.018855836242437363,
0.005083167459815741,
-0.000039377278881147504,
0.0651712566614151,
0.00914684310555458,
-0.026392454281449318,
0.045657992362976074,
-0.05095553770661354,
0.04062722995877266,
-0.006550473626703024,
0.03395765647292137,
0.00046776336967013776,
0.0668862909078598,
-0.041008345782756805,
-0.003896936308592558,
-0.022485990077257156,
0.018627164885401726,
-0.017798231914639473,
0.004278054926544428,
-0.03148038685321808,
-0.04722057655453682,
-0.008394134230911732,
-0.03224262222647667,
0.05773944780230522,
-0.01900828443467617,
-0.019875328987836838,
0.030908707529306412,
0.023076722398400307,
0.013243867084383965,
0.006045491900295019,
0.032528460025787354,
0.017883984372019768,
0.08864815533161163,
-0.03536779433488846,
0.0041661011055111885,
-0.014272886328399181,
0.012224375270307064,
-0.02572549693286419,
0.031785279512405396,
0.0025606397539377213,
0.03201395273208618,
-0.0399412140250206,
-0.051069874316453934,
-0.011633641086518764,
0.047373026609420776,
0.0641041249036789,
-0.04173247143626213,
-0.0440191812813282,
-0.05198455974459648,
-0.05408070981502533,
0.03824523836374283,
0.04493386670947075,
0.03662548586726189,
-0.029269898310303688,
0.006221759133040905,
0.014206190593540668,
0.007679536938667297,
0.006721977144479752,
-0.0025963694788515568,
0.014758812263607979,
-0.03363370522856712,
0.04687757045030594,
0.029689129441976547,
0.05815867707133293,
0.010242559015750885,
0.01100479532033205,
0.03420538082718849,
0.03895030915737152,
0.03106115572154522,
0.03452933207154274,
0.0629226565361023,
0.05415693297982216,
0.07065936177968979,
0.028469549492001534,
-0.020046832039952278,
0.033138249069452286,
-0.03022269532084465,
0.03088965266942978,
-0.04798281565308571,
-0.05225134268403053,
-0.013710737228393555,
0.012500685639679432,
-0.0010409298120066524,
-0.003084677504375577,
0.029860632494091988,
-0.016149895265698433,
-0.01856999658048153,
-0.009918607771396637,
0.029403289780020714,
-0.029155563563108444,
0.03555835410952568,
-0.062350980937480927,
-0.07416565716266632,
0.01553057786077261,
0.011271578259766102,
0.06909678131341934,
-0.07233628630638123,
-0.012329182587563992,
0.035005729645490646,
-0.005702484864741564,
0.06776286661624908,
0.0252300426363945,
-0.017207499593496323,
0.0032776189036667347,
0.012272014282643795,
0.004756834823638201,
-0.04985029622912407,
0.023915184661746025,
0.008751432411372662,
-0.008956284262239933,
0.00012847861216869205,
0.04036044701933861,
-0.05781567096710205,
-0.02791692689061165,
0.07195516675710678,
-0.009547017514705658,
-0.05766322463750839,
-0.0006467103958129883,
0.060140494257211685,
-0.049049947410821915,
-0.013615457341074944,
-0.022123927250504494,
-0.022981444373726845,
-0.000979593605734408,
0.031175490468740463,
-0.009327874518930912,
-0.040246110409498215,
-0.00611695135012269,
-0.018045959994196892,
-0.048897501081228256,
-0.02599227987229824,
0.03769261762499809,
-0.008713320828974247,
0.020770955830812454,
0.015549633651971817,
0.032966747879981995,
0.027116578072309494,
0.005731069017201662,
-0.01979910396039486,
-0.029060283675789833,
0.05129854753613472,
-0.008641861379146576,
-0.01485409215092659,
-0.049316730350255966,
-0.0014780251076444983,
-0.00016197534569073468,
0.018408022820949554,
-0.01763625629246235,
-0.031861502677202225,
0.028965003788471222,
-0.01240540575236082,
0.01561632938683033,
0.021476024761795998,
0.0875047966837883,
-0.007555673830211163,
0.002423675265163183,
-0.02683074027299881,
-0.014711173251271248,
-0.045657992362976074,
-0.018427077680826187,
-0.013987047597765923,
0.009175427258014679,
-0.012929444201290607,
-0.020942460745573044,
0.014320526272058487,
0.003272854955866933,
0.016978828236460686,
-0.011262050829827785,
0.0622747577726841,
0.004806856624782085,
-0.020084943622350693,
0.018903475254774094,
0.004632971249520779,
0.05983559787273407,
0.0428377166390419,
-0.0069411201402544975,
0.015216154977679253,
-0.016054615378379822,
-0.010404534637928009,
-0.003684939118102193,
-0.0018591434927657247,
0.06387545168399811,
0.014692116528749466,
-0.0629226565361023,
0.03176622465252876,
-0.015016067773103714,
-0.09787122160196304,
0.056596092879772186,
-0.015349546447396278,
0.025630217045545578,
-0.020123055204749107,
-0.0030036899261176586,
0.038569189608097076,
-0.0008450110908597708,
0.027726368978619576,
0.020847180858254433,
0.02309577912092209,
-0.019608546048402786,
-0.05255623534321785,
-0.01299613993614912,
-0.020123055204749107,
0.07763383537530899,
0.08887682855129242,
0.01020444743335247,
-0.037635449320077896,
0.03769261762499809,
-0.0734415277838707,
0.026049448177218437,
-0.027402417734265327,
-0.001474452088586986,
-0.03098493069410324,
-0.05621497333049774,
-0.029593849554657936,
-0.017055051401257515,
-0.05880657956004143,
-0.02174280770123005,
-0.010423590429127216,
0.01711221970617771,
-0.011805144138634205,
0.047944702208042145,
0.0035777497105300426,
-0.009094439446926117,
0.023038610816001892,
0.03471989184617996,
0.003999361768364906,
0.009042035788297653,
-0.0051212795078754425,
0.011195355094969273,
0.009070619940757751,
-0.05918769910931587,
-0.023762736469507217,
0.009608949534595013,
0.04824959859251976,
-0.0074746860191226006,
-0.057091545313596725,
-0.004108933266252279,
-0.0492786169052124,
0.022543156519532204,
0.029308009892702103,
0.01633092574775219,
-0.02294333092868328,
0.042875826358795166,
-0.009570837952196598,
0.00654094573110342,
-0.048630718141794205,
-0.05267057195305824,
0.011929008178412914,
-0.023000499233603477,
-0.09116353839635849,
0.031366050243377686,
0.016902603209018707,
0.012291071005165577,
-0.010404534637928009,
-0.010442646220326424,
-0.05941636860370636,
0.014901732094585896,
0.005869224201887846,
-0.058539796620607376,
-0.00196752417832613,
0.010271143168210983,
-0.010051999241113663,
-0.03740677610039711,
0.01856999658048153,
-0.025363434106111526,
-0.012500685639679432,
0.03357653692364693,
0.0668862909078598,
-0.03902653232216835,
0.04729680344462395,
-0.021952424198389053,
-0.08216914534568787,
-0.014406277798116207,
-0.047525472939014435,
0.027211857959628105,
0.015797359868884087,
-0.02481081150472164,
0.0211520753800869,
0.03956009820103645,
0.06204608827829361,
0.033462200313806534,
-0.030489478260278702,
0.04188492149114609,
0.07184083014726639,
-0.09970059245824814,
0.006741032935678959,
0.02803126350045204,
-0.0616268552839756,
-0.05122232064604759,
-0.025077594444155693,
-0.030489478260278702,
0.0066791013814508915,
-0.056329309940338135,
0.02090434730052948,
-0.0663527250289917,
0.014482501894235611,
-0.009766160510480404,
0.03218545392155647,
0.04005555063486099,
-0.05568140745162964,
0.036930378526449203,
-0.0352725125849247,
0.00217356625944376,
0.07649047672748566,
0.02852671779692173,
0.01613083854317665,
-0.012205318547785282,
0.02827898971736431,
-0.038721635937690735,
-0.031042098999023438,
0.015130403451621532,
0.009461265988647938,
0.002155701396986842,
-0.0780530646443367,
0.020713789388537407,
-0.05026952549815178,
-0.040741562843322754,
0.03959820792078972,
0.007307946681976318,
-0.0969565361738205,
-0.03174716979265213,
-0.06494258344173431,
-0.0026845030952244997,
-0.00217356625944376,
-0.006712449248880148,
0.026849796995520592,
-0.005211795214563608,
0.01743616908788681,
-0.04199925437569618,
-0.02488703653216362,
-0.0001377832522848621,
-0.000393326161429286,
0.035672686994075775,
-0.023324450477957726,
-0.07191705703735352,
0.00840842630714178,
-0.035424962639808655,
0.0668862909078598,
0.013396314345300198,
0.0061360071413218975,
-0.006983995903283358,
0.024486862123012543,
-0.02218109555542469,
-0.003632535459473729,
-0.015254266560077667,
-0.042685266584157944,
-0.05377581715583801,
-0.041351355612277985,
0.012043343856930733,
0.015501993708312511,
-0.021857144311070442,
-0.05766322463750839,
-0.01785540021955967,
0.010537926107645035,
0.04005555063486099,
-0.06421846151351929,
0.04085589945316315,
0.008961047977209091,
0.027726368978619576,
0.01308189146220684,
-0.019236953929066658,
0.005016471724957228,
-0.007446101866662502,
0.024334413930773735,
-0.008094003424048424,
0.05129854753613472,
0.0308134276419878,
0.008079711347818375,
0.01812218315899372,
0.005049819592386484,
0.007346058264374733,
0.02208581566810608,
-0.014673060737550259,
-0.03073720447719097,
-0.04908805713057518,
-0.030775316059589386,
-0.0340910479426384,
0.04508631303906441,
0.039750657975673676,
0.04508631303906441,
0.03614908829331398,
-0.030337030068039894,
-0.029136506840586662,
-0.013196227140724659,
-0.033728983253240585,
0.05068875476717949,
0.01036642212420702,
-0.044209741055965424,
-0.04554365575313568,
-0.015454353764653206,
-0.029174618422985077,
-0.032299790531396866,
-0.0005377343622967601,
0.015311434864997864,
0.014034687541425228,
0.069249227643013,
-0.05198455974459648,
0.030356086790561676,
-0.04729680344462395,
0.028965003788471222,
0.0022319250274449587,
0.019703824073076248,
-0.011338273994624615,
0.09741388261318207,
0.002321249572560191,
-0.0056834290735423565,
-0.026773571968078613,
-0.008861004374921322,
-0.04542932286858559,
0.00486878864467144,
-0.0231910590082407,
0.08155935257673264,
0.005826348438858986,
0.006293218582868576,
-0.01316764298826456,
0.03361465036869049,
0.013053307309746742
] |
725,170 | tf_keras.src.engine.sequential | compute_mask | null | def compute_mask(self, inputs, mask):
# TODO(omalleyt): b/123540974 This function is not really safe to call
# by itself because it will duplicate any updates and losses in graph
# mode by `call`ing the Layers again.
outputs = self.call(inputs, mask=mask)
return getattr(outputs, "_keras_mask", None)
| (self, inputs, mask) | [
0.010793878696858883,
-0.08054931461811066,
0.04702083393931389,
0.025230690836906433,
-0.050562575459480286,
-0.030678225681185722,
-0.060040947049856186,
0.009309720247983932,
0.10672447085380554,
0.0023906754795461893,
0.008904949761927128,
-0.029042279347777367,
-0.001795114716514945,
-0.021402237936854362,
-0.008727862499654293,
0.013585108332335949,
-0.00828514527529478,
0.005346342921257019,
-0.009208527393639088,
-0.062671959400177,
-0.01587880775332451,
-0.02297072298824787,
0.04631248489022255,
0.05946752429008484,
0.016443798318505287,
0.04219731688499451,
0.026529328897595406,
-0.05848933011293411,
0.015364411287009716,
-0.0045831818133592606,
-0.02342608943581581,
0.03282013535499573,
0.007294300477951765,
0.009638596326112747,
-0.012463556602597237,
-0.0077623166143894196,
0.027844833210110664,
0.11232379823923111,
-0.015010236762464046,
-0.04317551478743553,
-0.012817730195820332,
-0.051574502140283585,
0.03143716976046562,
-0.0010345890186727047,
-0.0010973074240610003,
-0.01687386818230152,
-0.024066975340247154,
-0.0019521741196513176,
0.02927839569747448,
-0.0009982229676097631,
-0.024016380310058594,
-0.016308875754475594,
0.0019068482797592878,
-0.0005987229524180293,
-0.058253213763237,
-0.031673286110162735,
0.049516916275024414,
0.02867124043405056,
-0.0224310290068388,
-0.01743886061012745,
-0.058590520173311234,
0.009722922928631306,
0.007441873196512461,
-0.019631367176771164,
-0.028789296746253967,
-0.027271408587694168,
-0.08702564239501953,
-0.0021672083530575037,
0.004975303541868925,
0.060344528406858444,
-0.05150703713297844,
-0.014150099828839302,
0.03239849954843521,
-0.005194554105401039,
0.02489338256418705,
-0.0866883397102356,
0.062402110546827316,
-0.03374773636460304,
-0.023510416969656944,
-0.02238043211400509,
0.014723524451255798,
0.006214912980794907,
0.01909167319536209,
-0.009284421801567078,
0.03760991990566254,
-0.03804842010140419,
0.03986988961696625,
0.03415250778198242,
0.010380675084888935,
-0.06112033501267433,
0.04368147626519203,
0.021739546209573746,
-0.030813150107860565,
0.010473434813320637,
-0.010979398153722286,
0.05633055418729782,
-0.026343809440732002,
-0.0034953614231199026,
0.021435968577861786,
-0.009267556481063366,
-0.017961688339710236,
0.042602088302373886,
0.0014040474779903889,
0.021452832967042923,
0.0448620580136776,
0.009571134112775326,
0.01226960401982069,
-0.06351523101329803,
-0.013121308758854866,
0.00028565831598825753,
0.025416210293769836,
0.023813994601368904,
-0.043310437351465225,
-0.011173350736498833,
0.022650279104709625,
-0.014082638546824455,
-0.02544994093477726,
-0.0027469578199088573,
-0.04344535991549492,
0.021941931918263435,
-0.03491144999861717,
0.0916130468249321,
-0.004427176900207996,
-0.0076400418765842915,
-0.010093962773680687,
0.06189614534378052,
0.029902417212724686,
0.0467509850859642,
0.0443560928106308,
-0.039532579481601715,
-0.005418021231889725,
0.02651246450841427,
0.029514512047171593,
0.09316466003656387,
0.014925910159945488,
0.03548487648367882,
0.018467651680111885,
0.00829357746988535,
-0.02146969921886921,
0.056161899119615555,
0.012446691282093525,
0.012657509185373783,
0.04590771347284317,
0.027844833210110664,
0.014757256023585796,
0.006337187252938747,
0.08743041753768921,
-0.017050955444574356,
0.04428863152861595,
-0.005160822998732328,
0.024556074291467667,
-0.028333930298686028,
-0.025618596002459526,
0.09889890998601913,
-0.016300443559885025,
0.046076368540525436,
0.03374773636460304,
-0.05602697655558586,
-0.002546680625528097,
-0.024809055030345917,
-0.04098300635814667,
0.01919286511838436,
0.019884347915649414,
-0.03039151430130005,
-0.0019100104691460729,
-0.027625583112239838,
0.012455123476684093,
-0.007311166264116764,
0.02428622730076313,
0.007998432964086533,
0.009883144870400429,
-0.023864591494202614,
-0.02641127072274685,
0.021081794053316116,
0.028839893639087677,
0.003263461636379361,
-0.01995180919766426,
-0.02152029424905777,
-0.05946752429008484,
0.026225751265883446,
0.04061196744441986,
0.05103480815887451,
-0.016157086938619614,
0.06351523101329803,
-0.0017202743329107761,
0.04236597195267677,
0.0000754991706344299,
-0.0061474512331187725,
-0.03794723004102707,
-0.011561255902051926,
-0.09593059122562408,
0.030222859233617783,
0.0023189974017441273,
0.022296104580163956,
0.016958195716142654,
-0.034742794930934906,
0.0053041791543364525,
0.01189013198018074,
-0.008580289781093597,
-0.022093720734119415,
0.0021345317363739014,
-0.008011081255972385,
0.022549087181687355,
0.06445969641208649,
-0.024016380310058594,
-0.02796289138495922,
0.02534874901175499,
0.08189855515956879,
-0.050461381673812866,
-0.009410913102328777,
-0.025567999109625816,
-0.024977710098028183,
-0.02312251180410385,
0.04304058849811554,
0.035957109183073044,
0.04223104938864708,
0.034135639667510986,
0.043310437351465225,
-0.03325863927602768,
0.038217075169086456,
-0.04702083393931389,
-0.026731714606285095,
0.003845319151878357,
0.004121490754187107,
0.007311166264116764,
0.029396453872323036,
-0.002016473561525345,
0.035451143980026245,
0.07886277139186859,
-0.024421149864792824,
0.038217075169086456,
-0.011519092135131359,
-0.06631489098072052,
-0.04715575650334358,
-0.05693770945072174,
0.044119976460933685,
0.026782311499118805,
-0.06300926208496094,
0.05815201997756958,
-0.0007209973409771919,
0.0018204129301011562,
-0.0022789419163018465,
0.07731115072965622,
-0.02917720191180706,
0.05592578276991844,
-0.03767738118767738,
0.008947113528847694,
0.006978073623031378,
0.006851582787930965,
0.018956748768687248,
-0.017270205542445183,
-0.009039873257279396,
-0.0021672083530575037,
0.045131903141736984,
0.013146606273949146,
0.023797128349542618,
-0.047088295221328735,
0.034439217299222946,
0.023308031260967255,
0.027827966958284378,
-0.02907600998878479,
-0.0022388864308595657,
0.02575351856648922,
-0.034135639667510986,
-0.0325334258377552,
-0.039937350898981094,
-0.0036134193651378155,
0.036564264446496964,
-0.05589205026626587,
-0.0005022737313993275,
-0.031201055273413658,
0.01944584585726261,
-0.008938680402934551,
-0.04408624768257141,
-0.0030357784125953913,
-0.019412115216255188,
0.03282013535499573,
0.07434283941984177,
0.0024265144020318985,
-0.006712443195283413,
0.05100107565522194,
0.030610764399170876,
-0.06344776600599289,
-0.04469340294599533,
0.02071075513958931,
-0.005118659697473049,
0.06766412407159805,
0.015330680646002293,
-0.010245751589536667,
-0.06698951125144958,
0.061963606625795364,
0.020171061158180237,
0.01878809556365013,
-0.0497867651283741,
-0.04405251517891884,
-0.020187925547361374,
-0.02398264780640602,
-0.07157690823078156,
-0.00366612384095788,
0.02534874901175499,
-0.040038540959358215,
-0.0034995777532458305,
-0.028131546452641487,
-0.0196482315659523,
0.0392964631319046,
-0.011173350736498833,
0.0045157200656831264,
0.012986385263502598,
0.05538608878850937,
0.05936633050441742,
0.017169013619422913,
-0.07899770140647888,
0.007155160885304213,
-0.08297794312238693,
0.022464759647846222,
0.030003609135746956,
0.08176363259553909,
0.0726562961935997,
0.021132390946149826,
0.05491385608911514,
0.012556316331028938,
0.030374648049473763,
-0.02882302924990654,
0.058927830308675766,
-0.06810262799263,
-0.05643174424767494,
0.011173350736498833,
0.028553182259202003,
-0.010768580250442028,
0.03949885070323944,
-0.05235030874609947,
-0.001758221653290093,
0.017506321892142296,
-0.029902417212724686,
0.03109986148774624,
-0.03558606654405594,
0.0738031417131424,
-0.004039271734654903,
-0.015330680646002293,
-0.03811588138341904,
0.024471746757626534,
0.008053245022892952,
-0.03787976875901222,
0.02851944975554943,
0.03222984820604324,
0.03717141970992088,
0.013340558856725693,
0.06756293028593063,
-0.0159209705889225,
0.025078902021050453,
0.019024210050702095,
0.01641850173473358,
0.0022367783822119236,
-0.026394406333565712,
0.042096126824617386,
0.03561979904770851,
-0.02524755708873272,
-0.007129862438887358,
0.052282847464084625,
-0.031825076788663864,
0.02927839569747448,
-0.056263092905282974,
0.0507986918091774,
-0.01078544557094574,
0.026073962450027466,
0.0033920605201274157,
-0.03400071710348129,
0.01166244875639677,
0.005590891931205988,
-0.08473194390535355,
-0.03720514848828316,
-0.023611608892679214,
-0.07589446008205414,
-0.05582458898425102,
-0.017472591251134872,
0.000610317918471992,
-0.059433791786432266,
-0.005249366629868746,
0.007753883954137564,
0.052485235035419464,
0.010490300133824348,
-0.001979580381885171,
-0.022802067920565605,
-0.021132390946149826,
0.03949885070323944,
0.006210696417838335,
0.0016095949104055762,
0.006729308515787125,
0.012556316331028938,
-0.005751113407313824,
0.048606183379888535,
-0.026124559342861176,
0.029514512047171593,
-0.0755571499466896,
-0.04476086422801018,
0.013289962895214558,
-0.004604263696819544,
0.06843993812799454,
-0.014310321770608425,
-0.01914226822555065,
-0.042838204652071,
0.017067819833755493,
0.029598837718367577,
0.02182387374341488,
0.042905665934085846,
0.01116491761058569,
0.005274664610624313,
0.0006050475058145821,
0.04580652341246605,
-0.010372242890298367,
-0.043715208768844604,
0.010473434813320637,
0.045435480773448944,
0.027946025133132935,
0.001825683400966227,
0.018686901777982712,
-0.0019237137166783214,
-0.0363956093788147,
0.007804479915648699,
0.020828811451792717,
0.03287073224782944,
0.006046258378773928,
0.04742560163140297,
-0.012809298001229763,
0.013197203166782856,
-0.003548065898939967,
-0.005856522358953953,
0.024353688582777977,
-0.054542817175388336,
0.0643247663974762,
-0.043411631137132645,
-0.03642933815717697,
-0.026832906529307365,
-0.02071075513958931,
0.004125706851482391,
-0.005936633329838514,
0.04408624768257141,
-0.011417899280786514,
-0.02801348827779293,
-0.01300325058400631,
0.058590520173311234,
0.035046372562646866,
0.03970123454928398,
-0.06223345547914505,
-0.032331038266420364,
0.0052830977365374565,
-0.022869529202580452,
0.05693770945072174,
-0.041455239057540894,
-0.01929405704140663,
0.051776885986328125,
0.0052282847464084625,
0.044524747878313065,
0.01191542949527502,
0.03255029022693634,
0.018062880262732506,
-0.09006142616271973,
0.016165519133210182,
-0.0547114722430706,
0.00508914515376091,
-0.025584865361452103,
-0.0206601582467556,
-0.04138777777552605,
0.013475482352077961,
-0.02212745137512684,
-0.05491385608911514,
0.0487748384475708,
-0.04007227346301079,
-0.0011289300164207816,
0.02015419490635395,
0.028435124084353447,
-0.11320079863071442,
-0.022549087181687355,
0.0002822325041051954,
-0.004848812706768513,
0.011080591008067131,
0.01517045870423317,
0.04560413584113121,
-0.019226595759391785,
0.012977952137589455,
-0.01627514511346817,
-0.00836947187781334,
-0.03059390000998974,
-0.016089625656604767,
0.010760147124528885,
-0.0032929761800915003,
0.00104249466676265,
0.05467773973941803,
0.009183228947222233,
-0.03491144999861717,
-0.01608119159936905,
0.011578121222555637,
0.003986567258834839,
-0.039431385695934296,
-0.01272497046738863,
-0.06810262799263,
-0.01166244875639677,
-0.014993371441960335,
0.0398024283349514,
0.005751113407313824,
-0.05680278688669205,
0.006893746554851532,
-0.05103480815887451,
0.044018786400556564,
0.032179251313209534,
0.002044934080913663,
-0.03222984820604324,
-0.021351641044020653,
0.02851944975554943,
-0.0026436569169163704,
-0.04236597195267677,
-0.016494395211338997,
0.0015263218665495515,
0.03693530336022377,
-0.03371400386095047,
0.01712684892117977,
0.001358721638098359,
0.021098658442497253,
0.013441751711070538,
-0.012834596447646618,
0.005983013194054365,
0.032988790422677994,
-0.043614014983177185,
-0.02329116500914097,
0.009512105025351048,
0.04223104938864708,
0.030678225681185722,
-0.030205994844436646,
-0.012058786116540432,
-0.00805746205151081,
-0.02998674288392067,
-0.03236477077007294,
0.03956631198525429,
0.03612576052546501,
0.006231778301298618,
0.00019619244267232716,
0.010152991861104965,
-0.06948558986186981,
-0.17013850808143616,
0.0010340620065107942,
-0.006695577874779701,
0.0013397480361163616,
0.052788812667131424,
-0.011544390581548214,
0.05272135138511658,
0.056870248168706894,
-0.018467651680111885,
0.03271894529461861,
0.033376697450876236,
-0.021233582869172096,
0.017050955444574356,
-0.01269967295229435,
0.01633417420089245,
-0.022059988230466843,
0.08743041753768921,
0.03717141970992088,
-0.007817129604518414,
0.036159493029117584,
-0.08169616758823395,
0.012404527515172958,
-0.029666300863027573,
-0.07521983981132507,
0.055352356284856796,
-0.025635460391640663,
-0.10874832421541214,
-0.03511383756995201,
-0.06516803801059723,
-0.01129140891134739,
0.0038347782101482153,
0.006446812767535448,
-0.05160823091864586,
0.054239239543676376,
0.023746533319354057,
-0.017169013619422913,
0.023594744503498077,
0.0697554424405098,
0.01794482208788395,
-0.04125285521149635,
0.007138295564800501,
0.028856759890913963,
-0.001717112143523991,
-0.057983364909887314,
0.009039873257279396,
-0.022245509549975395,
0.014166965149343014,
-0.006063123699277639,
-0.06321164965629578,
-0.015077698975801468,
-0.015996865928173065,
0.06118780001997948,
0.02801348827779293,
0.021908199414610863,
0.013787493109703064,
0.01718587800860405,
-0.012252738699316978,
0.029244665056467056,
-0.05703889951109886,
-0.010819176211953163,
0.02937958762049675,
-0.002578303450718522,
-0.03501264378428459,
-0.006408865097910166,
-0.007669556420296431,
0.01176364067941904,
-0.046042636036872864,
-0.01652812585234642,
-0.04519936442375183,
0.0018573059933260083,
-0.010414405725896358,
-0.05946752429008484,
-0.016604021191596985,
-0.009630163200199604,
0.0016359471483156085,
0.013475482352077961,
0.05791590362787247,
-0.02646186761558056,
0.008196601644158363,
0.04465967044234276,
-0.020525233820080757,
0.004321767948567867,
-0.008483313955366611,
0.005489699076861143,
-0.027676178142428398,
-0.041488971561193466,
0.012058786116540432,
-0.0033435726072639227,
0.014858447946608067,
0.016797972843050957,
-0.019412115216255188,
0.043715208768844604,
0.041151661425828934,
0.04550294205546379,
-0.013913983479142189,
0.02524755708873272,
0.03374773636460304,
-0.03344415873289108,
0.018484516069293022,
0.022700875997543335,
-0.08007708191871643,
-0.006282374728471041,
-0.04256835952401161,
-0.00043823779560625553,
-0.01398144569247961,
-0.048268873244524,
-0.017050955444574356,
-0.019327787682414055,
-0.009571134112775326,
-0.030425244942307472,
0.013197203166782856,
-0.0005051724729128182,
-0.09181542694568634,
-0.013256232254207134,
-0.013500780798494816,
0.005485482979565859,
0.03835199773311615,
0.01899047940969467,
0.02060956135392189,
0.029042279347777367,
0.007205757312476635,
-0.06375134736299515,
-0.10874832421541214,
-0.0029556674417108297,
-0.025534268468618393,
-0.0159209705889225,
-0.04037585109472275,
-0.023594744503498077,
-0.020322849974036217,
-0.03642933815717697,
0.056566670536994934,
0.010920369066298008,
-0.008318875916302204,
-0.033376697450876236,
-0.09775206446647644,
-0.0035016860347241163,
0.00588182033970952,
-0.010591492988169193,
0.01269967295229435,
-0.021486563608050346,
0.03249969333410263,
-0.0438501313328743,
0.04142151027917862,
-0.02020479179918766,
-0.007749667391180992,
0.09370435774326324,
0.030661361292004585,
-0.031673286110162735,
0.032482828944921494,
-0.025230690836906433,
0.04159016162157059,
0.06368388235569,
-0.00806589424610138,
-0.023813994601368904,
0.061255261301994324,
0.0298855509608984,
-0.00501325074583292,
0.031015535816550255,
-0.03140344098210335,
-0.01292735617607832,
0.000666711712256074,
0.021486563608050346,
-0.011864833533763885,
-0.006446812767535448,
-0.05690397694706917,
-0.029953012242913246,
-0.031015535816550255,
0.007593662012368441,
-0.052282847464084625,
0.025028305128216743,
-0.03204432502388954,
0.02877243235707283,
-0.004701239988207817,
-0.009183228947222233,
0.042804475873708725,
-0.010507166385650635,
0.01078544557094574,
-0.019833751022815704,
0.006379351019859314,
-0.023257434368133545,
0.04020719602704048,
-0.01561739295721054,
-0.001865738769993186,
0.03572099283337593,
-0.01262377854436636,
0.010169857181608677,
-0.025736654177308083,
-0.026529328897595406,
-0.049010954797267914,
-0.0736682191491127,
-0.002113449852913618,
0.07306106388568878,
0.026799175888299942,
0.02750752493739128,
0.010802310891449451,
0.004125706851482391,
0.014166965149343014,
-0.02025538682937622,
0.05022526532411575,
-0.014689793810248375,
-0.06611250340938568,
-0.01893988437950611,
0.017160579562187195,
-0.038014691323041916,
0.02666425332427025,
0.030779419466853142,
0.043006859719753265,
-0.007045535370707512,
0.04277074337005615,
-0.011384168639779091,
0.028350796550512314,
-0.06523550301790237,
0.029598837718367577,
0.06864231824874878,
0.03305625170469284,
-0.030020473524928093,
0.0956607460975647,
-0.03420310094952583,
0.016140220686793327,
-0.03199373185634613,
0.01850138232111931,
0.036969032138586044,
0.023341761901974678,
-0.0281146802008152,
0.01441151462495327,
0.005093361251056194,
-0.019968675449490547,
-0.008040595799684525,
-0.02332489751279354,
-0.0081333564594388
] |
725,172 | tf_keras.src.engine.sequential | compute_output_shape | null | def compute_output_shape(self, input_shape):
shape = input_shape
for layer in self.layers:
shape = layer.compute_output_shape(shape)
return shape
| (self, input_shape) | [
-0.05875066667795181,
-0.09206004440784454,
0.008556974120438099,
-0.004635930061340332,
-0.008323010988533497,
0.0036697504110634327,
-0.03070978820323944,
0.03507709503173828,
0.04672324284911156,
0.010710299015045166,
0.03299742564558983,
-0.03285878151655197,
0.0037369064521044493,
-0.007062211632728577,
0.07542268186807632,
0.07590793818235397,
0.033846624195575714,
-0.010502331890165806,
-0.032529499381780624,
-0.021385936066508293,
-0.00016301576397381723,
-0.0035527688451111317,
0.033621326088905334,
-0.08145372569561005,
0.007226851768791676,
0.020328771322965622,
0.03431455045938492,
-0.013803807087242603,
0.008890587836503983,
-0.04831765592098236,
-0.07847286760807037,
0.02258174680173397,
0.011836785823106766,
0.03736473247408867,
0.03466115891933441,
0.04616866633296013,
0.02942732535302639,
0.0937931016087532,
0.06401916593313217,
-0.004540611989796162,
0.02001681923866272,
-0.04693121090531349,
-0.03398526832461357,
0.06550959497690201,
0.0184743981808424,
0.041558731347322464,
-0.08145372569561005,
-0.021801870316267014,
-0.05448734387755394,
-0.024921374395489693,
-0.00659428583458066,
-0.046272650361061096,
-0.009193873032927513,
0.047208499163389206,
-0.005177510902285576,
-0.022633736953139305,
0.03861253336071968,
-0.024678746238350868,
-0.040692202746868134,
-0.03282411769032478,
-0.041940003633499146,
-0.006213013082742691,
0.030432498082518578,
-0.0016041618073359132,
-0.005593444686383009,
-0.03168030083179474,
-0.0758386179804802,
0.009800443425774574,
0.02502535842359066,
0.07008486986160278,
0.006169686559587717,
-0.008916583843529224,
0.048490963876247406,
-0.009211203083395958,
0.007707775570452213,
-0.02901139110326767,
0.10072533041238785,
-0.0032494838815182447,
0.01904630847275257,
-0.06980757415294647,
-0.08270152658224106,
0.036186251789331436,
-0.042771872133016586,
0.01447103451937437,
0.06686137616634369,
-0.01972220093011856,
0.01843973807990551,
0.05805744230747223,
-0.10765756666660309,
-0.038889821618795395,
0.05531921237707138,
0.03329204395413399,
0.0346958227455616,
0.06772790849208832,
-0.018145117908716202,
0.015216249041259289,
-0.05195707827806473,
-0.031073730438947678,
-0.02242577075958252,
-0.011862781830132008,
-0.08117643743753433,
0.017659861594438553,
-0.047693755477666855,
0.04384636878967285,
0.004869893193244934,
0.03337869793176651,
0.056081756949424744,
-0.026689093559980392,
-0.011082906275987625,
-0.004718250595033169,
0.04873359203338623,
-0.0008156204130500555,
0.029825927689671516,
0.01719193533062935,
0.03431455045938492,
-0.06020643562078476,
-0.018387746065855026,
0.023378953337669373,
-0.04360374063253403,
0.024037513881921768,
-0.038404565304517746,
0.057364221662282944,
0.047173839062452316,
-0.019427580758929253,
0.02573591098189354,
0.03391594439744949,
0.008115043863654137,
0.03507709503173828,
-0.01407243125140667,
0.011455513536930084,
-0.024557432159781456,
0.04086550697684288,
-0.04114279896020889,
0.02679307758808136,
-0.004369472619146109,
0.060864996165037155,
-0.03563167154788971,
-0.05705226957798004,
-0.029150035232305527,
0.01824910007417202,
0.0645737424492836,
0.01786782778799534,
0.027746258303523064,
0.008102046325802803,
0.010883604176342487,
0.039721690118312836,
0.06956494599580765,
-0.03077911026775837,
0.010060401633381844,
-0.008439992554485798,
-0.012183398008346558,
-0.015909472480416298,
0.021351274102926254,
-0.03145500272512436,
-0.0220098365098238,
-0.009150546044111252,
-0.00014730992552358657,
-0.02020745724439621,
-0.005537120159715414,
-0.053828783333301544,
-0.06727731227874756,
0.028127532452344894,
0.0000062704880292585585,
-0.02686239965260029,
-0.025978539139032364,
0.03090042434632778,
0.07313504815101624,
-0.0009066059719771147,
0.00698855658993125,
-0.01757320761680603,
0.017937149852514267,
-0.02570125088095665,
0.022599076852202415,
0.0024067843332886696,
-0.011351530440151691,
0.016542037948966026,
-0.0244187880307436,
-0.045891378074884415,
-0.031697630882263184,
0.045059509575366974,
0.03375997021794319,
-0.025337308645248413,
-0.04994673281908035,
0.059062618762254715,
-0.039271093904972076,
0.03681015223264694,
-0.014938959851861,
0.014479699544608593,
0.04710451886057854,
0.024297473952174187,
-0.08679154515266418,
0.02310166321694851,
-0.031212374567985535,
0.00324515113607049,
0.02084868773818016,
-0.04343043267726898,
0.00954048428684473,
0.0607263520359993,
-0.03542370721697807,
-0.03292810171842575,
-0.02942732535302639,
-0.03240818530321121,
-0.005745087284594774,
0.042459920048713684,
0.00853964313864708,
-0.018127785995602608,
-0.011238881386816502,
-0.008708616718649864,
-0.019895505160093307,
-0.0014817646006122231,
-0.037538036704063416,
0.013067257590591908,
0.026550449430942535,
0.006962560582906008,
0.05414073169231415,
0.009609806351363659,
-0.01407243125140667,
0.0009499324369244277,
-0.0032906439155340195,
0.0044799549505114555,
-0.019704869017004967,
-0.008452990092337132,
0.03878583759069443,
0.0002594171091914177,
-0.0245747622102499,
-0.02762494422495365,
-0.03145500272512436,
0.005333486013114452,
0.026897059753537178,
-0.04925350844860077,
-0.0210393238812685,
-0.05635904520750046,
-0.021229960024356842,
0.018647704273462296,
0.01802380383014679,
0.044158317148685455,
-0.021992506459355354,
-0.08859392255544662,
-0.0019301933934912086,
-0.0033924609888345003,
-0.05039732903242111,
-0.03504243493080139,
0.00814537238329649,
-0.06453908234834671,
-0.05327420309185982,
0.02499069646000862,
0.020935341715812683,
0.02502535842359066,
0.004475622437894344,
-0.003164997324347496,
-0.03736473247408867,
-0.023534927517175674,
0.02136860601603985,
-0.04429696127772331,
0.03999897837638855,
-0.009323852136731148,
-0.017564542591571808,
-0.01161148864775896,
-0.008994570933282375,
0.019254274666309357,
0.04252924397587776,
0.041489407420158386,
0.06270203739404678,
0.023881539702415466,
-0.017070621252059937,
-0.031818944960832596,
0.027572952210903168,
-0.01209674496203661,
-0.06935698539018631,
0.0036350891459733248,
0.03502510115504265,
0.061731528490781784,
-0.025527944788336754,
-0.04259856790304184,
-0.0016388229560106993,
-0.0468965508043766,
0.005862068850547075,
0.07556132972240448,
-0.0033036419190466404,
0.012850625440478325,
0.043291788548231125,
-0.054729972034692764,
-0.05323954299092293,
-0.01727858930826187,
-0.03913244977593422,
0.010848943144083023,
0.008942579850554466,
-0.04779773950576782,
0.009722455404698849,
-0.018318424001336098,
0.047555111348629,
-0.009783112443983555,
-0.06644544750452042,
0.06762392073869705,
-0.04876825213432312,
0.0245747622102499,
-0.016464050859212875,
-0.008089047856628895,
0.05102122947573662,
0.014176414348185062,
-0.06370721012353897,
0.04183601960539818,
-0.004588271025568247,
-0.00473124859854579,
-0.03216555714607239,
-0.02743430808186531,
0.023569589480757713,
-0.029028721153736115,
-0.01360450591892004,
0.0488375760614872,
-0.032529499381780624,
-0.012668654322624207,
-0.047624435275793076,
-0.011186889372766018,
0.033396027982234955,
-0.02464408427476883,
0.04422764107584953,
0.022755051031708717,
0.03036317601799965,
0.06318729370832443,
-0.03639421984553337,
-0.017599204555153847,
-0.0027122357860207558,
-0.0016669852193444967,
-0.0539674274623394,
-0.02596120908856392,
-0.004657593555748463,
-0.0029202026780694723,
0.04661926254630089,
-0.000791249331086874,
-0.0453021377325058,
-0.052927590906620026,
0.006126360036432743,
0.05407141149044037,
-0.001246718573383987,
-0.052546318620443344,
0.06363788992166519,
-0.028855416923761368,
-0.013682493008673191,
-0.015753498300909996,
0.016715344041585922,
0.041974663734436035,
-0.02209649048745632,
0.04256390407681465,
-0.016923312097787857,
0.025146672502160072,
0.01418508030474186,
-0.02400285378098488,
-0.021316614001989365,
0.03698345646262169,
0.00658562034368515,
0.0009342266130261123,
-0.020900679752230644,
0.003602594370022416,
0.02724367193877697,
0.05230369046330452,
-0.054729972034692764,
0.0012846292229369283,
0.02020745724439621,
0.04346509650349617,
0.03771134093403816,
-0.0033036419190466404,
0.050362665206193924,
-0.016698013991117477,
0.050674617290496826,
0.002842215122655034,
0.019895505160093307,
-0.025753242895007133,
-0.0004551985184662044,
-0.02197517640888691,
-0.05275428667664528,
-0.009575145319104195,
-0.028092870488762856,
-0.05535387247800827,
-0.02826617658138275,
0.10315161198377609,
-0.019687538966536522,
-0.011169559322297573,
0.007985064759850502,
-0.012105409987270832,
-0.031056400388479233,
0.04270254820585251,
0.03006855584681034,
-0.007235517259687185,
0.02110864594578743,
0.019774192944169044,
-0.048560284078121185,
-0.057780154049396515,
-0.0632912814617157,
0.02814486250281334,
-0.02213115058839321,
0.04183601960539818,
-0.019254274666309357,
-0.04083084687590599,
0.009107219986617565,
0.013422534801065922,
-0.01207941398024559,
0.06890638917684555,
-0.011958099901676178,
0.01648138090968132,
0.004122511949390173,
-0.0529969148337841,
-0.02325763925909996,
0.04183601960539818,
-0.025337308645248413,
-0.071956567466259,
-0.014878302812576294,
0.10883604735136032,
-0.005827407818287611,
-0.04831765592098236,
-0.0035830973647534847,
0.009514488279819489,
0.012313377112150192,
0.008994570933282375,
-0.017391236498951912,
0.0016388229560106993,
0.002515100408345461,
0.05566582456231117,
0.05764150992035866,
0.03649820014834404,
0.019860845059156418,
0.08526645600795746,
0.07722506672143936,
0.017399903386831284,
0.011802124790847301,
-0.02133394405245781,
-0.004230828024446964,
0.08006727695465088,
0.024661416187882423,
0.04388102889060974,
-0.0003089717647526413,
0.04180135950446129,
-0.06384585797786713,
-0.004300150088965893,
-0.018543720245361328,
-0.022564414888620377,
0.05850803852081299,
0.03878583759069443,
-0.014046435244381428,
0.012044752947986126,
0.07500675320625305,
0.051991742104291916,
0.035874299705028534,
0.025493282824754715,
0.06526696681976318,
0.02949664741754532,
-0.02570125088095665,
-0.003559267846867442,
-0.04339577257633209,
0.0020569232292473316,
0.028768762946128845,
-0.041108135133981705,
0.048456303775310516,
-0.0529969148337841,
0.005879399366676807,
-0.011091571301221848,
0.01882101036608219,
-0.0395137220621109,
-0.013621835969388485,
-0.08048321306705475,
0.017373906448483467,
0.033690646290779114,
0.05039732903242111,
0.012270051054656506,
-0.010398347862064838,
-0.08561306446790695,
0.010277033783495426,
-0.006555291824042797,
0.03733006864786148,
0.03861253336071968,
0.07958202064037323,
0.0032126563601195812,
-0.03093508630990982,
-0.02310166321694851,
0.06526696681976318,
-0.013829803094267845,
0.019618216902017593,
0.0379193089902401,
0.006347325164824724,
-0.029479317367076874,
-0.04516349360346794,
0.01768585667014122,
-0.08013660460710526,
-0.035874299705028534,
0.021663226187229156,
0.04013762250542641,
-0.026966383680701256,
0.006009378470480442,
0.04169737547636032,
-0.013214567676186562,
-0.058612022548913956,
0.029548639431595802,
-0.003240818390622735,
-0.05535387247800827,
-0.008730280213057995,
-0.06949562579393387,
0.04862960800528526,
-0.03239085525274277,
-0.010762290097773075,
0.03537171334028244,
-0.007794428616762161,
0.056948285549879074,
0.005567448679357767,
0.0017395570175722241,
-0.028092870488762856,
0.0131712406873703,
-0.018145117908716202,
-0.027364986017346382,
-0.039721690118312836,
0.03180161491036415,
-0.08935647457838058,
0.036151591688394547,
-0.01537222508341074,
0.01577082835137844,
-0.023950861766934395,
0.010051736608147621,
0.020831357687711716,
0.03736473247408867,
-0.00020336352463345975,
0.025337308645248413,
-0.007018885109573603,
0.009947752580046654,
-0.039721690118312836,
0.021056655794382095,
-0.03781532496213913,
0.04956546053290367,
0.011594158597290516,
-0.02630782127380371,
0.008968574926257133,
0.010857608169317245,
-0.035094425082206726,
-0.031749624758958817,
-0.024037513881921768,
0.0780569314956665,
-0.019011646509170532,
-0.022737720981240273,
-0.014765654690563679,
-0.01866503432393074,
-0.07861151546239853,
0.0017070621252059937,
-0.010181715711951256,
0.008665289729833603,
-0.011108902283012867,
-0.005489461123943329,
0.002053673844784498,
0.08554374426603317,
0.05216504633426666,
0.009193873032927513,
0.0031281698029488325,
-0.007647118531167507,
-0.02209649048745632,
0.0010598732624202967,
0.0305191520601511,
0.04356907680630684,
0.08270152658224106,
0.014306394383311272,
0.06221678480505943,
-0.009592476300895214,
-0.04783239960670471,
0.0010842444607988,
0.01281596440821886,
-0.009566480293869972,
-0.003048015758395195,
-0.015094934962689877,
-0.01629074476659298,
0.034193236380815506,
-0.04648061469197273,
0.036290235817432404,
-0.013951117172837257,
0.013916456140577793,
0.003611259628087282,
0.01707928627729416,
0.01360450591892004,
-0.08401865512132645,
0.06630679965019226,
-0.018786348402500153,
-0.006511965300887823,
-0.013136579655110836,
0.03308407589793205,
0.022633736953139305,
-0.01700996421277523,
-0.02412416785955429,
0.03573565557599068,
0.005493794102221727,
0.010736294090747833,
-0.005753752775490284,
-0.045406121760606766,
-0.033621326088905334,
-0.02765960618853569,
0.02181920036673546,
-0.0273129940032959,
-0.0024067843332886696,
0.028127532452344894,
0.02942732535302639,
-0.0244187880307436,
-0.001622575568035245,
-0.04044957458972931,
-0.017113948240876198,
0.017139943316578865,
-0.02762494422495365,
0.0009320602403022349,
0.0015662511577829719,
0.00888192281126976,
0.053343527019023895,
0.004653260577470064,
-0.05216504633426666,
-0.012044752947986126,
0.023725563660264015,
-0.004380304366350174,
-0.02178453840315342,
0.035319723188877106,
-0.03337869793176651,
0.03270280361175537,
-0.048075027763843536,
-0.049010880291461945,
-0.015380890108644962,
0.007257180288434029,
0.004466956946998835,
-0.007768432609736919,
0.019860845059156418,
0.05240767449140549,
-0.005857736337929964,
0.02540663070976734,
-0.02949664741754532,
-0.022495092824101448,
0.09136682003736496,
-0.01998215913772583,
-0.016715344041585922,
0.022113820537924767,
-0.004843897186219692,
0.02830083668231964,
-0.035007771104574203,
-0.0003977909800596535,
-0.07438284903764725,
0.05102122947573662,
0.0041680047288537025,
-0.008565639145672321,
0.0324428454041481,
-0.030051225796341896,
-0.0697035938501358,
0.008600300177931786,
0.03128169849514961,
0.05230369046330452,
-0.05628972500562668,
0.02672375552356243,
-0.0626673772931099,
0.0208833497017622,
0.0092371990904212,
-0.005996380932629108,
0.006624614354223013,
-0.04582205414772034,
-0.03604760766029358,
0.016949307173490524,
0.0029202026780694723,
0.06339526176452637,
-0.006524963304400444,
0.004913219716399908,
0.0007576713105663657,
-0.028023548424243927,
-0.032789457589387894,
-0.049426816403865814,
-0.016836658120155334,
-0.06245940923690796,
0.011074240319430828,
-0.01930626668035984,
-0.011455513536930084,
-0.032910771667957306,
-0.0016637357184663415,
-0.018301092088222504,
-0.047208499163389206,
-0.018786348402500153,
0.015822820365428925,
-0.0031953256111592054,
-0.0199128370732069,
-0.03604760766029358,
-0.03070978820323944,
0.0037802327424287796,
0.02284170500934124,
0.06807451695203781,
-0.017564542591571808,
0.00246527511626482,
0.023309631273150444,
-0.011221550405025482,
0.03604760766029358,
0.05570048466324806,
-0.07722506672143936,
-0.014176414348185062,
-0.025389300659298897,
0.013223232701420784,
0.03992965817451477,
0.020554067566990852,
-0.015640849247574806,
0.05684430152177811,
-0.054729972034692764,
-0.005667099729180336,
0.04034559056162834,
0.023344291374087334,
-0.009583811275660992,
-0.039756350219249725,
0.03771134093403816,
0.003201824612915516,
-0.03460916876792908,
-0.07154063880443573,
-0.01840507611632347,
0.02540663070976734,
0.06751994043588638,
-0.022997679188847542,
-0.02528531663119793,
0.0034574507735669613,
0.04200932756066322,
-0.035770319402217865,
-0.040657542645931244,
0.009263195097446442,
-0.05441802367568016,
-0.018093125894665718,
0.007235517259687185,
-0.02871677093207836,
0.042459920048713684,
0.01328388974070549,
0.015822820365428925,
-0.016316741704940796,
0.011039579287171364,
0.05091724544763565,
0.0007186774746514857,
-0.05885465070605278,
0.010199046693742275,
0.01742589846253395,
0.0026645767502486706,
0.009471162222325802,
0.06880240142345428,
-0.04270254820585251,
0.023240307345986366,
-0.025008026510477066,
0.03635955601930618,
0.016048116609454155,
0.04218263179063797,
0.014393046498298645,
-0.040241606533527374,
-0.034539844840765,
-0.03878583759069443,
0.046376634389162064,
-0.012599332258105278,
0.015796823427081108,
0.028890077024698257,
0.06003313139081001,
-0.01677600108087063,
0.05670565739274025,
-0.030987078323960304,
0.00043488925439305604,
-0.02630782127380371,
0.008942579850554466,
0.01786782778799534,
0.01795448176562786,
-0.08651425689458847,
0.024626754224300385,
-0.018457068130373955,
0.030536482110619545,
-0.05615108087658882,
-0.0404842346906662,
0.0057017607614398,
0.008141039870679379,
-0.045960698276758194,
0.012789968401193619,
0.01753854751586914,
0.038855161517858505,
0.013483191840350628,
0.0010089647257700562,
-0.046376634389162064
] |
725,183 | tf_keras.src.engine.sequential | get_config | null | def get_config(self):
layer_configs = []
serialize_obj_fn = serialization_lib.serialize_keras_object
if getattr(self, "use_legacy_config", None):
serialize_obj_fn = legacy_serialization.serialize_keras_object
for layer in super().layers:
# `super().layers` include the InputLayer if available (it is
# filtered out of `self.layers`). Note that
# `self._self_tracked_trackables` is managed by the tracking
# infrastructure and should not be used.
layer_configs.append(serialize_obj_fn(layer))
config = training.Model.get_config(self)
config["name"] = self.name
config["layers"] = copy.deepcopy(layer_configs)
if not self._is_graph_network and self._build_input_shape is not None:
config["build_input_shape"] = self._build_input_shape
return config
| (self) | [
0.002185183111578226,
-0.06527962535619736,
-0.03064580075442791,
0.01715235598385334,
-0.03302699699997902,
0.015622969716787338,
-0.06640246510505676,
0.00839710421860218,
0.014538847841322422,
0.0019032630370929837,
0.0012801348930224776,
-0.05633561685681343,
-0.027838699519634247,
0.03531139716506004,
0.05687767639756203,
-0.012728751637041569,
0.016165031120181084,
-0.048475734889507294,
-0.017558902502059937,
-0.050256792455911636,
0.048282139003276825,
-0.0872718095779419,
-0.014509809203445911,
0.01984330080449581,
0.026948170736432076,
0.09880996495485306,
0.018033204600214958,
0.011731746606528759,
0.0012704553082585335,
-0.0037387683987617493,
-0.09617709368467331,
0.013522484339773655,
0.0282646045088768,
0.015439056791365147,
-0.009636100381612778,
0.024896083399653435,
-0.01474212110042572,
0.04259049892425537,
-0.06609271466732025,
-0.01579720340669155,
0.03835080936551094,
-0.039473649114370346,
-0.029271289706230164,
-0.01945611461997032,
0.03529203683137894,
0.04135150462388992,
-0.03916390240192413,
0.05447712168097496,
0.027277279645204544,
-0.027703184634447098,
-0.0021924427710473537,
0.0036589112132787704,
-0.034788694232702255,
0.06411806493997574,
-0.03211710974574089,
-0.13915477693080902,
0.028380760923027992,
-0.03775067254900932,
-0.011538153514266014,
0.03256237506866455,
-0.06396318972110748,
-0.013445046730339527,
0.030626442283391953,
-0.026483546942472458,
-0.05436096712946892,
-0.06857070326805115,
-0.05621946230530739,
-0.03637615963816643,
0.025670455768704414,
0.0354662723839283,
0.010415313765406609,
-0.06675092875957489,
0.017684737220406532,
-0.04286153241991997,
-0.07139716297388077,
-0.025747893378138542,
0.039802759885787964,
-0.017665378749370575,
-0.002468313090503216,
-0.05606458708643913,
-0.03777002915740013,
0.03912518173456192,
-0.04150637984275818,
0.0018500249134376645,
0.049869604408741,
-0.03370457515120506,
-0.02474120818078518,
0.004631716758012772,
0.0031071705743670464,
-0.026948170736432076,
0.03045220859348774,
0.04417796432971954,
0.031110424548387527,
0.027664465829730034,
-0.000575637212023139,
-0.019901379942893982,
-0.028864743188023567,
0.0012281067902222276,
0.04475874453783035,
-0.014122623018920422,
-0.04758520424365997,
-0.020153051242232323,
-0.039086464792490005,
-0.014161341823637486,
-0.05254118889570236,
-0.07015816867351532,
-0.02898089960217476,
-0.02266976237297058,
-0.04928882420063019,
-0.016416702419519424,
0.024121711030602455,
0.029987584799528122,
0.009360230527818203,
0.02621251717209816,
0.051689378917217255,
0.018033204600214958,
0.004181612748652697,
0.012157651595771313,
0.026483546942472458,
-0.008958525024354458,
-0.06891917437314987,
0.07848268002271652,
0.008300308138132095,
0.00030158189474605024,
0.01584560237824917,
0.019127007573843002,
0.010647624731063843,
0.02832268364727497,
0.04832085967063904,
-0.11483947932720184,
0.038583122193813324,
0.009999088011682034,
-0.0604010745882988,
-0.036201924085617065,
0.05312196910381317,
-0.020153051242232323,
0.03294955939054489,
0.04034481942653656,
-0.019746504724025726,
0.0457267090678215,
0.04925010725855827,
0.020578956231474876,
0.04197100177407265,
0.007129068952053785,
-0.062027256935834885,
-0.0326978899538517,
0.013996787369251251,
-0.05408993735909462,
-0.009660299867391586,
-0.07991527020931244,
0.025031598284840584,
0.021353328600525856,
-0.0292325709015131,
0.00035693743848241866,
-0.023153744637966156,
-0.002459843410179019,
-0.0274321548640728,
-0.012477080337703228,
0.03198159486055374,
0.007414618972688913,
-0.045068494975566864,
0.015952078625559807,
0.03203967213630676,
-0.040306102484464645,
-0.01753954216837883,
-0.03898966684937477,
-0.003213646821677685,
-0.05505790188908577,
0.02594148740172386,
0.002603828441351652,
0.0051495786756277084,
-0.020094972103834152,
0.03122658096253872,
0.035563066601753235,
-0.032020311802625656,
0.03643423691391945,
0.008130913600325584,
-0.0035451753064990044,
0.008789130486547947,
0.003975919913500547,
0.03192351758480072,
0.020791908726096153,
-0.016165031120181084,
0.02222449705004692,
-0.0035112963523715734,
0.008987563662230968,
0.0009117029258050025,
0.03006502240896225,
-0.009413468651473522,
0.005633561871945858,
0.03262045234441757,
0.036453597247600555,
0.0010556877823546529,
0.012786829844117165,
-0.04684955254197121,
0.014471090398728848,
0.03835080936551094,
0.03763451427221298,
-0.011828543618321419,
0.05083756893873215,
0.02286335453391075,
-0.034595102071762085,
-0.017616979777812958,
0.0038960627280175686,
-0.035872817039489746,
-0.014800199307501316,
-0.0013527324190363288,
-0.06764145940542221,
0.001401130692102015,
0.04259049892425537,
-0.023463493213057518,
0.006727362982928753,
0.04181612655520439,
0.012961063534021378,
0.05137963220477104,
-0.05532893165946007,
-0.041274067014455795,
0.012951384298503399,
-0.004033998120576143,
0.02094678208231926,
0.02975527197122574,
0.011809184215962887,
0.06477627903223038,
-0.015971437096595764,
-0.021701795980334282,
-0.009248914197087288,
0.0037823268212378025,
-0.060168761759996414,
0.0105992266908288,
-0.02698688954114914,
-0.00491242716088891,
-0.05370274931192398,
-0.03442086651921272,
0.011702707968652248,
0.012399643659591675,
0.06946123391389847,
-0.024295944720506668,
-0.052928376942873,
-0.009500585496425629,
-0.005531925242394209,
0.03862183913588524,
-0.035621147602796555,
-0.0012402063002809882,
-0.019436756148934364,
-0.025534940883517265,
-0.04530080407857895,
0.027916137129068375,
0.04684955254197121,
0.012341565452516079,
-0.006064306478947401,
0.07879242300987244,
0.009031121619045734,
0.011509114876389503,
0.07182306796312332,
-0.03533075749874115,
-0.01923348382115364,
-0.03912518173456192,
-0.031768642365932465,
0.02627059444785118,
-0.015332580544054508,
-0.012525479309260845,
0.008426143787801266,
-0.006286938674747944,
0.03548562899231911,
0.03142017498612404,
-0.00936507061123848,
0.0326978899538517,
-0.00961674191057682,
-0.01743306592106819,
-0.0029232571832835674,
0.13017205893993378,
0.052928376942873,
-0.016939403489232063,
-0.02152756229043007,
0.034595102071762085,
-0.048979077488183975,
0.01069602370262146,
-0.003339482471346855,
-0.002075077034533024,
0.02005625329911709,
0.029910147190093994,
-0.03511780500411987,
-0.00011925642320420593,
-0.02330861985683441,
0.018052564933896065,
-0.05923951417207718,
-0.028109731152653694,
-0.030103739351034164,
0.005565803963690996,
-0.010889616794884205,
-0.0008893187041394413,
0.014277497306466103,
-0.03604705259203911,
0.009369909763336182,
0.03749899938702583,
-0.042551781982183456,
-0.00027919767308048904,
0.026580344885587692,
0.019136685878038406,
0.0034483785275369883,
0.007090350612998009,
0.03153632953763008,
-0.0015414857771247625,
0.04394565150141716,
0.01374511606991291,
-0.0343627892434597,
0.04882420226931572,
-0.012264127843081951,
-0.014567887410521507,
0.03281404450535774,
-0.031207220628857613,
-0.022592324763536453,
0.07554005831480026,
0.006882237736135721,
-0.023405415937304497,
-0.06028491631150246,
0.05738101899623871,
-0.012583556585013866,
0.014287177473306656,
0.0495985746383667,
-0.037866827100515366,
0.03430471196770668,
-0.05931695178151131,
-0.0109476950019598,
0.04952113702893257,
-0.0382346548140049,
0.08502613008022308,
0.004776911810040474,
0.010531469248235226,
0.029522961005568504,
-0.05439968407154083,
-0.041467659175395966,
0.025670455768704414,
0.02787741832435131,
-0.02319246344268322,
-0.003044252749532461,
0.0239668358117342,
0.04723673686385155,
-0.0239668358117342,
-0.039221979677677155,
0.012428682297468185,
0.020327284932136536,
-0.03929941728711128,
-0.005057621747255325,
-0.05474815145134926,
0.008101874962449074,
0.009369909763336182,
0.0302005372941494,
-0.05796179920434952,
0.030084380879998207,
-0.04541696235537529,
-0.02164371870458126,
-0.013783834874629974,
0.054438404738903046,
0.004585738759487867,
0.01449044980108738,
-0.03643423691391945,
-0.03624064475297928,
0.01664901338517666,
-0.004781751893460751,
0.017452426254749298,
0.00966998003423214,
0.02261168323457241,
0.06810608506202698,
0.05838770419359207,
0.0446038693189621,
0.00491242716088891,
-0.007216185797005892,
0.07852139323949814,
-0.03988019749522209,
-0.0313040167093277,
0.03128466010093689,
0.03699565678834915,
-0.05370274931192398,
0.012690032832324505,
0.027916137129068375,
-0.054903026670217514,
-0.006979034282267094,
0.016135992482304573,
-0.017365308478474617,
0.029968224465847015,
0.04646236449480057,
0.009636100381612778,
0.015322900377213955,
0.0318654365837574,
0.006524090189486742,
0.003329802770167589,
-0.04874676465988159,
0.04754648730158806,
-0.021546920761466026,
-0.042822811752557755,
0.010908976197242737,
-0.0684545487165451,
0.06938380002975464,
-0.05285093933343887,
0.0030321532394737005,
0.0034314391668885946,
0.04983088746666908,
-0.026812655851244926,
-0.014606606215238571,
-0.01997881755232811,
-0.06481499969959259,
0.06407934427261353,
0.003765387460589409,
0.03393688425421715,
-0.015952078625559807,
0.008740732446312904,
0.09687402844429016,
0.010560507886111736,
-0.03070387989282608,
-0.04646236449480057,
0.01942707598209381,
-0.01715235598385334,
0.03558242693543434,
-0.005072141531854868,
0.03262045234441757,
0.011741426773369312,
-0.013938709162175655,
0.034207914024591446,
-0.005333492066711187,
-0.004592998418956995,
0.04386821389198303,
0.014916354790329933,
-0.01795576699078083,
0.03006502240896225,
0.06853199005126953,
0.0014204899780452251,
0.07836651802062988,
-0.0421258769929409,
-0.020249847322702408,
-0.02011433243751526,
0.03444022685289383,
0.050256792455911636,
-0.01422909926623106,
0.0020061093382537365,
-0.006412774324417114,
0.09555759280920029,
-0.05428352952003479,
-0.03610512986779213,
0.015497134067118168,
0.01111224852502346,
-0.018004165962338448,
-0.004914847202599049,
0.038583122193813324,
-0.01615535095334053,
0.052773501724004745,
-0.06353728473186493,
0.04723673686385155,
-0.01709427870810032,
-0.014413012191653252,
0.01817839965224266,
-0.04890163987874985,
0.017994485795497894,
-0.03397560492157936,
-0.002075077034533024,
-0.01679420843720436,
0.029329366981983185,
-0.02518647350370884,
-0.026522265747189522,
-0.0007277893600985408,
0.0004389120440464467,
0.00724522490054369,
0.005410929676145315,
0.0026086680591106415,
-0.015942398458719254,
-0.028864743188023567,
0.055212777107954025,
0.015894001349806786,
-0.03494356945157051,
0.013512804172933102,
0.06574424356222153,
0.03184607997536659,
-0.023618368431925774,
0.003404820105060935,
-0.04804982990026474,
0.025457503274083138,
0.049056511372327805,
0.041467659175395966,
-0.030916832387447357,
-0.050411663949489594,
-0.029329366981983185,
-0.03618256747722626,
-0.08518099784851074,
-0.028419479727745056,
0.06330496817827225,
0.01285458728671074,
-0.03347226232290268,
0.00573519803583622,
-0.013222414068877697,
0.009427987970411777,
-0.05668408423662186,
0.0008088565082289279,
-0.018362313508987427,
0.02851627580821514,
-0.010492750443518162,
0.019446436315774918,
0.048785481601953506,
-0.0017737975576892495,
0.06117544695734978,
0.03058772347867489,
0.006204661447554827,
-0.017713775858283043,
0.005517405923455954,
0.02017240971326828,
-0.015942398458719254,
-0.0001630417536944151,
-0.08432918787002563,
0.04065456986427307,
-0.016310226172208786,
0.040577132254838943,
-0.03256237506866455,
0.010492750443518162,
0.03345290198922157,
0.015864960849285126,
-0.0020109491888433695,
-0.06481499969959259,
-0.025670455768704414,
0.06547321379184723,
0.008900446817278862,
0.0004685560124926269,
0.031633127480745316,
0.06508602946996689,
0.002383616054430604,
-0.014732440933585167,
-0.004895487800240517,
0.08099938929080963,
0.03711181506514549,
-0.03476933762431145,
-0.03442086651921272,
0.04355846717953682,
0.01762665994465351,
-0.009379589930176735,
-0.06334368884563446,
0.09300216287374496,
-0.014112942852079868,
-0.015864960849285126,
0.025805970653891563,
0.055599961429834366,
-0.057342302054166794,
0.0038476644549518824,
0.027199842035770416,
-0.035233959555625916,
0.08564562350511551,
-0.008208351209759712,
-0.04355846717953682,
0.02582533098757267,
0.018100962042808533,
0.03198159486055374,
-0.02191474847495556,
-0.057729486376047134,
0.0069161164574325085,
0.030490927398204803,
-0.016900684684515,
-0.03320123255252838,
0.06473755836486816,
-0.03809913992881775,
0.022592324763536453,
-0.03531139716506004,
-0.017742814496159554,
0.030336052179336548,
0.0182848758995533,
0.043016403913497925,
-0.033375464379787445,
0.011528474278748035,
0.0008342656074091792,
0.02936808578670025,
-0.06655734032392502,
0.04344230890274048,
-0.07236513495445251,
0.008634256199002266,
0.029310008510947227,
0.01111224852502346,
0.0028458198066800833,
-0.03122658096253872,
0.019823942333459854,
0.023289259523153305,
-0.00197102059610188,
0.06806736439466476,
-0.02479928731918335,
-0.03233006224036217,
0.014664683490991592,
0.01147039607167244,
0.04464258998632431,
0.02596084587275982,
0.01806224323809147,
-0.05587099492549896,
0.007622731849551201,
-0.000043860956793650985,
-0.03039412945508957,
-0.007298463024199009,
0.0037194089964032173,
0.04011250659823418,
-0.007041952107101679,
0.011799504980444908,
-0.0013793514808639884,
-0.01410326361656189,
-0.03891222923994064,
-0.033762652426958084,
0.008697173558175564,
0.0019782802555710077,
-0.04863060638308525,
-0.031768642365932465,
0.02247616834938526,
0.04804982990026474,
-0.05079885199666023,
-0.040189944207668304,
-0.02563173696398735,
-0.00476481206715107,
-0.03649231418967247,
-0.012573877349495888,
0.002749023260548711,
-0.010628266260027885,
-0.032543014734983444,
-0.1091865599155426,
-0.008581018075346947,
-0.03804106265306473,
0.04278409481048584,
0.044991057366132736,
0.04646236449480057,
-0.07135844975709915,
0.0759272500872612,
0.013580561615526676,
0.006993553601205349,
0.03217518702149391,
-0.06675092875957489,
-0.02069511078298092,
-0.009321511723101139,
-0.018488148227334023,
0.023599009960889816,
0.016900684684515,
0.06884173303842545,
0.007714688312262297,
0.009844213724136353,
-0.023928117007017136,
-0.008184151723980904,
-0.031516969203948975,
0.004104175604879856,
-0.023734524846076965,
0.002920837141573429,
0.01320305559784174,
0.05765204876661301,
-0.039473649114370346,
0.01867206208407879,
-0.026948170736432076,
-0.0023255380801856518,
-0.012602915987372398,
0.03413048014044762,
0.013445046730339527,
0.022631043568253517,
-0.026890093460679054,
-0.05106988176703453,
-0.021566281095147133,
0.03347226232290268,
-0.03370457515120506,
0.017771854996681213,
-0.012515799142420292,
0.003675850573927164,
0.05250247195363045,
0.02812908962368965,
-0.07794061303138733,
-0.04874676465988159,
-0.010763781145215034,
-0.023560291156172752,
-0.011557512916624546,
0.023153744637966156,
0.05068269744515419,
-0.061252884566783905,
-0.004612357821315527,
0.048282139003276825,
-0.0282646045088768,
-0.03482741490006447,
-0.056180741637945175,
-0.029116414487361908,
-0.017829932272434235,
-0.03370457515120506,
-0.011925340630114079,
-0.015526173636317253,
0.019291561096906662,
0.03471125662326813,
-0.04084816202521324,
-0.039086464792490005,
0.04835957661271095,
-0.023424776270985603,
0.08913030475378036,
0.05641305446624756,
-0.03811849653720856,
0.0011391749139875174,
-0.010550828650593758,
0.06253059953451157,
0.07135844975709915,
-0.003404820105060935,
0.01105417124927044,
0.006703163962811232,
-0.0003950510872527957,
0.015109947882592678,
-0.05710998922586441,
0.008610056713223457,
-0.05114731937646866,
-0.03765387460589409,
-0.03339482471346855,
0.020849986001849174,
-0.043597184121608734,
-0.05749717727303505,
0.02203090488910675,
0.055599961429834366,
0.006127224303781986,
-0.022921433672308922,
-0.01992073841392994,
-0.03471125662326813,
-0.025999564677476883,
-0.01487763598561287,
0.01701684109866619,
0.027219202369451523,
-0.06404062360525131,
0.0014664683258160949,
0.04642364755272865,
0.05215400457382202,
-0.019068928435444832,
-0.02845819853246212,
0.04189356416463852,
-0.008503580465912819,
0.05966541916131973,
0.039357494562864304,
0.005062461830675602,
-0.0011960428673774004,
-0.009181156754493713,
-0.030413489788770676,
-0.046036459505558014,
-0.010028126649558544,
0.01984330080449581,
0.0030369930900633335,
0.00017045275308191776,
-0.04135150462388992,
0.021411405876278877,
0.012912665493786335,
0.0052996133454144,
0.0302005372941494,
0.011228404939174652,
-0.03250429406762123,
-0.02183731086552143,
0.03807977959513664,
-0.024489538744091988,
-0.05176681652665138,
0.10740549862384796,
-0.0049947043880820274,
-0.0010290687205269933,
0.0324268601834774,
-0.001781057333573699,
0.02427658624947071,
-0.013290172442793846,
-0.009273113682866096,
0.006093345582485199,
-0.011363919824361801,
-0.012506119906902313,
-0.017781533300876617,
-0.02749023213982582,
-0.041080474853515625,
-0.03329802677035332,
0.0249348022043705,
-0.033685214817523956,
0.02596084587275982,
-0.08835592865943909,
0.050140634179115295,
0.01422909926623106,
0.032988280057907104,
-0.00024002529971767217,
-0.001761697931215167,
-0.01969810575246811
] |
725,192 | tf_keras.src.engine.functional | get_weight_paths | null | def get_weight_paths(self):
result = {}
for layer in self.layers:
(
descendants,
object_paths_dict,
) = tf.__internal__.tracking.ObjectGraphView(
layer
).breadth_first_traversal()
for descendant in descendants:
if isinstance(descendant, tf.Variable):
trackable_references = object_paths_dict[descendant]
object_path = ".".join(
[t.name for t in trackable_references]
)
result[layer.name + "." + object_path] = descendant
return result
| (self) | [
-0.019935710355639458,
-0.03635113686323166,
-0.029781201854348183,
0.00409209169447422,
-0.006428748834878206,
-0.0012659834465011954,
-0.022044112905859947,
0.022834764793515205,
0.017366092652082443,
0.014787063002586365,
0.008885415270924568,
-0.026750370860099792,
-0.017573168501257896,
-0.030797753483057022,
-0.010532605461776257,
-0.0028543455991894007,
0.0012118614977225661,
-0.009544291533529758,
-0.03222845494747162,
-0.018241455778479576,
0.003663822077214718,
-0.021893512457609177,
0.05530794709920883,
-0.022627688944339752,
-0.030289476737380028,
-0.023361865431070328,
0.0007247637840919197,
0.011379731819033623,
0.013064572587609291,
-0.01046671811491251,
-0.06577466428279877,
-0.05790580064058304,
0.0012530412059277296,
-0.005143939983099699,
-0.004485064186155796,
-0.004685080144554377,
0.039946720004081726,
0.060729555785655975,
0.00044356484431773424,
-0.058018751442432404,
0.03998436778783798,
-0.004181510303169489,
-0.08516445010900497,
0.012631596997380257,
0.04243162274360657,
0.011022056452929974,
-0.02769162319600582,
0.0013801101595163345,
0.06140725687146187,
-0.008315958082675934,
0.021818213164806366,
-0.06012715399265289,
-0.0007377059664577246,
0.019578034058213234,
0.0038308941293507814,
-0.10195637494325638,
-0.021102862432599068,
-0.025903245434165,
-0.007379412651062012,
0.013403423130512238,
0.003160252468660474,
-0.021931162104010582,
0.013158697634935379,
0.015954215079545975,
-0.04277047514915466,
-0.05643744766712189,
-0.07898983359336853,
0.01175623293966055,
-0.01765787973999977,
-0.005821641534566879,
-0.0015154151478782296,
-0.06148255616426468,
0.044088225811719894,
-0.043071676045656204,
-0.09216736257076263,
-0.025564394891262054,
0.06667826324701309,
-0.03104247897863388,
0.026637421920895576,
-0.015060026198625565,
-0.08064644038677216,
-0.03215315565466881,
-0.06121900677680969,
-0.04849328473210335,
0.027879873290657997,
-0.01671662926673889,
0.017196666449308395,
0.007129981182515621,
-0.010833806358277798,
-0.04367407411336899,
-0.05267244204878807,
0.053952544927597046,
-0.0048003834672272205,
0.043862324208021164,
0.02739042229950428,
-0.021121686324477196,
-0.022928889840841293,
-0.045481279492378235,
0.004936864599585533,
0.002117816125974059,
-0.0053651342168450356,
-0.03268025815486908,
-0.031720180064439774,
0.08870355039834976,
0.000916543765924871,
0.008480677381157875,
-0.008603040128946304,
-0.04469062760472298,
-0.017874369397759438,
-0.03143780305981636,
-0.03158840537071228,
0.022213539108633995,
0.04728848114609718,
-0.013629323802888393,
0.029705900698900223,
-0.01121030654758215,
0.01797790639102459,
0.012104496359825134,
0.0477779321372509,
0.00504040252417326,
-0.014796475879848003,
0.057228099554777145,
-0.00914896558970213,
0.007308818865567446,
-0.01205743383616209,
0.029856501147150993,
0.019672159105539322,
0.038779567927122116,
-0.012170383706688881,
-0.01666015386581421,
0.016923705115914345,
-0.004249751102179289,
-0.064155712723732,
0.05463024601340294,
0.02530084364116192,
0.04160332307219505,
-0.01874973252415657,
0.011859770864248276,
0.05749164894223213,
0.038158342242240906,
0.049923986196517944,
-0.04457767680287361,
-0.028350498527288437,
0.0012083317851647735,
-0.00265432964079082,
0.005911060143262148,
0.029141150414943695,
-0.018269693478941917,
-0.037932440638542175,
-0.06667826324701309,
-0.012518647126853466,
0.009111315943300724,
0.006772305350750685,
0.0315319299697876,
-0.03781948983669281,
-0.023211264982819557,
-0.05041343718767166,
-0.010767919011414051,
0.006226379424333572,
-0.012612772174179554,
-0.007017030846327543,
-0.007431181613355875,
-0.02138523757457733,
-0.06637706607580185,
-0.01855207048356533,
0.02023690938949585,
0.005101583898067474,
-0.0025460857432335615,
0.016754278913140297,
-0.019060345366597176,
0.0004394468560349196,
-0.03251083195209503,
-0.010598493739962578,
0.030553027987480164,
0.011549157090485096,
-0.0012389224721118808,
0.017177842557430267,
-0.015060026198625565,
-0.0004162097175139934,
0.05820700153708458,
0.06558641046285629,
-0.03851601853966713,
-0.04356112703680992,
0.004838033579289913,
-0.010909106582403183,
-0.04201747104525566,
0.03652056306600571,
-0.03469453379511833,
0.0043344637379050255,
0.01594480313360691,
0.013770511373877525,
0.04834268242120743,
0.021818213164806366,
0.059562403708696365,
0.025903245434165,
0.00019207416335120797,
0.03226610645651817,
-0.027202172204852104,
-0.07710733264684677,
0.06543581187725067,
-0.015700077638030052,
-0.011878595687448978,
-0.020556936040520668,
0.05346309393644333,
-0.013949349522590637,
0.00556279718875885,
0.015078851021826267,
-0.0015707137063145638,
-0.034355685114860535,
0.02652447111904621,
-0.07021737098693848,
0.01954038441181183,
0.05011223629117012,
-0.03407330811023712,
0.014994138851761818,
-0.010560843162238598,
-0.08433614671230316,
0.06694181263446808,
0.011859770864248276,
-0.021196987479925156,
-0.05112878978252411,
-0.019935710355639458,
-0.011031469330191612,
0.022608865052461624,
-0.04028556868433952,
-0.03721708804368973,
0.004019144456833601,
0.01666015386581421,
-0.011389144696295261,
-0.10045037418603897,
0.03269908204674721,
-0.001271866261959076,
0.003609699895605445,
-0.0038285409100353718,
0.04009731858968735,
0.014165837317705154,
-0.04807913303375244,
-0.011615045368671417,
0.06257440894842148,
-0.03499573469161987,
0.005882822908461094,
-0.06280031055212021,
-0.002677860902622342,
-0.014965901151299477,
-0.0024072511587291956,
-0.012113908305764198,
0.05703984946012497,
-0.023455990478396416,
0.027823397889733315,
-0.02949882671236992,
0.04028556868433952,
0.024717267602682114,
0.01711195521056652,
0.0024543136823922396,
-0.0027060983702540398,
-0.04465297609567642,
-0.02132876217365265,
0.0048521519638597965,
-0.031475454568862915,
-0.024924343451857567,
-0.013986999168992043,
0.038007739931344986,
-0.028444623574614525,
0.03119307942688465,
0.0026378578040748835,
0.0054357280023396015,
0.021347587928175926,
-0.004452120047062635,
-0.09171555936336517,
-0.017121367156505585,
0.1364438384771347,
0.023832490667700768,
-0.021611137315630913,
0.014617637731134892,
-0.02707039751112461,
-0.038704268634319305,
0.022608865052461624,
0.06946437060832977,
-0.04039851948618889,
-0.006682886742055416,
-0.0113985575735569,
-0.026750370860099792,
-0.0337156318128109,
-0.03550401329994202,
-0.01780848018825054,
0.05485614389181137,
-0.005266302730888128,
-0.01010904274880886,
0.001922506489790976,
-0.026863321661949158,
0.05899765342473984,
0.007835919968783855,
0.029894152656197548,
-0.0019495674641802907,
0.016970766708254814,
0.021592311561107635,
-0.013657561503350735,
-0.03565461188554764,
0.049058035016059875,
0.07341762632131577,
0.0048286207020282745,
0.05150528997182846,
0.03885486721992493,
0.03418625891208649,
-0.03204020485281944,
0.0024001917336136103,
0.10052567720413208,
-0.007247637491673231,
-0.009770192205905914,
0.004419176373630762,
-0.002503729425370693,
-0.03352738171815872,
0.051317039877176285,
0.006362861022353172,
-0.016754278913140297,
-0.086821049451828,
-0.03156958147883415,
-0.024227816611528397,
-0.009798429906368256,
0.0762413814663887,
-0.022891240194439888,
0.04683668166399002,
-0.004454473499208689,
0.01552123948931694,
-0.014137599617242813,
-0.0113985575735569,
0.07048092037439346,
0.007685319520533085,
0.03269908204674721,
-0.027748098596930504,
-0.008475971408188343,
-0.05056403949856758,
0.024378417059779167,
0.02801164798438549,
-0.021667612716555595,
0.08667045086622238,
0.08659514784812927,
0.06494636088609695,
-0.021065210923552513,
0.006569936405867338,
0.04710023105144501,
0.02334303967654705,
-0.03126838058233261,
0.04981103539466858,
-0.03593698889017105,
0.01058908086270094,
-0.00826889555901289,
0.019747458398342133,
-0.0015142385382205248,
0.03390388563275337,
-0.02475491724908352,
0.04792853444814682,
-0.03627583757042885,
0.03119307942688465,
-0.004626251757144928,
0.045782480388879776,
0.016942529007792473,
-0.03360268473625183,
-0.009158378466963768,
0.04612132906913757,
0.02341834083199501,
0.033565033227205276,
0.011812708340585232,
-0.023945441469550133,
0.07868863642215729,
-0.01743197999894619,
0.07578957825899124,
0.052032388746738434,
0.016180114820599556,
-0.07176102697849274,
-0.029310576617717743,
-0.009713716804981232,
-0.0038850160781294107,
0.01954038441181183,
-0.009864317253232002,
0.027672797441482544,
0.04826738312840462,
-0.042281024158000946,
0.05037578567862511,
0.051166437566280365,
0.02070753648877144,
0.019785109907388687,
0.031080128625035286,
0.003423802787438035,
0.01946508325636387,
-0.029687076807022095,
0.044238828122615814,
-0.04209277406334877,
0.023060664534568787,
-0.006155785638839006,
0.023832490667700768,
-0.0039061943534761667,
0.026204446330666542,
0.0605413056910038,
0.021761737763881683,
-0.04107622057199478,
0.04393762722611427,
-0.006122841965407133,
-0.03881721571087837,
-0.012085670605301857,
0.028124598786234856,
-0.07966753840446472,
-0.08147474378347397,
0.013281060382723808,
0.015276513993740082,
-0.03881721571087837,
-0.019239183515310287,
0.08734814822673798,
0.03156958147883415,
-0.03821481764316559,
-0.08200184255838394,
0.02123463712632656,
0.007807682268321514,
0.022759463638067245,
0.0227971151471138,
-0.022364139556884766,
0.006758186500519514,
0.010297292843461037,
0.06833487004041672,
0.028199898079037666,
0.043410524725914,
-0.007751207333058119,
0.03960786759853363,
-0.02537614479660988,
0.027202172204852104,
-0.011662107892334461,
-0.023286566138267517,
0.03926901891827583,
0.049133334308862686,
0.0911884605884552,
-0.019088583067059517,
-0.024943167343735695,
-0.007732382044196129,
-0.047966182231903076,
-0.019079171121120453,
-0.0028543455991894007,
0.05052638798952103,
-0.01288573443889618,
-0.0003473806718830019,
0.022044112905859947,
0.027917522937059402,
0.016594266518950462,
0.005087465047836304,
0.02739042229950428,
-0.009600766934454441,
-0.004790970589965582,
-0.023154789581894875,
0.016283653676509857,
0.010645556263625622,
0.01857089437544346,
0.010664381086826324,
-0.11099239438772202,
0.0740576758980751,
-0.046799030154943466,
-0.037781842052936554,
0.048982735723257065,
-0.04457767680287361,
-0.01163387019187212,
-0.040586769580841064,
-0.025169068947434425,
0.031720180064439774,
-0.00865480862557888,
0.05662569776177406,
0.0065558175556361675,
-0.04295872524380684,
-0.04476592689752579,
0.039419617503881454,
-0.026863321661949158,
0.013092810288071632,
-0.0013330476358532906,
0.06739361584186554,
0.014467037282884121,
-0.06291326135396957,
-0.04246927425265312,
0.03580521047115326,
0.008763052523136139,
-0.028519924730062485,
0.036144062876701355,
-0.010664381086826324,
-0.07228812575340271,
-0.007986520417034626,
-0.04676138237118721,
-0.02373836562037468,
-0.044389426708221436,
0.026204446330666542,
0.032322581857442856,
-0.04585777968168259,
0.04002201929688454,
0.0024472542572766542,
-0.0317390039563179,
-0.030760103836655617,
-0.0008718343451619148,
-0.031098954379558563,
0.030684802681207657,
-0.010824393481016159,
0.07443417608737946,
0.013751686550676823,
0.04363642632961273,
0.012208033353090286,
0.027766922488808632,
-0.014947076328098774,
-0.023776017129421234,
-0.003710884600877762,
0.05858350172638893,
-0.054743193089962006,
0.023945441469550133,
-0.0026825671084225178,
-0.00464978301897645,
0.039720818400382996,
0.01688605360686779,
0.041979823261499405,
-0.023757191374897957,
-0.0011024409905076027,
0.051053486764431,
0.0007406473741866648,
-0.04243162274360657,
-0.020180435851216316,
0.03789478912949562,
0.0010324353352189064,
0.01720608025789261,
0.004235632251948118,
0.019879234954714775,
0.0181567445397377,
-0.03347090631723404,
0.004179157316684723,
-0.01594480313360691,
-0.01584126427769661,
-0.003023770870640874,
0.034732185304164886,
0.031249554827809334,
0.0874987542629242,
0.010626730509102345,
-0.0011083238059654832,
0.038779567927122116,
0.010683205910027027,
-0.037537116557359695,
0.06938906759023666,
-0.05993890389800072,
-0.10022447258234024,
-0.009252503514289856,
0.04845563322305679,
-0.015172976069152355,
0.010325530543923378,
-0.0015860090497881174,
0.10120337456464767,
0.042845774441957474,
0.04627193138003349,
-0.043862324208021164,
-0.048756834119558334,
-0.009139553643763065,
0.03237905725836754,
-0.015380051918327808,
-0.048681534826755524,
-0.010645556263625622,
0.011135007254779339,
-0.05719044804573059,
0.01393052376806736,
-0.02948000095784664,
-0.043862324208021164,
0.030760103836655617,
0.019822759553790092,
-0.028519924730062485,
0.035052210092544556,
0.014636462554335594,
-0.021140512079000473,
-0.009172497317194939,
-0.002506082411855459,
0.033734459429979324,
-0.0322849303483963,
0.0366523377597332,
-0.010240817442536354,
0.037781842052936554,
0.044163525104522705,
-0.019483909010887146,
0.027277471497654915,
-0.011200894601643085,
-0.035372234880924225,
-0.009563116356730461,
0.014881188049912453,
-0.042996373027563095,
0.025620870292186737,
0.01728137955069542,
0.01929565891623497,
0.0488697849214077,
0.03710414096713066,
0.000561221269890666,
0.019258009269833565,
0.04100092127919197,
-0.045029476284980774,
-0.010287879966199398,
-0.026166794821619987,
-0.006358154583722353,
0.02178056351840496,
0.010683205910027027,
0.01793084293603897,
-0.034035660326480865,
-0.08049584180116653,
0.029743552207946777,
0.0054357280023396015,
0.02530084364116192,
0.020293384790420532,
-0.015342401340603828,
0.026204446330666542,
0.08516445010900497,
-0.04947218671441078,
-0.025507919490337372,
0.06005185469985008,
0.0033602684270590544,
-0.030929528176784515,
-0.030929528176784515,
-0.011831533163785934,
-0.015878915786743164,
0.0751495286822319,
-0.04021026939153671,
-0.0667535662651062,
-0.017591992393136024,
0.000041363597119925544,
0.022608865052461624,
-0.015897739678621292,
-0.01186918281018734,
-0.004560363944619894,
-0.04141507297754288,
0.010814981535077095,
0.01007139217108488,
-0.021667612716555595,
0.059863604605197906,
0.035127509385347366,
-0.014824713580310345,
0.015493001788854599,
0.006819367874413729,
-0.0019201533868908882,
-0.0034261560067534447,
0.026279745623469353,
0.013026922941207886,
-0.008127707988023758,
0.0091630844399333,
0.008871296420693398,
-0.04551892727613449,
-0.052333589643239975,
-0.009826666675508022,
-0.05677630007266998,
0.025507919490337372,
0.0001692782243480906,
0.0004520949150901288,
-0.03185195475816727,
0.0037485347129404545,
0.01004315447062254,
-0.030929528176784515,
0.018184982240200043,
-0.00394149124622345,
-0.025639694184064865,
-0.0339227095246315,
-0.006767599377781153,
-0.04277047514915466,
0.032322581857442856,
0.06494636088609695,
-0.006946437060832977,
-0.04258222505450249,
0.02403956651687622,
-0.03126838058233261,
-0.03390388563275337,
-0.022891240194439888,
-0.0066734738647937775,
-0.04529302939772606,
-0.025865593925118446,
0.012725722044706345,
-0.03650173917412758,
-0.05764225125312805,
0.034732185304164886,
-0.04028556868433952,
0.014947076328098774,
-0.0026166795287281275,
-0.0034096839372068644,
0.0015177682507783175,
-0.07891453802585602,
0.01937095820903778,
-0.0035696967970579863,
0.05560914799571037,
0.022815939038991928,
-0.09179086238145828,
0.006113429553806782,
0.028670525178313255,
-0.03578638657927513,
0.010391417890787125,
0.0507146380841732,
-0.00644286721944809,
-0.07793563604354858,
0.014909425750374794,
0.04043617099523544,
0.03367798402905464,
-0.01411877479404211,
-0.04085032269358635,
0.042205724865198135,
0.03697236254811287,
-0.02577146887779236,
-0.022044112905859947,
0.06536051630973816,
-0.04235632345080376,
0.04529302939772606,
-0.04988633468747139,
-0.01010904274880886,
0.00304494914598763,
-0.02240178920328617,
-0.04141507297754288,
0.03437450900673866,
0.004393292125314474,
0.011153832077980042,
-0.017093129456043243,
-0.017064891755580902,
0.051317039877176285,
-0.04352347552776337,
-0.06249910965561867,
-0.01579420268535614,
-0.04574482887983322,
-0.00894189067184925,
0.02605384588241577,
-0.015728315338492393,
-0.0042638699524104595,
-0.04092562198638916,
0.000383560050977394,
0.020971085876226425,
0.01797790639102459,
0.045782480388879776,
0.07368117570877075,
-0.01123854424804449,
0.04544362798333168,
0.04732613265514374,
0.004838033579289913,
-0.04566952958703041,
0.017874369397759438,
-0.010363180190324783,
-0.012330396100878716,
-0.036445263773202896,
-0.02577146887779236,
-0.003967375494539738,
0.03640761226415634,
0.02592206932604313,
-0.05681394785642624,
-0.05711514875292778,
0.06513461470603943,
0.02031221054494381,
0.005708691198378801,
-0.07157277315855026,
0.045631878077983856,
0.019634509459137917,
-0.006631117779761553,
0.028934074565768242,
-0.02130993641912937,
0.040963269770145416,
-0.07959223538637161,
0.0631391629576683,
0.006367567460983992,
0.005600447300821543,
-0.07631668448448181,
0.05316189303994179,
0.0016566028352826834,
-0.010654968209564686,
-0.06223555654287338,
-0.0054827905260026455,
-0.04932158440351486,
-0.02294771559536457,
-0.09066135436296463,
0.01007139217108488,
0.013083397410809994,
-0.01780848018825054,
0.04201747104525566,
-0.017959080636501312,
-0.015323576517403126
] |
725,199 | tf_keras.src.engine.sequential | pop | Removes the last layer in the model.
Raises:
TypeError: if there are no layers in the model.
| @tf.__internal__.tracking.no_automatic_dependency_tracking
@traceback_utils.filter_traceback
def add(self, layer):
"""Adds a layer instance on top of the layer stack.
Args:
layer: layer instance.
Raises:
TypeError: If `layer` is not a layer instance.
ValueError: In case the `layer` argument does not
know its input shape.
ValueError: In case the `layer` argument has
multiple output tensors, or is already connected
somewhere else (forbidden in `Sequential` models).
"""
# If we are passed a TF-Keras tensor created by keras.Input(), we can
# extract the input layer from its keras history and use that without
# any loss of
# generality.
if hasattr(layer, "_keras_history"):
origin_layer = layer._keras_history[0]
if isinstance(origin_layer, input_layer.InputLayer):
layer = origin_layer
if isinstance(layer, tf.Module):
if not isinstance(layer, base_layer.Layer):
layer = functional.ModuleWrapper(layer)
else:
raise TypeError(
"The added layer must be an instance of class Layer. "
f"Received: layer={layer} of type {type(layer)}."
)
tf_utils.assert_no_legacy_layers([layer])
if not self._is_layer_name_unique(layer):
raise ValueError(
"All layers added to a Sequential model "
f'should have unique names. Name "{layer.name}" is already '
"the name of a layer in this model. Update the `name` argument "
"to pass a unique name."
)
self.built = False
set_inputs = False
self._maybe_create_attribute("_self_tracked_trackables", [])
if not self._self_tracked_trackables:
if isinstance(layer, input_layer.InputLayer):
# Case where the user passes an Input or InputLayer layer via
# `add`.
set_inputs = True
else:
batch_shape, dtype = training_utils.get_input_shape_and_dtype(
layer
)
if batch_shape:
# Instantiate an input layer.
x = input_layer.Input(
batch_shape=batch_shape,
dtype=dtype,
name=layer.name + "_input",
)
# This will build the current layer
# and create the node connecting the current layer
# to the input layer we just created.
layer(x)
set_inputs = True
if set_inputs:
outputs = tf.nest.flatten(layer._inbound_nodes[-1].outputs)
if len(outputs) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = outputs
self.inputs = layer_utils.get_source_inputs(self.outputs[0])
self.built = True
self._has_explicit_input_shape = True
elif self.outputs:
# If the model is being built continuously on top of an input layer:
# refresh its output.
output_tensor = layer(self.outputs[0])
if len(tf.nest.flatten(output_tensor)) != 1:
raise ValueError(SINGLE_LAYER_OUTPUT_ERROR_MSG)
self.outputs = [output_tensor]
self.built = True
if set_inputs or self._graph_initialized:
self._init_graph_network(self.inputs, self.outputs)
self._graph_initialized = True
else:
self._self_tracked_trackables.append(layer)
self._handle_deferred_layer_dependencies([layer])
self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
| (self) | [
-0.03417421877384186,
-0.02748371660709381,
-0.054226212203502655,
0.07217157632112503,
-0.019379043951630592,
0.02921973541378975,
-0.09417415410280228,
0.04931074380874634,
0.027464210987091064,
-0.03433026373386383,
0.0004705782048404217,
-0.014804926700890064,
-0.00908484123647213,
-0.015292571857571602,
0.03421323001384735,
0.06530552357435226,
0.018403751775622368,
-0.0005927944439463317,
-0.01952533796429634,
-0.06983087956905365,
0.03622233122587204,
-0.01939854957163334,
0.0019310773350298405,
0.025240546092391014,
0.011362147517502308,
0.03294534981250763,
0.00042821397073566914,
0.020461617037653923,
-0.024460313841700554,
-0.011518193408846855,
-0.030448604375123978,
-0.06050708889961243,
-0.024733394384384155,
-0.014687891118228436,
0.01858905702829361,
-0.0023931218311190605,
-0.024889441207051277,
0.05204156041145325,
-0.04907667264342308,
-0.03181401267647743,
0.03998695686459541,
-0.007046481594443321,
0.009211628697812557,
0.0031648213043808937,
-0.003208709415048361,
0.01416123379021883,
-0.018042894080281258,
0.04224963113665581,
-0.028946654871106148,
-0.041313350200653076,
0.019603360444307327,
-0.012893354520201683,
0.038309454917907715,
0.011898557655513287,
-0.017369942739605904,
-0.058673541992902756,
0.025689180940389633,
-0.0695968046784401,
0.010250315070152283,
-0.010552654974162579,
0.0071342578157782555,
0.019418055191636086,
-0.009231135249137878,
0.014044199138879776,
-0.026137813925743103,
-0.023602057248353958,
-0.05465533956885338,
-0.04162544384598732,
0.030351074412465096,
0.02648892067372799,
-0.028888138011097908,
-0.04825742915272713,
0.04127433896064758,
-0.004742355551570654,
-0.031131308525800705,
-0.0074707334861159325,
0.06643686443567276,
-0.04166445881128311,
0.04345899447798729,
-0.055552609264850616,
-0.04334195703268051,
0.015292571857571602,
-0.01931077428162098,
0.02775679901242256,
0.022470718249678612,
-0.009060459211468697,
-0.0012050946243107319,
0.03657343611121178,
-0.03189203515648842,
-0.036709975451231,
-0.02063716948032379,
0.03600776568055153,
-0.0018176997546106577,
0.023387491703033447,
0.029005171731114388,
-0.019018186256289482,
-0.018754856660962105,
-0.04763324186205864,
-0.032906338572502136,
-0.016628721728920937,
0.0065880948677659035,
0.02098827436566353,
-0.04310788959264755,
0.033023372292518616,
-0.03749020770192146,
-0.032906338572502136,
-0.03039008565247059,
-0.015526642091572285,
-0.04833545163273811,
0.0030355951748788357,
-0.00839238427579403,
-0.03456433489918709,
-0.0026625460013747215,
0.0061150784604251385,
-0.011332888156175613,
-0.021709991618990898,
0.029687875881791115,
-0.0314238965511322,
-0.020227547734975815,
-0.003352564759552479,
0.025025982409715652,
0.05980487912893295,
-0.028576044365763664,
-0.03247721120715141,
0.011235359124839306,
0.00407671881839633,
0.04279579594731331,
0.006666118279099464,
0.06323790550231934,
-0.10455125570297241,
0.0069245705381035805,
-0.006529577076435089,
-0.034915439784526825,
0.08652786910533905,
0.025299064815044403,
0.018003882840275764,
-0.04361503943800926,
0.007719432935118675,
-0.054226212203502655,
0.03846549987792969,
0.04817940667271614,
-0.029804911464452744,
0.029453806579113007,
0.026235343888401985,
-0.020110512152314186,
-0.029005171731114388,
-0.04068916663527489,
-0.02976590022444725,
-0.0024845553562045097,
-0.044317249208688736,
0.014843937940895557,
-0.01897917501628399,
-0.0052275629714131355,
0.051612433046102524,
-0.02147592045366764,
0.046150799840688705,
-0.0461898110806942,
0.007109875790774822,
0.042873818427324295,
-0.013322482816874981,
-0.04513649642467499,
-0.023055892437696457,
0.04271777346730232,
-0.041937537491321564,
-0.02414822019636631,
0.005125157535076141,
-0.021183334290981293,
0.004045021720230579,
-0.01452209148555994,
0.05446028336882591,
0.0055640386417508125,
0.0194668211042881,
0.1079842820763588,
0.025884239003062248,
-0.011518193408846855,
-0.004732602275907993,
0.027678774669766426,
0.010455125942826271,
-0.022782811895012856,
0.01579972356557846,
0.04318591207265854,
-0.0062516191974282265,
-0.04700905457139015,
-0.006134584080427885,
-0.016950568184256554,
0.025221040472388268,
-0.020793216302990913,
-0.0009655386675149202,
0.02736668288707733,
0.006393036339432001,
0.016570204868912697,
0.05570865422487259,
0.052509699016809464,
0.012591014616191387,
-0.00810954999178648,
0.006744141224771738,
-0.00816806685179472,
0.05847848579287529,
0.041313350200653076,
0.008563060313463211,
-0.022743800655007362,
0.014190493151545525,
0.0617554634809494,
0.039694368839263916,
-0.06405714899301529,
-0.00439368886873126,
-0.006968458648771048,
-0.012035097926855087,
-0.03928474709391594,
-0.021944060921669006,
-0.04291282966732979,
-0.009904086589813232,
0.0617554634809494,
0.06136534735560417,
0.020169030874967575,
-0.05602074787020683,
-0.05742516741156578,
0.022743800655007362,
0.0778672844171524,
-0.01477566733956337,
0.03372558206319809,
0.0325552336871624,
-0.03415471315383911,
-0.002521128859370947,
0.016628721728920937,
-0.03828994929790497,
0.04111829400062561,
0.026664473116397858,
0.03134587034583092,
-0.02547461725771427,
0.0031794505193829536,
-0.0344863124191761,
-0.019622866064310074,
0.00014705568901263177,
0.02432377263903618,
0.004271777346730232,
-0.024440808221697807,
-0.04498044773936272,
0.04478539153933525,
-0.05223661661148071,
-0.025455109775066376,
-0.020559147000312805,
-0.008777623996138573,
-0.03134587034583092,
-0.04252271354198456,
0.015614418312907219,
-0.005086145829409361,
0.05091021955013275,
-0.04080620035529137,
0.012327685952186584,
0.012181391939520836,
0.03795835003256798,
-0.008324113674461842,
0.03300386667251587,
-0.002024949062615633,
-0.07583867758512497,
0.013537047430872917,
-0.06702204048633575,
0.039421286433935165,
0.006480812560766935,
-0.04970085993409157,
0.04466835409402847,
0.00660760048776865,
0.059063658118247986,
-0.015019490383565426,
-0.05586470291018486,
0.020949263125658035,
-0.00405477499589324,
0.011284124106168747,
0.008489913307130337,
0.06667093187570572,
0.05219760537147522,
0.00315019185654819,
-0.00787060335278511,
0.009591992944478989,
-0.06542255729436874,
0.019115716218948364,
0.04158643260598183,
-0.03360854834318161,
0.023524032905697823,
0.03750971332192421,
-0.03932375833392143,
-0.05430423468351364,
0.009231135249137878,
-0.05886860191822052,
0.005447003524750471,
0.02547461725771427,
-0.02397266775369644,
-0.024772407487034798,
-0.041157305240631104,
0.04595573991537094,
0.01616058126091957,
0.07447326928377151,
0.02787383459508419,
-0.011810781434178352,
0.0012605644296854734,
-0.08036402612924576,
0.010474631562829018,
0.016024040058255196,
-0.01870609261095524,
0.029902439564466476,
0.03895314782857895,
0.03924573212862015,
0.008036402985453606,
-0.006241866387426853,
-0.05929772928357124,
-0.0005114185041747987,
0.013605318032205105,
-0.045331552624702454,
-0.015487630851566792,
0.013429765589535236,
0.06487639993429184,
0.011918063275516033,
-0.04100126028060913,
0.036690469831228256,
-0.025786709040403366,
0.019262008368968964,
-0.016355639323592186,
0.02726915292441845,
0.059570811688899994,
-0.031579941511154175,
0.0461898110806942,
-0.022022083401679993,
-0.007660915609449148,
0.000990530475974083,
-0.043927133083343506,
0.12358894944190979,
-0.021163826808333397,
-0.01769178919494152,
0.034583840519189835,
-0.014336786232888699,
-0.034915439784526825,
0.01796487160027027,
0.03276979923248291,
-0.10260067880153656,
0.0017530866898596287,
-0.0005973661318421364,
-0.0008923918358050287,
0.019418055191636086,
-0.005861502606421709,
0.023894643411040306,
0.048725567758083344,
-0.04388812184333801,
0.007036728784441948,
-0.013956422917544842,
-0.021553944796323776,
0.05028603598475456,
0.0406111404299736,
-0.019993478432297707,
0.028888138011097908,
0.004793558269739151,
-0.016687238588929176,
-0.032243140041828156,
0.03415471315383911,
0.011050053872168064,
0.05594272539019585,
-0.002855166094377637,
-0.015156031586229801,
0.03495445102453232,
-0.049934931099414825,
0.07439523935317993,
0.004756984766572714,
0.004364429973065853,
0.014073457568883896,
0.06768523901700974,
-0.02264627069234848,
0.02621583826839924,
-0.02877110242843628,
0.0032404062803834677,
-0.007300057448446751,
-0.02403118461370468,
-0.046111784875392914,
0.051378361880779266,
0.035910237580537796,
-0.046657949686050415,
0.0325552336871624,
0.03273078426718712,
-0.0037816930562257767,
0.024011678993701935,
0.028302961960434914,
0.03434976935386658,
0.04751620814204216,
-0.030195027589797974,
0.013985681347548962,
0.06039005517959595,
-0.022353682667016983,
0.014580609276890755,
-0.0489596389234066,
0.07560460269451141,
-0.020130017772316933,
0.05028603598475456,
-0.0019030377734452486,
0.026449907571077347,
0.014502585865557194,
0.004240080248564482,
-0.03429125249385834,
0.009631004184484482,
0.05609877407550812,
-0.026020780205726624,
-0.03115081414580345,
0.00044589111348614097,
-0.03916770964860916,
0.07033803313970566,
0.0107087017968297,
0.02631336636841297,
-0.015633923932909966,
-0.006222360301762819,
0.04018201306462288,
-0.02693755365908146,
-0.015497383661568165,
-0.021397897973656654,
-0.0036500287242233753,
-0.04747719317674637,
-0.0006473498069681227,
0.004471711814403534,
0.011557205580174923,
0.025338076055049896,
-0.02291935309767723,
-0.015214549377560616,
0.0132152009755373,
0.02676200121641159,
0.05543557554483414,
0.011167088523507118,
0.05602074787020683,
0.02898566611111164,
0.03042909875512123,
-0.04946678876876831,
0.11141730844974518,
0.0034915439318865538,
0.017623519524931908,
-0.01249348558485508,
-0.04384911060333252,
0.036144305020570755,
-0.01607280597090721,
-0.03115081414580345,
-0.036027271300554276,
0.03550061583518982,
0.0022102545481175184,
-0.0023419188801199198,
0.07646286487579346,
0.001432459568604827,
0.005344598088413477,
0.022685281932353973,
0.01756500080227852,
-0.0065880948677659035,
0.00374268158338964,
0.007587768603116274,
0.07057210057973862,
-0.020832229405641556,
-0.006368654314428568,
0.05293882638216019,
-0.03216511756181717,
0.06464232504367828,
0.017613766714930534,
-0.01853054016828537,
-0.030799709260463715,
0.0010801354655995965,
-0.018189188092947006,
-0.05808836594223976,
0.018598809838294983,
-0.01099153608083725,
0.07267872989177704,
0.006193101871758699,
0.027464210987091064,
-0.016443416476249695,
-0.020676182582974434,
0.06472034752368927,
-0.010416114702820778,
-0.06136534735560417,
0.017340684309601784,
0.09042903780937195,
-0.021631967276334763,
0.017682036384940147,
-0.014882950112223625,
-0.05036405846476555,
-0.001510482863523066,
0.050442080944776535,
-0.012727554887533188,
-0.010796478018164635,
-0.0021115064155310392,
0.04537056386470795,
-0.049271732568740845,
-0.05348499119281769,
0.008528925478458405,
-0.004193753935396671,
0.08582565933465958,
0.010396608151495457,
0.006895311642438173,
0.0606631375849247,
0.026586448773741722,
-0.09198950231075287,
-0.039089687168598175,
0.029531829059123993,
0.033589042723178864,
-0.02670348435640335,
-0.032126106321811676,
0.02486993558704853,
-0.022685281932353973,
0.03924573212862015,
-0.024304267019033432,
0.008958053775131702,
0.017223648726940155,
-0.019905701279640198,
0.013088413514196873,
0.026586448773741722,
0.03370607644319534,
-0.023016881197690964,
0.0175357423722744,
-0.02693755365908146,
0.00631501292809844,
-0.011206100694835186,
0.016063053160905838,
0.04072817787528038,
0.012210650369524956,
0.015575407072901726,
-0.00845577847212553,
-0.01711636781692505,
0.012317933142185211,
-0.001742114662192762,
-0.000997235649265349,
0.04361503943800926,
0.05976586788892746,
0.03317942097783089,
-0.050715163350105286,
0.03161895275115967,
0.021729497238993645,
0.0005787746049463749,
-0.015117019414901733,
0.060468077659606934,
0.02342650480568409,
0.0039036045782268047,
0.014170986600220203,
-0.010455125942826271,
0.03990893065929413,
-0.00973341055214405,
-0.04825742915272713,
0.04447329789400101,
-0.028146915137767792,
-0.13607268035411835,
-0.05407016724348068,
0.01296162512153387,
0.013663834892213345,
0.024460313841700554,
-0.01310791913419962,
-0.020266558974981308,
0.026137813925743103,
0.015292571857571602,
-0.007007470354437828,
-0.08098821341991425,
-0.031735990196466446,
-0.06924570351839066,
0.03926524147391319,
-0.00752437487244606,
0.0258647333830595,
0.040923234075307846,
-0.017135873436927795,
-0.01744796708226204,
0.04845248535275459,
-0.017916107550263405,
0.02904418297111988,
-0.015243807807564735,
0.04271777346730232,
-0.012903108261525631,
-0.045877717435359955,
-0.030975261703133583,
-0.015789970755577087,
-0.042483702301979065,
-0.029902439564466476,
-0.025182029232382774,
0.00532996840775013,
0.0022102545481175184,
-0.020286064594984055,
0.006666118279099464,
-0.02481141872704029,
-0.0333939827978611,
0.020676182582974434,
-0.007114752195775509,
0.042873818427324295,
0.021495426073670387,
-0.03273078426718712,
0.027522729709744453,
0.003935301676392555,
-0.006500318646430969,
0.013410259038209915,
0.04501945897936821,
-0.02252923510968685,
-0.0011752264108508825,
0.03961634635925293,
-0.05262673273682594,
-0.00048337888438254595,
-0.03304287791252136,
0.004461959004402161,
0.014512338675558567,
-0.02543560415506363,
0.010162538848817348,
0.0011679116869345307,
-0.04712608829140663,
-0.001497072633355856,
0.023524032905697823,
0.029980463907122612,
-0.047828298062086105,
0.004783805459737778,
-0.00017098081298172474,
-0.006944076158106327,
0.00532996840775013,
-0.04755521938204765,
-0.04747719317674637,
-0.008806883357465267,
-0.02910270169377327,
-0.025299064815044403,
0.006354024633765221,
0.011498687788844109,
-0.022568248212337494,
-0.06967483460903168,
-0.06339395046234131,
-0.08379705250263214,
-0.030468109995126724,
0.051768478006124496,
0.08769822120666504,
-0.028673572465777397,
0.07256169617176056,
-0.03372558206319809,
-0.04513649642467499,
0.008324113674461842,
-0.035247039049863815,
0.02243170700967312,
0.02598176896572113,
-0.051612433046102524,
0.02937578223645687,
0.025182029232382774,
0.033803608268499374,
0.043810099363327026,
-0.025806216523051262,
-0.013897905126214027,
0.07299081981182098,
-0.06042906641960144,
0.023133916780352592,
0.026020780205726624,
0.02174900285899639,
0.007846221327781677,
-0.04556562379002571,
-0.044707365334033966,
-0.023504527285695076,
-0.022958364337682724,
0.03522753342986107,
-0.018598809838294983,
0.008041279390454292,
-0.03210660070180893,
0.08644984662532806,
0.0078072091564536095,
-0.04197654873132706,
0.039538320153951645,
0.0024345717392861843,
-0.01675551012158394,
0.061287324875593185,
0.010611172765493393,
0.002933189505711198,
-0.013819881714880466,
0.020617663860321045,
-0.016063053160905838,
0.0107087017968297,
-0.022802317515015602,
0.021436909213662148,
0.019632620736956596,
-0.04345899447798729,
0.018735351040959358,
0.005685950163751841,
-0.05473336577415466,
0.006700253114104271,
0.02676200121641159,
-0.10384904593229294,
-0.09542252868413925,
-0.04556562379002571,
-0.0034549704287201166,
0.006193101871758699,
-0.04513649642467499,
0.007046481594443321,
0.0461898110806942,
0.00693919975310564,
-0.044434286653995514,
-0.0411963164806366,
0.039421286433935165,
-0.03249671682715416,
0.022470718249678612,
-0.010338091291487217,
-0.00013722656876780093,
-0.021339379251003265,
-0.008572813123464584,
0.07022099196910858,
-0.056059762835502625,
0.025884239003062248,
0.004188877530395985,
0.009016570635139942,
0.02648892067372799,
-0.06503244489431381,
-0.05192452296614647,
-0.06534453481435776,
-0.05465533956885338,
-0.06097523123025894,
-0.024889441207051277,
0.03684651479125023,
-0.007022099569439888,
-0.026527931913733482,
0.0019578977953642607,
0.02098827436566353,
0.07283477485179901,
-0.11594266444444656,
-0.01975940726697445,
0.012064357288181782,
-0.029531829059123993,
-0.013927163556218147,
-0.01106955949217081,
0.016560452058911324,
-0.03567616641521454,
-0.012990884482860565,
-0.04166445881128311,
0.018335482105612755,
-0.020793216302990913,
-0.03351102024316788,
0.03165796399116516,
0.009094594046473503,
0.03427174687385559,
0.0294928178191185,
0.00782183837145567,
-0.011918063275516033,
-0.0019274200312793255,
0.0020871239248663187,
-0.06834843754768372,
0.03156043589115143,
-0.00172870431561023,
0.032126106321811676,
0.04700905457139015,
-0.04322492331266403,
0.019817925989627838,
0.026469413191080093,
-0.020773710682988167,
0.0011215853737667203,
0.03048761561512947,
-0.014912208542227745,
-0.06253569573163986,
0.032847821712493896,
-0.06530552357435226,
-0.06226261705160141,
0.00410110130906105,
0.03161895275115967,
0.01880362257361412,
0.06940174847841263,
-0.009006817825138569,
-0.015546147711575031,
-0.01942780800163746,
0.03928474709391594,
-0.017165131866931915,
-0.018901150673627853,
0.0058371201157569885,
0.07314687222242355,
-0.005100775044411421,
-0.014765914529561996,
-0.010065008886158466,
-0.016804274171590805,
-0.09339392185211182,
0.009294528514146805,
-0.09721706807613373,
0.09386206418275833,
-0.04107928276062012,
0.04490242525935173,
0.019661879166960716,
-0.012503238394856453,
0.023289963603019714
] |
725,242 | safetensors_rust | SafetensorError | Custom Python Exception for Safetensor errors. | from builtins import type
| null | [
0.024378793314099312,
0.015226082876324654,
0.014569271355867386,
0.004356706980615854,
0.019192541018128395,
0.027551960200071335,
0.025231795385479927,
0.012974157929420471,
-0.037941522896289825,
-0.0242081917822361,
0.0014788919361308217,
0.04234301298856735,
-0.0018254240276291966,
-0.005280081648379564,
-0.03137340769171715,
0.002940723905339837,
-0.017392707988619804,
0.0833212211728096,
0.0038043882232159376,
-0.014475441537797451,
-0.053875599056482315,
0.03671320155262947,
0.02581183612346649,
-0.012897388078272343,
0.024003472179174423,
0.04633506014943123,
0.0384192019701004,
-0.03372769430279732,
-0.043434854596853256,
-0.024276433512568474,
-0.03828272223472595,
-0.061177294701337814,
0.03534839674830437,
-0.010628403164446354,
0.014611922204494476,
-0.035211917012929916,
-0.013417718932032585,
0.09560444951057434,
-0.022877510637044907,
-0.02175154723227024,
-0.021171506494283676,
0.01452662143856287,
-0.09717397391796112,
-0.013409188948571682,
-0.04575502127408981,
-0.03695204108953476,
-0.005804677493870258,
-0.04036404937505722,
-0.021922146901488304,
-0.04541381821036339,
-0.004045361187309027,
-0.044731415808200836,
0.04636918008327484,
-0.002054668264463544,
-0.04207004979252815,
0.03297705203294754,
-0.0009548289817757905,
0.048894066363573074,
-0.07294871658086777,
0.10365678369998932,
-0.03331825137138367,
0.04984942823648453,
-0.022570429369807243,
-0.06568114459514618,
0.042377132922410965,
-0.00013807967479806393,
-0.05800412595272064,
0.011037844233214855,
-0.041353531181812286,
0.04087584838271141,
-0.06718242913484573,
-0.004900495521724224,
-0.019601982086896896,
0.03626963868737221,
0.07458648085594177,
-0.04804106429219246,
-0.05145307257771492,
0.023662270978093147,
0.034938957542181015,
-0.017486538738012314,
0.0443560965359211,
0.009937471710145473,
-0.025112373754382133,
0.017810678109526634,
-0.030588647350668907,
0.024174071848392487,
-0.08263882249593735,
0.049269385635852814,
-0.03777092322707176,
-0.007553331553936005,
-0.029735645279288292,
-0.03654259815812111,
-0.035996679216623306,
0.052306074649095535,
-0.01212115678936243,
0.0189366415143013,
0.02291163057088852,
-0.06974143534898758,
0.004499584902077913,
-0.027961401268839836,
0.05080479010939598,
0.027773739770054817,
0.028882643207907677,
-0.06472577899694443,
-0.013750390149652958,
0.01617291569709778,
0.04295717179775238,
0.009092999622225761,
-0.032635852694511414,
0.03906748443841934,
-0.035314276814460754,
-0.04705158248543739,
-0.037395600229501724,
-0.01874898001551628,
0.0006168269901536405,
-0.0015130119863897562,
0.0027061484288424253,
0.0005517855752259493,
0.01662500575184822,
0.027176639065146446,
-0.00414558919146657,
0.05721936374902725,
0.00012508472718764096,
0.03722500056028366,
0.0822293758392334,
0.06322449445724487,
0.017341528087854385,
-0.009988651610910892,
0.014919002540409565,
0.008905339054763317,
-0.005817472469061613,
0.013997760601341724,
-0.08338946104049683,
0.0895310714840889,
-0.020079663023352623,
0.043298374861478806,
-0.04937174916267395,
0.01528579369187355,
0.012556186877191067,
0.024498213082551956,
-0.006448694039136171,
0.029206784442067146,
0.08004569262266159,
-0.05967601016163826,
-0.040432289242744446,
0.009510970674455166,
0.001505548250861466,
0.04425373673439026,
-0.03551899641752243,
0.011012254282832146,
-0.037293240427970886,
0.0017539850668981671,
0.04203592985868454,
0.04619858041405678,
-0.026494238525629044,
0.03270409256219864,
0.015626994892954826,
-0.05162367224693298,
-0.0071865408681333065,
-0.05390971899032593,
-0.017674198374152184,
0.028370842337608337,
-0.01217233669012785,
-0.040807608515024185,
0.03246524930000305,
0.04964470863342285,
0.005838797893375158,
-0.01769125834107399,
0.020437924191355705,
0.012760907411575317,
-0.04411725699901581,
-0.041319411247968674,
-0.01630939543247223,
0.02702309936285019,
0.018356600776314735,
0.05319319665431976,
-0.04585738107562065,
0.0632927343249321,
0.002748798578977585,
0.023201650008559227,
0.0328746922314167,
-0.029206784442067146,
-0.13941462337970734,
0.0204208642244339,
0.03330119326710701,
0.00810778234153986,
0.014373081736266613,
-0.02613597735762596,
0.034068893641233444,
-0.018083639442920685,
-0.028746163472533226,
0.02407171204686165,
-0.014697222039103508,
-0.03804388269782066,
0.025845956057310104,
-0.01939726248383522,
-0.0411146879196167,
-0.007476561237126589,
-0.04565265774726868,
0.05769704654812813,
-0.044594936072826385,
0.04073936864733696,
0.01521755289286375,
0.03944280743598938,
0.025197675451636314,
-0.02864380180835724,
0.0008993838564492762,
0.005992338061332703,
0.000998545321635902,
-0.03423949331045151,
0.011199913918972015,
-0.049951788038015366,
0.007267575711011887,
0.05107774958014488,
0.02826848067343235,
-0.039101604372262955,
-0.026494238525629044,
-0.05558159947395325,
0.013434778898954391,
0.028609681874513626,
0.08373066037893295,
0.055445119738578796,
-0.018356600776314735,
-0.009340370073914528,
0.09471732378005981,
-0.020932665094733238,
-0.06172321364283562,
0.01133639458566904,
-0.00483652064576745,
-0.00854281336069107,
0.0605972521007061,
-0.023389311507344246,
-0.028302602469921112,
0.012590307742357254,
0.020625585690140724,
-0.009826580993831158,
0.026937799528241158,
0.03579195961356163,
-0.03899924457073212,
0.030656887218356133,
0.002179419854655862,
0.03657671809196472,
-0.024037592113018036,
-0.024839414283633232,
-0.018731920048594475,
-0.00849589891731739,
0.038589805364608765,
0.06660238653421402,
-0.05953953042626381,
-0.004576354753226042,
0.031202808022499084,
-0.06919550895690918,
0.030093904584646225,
-0.06138201430439949,
0.055820442736148834,
-0.016659125685691833,
0.005062566138803959,
-0.055445119738578796,
0.03024744614958763,
-0.031236927956342697,
-0.024276433512568474,
0.011003724299371243,
0.029872125014662743,
0.06387277692556381,
-0.07642896473407745,
-0.04752926528453827,
-0.006738714873790741,
0.05148719251155853,
-0.00010375968122389168,
-0.003443995025008917,
0.1206485852599144,
-0.00592409772798419,
0.021717427298426628,
0.016454406082630157,
-0.0484163835644722,
-0.010398092679679394,
0.027091339230537415,
0.04541381821036339,
0.03219228982925415,
-0.009391550906002522,
-0.0041733114048838615,
0.019823763519525528,
-0.01990906335413456,
-0.035450756549835205,
-0.07308519631624222,
-0.0032478044740855694,
0.009596270509064198,
0.0026549682952463627,
-0.030383925884962082,
0.014833702705800533,
0.03613315895199776,
0.016479995101690292,
0.045516178011894226,
-0.0060349879786372185,
0.031117508187890053,
0.0903499573469162,
-0.009340370073914528,
-0.04234301298856735,
0.058038245886564255,
0.007813497446477413,
-0.007962772622704506,
-0.015396683476865292,
0.009357430040836334,
0.01667618565261364,
0.01258177775889635,
-0.040022846311330795,
0.027006039395928383,
-0.044219616800546646,
-0.05483096092939377,
0.04858698695898056,
0.00254621054045856,
0.015831714496016502,
-0.05728760361671448,
0.0067941597662866116,
0.029257964342832565,
0.04466317594051361,
-0.004827990662306547,
0.007335816044360399,
-0.03804388269782066,
0.08946283161640167,
-0.04323013499379158,
-0.02688661776483059,
0.05448975786566734,
0.014202481135725975,
-0.04456081613898277,
-0.02485647425055504,
-0.02642599679529667,
0.013929520733654499,
0.05223783478140831,
0.04609622061252594,
-0.07308519631624222,
0.007519211154431105,
0.07636072486639023,
0.03592843934893608,
0.018970761448144913,
0.021256806328892708,
0.02743254043161869,
-0.02470293454825878,
-0.02156388759613037,
-0.0043716346845030785,
0.00031161223887465894,
0.03362533450126648,
0.0323287695646286,
0.006926374975591898,
-0.015831714496016502,
0.00833809282630682,
-0.01912430115044117,
-0.004397224634885788,
0.14603391289710999,
0.03412007540464401,
-0.023031050339341164,
-0.058447688817977905,
-0.005305671598762274,
0.004256479442119598,
0.005420826841145754,
-0.0157549437135458,
-0.003906748723238707,
0.019943183287978172,
-0.05100950971245766,
0.01999436318874359,
0.08400361984968185,
-0.02646011672914028,
0.013409188948571682,
0.00181262893602252,
-0.01990906335413456,
-0.0038406408857554197,
0.007092710584402084,
0.0027274733874946833,
0.06097257137298584,
-0.012359997257590294,
-0.018868401646614075,
0.008828569203615189,
-0.10201901942491531,
-0.058311205357313156,
-0.06714830547571182,
0.010526043362915516,
0.013477429747581482,
0.02734723873436451,
-0.08065985888242722,
0.014569271355867386,
0.008103517815470695,
0.003957928624004126,
-0.01902194134891033,
0.020472044125199318,
-0.010142192244529724,
-0.041353531181812286,
-0.033369433134794235,
0.013042398728430271,
-0.043810173869132996,
0.046266820281744,
-0.014637512154877186,
-0.016607945784926414,
0.026954859495162964,
-0.017486538738012314,
0.018117759376764297,
-0.00678989477455616,
-0.04664214327931404,
-0.03913572430610657,
-0.07172039896249771,
0.058686528354883194,
0.030793366953730583,
0.042752452194690704,
-0.00754053657874465,
0.05814060568809509,
-0.0185272004455328,
0.038726285099983215,
0.04831402376294136,
-0.00859399326145649,
0.008713413961231709,
-0.04169473052024841,
0.07281223684549332,
-0.03633787855505943,
-0.0285414420068264,
-0.09280660003423691,
0.026664838194847107,
-0.031049268320202827,
-0.002806376200169325,
-0.044083137065172195,
0.007979832589626312,
0.00271894340403378,
0.027722559869289398,
-0.03427361324429512,
-0.0003697229840327054,
0.036747321486473083,
-0.020472044125199318,
-0.00012828348553739488,
-0.0030878668185323477,
0.03132222965359688,
-0.0007405122159980237,
0.04169473052024841,
-0.029633283615112305,
0.020932665094733238,
-0.004478259943425655,
-0.06670474261045456,
0.05380735546350479,
-0.005416561849415302,
-0.03551899641752243,
-0.03125398978590965,
0.037259120494127274,
0.01967022195458412,
0.017520658671855927,
0.04831402376294136,
0.007638631854206324,
-0.01944844238460064,
0.06629530340433121,
-0.021785667166113853,
-0.03579195961356163,
0.07874913513660431,
-0.017060037702322006,
-0.02221216820180416,
-0.021325046196579933,
-0.02456645295023918,
0.03130516782402992,
-0.03582607954740524,
0.05513804033398628,
-0.013724800199270248,
-0.05326143652200699,
0.0559910424053669,
0.038453321903944016,
-0.03391535207629204,
-0.03280645236372948,
0.006307948846369982,
-0.0411146879196167,
-0.018578380346298218,
0.005028445739299059,
0.052169594913721085,
-0.020983844995498657,
0.007485091220587492,
0.04244537279009819,
0.033369433134794235,
0.013477429747581482,
0.02318459004163742,
0.015737883746623993,
-0.02697191946208477,
-0.0037254856433719397,
0.09000875800848007,
-0.019380202516913414,
-0.013451838865876198,
0.016923556104302406,
-0.03736148029565811,
-0.014867822639644146,
-0.04507261887192726,
0.004772545304149389,
0.0032350094988942146,
-0.06264445930719376,
0.009340370073914528,
-0.013281239196658134,
0.0009537626756355166,
0.00725051574409008,
0.010858713649213314,
-0.01740976795554161,
0.09642332792282104,
0.00028069093241356313,
-0.007301696110516787,
0.05837944522500038,
0.01885134167969227,
-0.010244552046060562,
0.01258177775889635,
-0.02328694984316826,
0.024771174415946007,
0.045004379004240036,
0.01498724240809679,
-0.01796421967446804,
0.00010522577940719202,
0.055410999804735184,
0.0018648753175511956,
0.06813778728246689,
-0.015490513294935226,
-0.038180362433195114,
-0.011293744668364525,
-0.009169770404696465,
0.012940037995576859,
0.022894570603966713,
-0.01602790504693985,
0.038316842168569565,
-0.028524382039904594,
0.032669972628355026,
-0.0123088164255023,
-0.05524040013551712,
-0.016505585983395576,
-0.03103220835328102,
-0.02840496227145195,
-0.03325001150369644,
-0.05339791625738144,
0.013264179229736328,
0.009101529605686665,
-0.027910221368074417,
0.019926123321056366,
0.0005451214965432882,
0.0323287695646286,
0.08577786386013031,
0.023525791242718697,
-0.007860411889851093,
-0.03592843934893608,
-0.012317346408963203,
0.02355991117656231,
-0.02729605883359909,
-0.012180866673588753,
0.040671128779649734,
0.0017689126543700695,
0.0018211589194834232,
-0.0224510096013546,
0.011012254282832146,
0.011524055153131485,
0.02918972261250019,
0.014031880535185337,
-0.022331587970256805,
-0.011737305670976639,
-0.027824919670820236,
0.01487635262310505,
-0.049030546098947525,
-0.03444421663880348,
-0.017520658671855927,
0.03372769430279732,
-0.043161895126104355,
-0.026630718261003494,
0.0010102740488946438,
-0.028046701103448868,
0.04022756591439247,
0.006998880300670862,
0.005024180747568607,
0.0007293166127055883,
0.01018484216183424,
0.044083137065172195,
-0.07513240724802017,
-0.027176639065146446,
-0.015806123614311218,
0.06319037824869156,
0.010278671979904175,
-0.04254773259162903,
0.044321976602077484,
-0.05278375372290611,
0.059607770293951035,
-0.03551899641752243,
0.03362533450126648,
0.06701182574033737,
-0.030588647350668907,
0.000622158229816705,
0.001109968638047576,
-0.04022756591439247,
-0.03763444349169731,
0.011438755318522453,
-0.010773413814604282,
-0.06523758172988892,
-0.0009766871808096766,
-0.038862764835357666,
-0.007348611019551754,
0.0066576795652508736,
-0.025743596255779266,
-0.019482562318444252,
-0.011174323968589306,
0.03852156549692154,
0.03248231112957001,
-0.022195108234882355,
0.005002855788916349,
-0.04346897453069687,
0.016138795763254166,
0.027637260034680367,
-0.040159326046705246,
-0.032908812165260315,
0.019039001315832138,
0.01735858805477619,
-0.02248512953519821,
-0.021137386560440063,
0.04964470863342285,
-0.016471466049551964,
0.012735317461192608,
0.024515273049473763,
0.018783101812005043,
-0.046539779752492905,
0.02424231357872486,
-0.0032733946572989225,
0.0017497200751677155,
-0.015481983311474323,
0.015968194231390953,
0.0052544912323355675,
-0.0017017386853694916,
-0.026391876861453056,
-0.02023320458829403,
0.02656247839331627,
-0.04722218215465546,
0.028524382039904594,
0.03029862605035305,
-0.01949962228536606,
0.012522066943347454,
-0.010355442762374878,
-0.037668563425540924,
-0.026818377897143364,
0.06946846842765808,
-0.07363112270832062,
-0.02355991117656231,
0.008871219120919704,
0.06820602715015411,
-0.08482250571250916,
-0.06305389851331711,
0.0020973184145987034,
-0.0022519249469041824,
-0.018953701481223106,
0.019004881381988525,
0.05837944522500038,
-0.005599956959486008,
-0.03427361324429512,
-0.0037873282562941313,
0.007962772622704506,
-0.019158421084284782,
-0.016147324815392494,
-0.008303972892463207,
-0.0189366415143013,
0.0014703619526699185,
-0.024975894019007683,
-0.0023308275267481804,
0.04763162508606911,
0.016846787184476852,
0.02831966243684292,
-0.035962559282779694,
0.030179206281900406,
-0.023013990372419357,
-0.012726787477731705,
0.018168939277529716,
-0.047085702419281006,
0.0005709780962206423,
0.008257057517766953,
-0.01640322618186474,
0.03698616102337837,
0.05298847705125809,
-0.02618715725839138,
-0.005872917827218771,
-0.007979832589626312,
0.016411755234003067,
-0.03865804523229599,
0.001283767749555409,
-0.022229228168725967,
0.03202169016003609,
-0.07294871658086777,
-0.05551335960626602,
0.005361116491258144,
0.009050349704921246,
0.0495082288980484,
0.014330430887639523,
-0.01299974787980318,
-0.03007684461772442,
-0.038965124636888504,
-0.04711982235312462,
-0.027654320001602173,
-0.0251635555177927,
0.01485076267272234,
-0.04036404937505722,
0.016369106248021126,
-0.004913290496915579,
-0.08823451399803162,
0.011097554117441177,
-0.009920411743223667,
-0.010628403164446354,
-0.030827486887574196,
-0.010039831511676311,
-0.029957424849271774,
-0.017034446820616722,
0.011541115120053291,
0.014569271355867386,
0.024549392983317375,
0.05605928227305412,
-0.017162397503852844,
0.0150810731574893,
0.02120562642812729,
0.019874943420290947,
0.006431634072214365,
-0.034529514610767365,
0.035314276814460754,
0.01888546161353588,
0.0006648083217442036,
-0.00040011119563132524,
0.025607116520404816,
-0.024174071848392487,
-0.026937799528241158,
0.0022028773091733456,
-0.030230386182665825,
-0.040568768978118896,
0.10911599546670914,
0.0009644252131693065,
0.005744967609643936,
0.01866368018090725,
-0.010457802563905716,
0.04295717179775238,
0.036781441420316696,
0.07772552967071533,
0.03331825137138367,
-0.06636354327201843,
0.010841653682291508,
-0.02983800508081913,
0.002710413420572877,
0.022092748433351517,
0.01871486008167267,
-0.02239982783794403,
0.04299129173159599,
-0.020847365260124207,
0.014867822639644146,
-0.020608525723218918,
0.03103220835328102,
-0.023815812543034554,
-0.022092748433351517,
-0.05718524381518364,
0.004810930695384741,
-0.02956504374742508,
0.0028596888296306133,
-0.02077912539243698,
-0.03934044390916824,
0.06622706353664398,
0.003480247687548399,
0.0003145444206893444,
0.03214111179113388,
0.033232953399419785,
0.0050966860726475716,
-0.005420826841145754,
-0.0017347924876958132,
0.06704594939947128,
-0.017998339608311653,
-0.010662523098289967,
0.002420392818748951,
-0.02997448481619358,
-0.009186830371618271,
-0.05472859740257263,
-0.03746384009718895,
-0.024447033181786537,
-0.023935232311487198,
-0.030554527416825294,
-0.031612247228622437,
-0.0071524204686284065,
0.0007820960599929094
] |
725,244 | builtins | safe_open | Opens a safetensors lazily and returns tensors as asked
Args:
filename (`str`, or `os.PathLike`):
The filename to open
framework (`str`):
The framework you want you tensors in. Supported values:
`pt`, `tf`, `flax`, `numpy`.
device (`str`, defaults to `"cpu"`):
The device on which you want the tensors. | from builtins import safe_open
| (self, filename, framework, device='cpu') | [
-0.001867330283857882,
-0.037876687943935394,
0.0022026465740054846,
0.06386671215295792,
0.025363566353917122,
0.01890621706843376,
0.01362147182226181,
0.0661797896027565,
-0.018665270879864693,
-0.018938343971967697,
0.05278320237994194,
0.02576514333486557,
-0.013653597794473171,
0.01688227243721485,
-0.03932236135005951,
0.029925474897027016,
-0.010424924083054066,
0.08327088505029678,
-0.024849548935890198,
0.05345785245299339,
-0.0652802586555481,
0.014488876797258854,
-0.009412950836122036,
-0.045811835676431656,
-0.00942098256200552,
0.09804889559745789,
-0.027210818603634834,
-0.005698369350284338,
-0.007220343686640263,
-0.08121481537818909,
0.015396439470350742,
-0.01659313775599003,
0.05050224810838699,
0.028399484232068062,
-0.014103363268077374,
-0.04600459337234497,
0.013806196860969067,
0.041217803955078125,
-0.05348997935652733,
-0.09920543432235718,
0.008858775720000267,
0.029218699783086777,
-0.01898653246462345,
-0.03353966027498245,
-0.028688618913292885,
0.010183977894484997,
-0.050727132707834244,
-0.04038252308964729,
0.03239918500185013,
-0.02118717133998871,
0.04831767454743385,
0.0012529183877632022,
0.011147760786116123,
-0.024415845051407814,
-0.02078559435904026,
0.06450923532247543,
-0.0017358140321448445,
0.02708231285214424,
-0.022167017683386803,
-0.02460860274732113,
-0.018970469012856483,
0.0044615138322114944,
0.03146752715110779,
-0.06023646146059036,
0.023002296686172485,
0.03472832962870598,
-0.0518515482544899,
-0.032961390912532806,
-0.01758904755115509,
0.01456116046756506,
-0.01807093806564808,
0.005987504497170448,
-0.05005248263478279,
-0.003829031018540263,
0.05130540207028389,
-0.020223388448357582,
-0.0720909982919693,
0.002499813213944435,
-0.008963185362517834,
0.00765003077685833,
0.025716952979564667,
-0.06720782816410065,
0.04211733490228653,
0.07472533732652664,
-0.006409159395843744,
-0.05744149163365364,
0.032575879245996475,
0.004216552246361971,
-0.015275966376066208,
0.06100748851895332,
0.008858775720000267,
0.06062197685241699,
-0.07787369936704636,
-0.013436746783554554,
0.010874689556658268,
-0.018777713179588318,
0.04237434267997742,
0.022006386891007423,
-0.002991744317114353,
-0.03925811126828194,
-0.013019107282161713,
0.03392517566680908,
-0.01962905563414097,
-0.02716262824833393,
-0.005585927981883287,
-0.013806196860969067,
0.036720145493745804,
0.014119426719844341,
-0.0350174643099308,
-0.05657408386468887,
-0.06502325087785721,
-0.056092195212841034,
-0.014288089238107204,
0.04295261204242706,
0.0010159882949665189,
-0.0383264534175396,
0.03720203787088394,
0.018858028575778008,
0.049088701605796814,
-0.013886512257158756,
-0.0006194316083565354,
0.036238256841897964,
-0.04754664748907089,
0.007654046639800072,
0.10261080414056778,
0.05120902508497238,
-0.0028331216890364885,
-0.00988681148737669,
0.07087020576000214,
0.02054465003311634,
0.023773323744535446,
0.028624366968870163,
0.0008443144033662975,
-0.01805487461388111,
-0.015356281772255898,
-0.013549188151955605,
-0.0350174643099308,
0.054293129593133926,
-0.0016735696699470282,
0.007662077900022268,
0.018777713179588318,
-0.05053437501192093,
-0.031098077073693275,
-0.012207922525703907,
-0.05246194079518318,
0.010296419262886047,
0.0022167018614709377,
-0.012553278356790543,
-0.018825901672244072,
0.026728926226496696,
0.04221371188759804,
-0.01821550540626049,
-0.03691290318965912,
0.06926389783620834,
0.019966378808021545,
0.006642073858529329,
0.028431609272956848,
-0.04057528078556061,
-0.006581837311387062,
-0.042470719665288925,
-0.009838622063398361,
0.015798015519976616,
-0.04118567705154419,
0.014255962334573269,
0.01046508178114891,
0.006798688787966967,
0.003296942450106144,
-0.047675151377916336,
0.06132875010371208,
-0.018552830442786217,
0.025941835716366768,
0.004602065775543451,
-0.014625413343310356,
0.034150056540966034,
0.04385214298963547,
-0.003798912977799773,
-0.03549935668706894,
0.035145968198776245,
-0.019018659368157387,
0.015051083639264107,
-0.010922878049314022,
-0.0032688321080058813,
-0.03816582262516022,
0.004626160487532616,
0.029379330575466156,
0.04443041607737541,
0.006593884900212288,
-0.03402155265212059,
0.04256710037589073,
-0.0006420203135348856,
-0.026022151112556458,
0.0016534909373149276,
0.004891200922429562,
-0.03578849136829376,
-0.012826350517570972,
-0.07421132177114487,
-0.06415584683418274,
0.0036603689659386873,
-0.020367955788969994,
0.02226339653134346,
-0.05214068293571472,
0.04259922727942467,
0.035692110657691956,
-0.018472515046596527,
0.010537365451455116,
0.02287379279732704,
0.007336800917983055,
-0.016609201207756996,
-0.06039709225296974,
0.07453258335590363,
0.005746558308601379,
-0.05557817593216896,
-0.03835858032107353,
0.05737723782658577,
0.05371486023068428,
0.05088776350021362,
-0.02942751906812191,
0.011147760786116123,
-0.04667924344539642,
0.03912960737943649,
0.08564821630716324,
0.06062197685241699,
-0.011541306041181087,
-0.017396289855241776,
0.08352789282798767,
-0.035467229783535004,
-0.01248902641236782,
0.02847979962825775,
0.03379667177796364,
0.03948299214243889,
0.031708475202322006,
-0.04825342074036598,
0.004830964375287294,
0.02819066494703293,
0.0033230448607355356,
-0.037491172552108765,
0.015340219251811504,
-0.00033355940831825137,
-0.011854535900056362,
-0.0077223144471645355,
-0.011043351143598557,
0.000990387867204845,
0.017251722514629364,
0.047675151377916336,
0.02125142328441143,
-0.035916995257139206,
0.00428080465644598,
0.05712023004889488,
0.01494667399674654,
-0.003867180785164237,
0.08327088505029678,
0.00685089360922575,
-0.06165001168847084,
-0.014882422052323818,
0.01019200962036848,
0.004497655667364597,
0.00804357510060072,
-0.04240646958351135,
-0.003068043850362301,
0.02210276573896408,
-0.01697865128517151,
-0.0020430199801921844,
0.03549935668706894,
-0.029138384386897087,
-0.0644771084189415,
-0.05544967204332352,
-0.03572423756122589,
-0.015283998101949692,
0.029636340215802193,
-0.034374941140413284,
0.021974261850118637,
0.03912960737943649,
0.021685127168893814,
-0.02038401924073696,
-0.07626739144325256,
-0.05124115198850632,
0.04796428605914116,
0.004513718653470278,
0.07787369936704636,
0.01560525968670845,
-0.03019854612648487,
0.07022768259048462,
-0.024881673976778984,
0.007136012893170118,
-0.017219597473740578,
-0.015773922204971313,
-0.04552270099520683,
-0.06351332366466522,
-0.03575636446475983,
-0.028784997761249542,
-0.00337725761346519,
0.013741944916546345,
0.041988831013441086,
0.004525766242295504,
0.04414127767086029,
0.018825901672244072,
-0.03970787674188614,
-0.06849287450313568,
0.0720909982919693,
-0.036238256841897964,
-0.02234371192753315,
-0.023082612082362175,
-0.008866807445883751,
0.04311324283480644,
-0.020448271185159683,
-0.052044302225112915,
-0.01148508582264185,
-0.039515119045972824,
-0.05808401107788086,
0.05458226427435875,
0.009284446947276592,
-0.012625562027096748,
0.01416761614382267,
0.010143820196390152,
0.058276768773794174,
0.026343412697315216,
-0.03398942947387695,
0.02562057599425316,
0.005670258775353432,
0.0345676988363266,
-0.027901528403162956,
-0.014231868088245392,
0.04912082850933075,
-0.003700526664033532,
-0.023532377555966377,
-0.01378210261464119,
0.08127906918525696,
-0.023146864026784897,
0.03418218344449997,
0.07138422131538391,
-0.06566577404737473,
0.03135508671402931,
0.031483590602874756,
-0.0074893999844789505,
-0.007967276498675346,
0.06055772304534912,
-0.0027728851418942213,
-0.03720203787088394,
0.004702460020780563,
-0.04818917065858841,
-0.02125142328441143,
0.03874409198760986,
0.01781393028795719,
-0.029058068990707397,
-0.07151272892951965,
-0.013774070888757706,
0.02133173868060112,
-0.009910905733704567,
0.04552270099520683,
-0.06499112397432327,
0.032656192779541016,
0.00377682619728148,
-0.04250284656882286,
-0.03543510288000107,
-0.036848653107881546,
0.022681035101413727,
0.0022789461072534323,
0.04754664748907089,
0.0005132648511789739,
0.0179103072732687,
0.06171426177024841,
-0.02483348548412323,
-0.01821550540626049,
-0.01464147586375475,
0.012497058138251305,
-0.028367357328534126,
0.018890153616666794,
0.022713162004947662,
-0.007870897650718689,
0.030166421085596085,
-0.020191261544823647,
-0.02093016356229782,
-0.03633463382720947,
-0.027596330270171165,
-0.0219421349465847,
-0.007517510559409857,
-0.01696258783340454,
0.007734361570328474,
-0.05153028666973114,
0.06842862069606781,
0.02637553960084915,
0.057248733937740326,
0.027837276458740234,
-0.031724534928798676,
-0.03212611377239227,
-0.05108052119612694,
-0.039290234446525574,
0.03450344502925873,
-0.00045980498543940485,
0.006581837311387062,
0.016480695456266403,
-0.009637833572924137,
0.0523013137280941,
-0.002212685998529196,
-0.0002622795873321593,
0.009388856589794159,
0.006959319114685059,
-0.009196099825203419,
0.03005397878587246,
0.07344029098749161,
0.014296120032668114,
0.06720782816410065,
-0.006393096409738064,
0.01829582080245018,
0.00006199335621204227,
0.04587608948349953,
0.03247949853539467,
0.0002580128493718803,
0.03713778778910637,
-0.019870001822710037,
-0.0023331588599830866,
-0.025716952979564667,
-0.011179887689650059,
-0.05345785245299339,
0.021540557965636253,
-0.014103363268077374,
-0.02645585499703884,
-0.04375576600432396,
0.00675451522693038,
-0.04414127767086029,
0.0033230448607355356,
-0.061232373118400574,
-0.032961390912532806,
0.052108556032180786,
-0.035531479865312576,
-0.05689534544944763,
0.012802256271243095,
-0.009180036373436451,
0.021283550187945366,
0.021829694509506226,
-0.04391639679670334,
0.00640514399856329,
0.0016012859996408224,
-0.031403277069330215,
0.029684528708457947,
0.0025098526384681463,
-0.03874409198760986,
0.0333147794008255,
0.04883169010281563,
0.03418218344449997,
0.042534973472356796,
0.02671286277472973,
0.036077626049518585,
-0.0013252021744847298,
0.045265693217515945,
-0.018874092027544975,
-0.025395693257451057,
0.09830590337514877,
0.03559573367238045,
0.006413175258785486,
-0.015541006810963154,
-0.03768393024802208,
-0.006481443531811237,
0.01860101893544197,
-0.049474213272333145,
-0.02515474706888199,
0.01322792749851942,
0.024383720010519028,
-0.014328246004879475,
0.0035760379396378994,
-0.004337025340646505,
0.03800519183278084,
0.06341695040464401,
-0.05940118432044983,
0.004995610564947128,
0.007818692363798618,
-0.03199760988354683,
0.030535871163010597,
0.013171706348657608,
-0.023371746763586998,
0.0015380376717075706,
0.02015913650393486,
-0.032495561987161636,
-0.013460841029882431,
0.009300509467720985,
0.057023849338293076,
0.0002424517588224262,
0.038583461195230484,
0.03135508671402931,
-0.016689516603946686,
-0.0341179333627224,
-0.133259117603302,
-0.01105138286948204,
0.013051233254373074,
-0.019564803689718246,
-0.059208426624536514,
0.0035981247201561928,
-0.03440706804394722,
0.02084984816610813,
-0.006593884900212288,
0.08442742377519608,
0.09432227164506912,
-0.029780907556414604,
-0.06113599240779877,
0.07324753701686859,
0.05564242601394653,
-0.06103961542248726,
0.04407702758908272,
-0.0028793029487133026,
-0.06483049690723419,
-0.012199891731142998,
-0.044719550758600235,
-0.028511924669146538,
0.01884196512401104,
0.009196099825203419,
0.05194792523980141,
0.047129008919000626,
-0.04144268482923508,
-0.008312631398439407,
-0.04661498963832855,
0.002088197274133563,
0.0064412858337163925,
0.006168213672935963,
0.01494667399674654,
0.05201217532157898,
-0.009412950836122036,
-0.014071237295866013,
0.0257008895277977,
-0.03193335607647896,
0.01953267678618431,
0.008762397803366184,
-0.0641237199306488,
-0.039225984364748,
-0.08866807073354721,
-0.026423728093504906,
-0.0780021995306015,
0.0035378881730139256,
0.049699097871780396,
-0.017492668703198433,
0.04497655853629112,
0.048703186213970184,
-0.04031827300786972,
0.021428117528557777,
-0.08243560791015625,
0.015043052844703197,
0.07311903685331345,
-0.019741496071219444,
0.002495797351002693,
-0.0016615224303677678,
0.02537962980568409,
0.0022448122035712004,
0.028929565101861954,
0.0004070980940014124,
0.0025058367755264044,
0.007372942753136158,
-0.02264891006052494,
-0.05223705992102623,
-0.02017519809305668,
0.04288836196064949,
0.011163824237883091,
0.015123367309570312,
-0.016231719404459,
0.0038069444708526134,
0.036013372242450714,
0.020351892337203026,
-0.0661797896027565,
0.016785893589258194,
-0.040896542370319366,
-0.04590821638703346,
-0.019034722819924355,
0.010063504800200462,
0.004915295168757439,
-0.07427557557821274,
0.02084984816610813,
-0.07356879860162735,
-0.027853339910507202,
-0.01876164972782135,
0.03466407582163811,
-0.011276265606284142,
0.01143689639866352,
0.03398942947387695,
0.014922579750418663,
0.09959094971418381,
-0.01734810136258602,
0.032656192779541016,
0.008593735285103321,
0.038262199610471725,
0.029620276764035225,
0.04124993085861206,
-0.022921981289982796,
-0.019323857501149178,
-0.027210818603634834,
-0.03225461766123772,
-0.032881077378988266,
-0.0015641400823369622,
-0.0582125186920166,
0.00685089360922575,
0.05358635634183884,
-0.018825901672244072,
-0.009621771052479744,
-0.015541006810963154,
-0.04851043224334717,
0.016561010852456093,
-0.0695851594209671,
0.024929864332079887,
-0.013533124700188637,
-0.015838174149394035,
0.00022061604249756783,
-0.00009060568118002266,
-0.026134593412280083,
0.021588748320937157,
-0.011147760786116123,
-0.05066287890076637,
0.03450344502925873,
0.020817721262574196,
0.0137017872184515,
0.04561908170580864,
-0.019355982542037964,
-0.03035917691886425,
0.01752479560673237,
-0.03305777162313461,
0.0002926488232333213,
-0.004859074484556913,
-0.02157268486917019,
0.014601318165659904,
0.10286781191825867,
-0.003513793693855405,
-0.005650179926306009,
-0.005344982258975506,
0.051498159766197205,
-0.030937446281313896,
-0.024415845051407814,
-0.016215655952692032,
-0.014296120032668114,
-0.0019275668310001493,
0.046743493527173996,
0.014079269021749496,
0.026102466508746147,
-0.017492668703198433,
-0.007316722068935633,
-0.014810138382017612,
0.02007882110774517,
0.08339939266443253,
0.03742692247033119,
-0.0025981992948800325,
0.002584144240245223,
0.017621172592043877,
-0.006915146019309759,
0.016866208985447884,
0.041153550148010254,
-0.02412671037018299,
-0.08127906918525696,
-0.04561908170580864,
-0.04754664748907089,
-0.02374119684100151,
-0.030792878940701485,
-0.02849586308002472,
-0.003676431952044368,
0.030070042237639427,
-0.05728086084127426,
0.004220568109303713,
0.04035039618611336,
0.02009488455951214,
-0.0005521675921045244,
-0.010786342434585094,
-0.01533218752592802,
0.08269261568784714,
-0.05503203347325325,
0.05419675260782242,
-0.008882869966328144,
0.005409234203398228,
0.0015962662873789668,
-0.0175087321549654,
0.032961390912532806,
-0.016079120337963104,
-0.024624666199088097,
-0.014769980683922768,
-0.020496459677815437,
0.011726031079888344,
0.0005371084553189576,
0.019677244126796722,
0.009589645080268383,
-0.015436597168445587,
-0.026761051267385483,
0.008107827976346016,
-0.020062757655978203,
0.05268682539463043,
0.019115036353468895,
0.048060666769742966,
0.03540297597646713,
-0.02661648392677307,
0.014127458445727825,
0.020287640392780304,
-0.054775021970272064,
-0.007003492675721645,
0.04494443163275719,
-0.03813369572162628,
0.041924577206373215,
0.04073591157793999,
-0.022359775379300117,
0.00011495124635985121,
0.03575636446475983,
-0.058501653373241425,
-0.018954407423734665,
-0.050566501915454865,
-0.007144044619053602,
0.01991819031536579,
0.03283288702368736,
0.026102466508746147,
0.021460244432091713,
0.019982442259788513,
-0.0059553780592978,
0.05628494918346405,
-0.05837314575910568,
0.003254776820540428,
-0.06023646146059036,
-0.025235062465071678,
0.022231269627809525,
-0.04275985807180405,
0.021460244432091713,
-0.021685127168893814,
-0.002359261503443122,
-0.012408711016178131,
-0.003837062744423747,
0.01977362297475338,
-0.03861558809876442,
-0.06971366703510284,
0.02677711471915245,
0.036013372242450714,
-0.034439194947481155,
0.01861708238720894,
0.007734361570328474,
-0.006710341665893793,
0.039225984364748,
0.0074934158474206924,
0.0008904957212507725,
-0.1305605173110962,
0.010119725950062275,
0.016119277104735374,
0.02125142328441143,
0.019115036353468895,
-0.012938791885972023,
-0.07054894417524338,
0.047129008919000626,
-0.021701188758015633,
-0.012946823611855507,
-0.038422830402851105,
0.022536467760801315,
0.007039634510874748,
0.02700199745595455,
0.008738302625715733,
-0.02568482793867588,
-0.0446874238550663,
-0.00803554430603981,
0.010617679916322231,
-0.03521021828055382,
0.08352789282798767,
-0.01712321862578392,
-0.01969330757856369,
0.08468443155288696,
-0.010481144301593304,
0.03816582262516022,
0.0034515492152422667,
0.05782700330018997,
0.037169910967350006,
0.013131548650562763,
-0.02023945190012455,
0.0006992449052631855,
-0.013003043830394745,
0.008384915068745613,
-0.04080016538500786,
0.03617400303483009,
0.0038069444708526134,
0.013187769800424576,
-0.0033491472713649273,
-0.016159435734152794,
-0.023564504459500313,
-0.025283250957727432
] |
725,247 | notebook | _jupyter_labextension_paths | null | def _jupyter_labextension_paths() -> list[dict[str, str]]:
return [{"src": "labextension", "dest": "@jupyter-notebook/lab-extension"}]
| () -> list[dict[str, str]] | [
0.008307082578539848,
-0.04122040793299675,
0.023814236745238304,
-0.005301052704453468,
-0.01527315191924572,
0.03627036139369011,
-0.01091710850596428,
0.07318872958421707,
0.02046620287001133,
0.013734136708080769,
0.03565835580229759,
-0.01834218204021454,
0.012348122894763947,
0.012897128239274025,
-0.05263252183794975,
-0.06541264802217484,
0.05518854781985283,
0.02754027396440506,
-0.0422644205391407,
0.003062280360609293,
-0.014103139750659466,
-0.029214290902018547,
0.010728106833994389,
-0.01527315191924572,
-0.030186299234628677,
0.06660065799951553,
0.06980469077825546,
-0.01119611132889986,
0.02201421931385994,
-0.04500044509768486,
-0.05392853543162346,
-0.0316983163356781,
-0.021762216463685036,
0.0038970387540757656,
-0.03141031041741371,
0.007042570039629936,
-0.009981099516153336,
0.06436864286661148,
-0.06472864001989365,
-0.028332281857728958,
0.01664116606116295,
0.016650164499878883,
0.024750245735049248,
-0.03906038776040077,
0.046116456389427185,
0.022734226658940315,
-0.08553685247898102,
0.00409504072740674,
0.02241022326052189,
0.0030465302988886833,
0.027288271114230156,
-0.02503824792802334,
0.007303572725504637,
-0.013311131857335567,
-0.034380342811346054,
0.05878858268260956,
0.039708394557237625,
0.06336063146591187,
0.026622263714671135,
0.04395643621683121,
-0.023004228249192238,
-0.01996219903230667,
0.024750245735049248,
-0.012618125416338444,
-0.03259832412004471,
0.019800197333097458,
-0.005971559323370457,
-0.05169651284813881,
-0.036594364792108536,
-0.0072045717388391495,
-0.012222121469676495,
-0.03630635887384415,
-0.014139140024781227,
-0.04410043731331825,
0.014310142025351524,
-0.028818286955356598,
0.009306092746555805,
-0.009864098392426968,
-0.03094230778515339,
0.016479164361953735,
-0.05817657709121704,
-0.013446133583784103,
-0.03189631551504135,
0.007326072547584772,
0.05194851756095886,
0.0020441452506929636,
0.03348033130168915,
0.0020666455384343863,
0.018288182094693184,
0.0031725314911454916,
-0.02365223504602909,
-0.07156871259212494,
0.015057149343192577,
-0.0401763990521431,
-0.01352713443338871,
-0.05475654453039169,
-0.015930159017443657,
-0.0018720185616984963,
0.02530825138092041,
0.025254251435399055,
-0.0002840653178282082,
-0.06487264484167099,
-0.009477093815803528,
0.05878858268260956,
0.015813156962394714,
0.00630456255748868,
-0.005553055088967085,
0.032148320227861404,
-0.038340382277965546,
-0.05342452973127365,
-0.04374043270945549,
0.04190441593527794,
0.005530554801225662,
-0.06487264484167099,
0.05943658947944641,
0.05601655691862106,
-0.007605075370520353,
-0.03045630268752575,
0.06915668398141861,
0.0047700474970042706,
-0.07452073693275452,
0.08798487484455109,
-0.016992168501019478,
-0.00625506229698658,
0.05220051854848862,
-0.02462424524128437,
0.006138061173260212,
0.043308429419994354,
-0.05634056031703949,
-0.08560884743928909,
0.009387093596160412,
0.01938619278371334,
-0.06922868639230728,
-0.011655115522444248,
-0.0026280260644853115,
-0.0051840515807271,
-0.0008572585065849125,
-0.02736027166247368,
0.0507965050637722,
0.05450453981757164,
-0.05475654453039169,
0.024948248639702797,
-0.038736384361982346,
0.05450453981757164,
-0.006939068902283907,
-0.035136349499225616,
0.028386281803250313,
0.023976238444447517,
-0.027720274403691292,
0.016677165403962135,
-0.00856358464807272,
0.021294211968779564,
-0.03726036846637726,
-0.04161641374230385,
0.0004064102831762284,
-0.015345152467489243,
0.0012127620866522193,
0.018225181847810745,
0.05014849826693535,
-0.0038655383978039026,
0.008104580454528332,
-0.00435379333794117,
-0.012933128513395786,
0.025560254231095314,
-0.007443074136972427,
0.03353433310985565,
-0.01304112933576107,
-0.01402213890105486,
-0.038340382277965546,
0.046872466802597046,
0.032544322311878204,
-0.020214200019836426,
0.05806857720017433,
0.006916568614542484,
0.059112586081027985,
0.007987579330801964,
0.010593105107545853,
0.055332548916339874,
0.06487264484167099,
-0.008469084277749062,
-0.024984247982501984,
0.05634056031703949,
-0.019260190427303314,
0.10332102328538895,
-0.03238232061266899,
0.0151291498914361,
-0.006111060734838247,
-0.022158220410346985,
-0.010116100311279297,
0.030708305537700653,
-0.04237242043018341,
0.06980469077825546,
0.03697236627340317,
0.054936546832323074,
-0.046116456389427185,
0.005670056212693453,
0.02241022326052189,
0.024588244035840034,
-0.06933669000864029,
0.0008735711453482509,
-0.008887588046491146,
-0.0064440639689564705,
0.026838267222046852,
0.016038158908486366,
0.019854197278618813,
0.014139140024781227,
-0.01076410710811615,
0.004329042974859476,
-0.006970569025725126,
0.019800197333097458,
0.02626226097345352,
-0.002619025995954871,
-0.031266309320926666,
-0.03634236007928848,
0.009558094665408134,
-0.010017099790275097,
-0.04888848587870598,
0.05428854003548622,
-0.0025425252970308065,
-0.000836445833556354,
-0.05313652753829956,
-0.033588334918022156,
0.002594275865703821,
0.02512824907898903,
-0.03123030997812748,
0.02122221142053604,
0.07776077091693878,
0.01580415666103363,
0.03837637975811958,
-0.023490233346819878,
-0.018882187083363533,
0.004905048757791519,
0.05508054792881012,
-0.01929619163274765,
-0.017163170501589775,
0.042804423719644547,
0.0021926467306911945,
0.004376293625682592,
0.044280439615249634,
0.02968229539692402,
-0.0063855634070932865,
0.014310142025351524,
0.02395823784172535,
0.00797857902944088,
0.005454054102301598,
-0.03348033130168915,
0.05428854003548622,
-0.023886237293481827,
0.02219421975314617,
-0.024318240582942963,
0.039888396859169006,
0.04237242043018341,
0.027702275663614273,
-0.018108179792761803,
-0.07531274855136871,
0.009540094994008541,
0.017343172803521156,
-0.01902618817985058,
0.018252180889248848,
-0.03927639126777649,
-0.027774276211857796,
-0.02966429479420185,
-0.029430292546749115,
-0.024750245735049248,
-0.042228419333696365,
-0.027018267661333084,
-0.0019260190892964602,
0.017451172694563866,
-0.02862028405070305,
0.041544411331415176,
0.10627305507659912,
0.05014849826693535,
-0.06278462707996368,
-0.003343533258885145,
-0.010899107903242111,
0.019332192838191986,
-0.00031922193011268973,
0.013383133336901665,
0.015435153618454933,
-0.02800827845931053,
-0.017451172694563866,
-0.03798037767410278,
-0.017775176092982292,
0.02754027396440506,
0.015345152467489243,
-0.05954459309577942,
-0.026910267770290375,
-0.03927639126777649,
-0.04982449486851692,
-0.026010258123278618,
0.047268468886613846,
0.04644045978784561,
-0.015903158113360405,
-0.02066420577466488,
0.0056295557878911495,
0.05508054792881012,
-0.01518315076828003,
-0.006637565791606903,
0.04082440584897995,
0.044460441917181015,
-0.04100440815091133,
0.016128160059452057,
-0.015552154742181301,
0.023598235100507736,
-0.05947259068489075,
-0.037404369562864304,
-0.004851048346608877,
-0.05072450265288353,
0.0016650165198370814,
0.03357033431529999,
0.017073169350624084,
-0.04287642613053322,
0.054252538830041885,
0.0418684147298336,
-0.014715146273374557,
0.018666185438632965,
0.018351182341575623,
0.03508234769105911,
-0.013815137557685375,
0.02190621756017208,
0.004707046784460545,
0.0393843911588192,
-0.015876157209277153,
0.004842048045247793,
0.02676626667380333,
-0.005940059199929237,
0.02930429019033909,
-0.02626226097345352,
0.02008819952607155,
-0.021258210763335228,
-0.010809107683598995,
-0.012051119469106197,
0.0025087748654186726,
-0.006538564804941416,
0.03391233831644058,
0.03520834818482399,
0.032148320227861404,
-0.004340292885899544,
0.005431553814560175,
-0.025542253628373146,
0.013167130760848522,
-0.023832237347960472,
-0.053784534335136414,
0.009396092966198921,
-0.008910088799893856,
-0.029934296384453773,
0.007483574096113443,
0.09388893097639084,
-0.0471244677901268,
-0.009369092993438244,
0.02433624118566513,
0.05306452512741089,
-0.0918729156255722,
-0.007650075946003199,
-0.024030238389968872,
0.01405813917517662,
-0.06476464122533798,
-0.03798037767410278,
-0.023346232250332832,
0.03751237317919731,
0.024804245680570602,
-0.0018078929278999567,
0.019422192126512527,
0.0021127709187567234,
-0.009576095268130302,
-0.00327378255315125,
0.09813697636127472,
-0.029610294848680496,
0.051732514053583145,
-0.04849248006939888,
0.0007025694940239191,
0.05284852534532547,
0.0235622338950634,
-0.04586445540189743,
-0.027072269469499588,
-0.05101250484585762,
0.00858608540147543,
-0.016506163403391838,
-0.08258482068777084,
0.02997029758989811,
0.05050850287079811,
-0.0032895326148718596,
-0.010098100639879704,
0.0006030059885233641,
-0.010305101983249187,
0.01635316200554371,
0.02250022254884243,
-0.02046620287001133,
-0.02754027396440506,
-0.01911618933081627,
0.02764827385544777,
-0.0637926310300827,
-0.015750156715512276,
0.06782467663288116,
-0.021672215312719345,
-0.0750967487692833,
-0.028962288051843643,
0.028872286900877953,
0.012546124868094921,
-0.007627575658261776,
0.06508864462375641,
-0.0017853927565738559,
0.04122040793299675,
-0.0027450271882116795,
0.04773647338151932,
-0.005850058048963547,
0.00819008145481348,
0.09799297153949738,
-0.03376833349466324,
0.02008819952607155,
-0.019944198429584503,
-0.021690215915441513,
0.002145396312698722,
-0.023976238444447517,
0.0005900683463551104,
0.038628384470939636,
-0.027954276651144028,
-0.014265141449868679,
0.018252180889248848,
0.017559174448251724,
0.0025110249407589436,
-0.08301682770252228,
0.009711096063256264,
0.017721176147460938,
0.05353253334760666,
0.03123030997812748,
-0.0030870307236909866,
-0.002281522611156106,
-0.0031972818542271852,
0.01797317899763584,
-0.07002069801092148,
0.02696426771581173,
0.004990549758076668,
-0.0329403281211853,
0.005620555952191353,
-0.05907658487558365,
0.02493024803698063,
-0.048348478972911835,
-0.019314192235469818,
-0.008788587525486946,
-0.027594273909926414,
0.027180269360542297,
0.049392491579055786,
0.010143100284039974,
-0.022860227152705193,
0.04190441593527794,
-0.057060565799474716,
0.04478444531559944,
-0.04672846570611,
-0.006007559597492218,
-0.03276032581925392,
0.02453424409031868,
0.09914498776197433,
-0.006403563544154167,
0.03339033201336861,
-0.01328413188457489,
-0.0008375708130188286,
-0.06426063925027847,
-0.03722437098622322,
-0.022158220410346985,
0.01091710850596428,
0.02608225867152214,
0.06908468902111053,
-0.03317432850599289,
0.035244349390268326,
-0.085320845246315,
0.06361263245344162,
-0.030186299234628677,
0.0006564439972862601,
0.010926108807325363,
0.01598415896296501,
0.007690576370805502,
-0.015813156962394714,
-0.015903158113360405,
0.0316983163356781,
0.0430564284324646,
0.021114209666848183,
0.03034830093383789,
-0.005445054266601801,
-0.06876068562269211,
-0.07653675973415375,
-0.08460084348917007,
0.003903788747265935,
0.01395913865417242,
0.0365583635866642,
-0.029736295342445374,
0.001413014018908143,
-0.024462243542075157,
-0.04248042032122612,
-0.03141031041741371,
0.038448382169008255,
0.05947259068489075,
-0.058896586298942566,
0.007699576672166586,
0.006570065394043922,
0.022914227098226547,
0.04032040014863014,
0.06980469077825546,
0.03036630153656006,
0.001753892400301993,
0.036522362381219864,
-0.027954276651144028,
-0.006484564393758774,
0.03600035607814789,
0.0151291498914361,
-0.01633516140282154,
0.009783097542822361,
-0.02066420577466488,
-0.055044546723365784,
0.0010462603531777859,
-0.006030059885233641,
0.036126360297203064,
0.020322201773524284,
-0.02239222265779972,
0.01484114769846201,
-0.0038880386855453253,
0.008419583551585674,
0.079560786485672,
0.09108090400695801,
0.059184588491916656,
-0.018558183684945107,
-0.05994059517979622,
0.06462064385414124,
-0.0430564284324646,
-0.00907209049910307,
-0.02028620056807995,
-0.020628204569220543,
-0.030114298686385155,
-0.05598055571317673,
0.1113131046295166,
0.037476371973752975,
0.02851228229701519,
0.002578525571152568,
-0.0038812884595245123,
-0.03448834270238876,
0.02628026157617569,
0.02503824792802334,
0.005022049881517887,
0.01076410710811615,
0.022428222000598907,
-0.005553055088967085,
-0.0022241470869630575,
0.033408332616090775,
0.010557104833424091,
0.03180631622672081,
0.0471244677901268,
-0.02619026042521,
0.004297542851418257,
0.05472054332494736,
0.01110611017793417,
0.09230491518974304,
-0.01468814630061388,
-0.06426063925027847,
0.018702184781432152,
-0.018738185986876488,
-0.050760503858327866,
0.0196921955794096,
-0.02493024803698063,
-0.034866347908973694,
-0.015237151645123959,
-0.022158220410346985,
-0.017136169597506523,
-0.02133021131157875,
-0.05101250484585762,
0.0018731435993686318,
0.02500224858522415,
-0.025848256424069405,
0.011340112425386906,
-0.031950317323207855,
-0.019314192235469818,
0.027522273361682892,
0.05101250484585762,
0.0442444384098053,
-0.07437673956155777,
-0.02345423214137554,
0.0049500493332743645,
0.030582303181290627,
0.0033480331767350435,
-0.005881558172404766,
-0.001515390002168715,
-0.015930159017443657,
0.037584371864795685,
0.0702366977930069,
0.026622263714671135,
0.009126090444624424,
0.017316171899437904,
-0.0031050308607518673,
0.013383133336901665,
0.0003557847812771797,
0.0038947886787354946,
0.0013275131350383162,
0.02493024803698063,
0.03450634330511093,
-0.012915127910673618,
0.054180536419153214,
-0.035532351583242416,
-0.07869677990674973,
0.0031455312855541706,
0.02930429019033909,
-0.0024412742350250483,
0.02694626711308956,
-0.004675546195358038,
-0.017532173544168472,
-0.02898028865456581,
-0.007411573547869921,
-0.04042840003967285,
0.040104396641254425,
-0.052884526550769806,
-0.048240479081869125,
0.003633785992860794,
-0.016299162060022354,
-0.015039149671792984,
0.03664836287498474,
-0.08575285226106644,
-0.03207631781697273,
0.0008094455115497112,
0.036522362381219864,
-0.03139231353998184,
-0.02025020122528076,
-0.027702275663614273,
-0.04478444531559944,
-0.0007301322766579688,
-0.0243542417883873,
-0.005256052128970623,
0.052020516246557236,
-0.034002337604761124,
-0.004657546058297157,
0.0504004992544651,
-0.021186210215091705,
0.0029047788120806217,
0.026496263220906258,
-0.0013421382755041122,
0.05245251953601837,
-0.04759247228503227,
0.07423273473978043,
-0.06440463662147522,
-0.010134100914001465,
-0.058896586298942566,
-0.0008409458678215742,
0.059004586189985275,
-0.016551164910197258,
-0.08042480051517487,
-0.029358291998505592,
-0.030474303290247917,
-0.016785167157649994,
0.05122850835323334,
-0.030222300440073013,
0.029538292437791824,
0.019458193331956863,
0.003458284307271242,
0.02608225867152214,
-0.0150301493704319,
-0.06739266961812973,
0.034866347908973694,
-0.050652503967285156,
0.11145710945129395,
-0.018936188891530037,
-0.028782285749912262,
0.049392491579055786,
-0.04622446000576019,
-0.007213571574538946,
-0.022518223151564598,
-0.038736384361982346,
0.019854197278618813,
-0.007704076357185841,
-0.026136258617043495,
-0.0064395638182759285,
-0.06264062225818634,
0.04168841242790222,
-0.010836107656359673,
0.008779587224125862,
-0.014805147424340248,
-0.0637926310300827,
-0.022842226549983025,
-0.028062278404831886,
0.004587795585393906,
-0.03830438107252121,
0.0641886368393898,
0.014868147671222687,
-0.01960219442844391,
-0.05886058509349823,
-0.031860318034887314,
-0.028458282351493835,
0.03645036369562149,
-0.012861127965152264,
0.045828454196453094,
0.05896858498454094,
0.0544685423374176,
0.023490233346819878,
0.029718294739723206,
-0.05180451273918152,
0.07473674416542053,
0.012924128212034702,
-0.01017910148948431,
0.027306271716952324,
-0.002432274166494608,
0.020340202376246452,
-0.06217261776328087,
-0.031860318034887314,
-0.040968406945466995,
0.01162811554968357,
0.00547655439004302,
-0.036414362490177155,
0.009234091266989708,
0.05382053554058075,
-0.0048825484700500965,
-0.020142199471592903,
-0.026136258617043495,
-0.08683285862207413,
0.018423182889819145,
-0.02862028405070305,
-0.00870758667588234,
0.027072269469499588,
-0.04467644542455673,
0.015156150795519352,
-0.07358472794294357,
-0.012105120345950127,
-0.06494464725255966,
0.04179641604423523,
-0.0131941307336092,
0.039996396750211716,
0.004639545921236277,
0.05295652523636818,
0.045144449919462204,
0.018666185438632965,
0.04158041253685951,
-0.0243542417883873,
-0.01484114769846201,
-0.0026302761398255825,
0.009801097214221954,
-0.06782467663288116,
0.007992079481482506,
-0.0207362063229084,
0.021960217505693436,
0.024120239540934563,
-0.021600214764475822,
0.003514534793794155,
-0.005188551731407642,
-0.008032579906284809,
-0.012969128787517548,
0.044460441917181015,
-0.022914227098226547,
0.0009466969058848917,
0.021582214161753654,
0.026892267167568207,
-0.0014805146493017673,
0.014985148794949055,
-0.012285121716558933,
0.03160831332206726,
0.00926109217107296,
0.0020992709323763847,
0.010845107957720757,
-0.07632075995206833,
-0.048168476670980453,
-0.0030442802235484123,
-0.04420843720436096,
0.018486183136701584,
0.0003256907220929861,
-0.04334443062543869,
0.003363783471286297,
-0.028674283996224403,
-0.01739717274904251,
0.05382053554058075,
-0.0024390241596847773,
0.06080460548400879,
-0.03501034900546074,
-0.07290072739124298,
-0.02046620287001133
] |
725,248 | notebook | _jupyter_server_extension_paths | null | def _jupyter_server_extension_paths() -> list[dict[str, str]]:
return [{"module": "notebook"}]
| () -> list[dict[str, str]] | [
0.022643283009529114,
-0.04332822561264038,
0.022433459758758545,
-0.0017944145947694778,
-0.0005155390244908631,
0.04895844683051109,
0.00642142491415143,
0.07917280495166779,
-0.0008097814861685038,
0.017354020848870277,
0.030948733910918236,
-0.004474015440791845,
-0.029130276292562485,
-0.00782460905611515,
-0.017371507361531258,
-0.08176060765981674,
0.0334840826690197,
0.013970643281936646,
-0.022503400221467018,
-0.03486540913581848,
-0.02900788001716137,
-0.018674150109291077,
0.03156071528792381,
-0.010377442464232445,
-0.023097896948456764,
0.046335674822330475,
0.053714413195848465,
0.008856233209371567,
0.046545494347810745,
-0.03776794672012329,
-0.0514063686132431,
-0.04574117809534073,
-0.014311603270471096,
0.005564652383327484,
-0.0022107798140496016,
0.01527328696101904,
-0.010858284309506416,
0.06070847436785698,
-0.06913632154464722,
-0.020440151914954185,
-0.01853426918387413,
-0.0066225044429302216,
0.030966218560934067,
-0.05455369874835014,
0.030668970197439194,
0.03509271517395973,
-0.03477798402309418,
0.00039642135379835963,
0.06091829761862755,
0.02280064858496189,
0.01327997911721468,
-0.019391043111681938,
0.002358310855925083,
-0.010665947571396828,
-0.033816300332546234,
0.043398167937994,
0.017686238512396812,
0.04909832775592804,
-0.0019550593569874763,
0.04402763396501541,
-0.042279116809368134,
-0.028640691190958023,
0.055253107100725174,
0.015317000448703766,
-0.014093038626015186,
0.03253988176584244,
-0.015474366955459118,
-0.0194260124117136,
-0.05542795732617378,
-0.01806217059493065,
-0.0016130059957504272,
-0.04983270540833473,
-0.029112791642546654,
-0.04451721906661987,
-0.006111063528805971,
-0.014259148389101028,
-0.011566433124244213,
0.03084382228553295,
-0.0740671381354332,
0.01281662192195654,
-0.021104587242007256,
0.003833621274679899,
-0.04934312030673027,
0.018446844071149826,
0.06728289276361465,
-0.0018293848261237144,
0.016820723190903664,
0.023709876462817192,
-0.012965246103703976,
-0.002388909924775362,
-0.05042720213532448,
-0.0424889400601387,
0.02234603464603424,
-0.011784997768700123,
-0.009966541081666946,
-0.05700162053108215,
-0.007400594186037779,
-0.02140183560550213,
0.021157043054699898,
-0.006565677467733622,
-0.014836158603429794,
-0.024566650390625,
0.013673394918441772,
0.026000432670116425,
0.017992230132222176,
-0.010342472232878208,
-0.02323777787387371,
0.04077539220452309,
-0.04668537899851799,
-0.050147440284490585,
-0.041160065680742264,
0.03572218120098114,
-0.004209552425891161,
-0.05808570235967636,
0.07490642368793488,
0.06647858023643494,
0.00782460905611515,
-0.014154236763715744,
0.13036935031414032,
-0.001951780985109508,
-0.07889304310083389,
0.09316093474626541,
-0.002594360616058111,
-0.0026905289851129055,
0.04553135484457016,
-0.012598058208823204,
0.0027670266572386026,
0.04535650461912155,
-0.05060205236077309,
-0.07602547854185104,
0.017144199460744858,
0.01263302844017744,
-0.04916827008128166,
0.00586627097800374,
-0.013367405161261559,
0.0252485703676939,
-0.053015004843473434,
-0.020580032840371132,
0.05563778057694435,
0.05084684491157532,
-0.08148084580898285,
0.00928462017327547,
-0.045391473919153214,
0.06630373001098633,
-0.003003076184540987,
-0.027644038200378418,
0.013550998643040657,
0.03103615902364254,
-0.00960809551179409,
0.012764167040586472,
-0.018849002197384834,
0.027818890288472176,
-0.017319051548838615,
-0.04707005247473717,
-0.04829401150345802,
0.002668672474101186,
0.013393632136285305,
0.026385106146335602,
0.0347604975104332,
-0.017957258969545364,
-0.0383974127471447,
-0.023115381598472595,
0.001129978452809155,
-0.011435294523835182,
-0.03198035806417465,
0.037872858345508575,
-0.03460313007235527,
-0.045671239495277405,
-0.012641770765185356,
0.06493988633155823,
0.022153697907924652,
0.007898921146988869,
0.0539592020213604,
-0.029427524656057358,
0.05109163746237755,
0.009529411792755127,
0.008528387174010277,
0.029112791642546654,
0.06326130777597427,
-0.0014982596039772034,
-0.016829466447234154,
0.03255736827850342,
-0.03131592273712158,
0.09497939050197601,
-0.033798813819885254,
0.026839720085263252,
-0.005739503540098667,
-0.051930926740169525,
-0.006456395145505667,
0.05119654908776283,
-0.03678877651691437,
0.04972779378294945,
0.06116309016942978,
0.040565572679042816,
-0.052770212292671204,
0.012134701013565063,
0.05070696398615837,
0.023727362975478172,
-0.07868321985006332,
0.0011605775216594338,
-0.021174529567360878,
-0.010867026634514332,
-0.006412682589143515,
0.01631365343928337,
0.003693740116432309,
0.011033136397600174,
-0.04864371567964554,
-0.018639180809259415,
0.007426821626722813,
0.03327425941824913,
0.002012979006394744,
-0.011190501973032951,
-0.017598813399672508,
-0.010543551295995712,
0.007291311863809824,
0.009984026663005352,
-0.039831195026636124,
0.04262882098555565,
0.010971938259899616,
-0.026175284758210182,
-0.015150890685617924,
-0.000524827977642417,
-0.00590998400002718,
0.025545818731188774,
-0.0234301146119833,
0.015972694382071495,
0.019268646836280823,
0.011636373586952686,
0.04574117809534073,
-0.006194117944687605,
-0.015185861848294735,
0.050392232835292816,
0.04574117809534073,
-0.01741521991789341,
0.011942364275455475,
0.03923669829964638,
0.035564813762903214,
0.004152725450694561,
0.06280669569969177,
0.028640691190958023,
-0.00764975743368268,
0.019950566813349724,
0.013577226549386978,
-0.018656665459275246,
0.016138803213834763,
-0.015378198586404324,
0.048084188252687454,
-0.013271236792206764,
0.028046196326613426,
0.0027713978197425604,
0.03124598041176796,
0.02257334068417549,
0.027189424261450768,
-0.04035574942827225,
-0.05074193328619003,
0.01626994088292122,
-0.017939774319529533,
0.03420097380876541,
-0.00258998922072351,
-0.011426552198827267,
-0.01506346557289362,
-0.007085861172527075,
-0.050567083060741425,
-0.032697249203920364,
-0.03678877651691437,
-0.002686157589778304,
-0.018184566870331764,
0.04014592617750168,
-0.022013816982507706,
0.04070545360445976,
0.1012740433216095,
0.04150976985692978,
-0.05937960371375084,
-0.0026992715429514647,
-0.008978629484772682,
-0.001814085291698575,
-0.013664652593433857,
-0.012589314952492714,
-0.05511322245001793,
-0.02767900750041008,
-0.059274692088365555,
-0.04129994660615921,
-0.0041505396366119385,
0.026874691247940063,
-0.008104371838271618,
-0.06070847436785698,
-0.023762332275509834,
-0.04689519852399826,
-0.0330294668674469,
-0.029742257669568062,
0.030511604622006416,
0.040285807102918625,
-0.009599353186786175,
0.009345818310976028,
-0.002476335735991597,
0.038292501121759415,
-0.027783919125795364,
-0.0205625481903553,
0.057281382381916046,
0.0252485703676939,
-0.020003022626042366,
0.027609067037701607,
-0.02301046997308731,
0.02101716212928295,
-0.0009594981675036252,
-0.025563303381204605,
0.006836697459220886,
-0.006360226776450872,
-0.001982379937544465,
0.03832747042179108,
0.00981791689991951,
-0.037173449993133545,
0.0162874273955822,
0.01806217059493065,
-0.001520116114988923,
-0.0027888829354196787,
-0.005800701677799225,
0.03682374581694603,
-0.04881856590509415,
0.03432336822152138,
0.0014086482115089893,
0.06665343046188354,
-0.001500445301644504,
0.026612414047122,
0.02166411280632019,
0.005219320300966501,
0.04972779378294945,
-0.023395143449306488,
-0.014818673022091389,
0.007426821626722813,
-0.020037993788719177,
-0.01698683202266693,
-0.010001511313021183,
0.034533191472291946,
0.053049974143505096,
0.027346789836883545,
0.017729952931404114,
0.011793740093708038,
0.006618133280426264,
-0.008987371809780598,
-0.0023626822512596846,
-0.04283864051103592,
-0.022940529510378838,
-0.011680087074637413,
-0.03374635800719261,
-0.028063680976629257,
0.020807340741157532,
0.07896298170089722,
-0.07098975032567978,
-0.0012021047296002507,
0.013192553073167801,
0.060603562742471695,
-0.06724792718887329,
-0.039831195026636124,
-0.015789099037647247,
-0.02031775563955307,
-0.07511624693870544,
-0.014023098163306713,
-0.01855175383388996,
0.057246413081884384,
0.022608311846852303,
0.0194260124117136,
0.004063114058226347,
0.007015920244157314,
-0.042069293558597565,
0.0020042364485561848,
0.08399870991706848,
-0.008427847176790237,
0.06371591985225677,
-0.0648699402809143,
0.001239260658621788,
0.00858521368354559,
0.0011671343818306923,
-0.038502320647239685,
-0.00861144158989191,
-0.02145429141819477,
-0.0033046952448785305,
-0.017091743648052216,
-0.08987372368574142,
0.018621696159243584,
0.03343162685632706,
-0.021769024431705475,
0.028413385152816772,
-0.043642960488796234,
-0.03413103148341179,
0.02302795648574829,
0.02906033582985401,
-0.03236503154039383,
-0.007098975125700235,
-0.01898888312280178,
-0.024566650390625,
-0.06462515145540237,
-0.048573773354291916,
0.07609541714191437,
0.0003710132441483438,
-0.042314086109399796,
0.0022643283009529114,
0.025790611281991005,
0.04406260326504707,
-0.016121316701173782,
0.06927620619535446,
0.012292067520320415,
0.05207080766558647,
-0.0003382285649422556,
0.04637064412236214,
-0.012536860071122646,
0.010097679682075977,
0.09036330878734589,
-0.01697809062898159,
-0.018376903608441353,
-0.0003600850177463144,
-0.030214356258511543,
-0.014372801408171654,
-0.004873988218605518,
0.002052320633083582,
0.06053362414240837,
-0.021279439330101013,
0.015369455330073833,
0.03483043983578682,
0.03285461664199829,
0.026035403832793236,
-0.06420550495386124,
0.004703508224338293,
0.02363993600010872,
0.024636590853333473,
0.04353804886341095,
0.004961414262652397,
-0.01877906173467636,
-0.0004786562640219927,
0.01497603952884674,
-0.025720670819282532,
0.014722504653036594,
-0.002797625493258238,
-0.042523909360170364,
-0.002270885044708848,
-0.05455369874835014,
0.024846412241458893,
-0.07301802933216095,
-0.029987050220370293,
-0.011793740093708038,
-0.06326130777597427,
0.016934378072619438,
0.01282536517828703,
0.004572369158267975,
0.04577614739537239,
0.03079136647284031,
-0.053679440170526505,
0.05298003554344177,
0.0033746359404176474,
-0.01373459305614233,
-0.06406562775373459,
-0.06448526680469513,
0.06231711059808731,
0.006390825845301151,
0.040740422904491425,
-0.003617242444306612,
-0.011662601493299007,
-0.004305720794945955,
-0.027853859588503838,
-0.019583379849791527,
-0.0037396384868770838,
0.02073740027844906,
0.05112660676240921,
-0.045461416244506836,
0.037837885320186615,
-0.05857528746128082,
0.07392725348472595,
-0.04710502177476883,
0.010578521527349949,
0.014923583716154099,
0.0056608207523822784,
0.02120949886739254,
-0.023132866248488426,
-0.05074193328619003,
0.055497895926237106,
0.07308796793222427,
0.023395143449306488,
-0.002686157589778304,
-0.010762115940451622,
-0.06927620619535446,
-0.09875618666410446,
-0.05385429412126541,
-0.0036696980241686106,
0.010307502001523972,
0.03288958594202995,
-0.07252844423055649,
0.011811225675046444,
-0.022923044860363007,
-0.03528505191206932,
-0.05584760010242462,
0.07231862097978592,
0.07490642368793488,
-0.0495879128575325,
0.015220832079648972,
0.05388926342129707,
0.0234301146119833,
0.031805507838726044,
0.051651161164045334,
0.0580507293343544,
0.012973988428711891,
0.03745321184396744,
-0.022835619747638702,
0.005324230995029211,
0.0625968724489212,
-0.020859796553850174,
0.006111063528805971,
-0.014206692576408386,
-0.020037993788719177,
-0.049203239381313324,
0.006631246767938137,
0.021174529567360878,
0.03654398396611214,
0.020475123077630997,
-0.010228818282485008,
0.004327577073127031,
-0.019548408687114716,
-0.012965246103703976,
0.058400433510541916,
0.06717798113822937,
0.04976276680827141,
-0.00473847845569253,
-0.08399870991706848,
0.07070998847484589,
-0.03682374581694603,
-0.004080599173903465,
-0.022171182557940483,
-0.016610901802778244,
-0.02570318430662155,
-0.05469357967376709,
0.11645116657018661,
0.028955424204468727,
0.06528958678245544,
-0.01104187872260809,
0.007383108604699373,
-0.05686173960566521,
-0.010569779202342033,
0.044971831142902374,
0.006688073743134737,
0.032942041754722595,
0.009459471330046654,
-0.005481597501784563,
-0.00035052280873060226,
0.01174128521233797,
0.014267890714108944,
-0.003822693135589361,
0.005599622614681721,
-0.024059580639004707,
-0.023832272738218307,
0.009835402481257915,
0.0021637885365635157,
0.0798022672533989,
-0.00903982762247324,
-0.02612282894551754,
0.0011059363605454564,
-0.024181976914405823,
-0.07175909727811813,
0.041614681482315063,
-0.03955143317580223,
-0.03927166759967804,
0.004493685904890299,
-0.0027189424727112055,
-0.03010944463312626,
-0.00960809551179409,
-0.036928657442331314,
0.01173254195600748,
0.01282536517828703,
-0.017817378044128418,
0.017686238512396812,
-0.021261954680085182,
-0.006495737005025148,
0.03594948723912239,
0.054833460599184036,
0.06256189942359924,
-0.059274692088365555,
-0.04154473915696144,
0.03037172369658947,
0.04353804886341095,
0.0073568811640143394,
-0.00011802482913481072,
-0.02965483069419861,
-0.02232854999601841,
0.019093794748187065,
0.07308796793222427,
0.01716168411076069,
-0.003365893382579088,
0.017598813399672508,
0.009109768085181713,
0.02030027098953724,
-0.02280064858496189,
0.0016228414606302977,
0.008060658350586891,
0.022415975108742714,
0.0514063686132431,
-0.012580572627484798,
0.07238855957984924,
-0.03413103148341179,
-0.057701028883457184,
0.022835619747638702,
0.02278316393494606,
-0.018411872908473015,
0.032487425953149796,
0.002047949470579624,
0.009048569947481155,
-0.06466012448072433,
0.016881922259926796,
-0.07329779118299484,
0.032522398978471756,
-0.010246303863823414,
-0.036299191415309906,
-0.014486455358564854,
-0.04000604525208473,
-0.018149595707654953,
0.02771397866308689,
-0.059064868837594986,
-0.017520129680633545,
0.05605742335319519,
0.047454725950956345,
-0.02767900750041008,
-0.014827415347099304,
-0.057701028883457184,
-0.032487425953149796,
0.004458715673536062,
0.002171438420191407,
-0.018674150109291077,
0.056581977754831314,
-0.024706531316041946,
-0.024863896891474724,
0.03467307239770889,
0.008314193226397038,
-0.00157912855502218,
0.03913178667426109,
0.005599622614681721,
0.05228062719106674,
-0.025563303381204605,
0.0701504647731781,
-0.057036593556404114,
-0.012204641476273537,
-0.049028389155864716,
0.009538155049085617,
0.048993419855833054,
0.012536860071122646,
-0.05360950157046318,
-0.03572218120098114,
-0.04846886172890663,
-0.011347868479788303,
0.01988062635064125,
0.0008545871824026108,
0.04025083780288696,
0.04346810653805733,
0.0011042971163988113,
-0.00747490581125021,
-0.014049326069653034,
-0.038502320647239685,
0.03685871884226799,
-0.06070847436785698,
0.056407127529382706,
-0.01807965524494648,
-0.03955143317580223,
0.03397366404533386,
-0.04423745349049568,
0.0036806261632591486,
-0.018464328721165657,
-0.04395769163966179,
0.005455370061099529,
-0.011592661030590534,
-0.04713999107480049,
-0.006736157927662134,
-0.07039525359869003,
0.0779838114976883,
-0.0013408932136371732,
0.06497485190629959,
-0.012510632164776325,
-0.04672034829854965,
-0.020894765853881836,
-0.0411250963807106,
0.007072747219353914,
-0.05602245405316353,
0.05374938249588013,
-0.0020566920284181833,
0.005756989121437073,
-0.05224565789103508,
-0.03467307239770889,
-0.06053362414240837,
0.024706531316041946,
-0.01745018921792507,
0.033396653831005096,
0.050811875611543655,
0.05777096748352051,
0.004974528215825558,
0.017738694325089455,
-0.05934463441371918,
0.04126497730612755,
0.02855326607823372,
0.013507286086678505,
0.01921619102358818,
-0.017773665487766266,
0.02944500930607319,
-0.06637366861104965,
-0.025353481993079185,
-0.027381760999560356,
-0.00156492181122303,
0.02369239181280136,
-0.03881705552339554,
-0.007208256982266903,
0.05077690631151199,
-0.0011540205450728536,
-0.02655995823442936,
-0.017371507361531258,
-0.0756058320403099,
0.020649973303079605,
-0.021594172343611717,
-0.02876308746635914,
0.05633718520402908,
-0.025755640119314194,
0.012982731685042381,
-0.03594948723912239,
0.02010793425142765,
-0.05444878712296486,
0.04518165439367294,
-0.008558985777199268,
0.017292823642492294,
0.003658769652247429,
0.044796980917453766,
0.06535952538251877,
0.011566433124244213,
0.0301619004458189,
-0.029410040006041527,
-0.025196116417646408,
0.004502428695559502,
0.0196533203125,
-0.040565572679042816,
-0.030721426010131836,
-0.019356071949005127,
0.02521360106766224,
0.04535650461912155,
-0.032679762691259384,
0.01671581342816353,
-0.016558445990085602,
-0.031088614836335182,
-0.013708365149796009,
0.04727987200021744,
-0.025598274543881416,
0.010700917802751064,
0.032469943165779114,
-0.013236266560852528,
0.00858521368354559,
0.025388453155755997,
-0.018936429172754288,
0.0353025384247303,
0.035145170986652374,
0.005700162146240473,
0.002476335735991597,
-0.07504630833864212,
-0.047454725950956345,
-0.020370211452245712,
-0.010263788513839245,
-0.0454963855445385,
0.009101025760173798,
-0.059764277189970016,
0.01694311946630478,
-0.02168159745633602,
-0.000943652237765491,
0.051476310938596725,
-0.040495630353689194,
0.05518316477537155,
-0.04626573249697685,
-0.04444727674126625,
-0.03640410304069519
] |
725,249 | notebook | _jupyter_server_extension_points | null | def _jupyter_server_extension_points() -> list[dict[str, Any]]:
from .app import JupyterNotebookApp
return [{"module": "notebook", "app": JupyterNotebookApp}]
| () -> list[dict[str, typing.Any]] | [
0.0191743653267622,
-0.06385321915149689,
-0.02195299230515957,
-0.007374402601271868,
0.01264183223247528,
0.05432123690843582,
0.018033472821116447,
0.06072495877742767,
0.0010822383919730783,
0.03218422830104828,
0.014721202664077282,
-0.01015762984752655,
-0.03139296546578407,
-0.003114454448223114,
-0.013828729279339314,
-0.09112424403429031,
0.024658014997839928,
0.013469900004565716,
-0.007443408016115427,
-0.025743702426552773,
-0.01440837699919939,
-0.005281231366097927,
0.039526429027318954,
-0.012356609106063843,
-0.014123153872787952,
0.039526429027318954,
0.05045692250132561,
0.016368137672543526,
0.06447886675596237,
-0.017628639936447144,
-0.059988901019096375,
-0.05925283953547478,
-0.01346069946885109,
-0.013037464581429958,
0.006109299138188362,
0.017950667068362236,
-0.00271652196533978,
0.05678704008460045,
-0.04648219794034958,
-0.01519044116139412,
-0.0008412937168031931,
-0.02452920377254486,
0.00699257105588913,
-0.04699743911623955,
0.020591281354427338,
0.0270686112344265,
0.024013960734009743,
-0.0039977263659238815,
0.061277005821466446,
-0.011335326358675957,
0.00027458491967990994,
-0.021456152200698853,
0.027179019525647163,
0.01327668409794569,
-0.02000243403017521,
0.03492605313658714,
0.016892580315470695,
0.07655025273561478,
-0.012522222474217415,
0.03805430978536606,
-0.0692264512181282,
-0.020204849541187286,
0.04648219794034958,
-0.007668826263397932,
0.013635513372719288,
0.014601592905819416,
-0.014288767240941525,
-0.01715020090341568,
-0.06109299138188362,
-0.024271583184599876,
0.014224361628293991,
-0.061571430414915085,
-0.024731619283556938,
-0.017343416810035706,
-0.006872961297631264,
-0.019137563183903694,
-0.0003228888672310859,
0.041329775005578995,
-0.08972573280334473,
0.026829391717910767,
0.004181741736829281,
0.015659678727388382,
-0.07360601425170898,
0.03849594295024872,
0.07610861957073212,
-0.007678027264773846,
0.009007535874843597,
0.02655336819589138,
-0.03904798999428749,
0.02489723451435566,
-0.04909520968794823,
-0.02872474677860737,
0.017417022958397865,
0.011519340798258781,
-0.019137563183903694,
-0.04029929265379906,
-0.030178464949131012,
-0.01398514211177826,
-0.00188500399235636,
0.009329562075436115,
-0.011657352559268475,
0.0005675713764503598,
-0.0003404277958907187,
0.03319631144404411,
-0.0035169871989637613,
-0.010406049899756908,
-0.01187817007303238,
0.042323458939790726,
-0.03571731597185135,
-0.023958757519721985,
-0.023038681596517563,
0.04015208035707474,
0.00033208963577635586,
-0.07033054530620575,
0.049463238567113876,
0.06514132022857666,
0.013396293856203556,
0.0047429874539375305,
0.1286633163690567,
-0.022670652717351913,
-0.08207070082426071,
0.08486773073673248,
0.010277239605784416,
-0.011970178224146366,
0.018760332837700844,
-0.015540068969130516,
0.01677297055721283,
0.03150337189435959,
-0.04729186370968819,
-0.08155546337366104,
0.023737939074635506,
0.0038275127299129963,
-0.05763350799679756,
0.0007722880691289902,
-0.012798245064914227,
-0.020352061837911606,
-0.03146656975150108,
-0.023057082667946815,
0.007912646047770977,
0.04655580222606659,
-0.08317479491233826,
0.015816092491149902,
-0.05421082675457001,
0.08737033605575562,
-0.04548851400613785,
-0.06355879455804825,
0.0019425086211413145,
0.039379216730594635,
0.005065013654530048,
0.011096106842160225,
-0.021327342838048935,
0.04699743911623955,
-0.011050102300941944,
-0.037796687334775925,
-0.048248741775751114,
0.0043404544703662395,
0.032092221081256866,
0.010525659658014774,
0.028099095448851585,
-0.010452053509652615,
-0.053290754556655884,
-0.016055312007665634,
-0.012890253216028214,
-0.0011431933380663395,
-0.048248741775751114,
0.03242344781756401,
-0.029608018696308136,
-0.053290754556655884,
-0.012071385979652405,
0.06801195442676544,
0.01338709332048893,
0.0034019779413938522,
0.060136113315820694,
-0.014491183683276176,
0.06731269508600235,
0.03378516063094139,
0.0062427097000181675,
0.01008402369916439,
0.07459969073534012,
-0.013939138501882553,
-0.008248473517596722,
0.012439415790140629,
-0.07533575594425201,
0.056676629930734634,
-0.029884040355682373,
0.006440525874495506,
-0.004545171279460192,
-0.02377474121749401,
-0.0046417792327702045,
0.01850271224975586,
-0.046077363193035126,
0.04173460975289345,
0.05167141929268837,
0.03551490232348442,
-0.04747587814927101,
0.02331470511853695,
0.00264291581697762,
0.03503646329045296,
-0.08243873715400696,
-0.03665579482913017,
-0.04353795573115349,
0.001067287172190845,
-0.004064431879669428,
0.015070831403136253,
0.007696428801864386,
0.03845914080739021,
-0.061350610107183456,
-0.035312484949827194,
0.0007176586077548563,
-0.0013283585431054235,
0.018695926293730736,
-0.00430595176294446,
-0.020278455689549446,
-0.0020908708684146404,
-0.00208857050165534,
-0.0014939720276743174,
0.005534252151846886,
0.008593501523137093,
0.022965075448155403,
-0.030068056657910347,
-0.004671681672334671,
-0.0055894567631185055,
0.0006250760634429753,
0.048248741775751114,
-0.01932157762348652,
0.025541286915540695,
0.035165272653102875,
0.013727521523833275,
0.03656378760933876,
-0.013258283026516438,
-0.01656135357916355,
0.03032567724585533,
0.02609333209693432,
-0.015889698639512062,
0.0005741844070143998,
0.017472228035330772,
0.046592604368925095,
0.00008395686018047854,
0.048469558358192444,
0.0214377511292696,
-0.004959205165505409,
0.046224575489759445,
0.014767206273972988,
0.0038597153034061193,
0.003289268584921956,
-0.014537187293171883,
0.05778072029352188,
-0.024473998695611954,
0.015236444771289825,
0.007954049855470657,
0.0300864577293396,
-0.00004995720519218594,
0.04007847234606743,
-0.0331227071583271,
-0.04777030274271965,
-0.008073659613728523,
-0.02090410701930523,
0.042691487818956375,
-0.006951167713850737,
-0.0007096079643815756,
0.0000622488369117491,
0.004871797747910023,
-0.03849594295024872,
0.006228908896446228,
-0.012273802421987057,
0.019910426810383797,
-0.01478560734540224,
0.05295952782034874,
-0.023498719558119774,
0.04390598461031914,
0.11519341170787811,
0.0391215942800045,
-0.04714465141296387,
0.00316045805811882,
-0.016119716688990593,
-0.01578848995268345,
-0.017932264134287834,
0.005410042125731707,
-0.046150971204042435,
-0.04055691137909889,
-0.029976049438118935,
-0.06002570316195488,
-0.0006986820953898132,
0.039232004433870316,
0.003257066011428833,
-0.07423166185617447,
-0.004871797747910023,
0.00016949509154073894,
-0.0011558444239199162,
-0.04769669473171234,
0.0009252505842596292,
0.05608778074383736,
-0.006891362834721804,
-0.0009712543105706573,
-0.01939518377184868,
0.07338519394397736,
-0.03823832422494888,
-0.007793036755174398,
0.05461566150188446,
0.01655215211212635,
0.014003544114530087,
0.002893636468797922,
-0.00265211658552289,
0.01978161558508873,
0.009946012869477272,
-0.018990350887179375,
0.008363483473658562,
-0.004639478866010904,
-0.029516011476516724,
0.018245089799165726,
-0.0010460104094818234,
-0.0361037477850914,
0.0028039291501045227,
0.017545832321047783,
-0.04328033700585365,
-0.010424451902508736,
-0.0036020942497998476,
0.03354594111442566,
-0.0267005804926157,
0.03225783631205559,
-0.01571488380432129,
0.036582186818122864,
0.021529758349061012,
0.047733500599861145,
0.027547050267457962,
0.022100204601883888,
0.059547264128923416,
-0.03347233310341835,
-0.0066199409775435925,
-0.002675118623301387,
-0.02738143689930439,
-0.016294531524181366,
-0.0015273247845470905,
0.055314917117357254,
0.02016804739832878,
0.024124370887875557,
0.002951140981167555,
0.011040901765227318,
-0.0055480534210801125,
-0.03798070177435875,
-0.009007535874843597,
-0.02701340615749359,
-0.007636623922735453,
-0.00439795944839716,
-0.03845914080739021,
-0.030436085537075996,
-0.005124818533658981,
0.055094100534915924,
-0.06403723359107971,
-0.01708579622209072,
-0.003843613900244236,
0.05045692250132561,
-0.05027290806174278,
-0.0300864577293396,
0.003521587699651718,
-0.044642046093940735,
-0.06536214053630829,
-0.03871676325798035,
-0.030675305053591728,
0.051634617149829865,
0.025467680767178535,
0.011261720210313797,
-0.012881051748991013,
0.017205405980348587,
-0.06124020367860794,
-0.000697531970217824,
0.09944172203540802,
-0.014058748260140419,
0.07544616609811783,
-0.0631539598107338,
0.013828729279339314,
-0.005189223680645227,
-0.0034640829544514418,
-0.034484416246414185,
-0.03326991945505142,
-0.018300294876098633,
0.00528583163395524,
-0.005479047540575266,
-0.103858083486557,
0.014675199054181576,
0.028798352926969528,
-0.03737345337867737,
0.03617735579609871,
-0.044715654104948044,
-0.027252625674009323,
0.014960422180593014,
0.008073659613728523,
-0.02874314785003662,
-0.004690083209425211,
-0.002424397971481085,
-0.04784390702843666,
-0.07007292658090591,
-0.07290675491094589,
0.09149227291345596,
0.005318034440279007,
-0.03016006387770176,
-0.005244428291916847,
0.02911117859184742,
0.034631628543138504,
0.0006693546893075109,
0.06411083787679672,
0.010369246825575829,
0.07699188590049744,
-0.017932264134287834,
0.030141662806272507,
-0.02813589759171009,
0.008345081470906734,
0.06204986944794655,
0.0034226796124130487,
0.011372128501534462,
0.01948719099164009,
-0.012917854823172092,
-0.040593717247247696,
-0.006656743586063385,
0.009085741825401783,
0.08288037031888962,
0.002730323001742363,
0.009752796962857246,
0.018088677898049355,
0.02460280992090702,
0.03746546059846878,
-0.05726547911763191,
0.005764270666986704,
0.04777030274271965,
0.004894800018519163,
0.03389556705951691,
-0.00022139308566693217,
-0.018162284046411514,
-0.00902593694627285,
0.0021138726733624935,
-0.009269757196307182,
0.0009315760689787567,
-0.010737276636064053,
-0.05917923524975777,
-0.01542045921087265,
-0.053732387721538544,
0.02903757244348526,
-0.05697105452418327,
-0.007912646047770977,
0.027473444119095802,
-0.057044658809900284,
0.014141554944217205,
0.03047288954257965,
0.0047843907959759235,
0.04574613645672798,
0.03812791407108307,
-0.06834318488836288,
0.03459482640028,
-0.0039126197807490826,
-0.009936811402440071,
-0.03617735579609871,
-0.0684535950422287,
0.06153462827205658,
-0.013157074339687824,
0.06407403200864792,
-0.0062013063579797745,
-0.014086350798606873,
-0.02504444494843483,
-0.030454488471150398,
-0.003358274232596159,
0.0007498612394556403,
0.011528541333973408,
0.026056528091430664,
-0.053217146545648575,
0.009485974907875061,
-0.03617735579609871,
0.05468926578760147,
-0.053290754556655884,
-0.001718240324407816,
0.03062010183930397,
0.013322688639163971,
0.032349843531847,
0.008975333534181118,
-0.07272274047136307,
0.05295952782034874,
0.09082981944084167,
0.026461360976099968,
-0.03422679752111435,
-0.00917314924299717,
-0.04556212201714516,
-0.10555101931095123,
-0.03142976760864258,
0.008317479863762856,
0.013607911765575409,
0.00750321289524436,
-0.06175544485449791,
0.018613120540976524,
-0.047586288303136826,
-0.022670652717351913,
-0.06377960741519928,
0.041182562708854675,
0.0684167891740799,
-0.025854112580418587,
-0.003280067816376686,
0.051781829446554184,
0.02993924543261528,
0.05211305618286133,
0.029460806399583817,
0.054284434765577316,
0.008984534069895744,
0.03978405147790909,
0.00854289811104536,
0.010470455512404442,
0.0331043042242527,
-0.003668799763545394,
-0.02007604017853737,
-0.017048992216587067,
-0.01692018285393715,
-0.05399001017212868,
0.0022507337853312492,
0.017481427639722824,
0.017417022958397865,
0.02865114063024521,
-0.017398621886968613,
0.001958610024303198,
-0.007438807748258114,
-0.022909872233867645,
0.03326991945505142,
0.039673641324043274,
0.036453377455472946,
0.004650979768484831,
-0.06234429404139519,
0.08921048790216446,
-0.005699865520000458,
0.0049684057012200356,
-0.009522777982056141,
-0.00215297588147223,
-0.006417524069547653,
-0.05056732892990112,
0.09892647713422775,
0.017113398760557175,
0.07423166185617447,
-0.011261720210313797,
-0.014380774460732937,
-0.07986252009868622,
-0.03297549486160278,
0.033601146191358566,
0.007296196185052395,
0.06333797425031662,
0.014813209883868694,
0.0013111070729792118,
0.005235227756202221,
0.015576872043311596,
0.005198424682021141,
-0.01849351078271866,
-0.01753663271665573,
-0.027491845190525055,
-0.015438861213624477,
-0.022284220904111862,
-0.025099650025367737,
0.06764392554759979,
-0.002693519927561283,
-0.011933375149965286,
0.0005287557141855359,
-0.039526429027318954,
-0.06797515600919724,
0.047439076006412506,
-0.019800016656517982,
-0.03444761410355568,
0.0002895361394621432,
0.00546984700486064,
-0.03628776594996452,
-0.011252518743276596,
-0.02970002591609955,
0.008483093231916428,
0.027878277003765106,
-0.017242208123207092,
0.03069370798766613,
-0.041182562708854675,
-0.010737276636064053,
0.05741269141435623,
0.03142976760864258,
0.07511493563652039,
-0.06653983891010284,
-0.022965075448155403,
0.015558470971882343,
0.021529758349061012,
0.031245753169059753,
-0.0022702855058014393,
-0.03871676325798035,
-0.02925838902592659,
0.016579754650592804,
0.043133124709129333,
0.0003829812922049314,
-0.004634878598153591,
0.03326991945505142,
-0.0150432288646698,
0.007323798257857561,
-0.0005701590562239289,
0.014261164702475071,
-0.0017906962893903255,
0.03823832422494888,
0.056897446513175964,
-0.03295709192752838,
0.07559337466955185,
-0.0214377511292696,
-0.057964734733104706,
0.02340671233832836,
0.023517120629549026,
-0.031779397279024124,
0.04504688084125519,
0.012494620867073536,
0.008910927921533585,
-0.09738075733184814,
0.04994167760014534,
-0.08000973612070084,
-0.014675199054181576,
0.00208857050165534,
-0.03626936301589012,
-0.007825239561498165,
-0.04754948243498802,
-0.023333106189966202,
0.0105348601937294,
-0.06032012775540352,
-0.021014517173171043,
0.04725506156682968,
0.040961746126413345,
-0.014831611886620522,
0.023204294964671135,
-0.047402273863554,
0.0025210059247910976,
0.006150702480226755,
0.029810434207320213,
-0.011721757240593433,
0.04486286640167236,
-0.04883759096264839,
-0.020664887502789497,
0.026516566053032875,
0.009127145633101463,
-0.0010402599582448602,
0.042617879807949066,
0.016653360798954964,
0.03860635310411453,
-0.035698916763067245,
0.07831680029630661,
-0.03625096008181572,
-0.008345081470906734,
-0.041108958423137665,
0.012485419400036335,
0.07471010088920593,
0.0315769799053669,
-0.058111947029829025,
-0.013819528743624687,
-0.0646628811955452,
0.014794808812439442,
0.01064526941627264,
0.024161173030734062,
0.0383487306535244,
0.05318034440279007,
-0.004595775622874498,
-0.025099650025367737,
-0.024050764739513397,
-0.04854316636919975,
0.048101529479026794,
-0.06403723359107971,
0.049463238567113876,
-0.044494833797216415,
-0.03047288954257965,
0.024234779179096222,
-0.042985912412405014,
-0.00485339667648077,
-0.032092221081256866,
-0.031098540872335434,
0.006808556150645018,
0.004082833416759968,
-0.03415318951010704,
-0.012733840383589268,
-0.05454205349087715,
0.07036735117435455,
0.028448723256587982,
0.06676065176725388,
0.002426698338240385,
-0.017711447551846504,
-0.01865912415087223,
-0.025026043877005577,
0.0020034636836498976,
-0.047733500599861145,
0.07213389128446579,
-0.02384834736585617,
0.0009338762611150742,
-0.03406118229031563,
-0.03700542449951172,
-0.05248108506202698,
0.012485419400036335,
-0.02406916581094265,
0.002424397971481085,
0.052775509655475616,
0.05053052678704262,
-0.01286265067756176,
0.008266875520348549,
-0.04729186370968819,
0.03650858253240585,
0.05196584388613701,
0.026350952684879303,
0.01956079714000225,
-0.013019063510000706,
-0.003284668317064643,
-0.0616818368434906,
-0.036066945642232895,
-0.016450943425297737,
0.0001178127495222725,
0.04158739745616913,
-0.02813589759171009,
0.017794253304600716,
0.05365878343582153,
0.012025382369756699,
-0.016414141282439232,
0.00008402873936574906,
-0.042765092104673386,
0.0038068110588937998,
-0.008147265762090683,
-0.007360601332038641,
0.07581419497728348,
-0.017794253304600716,
0.015558470971882343,
-0.030436085537075996,
0.02302028052508831,
-0.04180821403861046,
0.05711826682090759,
0.022505037486553192,
-0.0004611876793205738,
0.020370464771986008,
0.0443844273686409,
0.05104576796293259,
0.02099611423909664,
0.019800016656517982,
-0.041108958423137665,
-0.05071454122662544,
-0.013966741040349007,
0.010406049899756908,
-0.023222696036100388,
-0.05218666419386864,
-0.035459697246551514,
0.04316992685198784,
0.04721825569868088,
-0.04401639476418495,
0.01549406535923481,
-0.023259500041604042,
-0.039526429027318954,
-0.04195542633533478,
0.039379216730594635,
-0.04537810757756233,
0.017628639936447144,
0.029884040355682373,
-0.003503186162561178,
0.0028154300525784492,
0.005078814923763275,
-0.04250747337937355,
0.02850392833352089,
0.05936324968934059,
0.011197314597666264,
0.016653360798954964,
-0.0699257105588913,
-0.03319631144404411,
-0.003461782820522785,
0.00850609503686428,
-0.05027290806174278,
0.006675145123153925,
-0.0489111952483654,
-0.008556699380278587,
-0.021198531612753868,
0.030288873240351677,
0.024658014997839928,
-0.02865114063024521,
0.05498369038105011,
-0.051634617149829865,
-0.023369908332824707,
-0.021934591233730316
] |
725,251 | dockerfile_parse.parser | DockerfileParser | null | class DockerfileParser(object):
def __init__(self, path=None,
cache_content=False,
env_replace=True,
parent_env=None,
fileobj=None,
build_args=None):
"""
Initialize source of Dockerfile
:param path: path to (directory with) Dockerfile; if not provided,
and fileobj is not provided, the current working
directory will be used
:param cache_content: cache Dockerfile content inside DockerfileParser
:param env_replace: return content with variables replaced
:param parent_env: python dict of inherited env vars from parent image
:param fileobj: seekable file-like object containing Dockerfile content
as bytes (will be truncated on write)
:param build_args: python dict of build args used when building image
"""
self.fileobj = fileobj
if self.fileobj is not None:
if path is not None:
raise ValueError("Parameters path and fileobj cannot be used together.")
else:
self.fileobj.seek(0)
else:
path = path or '.'
if path.endswith(DOCKERFILE_FILENAME):
self.dockerfile_path = path
else:
self.dockerfile_path = os.path.join(path, DOCKERFILE_FILENAME)
self.cache_content = cache_content
self.cached_content = '' # unicode string
if cache_content:
try:
# this will cache the Dockerfile content
self.content
except (IOError, OSError):
# the Dockerfile doesn't exist yet
pass
self.env_replace = env_replace
if parent_env is None:
self.parent_env = {}
else:
assert isinstance(parent_env, dict)
logger.debug("Setting inherited parent image ENV vars: %s", parent_env)
self.parent_env = parent_env
if build_args is None:
self.build_args = {}
else:
assert isinstance(build_args, dict)
logger.debug("Setting build args: %s", build_args)
self.build_args = build_args
@contextmanager
def _open_dockerfile(self, mode):
if self.fileobj is not None:
self.fileobj.seek(0)
if 'w' in mode:
self.fileobj.truncate()
yield self.fileobj
self.fileobj.seek(0)
else:
with open(self.dockerfile_path, mode) as dockerfile:
yield dockerfile
@property
def lines(self):
"""
:return: list containing lines (unicode) from Dockerfile
"""
if self.cache_content and self.cached_content:
return self.cached_content.splitlines(True)
try:
with self._open_dockerfile('rb') as dockerfile:
lines = [b2u(line) for line in dockerfile.readlines()]
if self.cache_content:
self.cached_content = ''.join(lines)
return lines
except (IOError, OSError) as ex:
logger.error("Couldn't retrieve lines from dockerfile: %r", ex)
raise
@lines.setter
def lines(self, lines):
"""
Fill Dockerfile content with specified lines
:param lines: list of lines to be written to Dockerfile
"""
if self.cache_content:
self.cached_content = ''.join(b2u(line) for line in lines)
try:
with self._open_dockerfile('wb') as dockerfile:
dockerfile.writelines(u2b(line) for line in lines)
except (IOError, OSError) as ex:
logger.error("Couldn't write lines to dockerfile: %r", ex)
raise
@property
def content(self):
"""
:return: string (unicode) with Dockerfile content
"""
if self.cache_content and self.cached_content:
return self.cached_content
try:
with self._open_dockerfile('rb') as dockerfile:
content = b2u(dockerfile.read())
if self.cache_content:
self.cached_content = content
return content
except (IOError, OSError) as ex:
logger.error("Couldn't retrieve content of dockerfile: %r", ex)
raise
@content.setter
def content(self, content):
"""
Overwrite Dockerfile with specified content
:param content: string to be written to Dockerfile
"""
if self.cache_content:
self.cached_content = b2u(content)
try:
with self._open_dockerfile('wb') as dockerfile:
dockerfile.write(u2b(content))
except (IOError, OSError) as ex:
logger.error("Couldn't write content to dockerfile: %r", ex)
raise
@property
def structure(self):
"""
Returns a list of dicts describing the commands:
[
{"instruction": "FROM", # always upper-case
"startline": 0, # 0-based
"endline": 0, # 0-based
"content": "From fedora\n",
"value": "fedora"},
{"instruction": "CMD",
"startline": 1,
"endline": 2,
"content": "CMD yum -y update && \\\n yum clean all\n",
"value": "yum -y update && yum clean all"}
]
"""
def _rstrip_eol(text, line_continuation_char='\\'):
text = text.rstrip()
if text.endswith(line_continuation_char):
return text[:-1]
return text
def _create_instruction_dict(instruction=None, value=None):
return {
'instruction': instruction,
'startline': lineno,
'endline': lineno,
'content': line, # pylint: disable=undefined-loop-variable
'value': value
}
def _clean_comment_line(line):
line = re.sub(r'^\s*#\s*', '', line)
line = re.sub(r'\n', '', line)
return line
instructions = []
lineno = -1
line_continuation_char = '\\'
insnre = re.compile(r'^\s*(\S+)\s+(.*)$') # matched group is insn
contre = re.compile(r'^.*\\\s*$') # line continues?
commentre = re.compile(r'^\s*#') # line is a comment?
directive_possible = True
# escape directive regex
escape_directive_re = re.compile(r'^\s*#\s*escape\s*=\s*(\\|`)\s*$', re.I)
# syntax directive regex
syntax_directive_re = re.compile(r'^\s*#\s*syntax\s*=\s*(.*)\s*$', re.I)
in_continuation = False
current_instruction = {}
for line in self.lines:
lineno += 1
if directive_possible:
# once support for python versions before 3.8 is dropped use walrus operator
if escape_directive_re.match(line):
# Do the matching twice if there is a directive to avoid doing the matching
# for other lines
match = escape_directive_re.match(line)
line_continuation_char = match.group(1)
contre = re.compile(r'^.*' + re.escape(match.group(1)) + r'\s*$')
elif syntax_directive_re.match(line):
# Currently no information for the syntax directive is stored it is still
# necessary to detect escape directives after a syntax directive
pass
else:
directive_possible = False
# It is necessary to keep instructions and comment parsing separate,
# as a multi-line instruction can be interjected with comments.
if commentre.match(line):
comment = _create_instruction_dict(
instruction=COMMENT_INSTRUCTION,
value=_clean_comment_line(line)
)
instructions.ap | (path=None, cache_content=False, env_replace=True, parent_env=None, fileobj=None, build_args=None) | [
0.04311678931117058,
-0.06786377727985382,
-0.029165318235754967,
0.014582659117877483,
-0.03961259871721268,
0.011219942010939121,
0.014375890605151653,
0.027902938425540924,
-0.008673417381942272,
-0.046838629990816116,
0.06938733905553818,
0.041310280561447144,
-0.009141368791460991,
0.03179890289902687,
0.01980629935860634,
0.05693766847252846,
0.009527700021862984,
-0.01936011202633381,
-0.028011765331029892,
-0.009446080774068832,
-0.04239853844046593,
0.019262168556451797,
0.041680287569761276,
0.016802705824375153,
0.01740124821662903,
0.019621293991804123,
-0.006834261119365692,
-0.011263472028076649,
0.015366205014288425,
-0.04770923778414726,
-0.03175537288188934,
-0.05023399740457535,
-0.041549697518348694,
-0.0216563381254673,
0.03269127383828163,
-0.03142889589071274,
-0.01266732532531023,
0.044161517173051834,
-0.032125379890203476,
-0.002346556633710861,
-0.009696380235254765,
0.011774953454732895,
-0.030645349994301796,
-0.0292959101498127,
-0.046708039939403534,
-0.0005101209972053766,
-0.02241811901330948,
-0.024420512840151787,
0.0011943633435294032,
-0.0563717745244503,
0.07700514793395996,
-0.015061493031680584,
-0.014386773109436035,
0.0292959101498127,
0.025116998702287674,
0.00735662505030632,
-0.0265099685639143,
0.05428231880068779,
0.0332789346575737,
0.00022785404871683568,
-0.036043111234903336,
0.03203831985592842,
0.017248891294002533,
0.01749919168651104,
-0.03499838337302208,
0.010670371353626251,
-0.026074664667248726,
-0.04390033334493637,
0.007470892276614904,
-0.0353466235101223,
-0.0563717745244503,
-0.011579066514968872,
0.05989772826433182,
-0.029448265209794044,
-0.003000871976837516,
-0.039242587983608246,
-0.04233324155211449,
0.024224625900387764,
0.03878552094101906,
-0.025421710684895515,
-0.041506167501211166,
0.02764175646007061,
0.008597239851951599,
-0.056328240782022476,
0.0874088928103447,
-0.020883673802018166,
0.04992928355932236,
0.04026555269956589,
-0.006611168384552002,
-0.03647841513156891,
-0.0054848212748765945,
0.03732725605368614,
-0.020296014845371246,
0.05106107145547867,
0.026357613503932953,
0.022461649030447006,
0.01912069506943226,
-0.011187293566763401,
-0.03441072255373001,
0.00828708615154028,
-0.0015738933579996228,
0.03565133735537529,
-0.029622387140989304,
-0.032538920640945435,
-0.002512515988200903,
0.004641421139240265,
-0.03293069079518318,
0.026618795469403267,
-0.018892161548137665,
-0.0921972319483757,
-0.031407129019498825,
-0.0735662505030632,
-0.0062520429491996765,
-0.020263366401195526,
0.048666905611753464,
-0.004840028006583452,
-0.0820111334323883,
-0.020840143784880638,
0.008531943894922733,
-0.013385575264692307,
0.011557301506400108,
0.0004791736719198525,
-0.0525411032140255,
0.027750583365559578,
0.037349019199609756,
0.003999348729848862,
-0.00042170003871433437,
0.023158133029937744,
0.07752750813961029,
-0.025791717693209648,
-0.00606703944504261,
0.01749919168651104,
0.03251715376973152,
0.03018828108906746,
0.01784743368625641,
-0.014539129100739956,
-0.01877245306968689,
-0.021776046603918076,
-0.03919905796647072,
0.013396457768976688,
0.04844925180077553,
-0.041266750544309616,
-0.020513666793704033,
0.0013868489768356085,
-0.037218429148197174,
-0.04318208247423172,
0.045228008180856705,
-0.0206986702978611,
-0.0590706542134285,
-0.010969642549753189,
0.017510073259472847,
-0.038829050958156586,
-0.048623375594615936,
0.028425302356481552,
0.08444883674383163,
0.008602680638432503,
-0.041614990681409836,
0.011905544437468052,
-0.0544564388692379,
0.0054902625270187855,
-0.01388617418706417,
-0.01850038953125477,
-0.006110569462180138,
0.013570579700171947,
0.018652744591236115,
0.034606609493494034,
-0.01901187002658844,
-0.07561217993497849,
0.0003110037650913,
0.023397549986839294,
0.01474589854478836,
0.010806403122842312,
-0.00452171266078949,
0.058287106454372406,
-0.007166179828345776,
0.0665578693151474,
0.036935482174158096,
0.011241707019507885,
-0.04857984557747841,
-0.026074664667248726,
-0.022766361013054848,
0.01630210690200329,
0.00249619223177433,
-0.017335953190922737,
0.008346940390765667,
0.0034579404164105654,
0.04305149242281914,
-0.0206986702978611,
0.08449236303567886,
-0.0027995440177619457,
0.0012467358028516173,
-0.024311687797307968,
0.01725977472960949,
-0.009761675260961056,
0.0035939726512879133,
-0.0383719839155674,
-0.022058993577957153,
-0.030210046097636223,
0.05754709243774414,
0.027728818356990814,
-0.07709220796823502,
0.019653942435979843,
0.08562415093183517,
0.0005410683806985617,
-0.02970944717526436,
0.04063555970788002,
-0.05001634359359741,
0.023288724943995476,
-0.07395802438259125,
0.05741650238633156,
-0.04479270428419113,
-0.032887160778045654,
0.008259879425168037,
0.039830248802900314,
0.06185659393668175,
-0.015660034492611885,
0.008842097595334053,
0.08235938102006912,
-0.055980000644922256,
0.007090001832693815,
0.07535099238157272,
0.058635350316762924,
-0.05245404317975044,
-0.004671348258852959,
0.009783441200852394,
-0.05280228704214096,
0.014462950639426708,
0.016955062747001648,
0.044879768043756485,
0.02217870205640793,
0.009973886422812939,
-0.06216130778193474,
0.01636740192770958,
0.04644685983657837,
0.09559259563684464,
-0.06307544559240341,
-0.005909241735935211,
-0.009810646995902061,
0.029818274080753326,
-0.0206986702978611,
-0.06612256914377213,
-0.012460555881261826,
0.025704657658934593,
-0.02479052171111107,
-0.03512897342443466,
-0.018021555617451668,
0.009718145243823528,
0.021873988211154938,
-0.009897707961499691,
-0.01914246194064617,
0.04466211423277855,
0.02984003908932209,
-0.017923612147569656,
-0.018260972574353218,
-0.011720540001988411,
-0.019436290487647057,
0.018173910677433014,
-0.05153990536928177,
0.08074875921010971,
-0.005422246176749468,
0.0703885406255722,
-0.06708022952079773,
0.00828708615154028,
-0.024638164788484573,
0.0358254574239254,
-0.015083258040249348,
0.007291329558938742,
-0.04609861597418785,
-0.07752750813961029,
0.0008399992948397994,
0.07256505638360977,
0.05580587685108185,
0.0028920460026711226,
0.033605411648750305,
-0.054935272783041,
0.0026662324089556932,
0.017488308250904083,
-0.04305149242281914,
-0.003983024973422289,
-0.016693880781531334,
0.008303409442305565,
0.013766465708613396,
0.0003863316378556192,
-0.009946679696440697,
0.004913485608994961,
-0.014550011605024338,
-0.024572869762778282,
0.01784743368625641,
0.03321363776922226,
0.018369797617197037,
0.02396344393491745,
0.02159104123711586,
0.020502783358097076,
-0.03214714676141739,
0.018467741087079048,
0.01973012089729309,
-0.10273157060146332,
-0.018761571496725082,
-0.030057691037654877,
-0.08431824296712875,
-0.0488845556974411,
0.00636086892336607,
0.026444673538208008,
0.02093808725476265,
-0.0585918202996254,
0.010474484413862228,
0.015126788057386875,
-0.05458702892065048,
0.0024213744327425957,
-0.033910125494003296,
0.0750027522444725,
0.014571776613593102,
0.011546419002115726,
0.018641863018274307,
-0.011720540001988411,
-0.02753293141722679,
0.0013644036371260881,
0.03872022405266762,
0.05571881681680679,
0.02152574621140957,
-0.015192084014415741,
-0.016693880781531334,
-0.00035538431257009506,
-0.015170319005846977,
0.10743284225463867,
0.015290027484297752,
0.10316687077283859,
0.0010399667080491781,
0.0428338423371315,
0.036043111234903336,
0.010137124918401241,
-0.006159541197121143,
-0.03832845389842987,
0.04836219176650047,
0.011546419002115726,
-0.017074771225452423,
-0.04255089536309242,
-0.04294266551733017,
-0.007073678076267242,
-0.07391449809074402,
0.10003268718719482,
0.012993802316486835,
-0.011062144301831722,
-0.04198500141501427,
0.013178806751966476,
-0.06586138159036636,
0.10133860260248184,
-0.015115905553102493,
0.03173360973596573,
0.03299598768353462,
0.023114603012800217,
-0.009380785748362541,
0.02598760463297367,
-0.02757646143436432,
-0.003993907477706671,
-0.0358254574239254,
-0.03160301595926285,
-0.02781587839126587,
0.022254878655076027,
-0.06773319095373154,
0.04609861597418785,
0.05972360819578171,
-0.0038878023624420166,
0.040134962648153305,
-0.0260311346501112,
-0.04579390212893486,
-0.029274145141243935,
0.041897937655448914,
0.04592449590563774,
0.005234521813690662,
0.02020895481109619,
0.05480468273162842,
0.04191970452666283,
-0.06459900736808777,
0.024464042857289314,
-0.0367831252515316,
0.01577974297106266,
-0.023767558857798576,
-0.05171402916312218,
0.0383719839155674,
-0.005283493548631668,
0.060724806040525436,
-0.01074110809713602,
-0.006605727132409811,
-0.01633475534617901,
-0.019588647410273552,
0.04827513173222542,
-0.015649152919650078,
0.04009142890572548,
-0.015344440005719662,
-0.013603227213025093,
0.01760801672935486,
-0.027119392529129982,
0.037218429148197174,
-0.005778650753200054,
-0.057329438626766205,
0.04779629781842232,
0.04355209320783615,
-0.011018614284694195,
0.007541629020124674,
0.01194907445460558,
-0.011709657497704029,
0.055022332817316055,
0.03706607222557068,
0.00959299597889185,
-0.03469366952776909,
0.048797495663166046,
0.016443580389022827,
-0.013429105281829834,
0.02674938552081585,
0.0041598668321967125,
-0.0627271980047226,
-0.014016765169799328,
0.00948961079120636,
-0.04679509997367859,
-0.010050063952803612,
0.0033763209357857704,
-0.02764175646007061,
0.004845469258725643,
-0.00751986401155591,
-0.023397549986839294,
0.048797495663166046,
-0.03504191339015961,
0.02025248482823372,
-0.03717489913105965,
0.040483202785253525,
-0.019088048487901688,
-0.03943847492337227,
-0.0413973405957222,
0.023288724943995476,
-0.0021016986574977636,
0.03571663424372673,
-0.038415513932704926,
0.02444227784872055,
0.000033838026865851134,
-0.07352272421121597,
-0.009854177944362164,
-0.03610840439796448,
0.04875396564602852,
0.03956906497478485,
-0.025769952684640884,
0.011644362471997738,
0.0544564388692379,
0.018097734078764915,
-0.025182293727993965,
0.018674509599804878,
-0.029731212183833122,
0.07143326848745346,
0.00020387837139423937,
-0.01296115480363369,
0.040243785828351974,
0.03421483561396599,
-0.009217546321451664,
-0.037109602242708206,
-0.043682683259248734,
-0.03660900518298149,
0.03286539763212204,
0.004635979887098074,
0.0125802643597126,
0.022701065987348557,
0.02877354621887207,
0.02864295430481434,
0.03077594004571438,
-0.005112092941999435,
-0.03007945604622364,
-0.041310280561447144,
0.0003467122442089021,
0.03060181997716427,
-0.046055085957050323,
-0.006001743953675032,
0.0012943471083417535,
-0.031407129019498825,
-0.036870185285806656,
0.02657526358962059,
0.015322674997150898,
-0.005256286822259426,
0.04011319577693939,
-0.040309082716703415,
-0.03301775082945824,
-0.05005987361073494,
-0.03249538689851761,
-0.043160319328308105,
-0.012776150368154049,
-0.025791717693209648,
-0.01568179950118065,
-0.02337578497827053,
0.11605185270309448,
-0.062204837799072266,
0.0020799334160983562,
-0.012014370411634445,
-0.05023399740457535,
0.04958104342222214,
-0.001326314639300108,
-0.013124393299221992,
0.02372402884066105,
0.01287409383803606,
-0.038937877863645554,
0.02183045819401741,
0.025878779590129852,
-0.09655026346445084,
-0.0024526617489755154,
-0.027358809486031532,
0.008580915629863739,
0.0059854197315871716,
0.03991730883717537,
0.044052690267562866,
0.013461753726005554,
0.006997500080615282,
-0.004181631840765476,
-0.017988907173275948,
0.013222336769104004,
-0.00310697709210217,
-0.0011930030304938555,
-0.014136473648250103,
-0.02372402884066105,
0.011470241472125053,
-0.021917520090937614,
0.025356415659189224,
-0.0388508178293705,
-0.017684195190668106,
0.0363042913377285,
0.01942540891468525,
0.02289695106446743,
-0.028033530339598656,
-0.0029274143744260073,
0.053368180990219116,
0.024899346753954887,
-0.03186419978737831,
0.03695724904537201,
-0.016008278355002403,
0.02492111176252365,
-0.06429429352283478,
0.03643488511443138,
0.0006879831780679524,
0.06690610945224762,
-0.026792915537953377,
0.08488413691520691,
-0.02042660489678383,
-0.037697263062000275,
-0.02859942428767681,
0.009516817517578602,
0.030035926029086113,
-0.0179127287119627,
-0.007073678076267242,
-0.014125591143965721,
0.02007836289703846,
0.05036458745598793,
-0.01907716505229473,
-0.01622592844069004,
-0.03155948594212532,
-0.04453152418136597,
-0.00012676506594289094,
-0.0033028635662049055,
0.049319859594106674,
0.0053732749074697495,
-0.04385680332779884,
0.036043111234903336,
-0.0015398852992802858,
0.017423013225197792,
0.023745793849229813,
0.027728818356990814,
0.03321363776922226,
-0.0730874165892601,
-0.024942876771092415,
-0.011644362471997738,
0.03843727707862854,
0.023832853883504868,
0.023919913917779922,
-0.025182293727993965,
0.023354019969701767,
-0.005381436552852392,
0.023528141900897026,
0.06629668921232224,
-0.019817180931568146,
-0.011372298002243042,
-0.009163133800029755,
-0.01667211577296257,
0.056502364575862885,
0.03767549619078636,
-0.044052690267562866,
-0.009663732722401619,
-0.03591252118349075,
-0.011774953454732895,
-0.018141264095902443,
-0.023767558857798576,
0.009756234474480152,
-0.004848190117627382,
0.07474157214164734,
0.007030147593468428,
-0.0016963224625214934,
-0.022766361013054848,
-0.0048182629980146885,
0.03238656371831894,
-0.04810101166367531,
-0.01160083245486021,
0.03293069079518318,
0.03221243992447853,
0.002730167703703046,
-0.014169121161103249,
0.0059908609837293625,
-0.051452845335006714,
-0.0434650294482708,
-0.012144961394369602,
0.046969223767519,
-0.04407445713877678,
0.02990533411502838,
0.025769952684640884,
-0.005800416227430105,
-0.009718145243823528,
0.0008440802339464426,
0.03830668702721596,
0.027315279468894005,
0.03192949295043945,
0.014386773109436035,
-0.06612256914377213,
0.014299712143838406,
-0.03658723831176758,
0.048623375594615936,
0.010088153183460236,
-0.03737078607082367,
0.04276854544878006,
0.017760373651981354,
-0.04609861597418785,
-0.008564591407775879,
-0.07717926800251007,
0.05014693737030029,
0.004706716630607843,
-0.0091957813128829,
-0.04557625204324722,
0.0019615853670984507,
0.03162478283047676,
0.013527048751711845,
0.03660900518298149,
0.046533919870853424,
-0.004358474165201187,
0.008727830834686756,
0.029100023210048676,
-0.013244101777672768,
-0.01057242788374424,
0.007030147593468428,
0.055327046662569046,
-0.12336494773626328,
-0.0318424329161644,
0.007585159502923489,
-0.061421290040016174,
-0.06821202486753464,
0.06120363995432854,
-0.0985526591539383,
0.04753511771559715,
0.006377192679792643,
0.026422908529639244,
0.05941889435052872,
0.03249538689851761,
-0.031472425907850266,
0.04818807169795036,
-0.01136141549795866,
-0.0037980210036039352,
0.006997500080615282,
0.0028675603680312634,
0.009010777808725834,
0.010610517114400864,
0.014539129100739956,
-0.0033355113118886948,
0.016073573380708694,
-0.021645454689860344,
-0.00720971031114459,
0.027598226442933083,
0.03297422081232071,
0.048971615731716156,
0.04159322753548622,
0.03462837636470795,
-0.01877245306968689,
-0.0217325147241354,
-0.023680496960878372,
0.012569381855428219,
-0.04231147840619087,
0.03238656371831894,
-0.022265762090682983,
0.0374143160879612,
0.025247588753700256,
-0.01667211577296257,
0.04596802592277527,
0.010583310388028622,
-0.017390364781022072,
-0.04622920602560043,
0.0164000503718853,
0.03121124394237995,
-0.02818588726222515,
0.04033084586262703,
-0.06721082329750061,
-0.02788117341697216,
0.0479268878698349,
0.04592449590563774,
-0.035498980432748795,
-0.04975516349077225,
-0.024289922788739204,
0.012514968402683735,
-0.03872022405266762,
0.011252589523792267,
0.016889765858650208,
-0.00024400788242928684,
-0.04727393388748169,
-0.007454568520188332,
-0.034149542450904846,
0.0016473508439958096,
-0.020481018349528313,
-0.04857984557747841,
-0.002777779009193182,
0.0026743945199996233,
0.007536187767982483,
0.03493308648467064,
0.05171402916312218,
0.023441080003976822,
-0.010594192892313004,
0.04159322753548622,
-0.006301014684140682,
-0.047839827835559845,
0.02365873195230961,
0.006072480697184801,
-0.024464042857289314,
0.0012916263658553362,
0.05972360819578171,
0.04233324155211449,
-0.007585159502923489,
-0.025138763710856438,
-0.007264123298227787,
-0.05554469674825668,
-0.03203831985592842,
0.024899346753954887,
-0.0062738084234297276,
-0.018402446061372757,
0.06181306391954422,
-0.028338242322206497,
-0.02846883423626423,
-0.022189583629369736,
-0.061726003885269165,
-0.02822941727936268,
-0.06651433557271957,
-0.06442487984895706,
0.044422697275877,
-0.0041680289432406425,
-0.028011765331029892,
-0.061726003885269165,
0.03682665526866913,
-0.02320166490972042,
-0.01043639611452818,
0.0753074660897255,
0.03606487438082695,
-0.048405721783638,
0.013635874725878239,
-0.03828492388129234,
-0.020339544862508774,
-0.08584180474281311,
0.06420723348855972,
0.021906636655330658,
-0.05563175678253174,
0.020611610263586044,
0.028751781210303307,
0.02203722856938839,
0.004004789981991053,
0.00003662243761937134,
-0.09080426394939423,
0.015170319005846977,
0.011219942010939121,
0.03127653896808624,
-0.009016218595206738,
-0.02235282212495804,
0.040962036699056625
] |
725,252 | dockerfile_parse.parser | __init__ |
Initialize source of Dockerfile
:param path: path to (directory with) Dockerfile; if not provided,
and fileobj is not provided, the current working
directory will be used
:param cache_content: cache Dockerfile content inside DockerfileParser
:param env_replace: return content with variables replaced
:param parent_env: python dict of inherited env vars from parent image
:param fileobj: seekable file-like object containing Dockerfile content
as bytes (will be truncated on write)
:param build_args: python dict of build args used when building image
| def __init__(self, path=None,
cache_content=False,
env_replace=True,
parent_env=None,
fileobj=None,
build_args=None):
"""
Initialize source of Dockerfile
:param path: path to (directory with) Dockerfile; if not provided,
and fileobj is not provided, the current working
directory will be used
:param cache_content: cache Dockerfile content inside DockerfileParser
:param env_replace: return content with variables replaced
:param parent_env: python dict of inherited env vars from parent image
:param fileobj: seekable file-like object containing Dockerfile content
as bytes (will be truncated on write)
:param build_args: python dict of build args used when building image
"""
self.fileobj = fileobj
if self.fileobj is not None:
if path is not None:
raise ValueError("Parameters path and fileobj cannot be used together.")
else:
self.fileobj.seek(0)
else:
path = path or '.'
if path.endswith(DOCKERFILE_FILENAME):
self.dockerfile_path = path
else:
self.dockerfile_path = os.path.join(path, DOCKERFILE_FILENAME)
self.cache_content = cache_content
self.cached_content = '' # unicode string
if cache_content:
try:
# this will cache the Dockerfile content
self.content
except (IOError, OSError):
# the Dockerfile doesn't exist yet
pass
self.env_replace = env_replace
if parent_env is None:
self.parent_env = {}
else:
assert isinstance(parent_env, dict)
logger.debug("Setting inherited parent image ENV vars: %s", parent_env)
self.parent_env = parent_env
if build_args is None:
self.build_args = {}
else:
assert isinstance(build_args, dict)
logger.debug("Setting build args: %s", build_args)
self.build_args = build_args
| (self, path=None, cache_content=False, env_replace=True, parent_env=None, fileobj=None, build_args=None) | [
0.02465907298028469,
-0.07781140506267548,
-0.01833454705774784,
0.021426327526569366,
-0.0375712551176548,
-0.01858827844262123,
0.026952065527439117,
0.04386758804321289,
0.006145973224192858,
-0.0362556017935276,
0.0751425102353096,
0.054505571722984314,
-0.03266575187444687,
0.028455667197704315,
0.021012837067246437,
0.05781349539756775,
0.014519156888127327,
0.014378193765878677,
-0.015938181430101395,
0.00029088236624374986,
-0.006766208913177252,
0.024189196527004242,
0.0051404391415417194,
0.00994256790727377,
0.04398035630583763,
0.029884088784456253,
-0.03091781586408615,
0.001811370486393571,
0.020298626273870468,
-0.05724964290857315,
-0.04341650754213333,
-0.023324625566601753,
-0.026989655569195747,
0.035203080624341965,
0.04616057872772217,
-0.016041552647948265,
-0.017432386055588722,
0.030748659744858742,
-0.047288279980421066,
0.007057531736791134,
0.016943715512752533,
0.017357205972075462,
-0.035372234880924225,
-0.04488251730799675,
-0.03112456016242504,
0.014227833598852158,
0.017404193058609962,
-0.0530395582318306,
-0.029714934527873993,
-0.03755245730280876,
0.0669102892279625,
0.008969925343990326,
0.006456091068685055,
0.009031008929014206,
-0.0029813607688993216,
0.06657197326421738,
-0.010215096175670624,
0.03584211319684982,
0.0007741200970485806,
0.01822177693247795,
-0.059692997485399246,
0.028455667197704315,
0.03621801361441612,
-0.004628274589776993,
-0.03805992379784584,
0.0153649328276515,
-0.04285265505313873,
-0.029620958492159843,
0.011906648054718971,
-0.023418599739670753,
-0.03206431120634079,
0.002012242330238223,
0.04375481605529785,
-0.03901847079396248,
0.010186903178691864,
0.00008237506699515507,
-0.040860384702682495,
0.023136675357818604,
0.004717551171779633,
-0.03687583655118942,
-0.011699902825057507,
0.003733161836862564,
-0.023606549948453903,
-0.05288919806480408,
0.0856301337480545,
-0.01804322376847267,
0.010149313136935234,
0.040597252547740936,
0.022140538319945335,
-0.00974522065371275,
0.00038559167296625674,
0.046799611300230026,
-0.02507256343960762,
0.04563431814312935,
0.04578467831015587,
0.014049280434846878,
0.040672432631254196,
-0.010506418533623219,
-0.017253832891583443,
-0.007113916799426079,
0.0008346165413968265,
-0.02445232681930065,
-0.0386049821972847,
-0.04627335071563721,
-0.008871251717209816,
-0.03736450895667076,
-0.007508612237870693,
-0.007480419706553221,
-0.00608488917350769,
-0.06713582575321198,
-0.0397326834499836,
-0.06337682157754898,
-0.016126131638884544,
0.017347807064652443,
0.017056485638022423,
-0.00465881684795022,
-0.06574499607086182,
-0.028117356821894646,
0.021332353353500366,
0.002812205580994487,
-0.0037096680607646704,
0.040108583867549896,
-0.03576693311333656,
0.02620026469230652,
0.054280031472444534,
0.01873863860964775,
0.0007917404291220009,
-0.005577423609793186,
0.047213099896907806,
-0.029865294694900513,
0.040747612714767456,
0.005793566349893808,
-0.01947164535522461,
0.010722561739385128,
0.022309694439172745,
-0.012329536490142345,
0.03221467137336731,
0.016783956438302994,
-0.027553506195545197,
0.04243916645646095,
0.0381351038813591,
-0.05025789514183998,
0.0035522596444934607,
-0.008688000030815601,
0.00480212876573205,
0.0027652180287986994,
0.040785204619169235,
-0.026876885443925858,
-0.07127073407173157,
0.007104519288986921,
0.006794401444494724,
-0.04585985839366913,
-0.04480733722448349,
0.029339034110307693,
0.06713582575321198,
-0.006103684194386005,
-0.0371013768017292,
-0.0008093607611954212,
-0.023174265399575233,
0.038980882614851,
-0.015769025310873985,
0.00011592712689889595,
-0.0016210709000006318,
-0.015355534851551056,
0.020355012267827988,
0.01980995573103428,
-0.030447939410805702,
-0.06645920872688293,
0.0037026198115199804,
0.005248510744422674,
0.012968567200005054,
-0.041461825370788574,
-0.010863523930311203,
0.047213099896907806,
-0.03108697012066841,
0.06901533156633377,
0.023662935942411423,
-0.00916257407516241,
-0.04604781046509743,
0.020749706774950027,
-0.01971598155796528,
0.015675051137804985,
0.005079355556517839,
0.003213949268683791,
0.011963033117353916,
0.04300301522016525,
0.016436249017715454,
0.03274093195796013,
0.0738268569111824,
0.010102326050400734,
0.03416935354471207,
0.005694892257452011,
-0.0191145408898592,
-0.03339875862002373,
0.005318991839885712,
-0.026933269575238228,
-0.03704499453306198,
-0.06450452655553818,
0.00947739090770483,
0.07826248556375504,
-0.054768700152635574,
0.023456189781427383,
0.0672861859202385,
-0.01249869167804718,
-0.016116732731461525,
0.04480733722448349,
-0.04522082954645157,
0.007198494393378496,
-0.041010744869709015,
0.05612194165587425,
-0.047476232051849365,
-0.03864257037639618,
-0.010224493220448494,
0.016417453065514565,
0.028211330994963646,
-0.011230027303099632,
-0.034601639956235886,
0.07416516542434692,
-0.06360236555337906,
0.027478326112031937,
0.0863819345831871,
0.041800133883953094,
-0.02621905878186226,
0.0005065846489742398,
0.0070716277696192265,
-0.042025674134492874,
0.04352927580475807,
-0.021501507610082626,
0.01547770295292139,
0.02601231448352337,
-0.052926789969205856,
-0.04597263038158417,
0.05055861547589302,
0.023493779823184013,
0.08284846693277359,
-0.035823315382003784,
0.01216977834701538,
-0.004405084066092968,
-0.013438442721962929,
-0.041010744869709015,
-0.01917092502117157,
-0.03651873394846916,
0.0241704024374485,
-0.022798364982008934,
-0.028380487114191055,
-0.04518323764204979,
-0.020524166524410248,
0.030241195112466812,
-0.017780093476176262,
-0.03347393870353699,
0.05176149681210518,
0.04022135213017464,
-0.054505571722984314,
-0.01980995573103428,
-0.0010354883270338178,
0.008222823031246662,
0.03104938007891178,
-0.08953949809074402,
0.053979311138391495,
-0.0050229704938828945,
0.07206012308597565,
-0.07863838225603104,
-0.010290276259183884,
-0.0025020877365022898,
0.029207468032836914,
-0.011042077094316483,
0.0046141785569489,
-0.05131041631102562,
-0.07969090342521667,
0.004896103870123625,
0.09299778193235397,
0.03736450895667076,
0.05537014082074165,
0.03768402338027954,
-0.03980786353349686,
-0.016859136521816254,
-0.006672233808785677,
-0.0492805540561676,
-0.003878823248669505,
0.035334646701812744,
0.03353032469749451,
0.01250808872282505,
0.00904040690511465,
0.014011690393090248,
-0.013551212847232819,
-0.028154946863651276,
-0.023888476192951202,
0.03322960436344147,
0.0025114852469414473,
0.0029790112748742104,
0.0185506884008646,
0.06307610124349594,
-0.0004854402504861355,
-0.013898920267820358,
-0.03774040937423706,
-0.03324839845299721,
-0.08532941341400146,
0.007870416156947613,
0.0000792180944699794,
-0.05653543397784233,
-0.029846498742699623,
-0.0009133207495324314,
-0.018024427816271782,
0.010130518116056919,
-0.028286511078476906,
0.01979116164147854,
-0.016201311722397804,
-0.035071514546871185,
0.0044191800989210606,
0.011004487052559853,
0.08375062793493271,
0.01544011291116476,
-0.0015764327254146338,
0.021426327526569366,
0.014218435622751713,
-0.007024640217423439,
0.015909988433122635,
-0.03409417346119881,
0.02625664882361889,
0.01971598155796528,
-0.011502554640173912,
-0.03215828537940979,
-0.040935564786195755,
-0.02610628865659237,
0.09698233008384705,
-0.004292313940823078,
0.07856320589780807,
0.009533775970339775,
0.04228880628943443,
0.07694683223962784,
0.00009404854063177481,
0.011728094890713692,
0.013955305330455303,
0.016342272982001305,
0.009698232635855675,
-0.0007371173705905676,
-0.03787197545170784,
-0.04593503847718239,
-0.0031270221807062626,
-0.042251214385032654,
0.04367963597178459,
-0.021313557401299477,
-0.04007099196314812,
-0.03687583655118942,
-0.017601540312170982,
-0.04007099196314812,
0.09848593175411224,
-0.039168830960989,
0.08051788806915283,
-0.0017467625439167023,
-0.011267617344856262,
-0.027497120201587677,
0.027327965945005417,
-0.029959268867969513,
-0.005422364454716444,
-0.02550484798848629,
-0.048002492636442184,
0.0014930297620594501,
0.034507665783166885,
-0.08036752790212631,
0.01964080147445202,
0.035409826785326004,
-0.023587755858898163,
0.026670139282941818,
-0.001974652288481593,
-0.035879701375961304,
-0.002971963258460164,
0.036124035716056824,
-0.010600393638014793,
0.015994565561413765,
0.03554139286279678,
-0.005243811756372452,
0.006921267602592707,
-0.0623994804918766,
0.05570845305919647,
-0.05747518688440323,
-0.0246402770280838,
-0.04300301522016525,
-0.03054191544651985,
0.02635062485933304,
-0.03315442427992821,
0.07164663076400757,
-0.023268239572644234,
0.0010014224098995328,
-0.035278260707855225,
0.003782498650252819,
0.01992272585630417,
-0.008016077801585197,
0.06773726642131805,
-0.011765684932470322,
0.0002601936284918338,
0.027685070410370827,
0.0043956865556538105,
0.04533359780907631,
0.04555913805961609,
-0.04567191004753113,
0.060369618237018585,
0.0377592034637928,
0.008828963153064251,
0.0028709399048238993,
0.0001769375376170501,
-0.026914475485682487,
0.023343419656157494,
0.0188326146453619,
0.030297579243779182,
-0.003883522003889084,
0.030635889619588852,
0.004031532909721136,
-0.01828755810856819,
0.0188326146453619,
0.01287459209561348,
-0.04266470670700073,
-0.027666276320815086,
-0.00894173327833414,
-0.05600917339324951,
0.03717655688524246,
0.0021414582151919603,
-0.00935522373765707,
0.03219587728381157,
-0.06980472058057785,
-0.04322855547070503,
0.05766313523054123,
-0.029959268867969513,
0.007362951058894396,
-0.02499738335609436,
0.05119764804840088,
-0.021219583228230476,
-0.04319096729159355,
-0.00896522682160139,
0.0126960389316082,
-0.005708988755941391,
0.08818625658750534,
-0.035315852612257004,
0.05882842838764191,
0.04661165922880173,
-0.04533359780907631,
-0.03114335611462593,
-0.009486788883805275,
0.014443976804614067,
0.05123523622751236,
-0.03279731795191765,
-0.015299149788916111,
0.07408998906612396,
0.030523119494318962,
-0.06322646141052246,
0.06769967824220657,
-0.03245900571346283,
0.10510177910327911,
0.004005689639598131,
-0.011089064180850983,
0.09570426493883133,
0.028399281203746796,
-0.041461825370788574,
-0.060031309723854065,
-0.08683301508426666,
-0.048453573137521744,
-0.01841912418603897,
0.014133858494460583,
0.030504325404763222,
0.01941526122391224,
-0.006479584611952305,
0.0056807962246239185,
0.02452750690281391,
-0.05852770805358887,
-0.053565818816423416,
-0.01988513581454754,
-0.00775764649733901,
0.0126490518450737,
-0.014021088369190693,
-0.023174265399575233,
0.022215718403458595,
-0.04345409572124481,
-0.04258952662348747,
0.034770794212818146,
-0.0008733812719583511,
0.0015987517544999719,
0.01990393176674843,
-0.04939332604408264,
-0.04281506687402725,
-0.03185756504535675,
-0.02490340732038021,
-0.021388737484812737,
0.002767567289993167,
-0.010891716927289963,
-0.03108697012066841,
-0.047213099896907806,
0.07713478058576584,
-0.003376056207343936,
0.00242690765298903,
0.013908318243920803,
-0.03753366321325302,
0.07529287040233612,
-0.03106817603111267,
-0.0024245581589639187,
0.021426327526569366,
0.013165914453566074,
-0.003413646249100566,
0.04273988679051399,
-0.0311057660728693,
-0.08660747110843658,
-0.012714833952486515,
-0.04367963597178459,
0.015966372564435005,
0.03106817603111267,
0.014810479246079922,
-0.004073821473866701,
-0.026914475485682487,
-0.016276491805911064,
0.01918032206594944,
-0.020824886858463287,
0.02467786706984043,
0.004219483118504286,
-0.014350001700222492,
-0.028756387531757355,
0.01823117397725582,
0.013607597909867764,
-0.05597158148884773,
0.03736450895667076,
-0.05909155681729317,
-0.008138245902955532,
0.05837734788656235,
0.020843682810664177,
0.027647480368614197,
0.010534611530601978,
0.00616006925702095,
-0.01317531242966652,
0.07093242555856705,
0.014744697138667107,
0.053415458649396896,
0.011596529744565487,
0.0004437387688085437,
-0.08593085408210754,
0.016238901764154434,
0.03871775045990944,
0.06551945209503174,
0.0123201385140419,
0.012968567200005054,
0.010769548825919628,
-0.077961765229702,
-0.04627335071563721,
0.008340291678905487,
0.008753783069550991,
0.0008493001805618405,
-0.014368796721100807,
-0.0007324186153709888,
0.00952907744795084,
0.017329012975096703,
0.023023905232548714,
0.027553506195545197,
-0.029038313776254654,
-0.03244021162390709,
-0.034206945449113846,
0.028286511078476906,
0.06198599189519882,
0.016116732731461525,
-0.029188673943281174,
0.02574918419122696,
-0.01853189431130886,
0.004543696995824575,
-0.002586665330454707,
0.022648004814982414,
0.06969194859266281,
-0.023775706067681313,
0.02606869861483574,
-0.02586195431649685,
0.005079355556517839,
0.016069745644927025,
0.013701573014259338,
-0.03287249803543091,
-0.00012282842362765223,
-0.02011067606508732,
0.016577212139964104,
0.01874803751707077,
0.0002306795649928972,
-0.0023728718515485525,
0.017986837774515152,
-0.0063151284120976925,
0.07221048325300217,
0.027064835652709007,
-0.020430192351341248,
-0.006695727352052927,
-0.09149418026208878,
-0.020618142560124397,
0.0008034873171709478,
-0.06856425106525421,
-0.0014542649732902646,
0.020336216315627098,
0.060670338571071625,
-0.0054317619651556015,
-0.015646858140826225,
-0.020862476900219917,
-0.026726525276899338,
0.027102425694465637,
-0.005535134579986334,
-0.041161105036735535,
0.007236084435135126,
0.03610524162650108,
-0.022140538319945335,
0.028418077155947685,
-0.033511530607938766,
-0.027703866362571716,
-0.06288815289735794,
0.00643729604780674,
0.05044584721326828,
-0.0753304585814476,
0.029526984319090843,
-0.010158711113035679,
0.036274395883083344,
0.000009255264558305498,
0.05894119665026665,
0.03666909411549568,
0.017939850687980652,
0.0005136327818036079,
0.01906755194067955,
-0.035052720457315445,
0.015308547765016556,
-0.02428317256271839,
0.04867911338806152,
-0.009688835591077805,
-0.06950400024652481,
0.011737492866814137,
0.030128424987196922,
-0.012790014035999775,
0.011662312783300877,
-0.05168631672859192,
0.02522292360663414,
0.04281506687402725,
-0.01950923539698124,
-0.04642371088266373,
-0.022027768194675446,
0.06961677223443985,
0.0008093607611954212,
0.028981927782297134,
0.027534710243344307,
-0.006761509925127029,
-0.01906755194067955,
0.03648114204406738,
0.0011506079463288188,
0.027703866362571716,
0.021088017150759697,
0.1011924147605896,
-0.08405134826898575,
-0.02460268698632717,
0.028587231412529945,
-0.046949971467256546,
-0.10404925793409348,
0.05732482671737671,
-0.05811421573162079,
0.02550484798848629,
-0.00038030557334423065,
0.028512051329016685,
0.023587755858898163,
0.029038313776254654,
-0.03095540590584278,
0.03721414878964424,
-0.0006396181997843087,
0.035259466618299484,
0.029940474778413773,
0.02601231448352337,
-0.0006836690008640289,
-0.004717551171779633,
0.01977236568927765,
-0.002184921642765403,
0.01980995573103428,
-0.0009092093096114695,
-0.015646858140826225,
0.04886706545948982,
-0.012329536490142345,
0.028324101120233536,
0.08081860840320587,
0.0008545862510800362,
-0.016549019142985344,
-0.011267617344856262,
-0.017460577189922333,
0.0027652180287986994,
-0.014058678410947323,
0.02584315836429596,
-0.023399805650115013,
0.03683824837207794,
0.048077672719955444,
-0.03651873394846916,
0.055294960737228394,
-0.014096268452703953,
0.008518844842910767,
-0.0001284816098632291,
0.008753783069550991,
0.021708253771066666,
0.007367649581283331,
0.022309694439172745,
-0.05240052938461304,
-0.04285265505313873,
0.02612508460879326,
0.040860384702682495,
-0.0753304585814476,
-0.0517239086329937,
-0.054242439568042755,
0.021144403144717216,
-0.021125607192516327,
0.0073206620290875435,
0.010384251363575459,
0.02014826610684395,
-0.03356791287660599,
-0.026688935235142708,
-0.010807138867676258,
-0.01844731718301773,
-0.010497021488845348,
-0.04360445588827133,
0.020618142560124397,
0.021088017150759697,
-0.035748135298490524,
0.004994777962565422,
0.0198663417249918,
0.03230864554643631,
-0.014622529037296772,
0.00989558082073927,
0.03591729328036308,
-0.026989655569195747,
0.013692175038158894,
-0.02526051364839077,
-0.03084263578057289,
-0.006305730901658535,
0.04540877789258957,
0.05860288813710213,
-0.02586195431649685,
0.02578677423298359,
-0.0361616276204586,
-0.048077672719955444,
-0.02526051364839077,
0.040973152965307236,
0.00011908409942407161,
-0.01923670805990696,
0.026688935235142708,
-0.020317422226071358,
-0.06792522221803665,
-0.01932128518819809,
-0.06867702305316925,
-0.014810479246079922,
-0.061497319489717484,
-0.059580229222774506,
0.040860384702682495,
0.010036543011665344,
-0.008260413073003292,
-0.05864047631621361,
0.001239296980202198,
0.02445232681930065,
-0.010280878283083439,
0.054167259484529495,
0.0000369292865798343,
-0.0517239086329937,
0.00964184757322073,
-0.06585776805877686,
-0.001844261772930622,
-0.05574604123830795,
0.060858290642499924,
0.035973675549030304,
-0.06424139440059662,
-0.028737593442201614,
0.0191615279763937,
0.03304165229201317,
-0.021407533437013626,
-0.022854749113321304,
-0.11352194845676422,
0.003103528404608369,
-0.02420799247920513,
0.0618356317281723,
0.029075903818011284,
0.017338410019874573,
0.00638560950756073
] |
725,253 | dockerfile_parse.parser | _add_instruction |
:param instruction: instruction name to be added
:param value: instruction value
| def _add_instruction(self, instruction, value):
"""
:param instruction: instruction name to be added
:param value: instruction value
"""
if instruction in ('LABEL', 'ENV', 'ARG') and len(value) == 2:
new_line = instruction + ' ' + '='.join(map(quote, value)) + '\n'
else:
new_line = '{0} {1}\n'.format(instruction, value)
if new_line:
lines = self.lines
if not lines[len(lines) - 1].endswith('\n'):
new_line = '\n' + new_line
lines += new_line
self.lines = lines
| (self, instruction, value) | [
0.02047058567404747,
-0.036819107830524445,
0.021763097494840622,
0.016261190176010132,
-0.01998152770102024,
-0.015125877223908901,
-0.01251465454697609,
0.006366492249071598,
-0.0012051796074956656,
-0.033448100090026855,
0.026985542848706245,
0.0058774338103830814,
0.05281830579042435,
0.005052147898823023,
0.027334870770573616,
0.0051045469008386135,
0.045901622623205185,
-0.02695060893893242,
-0.05627664551138878,
-0.0007565121632069349,
-0.01742270402610302,
0.035369399935007095,
0.015588736161589622,
-0.014828948304057121,
0.03481047600507736,
0.07279983162879944,
-0.00040882223402149975,
-0.004676620941609144,
0.0259899590164423,
-0.011161010712385178,
-0.02979762852191925,
-0.08775104582309723,
-0.06130696088075638,
-0.056695837527513504,
0.05323749780654907,
0.011920797638595104,
-0.03243504837155342,
0.008960247971117496,
-0.030950408428907394,
0.0005938566173426807,
0.033570364117622375,
-0.00778126809746027,
-0.021745631471276283,
0.018269823864102364,
-0.03100280836224556,
-0.04181449115276337,
-0.006025897804647684,
-0.027561932802200317,
0.019649667665362358,
-0.04799758642911911,
0.046844806522130966,
0.014706684276461601,
0.05232924595475197,
0.012104194611310959,
-0.03853081166744232,
0.0268283449113369,
0.04883597046136856,
0.003519473597407341,
0.018461953848600388,
0.026269420981407166,
0.00408931402489543,
0.0452728308737278,
-0.004047831520438194,
-0.010610819794237614,
-0.0030587981455028057,
-0.0015992645639926195,
-0.026479016989469528,
-0.028906842693686485,
0.03706363961100578,
-0.008789950981736183,
-0.0053752753883600235,
-0.04995381832122803,
-0.008968980982899666,
-0.047089334577322006,
0.019824329763650894,
-0.0098684998229146,
-0.07489579916000366,
0.044120050966739655,
0.045202966779470444,
-0.039928123354911804,
-0.04995381832122803,
-0.040277451276779175,
0.028068456798791885,
0.0004044556408189237,
0.011440472677350044,
-0.011117344722151756,
-0.00730094313621521,
-0.012339990586042404,
0.023666931316256523,
0.01937020570039749,
-0.02502930909395218,
-0.035369399935007095,
-0.032382652163505554,
0.0641714483499527,
0.010811683721840382,
-0.009562837891280651,
0.09250190109014511,
-0.03748283162713051,
-0.005851234309375286,
0.040172651410102844,
0.045552294701337814,
-0.04628588259220123,
0.029413368552923203,
-0.058372609317302704,
-0.0012226459803059697,
-0.05568278953433037,
0.02668861486017704,
0.03999798744916916,
0.010479822754859924,
-0.03842601552605629,
-0.0034496081061661243,
-0.058372609317302704,
-0.022479219362139702,
-0.07066893577575684,
-0.0025915727019309998,
0.053097765892744064,
-0.028068456798791885,
-0.0033579098526388407,
0.03842601552605629,
-0.008549788035452366,
0.0047814189456403255,
0.005597971845418215,
0.004379692487418652,
0.005357809364795685,
0.02847018465399742,
0.024610117077827454,
-0.0031221136450767517,
0.014042962342500687,
0.02562316507101059,
-0.07252036780118942,
-0.0024321922101080418,
-0.02836538664996624,
0.011545270681381226,
0.017737099900841713,
0.039928123354911804,
-0.03315117210149765,
-0.00652368925511837,
-0.01430495735257864,
0.027736596763134003,
0.017248040065169334,
0.019649667665362358,
-0.019125675782561302,
-0.01682884804904461,
-0.01249718852341175,
-0.019125675782561302,
-0.03891507536172867,
-0.001386393210850656,
0.07203131169080734,
-0.003480174345895648,
-0.04995381832122803,
0.038495879620313644,
0.01203432958573103,
-0.0830700621008873,
-0.029762694612145424,
0.0847468301653862,
0.046600278466939926,
0.04272274300456047,
-0.040521979331970215,
0.04066171124577522,
-0.03304637223482132,
0.01472415030002594,
0.015981728211045265,
-0.018881145864725113,
0.007148112170398235,
0.0014289674581959844,
0.07692189514636993,
-0.022653883323073387,
0.03484540805220604,
-0.004720286466181278,
0.009388173930346966,
-0.00108618987724185,
-0.09878978878259659,
0.0663023442029953,
0.10689418762922287,
-0.002530440455302596,
0.008383858017623425,
-0.0052792103961110115,
0.01304737851023674,
0.0032290953677147627,
-0.054774537682533264,
-0.016348522156476974,
0.041360367089509964,
-0.02024352364242077,
0.0049124169163405895,
0.019649667665362358,
-0.0241559911519289,
0.04310700297355652,
-0.02443545311689377,
0.05449507758021355,
0.0054757073521614075,
0.04995381832122803,
-0.01345783844590187,
-0.007178678177297115,
0.0156236682087183,
-0.03426901996135712,
-0.08628387004137039,
0.017562435939908028,
-0.018339689821004868,
0.029500700533390045,
0.02513410709798336,
-0.02454025112092495,
0.02298574335873127,
0.030950408428907394,
0.040172651410102844,
0.03245251625776291,
0.034670744091272354,
0.008121862076222897,
-0.0050696139223873615,
-0.051036734133958817,
-0.01202559657394886,
0.032138120383024216,
0.00736207515001297,
0.0428275391459465,
0.05568278953433037,
0.017248040065169334,
0.02382412925362587,
-0.03503753989934921,
0.050687406212091446,
-0.03685404360294342,
-0.005017214920371771,
0.0528881698846817,
0.042198751121759415,
0.011877131648361683,
-0.012523387558758259,
0.021274039521813393,
-0.04778799042105675,
0.04429471492767334,
0.00452378997579217,
0.01029642578214407,
0.05184018611907959,
0.011003813706338406,
0.0016855048015713692,
-0.040521979331970215,
-0.0001406861556461081,
-0.005209344904869795,
-0.0019234840292483568,
-0.006711452733725309,
-0.017737099900841713,
-0.006021531298756599,
0.0011516888625919819,
-0.04020758345723152,
0.0094493068754673,
0.0031701463740319014,
0.010200360789895058,
0.004316376987844706,
0.00249769096262753,
0.002119980752468109,
0.03336076810956001,
-0.035474199801683426,
-0.029972292482852936,
0.06305360049009323,
0.002384159481152892,
-0.0005158037529326975,
-0.042548079043626785,
-0.04083637520670891,
0.028068456798791885,
0.03528206795454025,
-0.024941977113485336,
0.07136759161949158,
-0.022304555401206017,
-0.03030415251851082,
0.0019376755226403475,
-0.0052661108784377575,
-0.05648624151945114,
0.03229532018303871,
-0.007680836599320173,
-0.03723830357193947,
0.02370186522603035,
-0.015588736161589622,
-0.018339689821004868,
0.0317014642059803,
0.06881750375032425,
-0.009440572932362556,
-0.001232470734976232,
-0.040172651410102844,
0.0013689268380403519,
0.020260989665985107,
0.014016762375831604,
-0.011501604691147804,
-0.07321902364492416,
0.042303550988435745,
-0.013422905467450619,
-0.02094217762351036,
0.0031046473886817694,
-0.04073157534003258,
-0.015230675227940083,
0.04163982719182968,
0.047089334577322006,
0.040172651410102844,
-0.0012772283516824245,
0.03940413147211075,
0.10451876372098923,
0.026391686871647835,
0.03257478028535843,
0.027736596763134003,
0.0344436839222908,
-0.012252658605575562,
0.03891507536172867,
-0.009257175959646702,
-0.001546865445561707,
0.018374621868133545,
-0.02405119314789772,
-0.008798683993518353,
-0.04226861521601677,
-0.05735956132411957,
-0.011973196640610695,
0.07873839884996414,
0.015545070171356201,
-0.06329812854528427,
-0.04583175480365753,
0.03877534344792366,
0.0923621654510498,
0.014008029364049435,
0.017859363928437233,
0.04101103916764259,
0.02216482348740101,
0.01125707570463419,
0.004327293485403061,
0.027823928743600845,
-0.013545170426368713,
0.00412643002346158,
-0.05306283384561539,
-0.009894698858261108,
-0.01938767172396183,
0.012942580506205559,
0.011824732646346092,
0.08244127035140991,
-0.05257377400994301,
0.044224850833415985,
-0.0020905062556266785,
0.006453823763877153,
-0.028906842693686485,
-0.0029823826625943184,
0.06130696088075638,
-0.011859665624797344,
0.0012805033475160599,
-0.038600679486989975,
0.016636718064546585,
-0.06577835232019424,
0.016959846019744873,
0.015300540253520012,
0.04981409013271332,
-0.05383135378360748,
-0.014348623342812061,
0.06095763295888901,
-0.07650270313024521,
0.007637170609086752,
0.02190282940864563,
0.0049429829232394695,
0.05037301406264305,
-0.03493274003267288,
0.0030718978960067034,
0.01830475591123104,
-0.031212404370307922,
0.04118570312857628,
0.005340342875570059,
-0.030426418408751488,
-0.07706162333488464,
-0.010558420792222023,
-0.0737779513001442,
0.03374502807855606,
0.014549486339092255,
0.061097364872694016,
0.05718489736318588,
-0.03161413222551346,
-0.029588032513856888,
-0.008479923009872437,
0.07175184786319733,
0.05970005318522453,
0.015056011267006397,
0.0197369996458292,
0.02143123745918274,
0.08244127035140991,
0.04188435524702072,
0.015885664150118828,
0.017868097871541977,
0.03196345642209053,
-0.038356151431798935,
-0.08097409456968307,
-0.055822521448135376,
-0.021448703482747078,
0.009728768840432167,
-0.03269704431295395,
0.006397058255970478,
-0.000039538132114103064,
0.03905480355024338,
0.07384781539440155,
0.017274240031838417,
0.022793613374233246,
-0.004598021972924471,
-0.01256705354899168,
0.03706363961100578,
0.015649868175387383,
-0.008008331060409546,
-0.03615538775920868,
-0.04929009824991226,
-0.00017480016686022282,
-0.007383908145129681,
-0.013641235418617725,
0.012287591584026814,
0.011073678731918335,
-0.011545270681381226,
0.02703794091939926,
0.0243131872266531,
-0.0014409755822271109,
-0.045412562787532806,
-0.0754547193646431,
0.012601986527442932,
-0.016898714005947113,
-0.008008331060409546,
-0.04300220310688019,
-0.08195221424102783,
-0.00408931402489543,
-0.045657094568014145,
-0.03636498376727104,
0.0038404182996600866,
0.026985542848706245,
-0.025518367066979408,
-0.02705540880560875,
-0.05459987372159958,
-0.0008820517105050385,
0.0051045469008386135,
-0.05100180208683014,
0.10025696456432343,
-0.013160910457372665,
0.00858035497367382,
0.04356112703680992,
-0.0007494164747186005,
0.002005357760936022,
-0.011964463628828526,
-0.0423734150826931,
-0.001958416774868965,
0.011423006653785706,
0.05208471789956093,
-0.03744789958000183,
-0.08789077401161194,
0.003584972582757473,
-0.06480023264884949,
0.03804175555706024,
0.03528206795454025,
-0.05526359751820564,
-0.022112425416707993,
0.01938767172396183,
0.051420994102954865,
-0.0788082629442215,
-0.01207799557596445,
-0.027072874829173088,
-0.016025394201278687,
0.04991888627409935,
-0.024872111156582832,
0.026601282879710197,
0.00544514087960124,
-0.006187461782246828,
0.06532422453165054,
0.035945791751146317,
-0.03636498376727104,
0.00428362749516964,
-0.0675249919295311,
0.03315117210149765,
-0.0007352250395342708,
0.020557917654514313,
0.07426700741052628,
-0.006567355245351791,
0.007912266068160534,
-0.016269924119114876,
0.004772685933858156,
0.024732381105422974,
0.024260789155960083,
0.010733084753155708,
0.001410409458912909,
-0.022234689444303513,
0.0010627195006236434,
-0.004346942994743586,
0.018863679841160774,
0.04653041064739227,
0.013029912486672401,
0.011719934642314911,
-0.025780363008379936,
-0.09026620537042618,
-0.014339890331029892,
-0.027981124818325043,
-0.008043264038860798,
-0.024959443137049675,
0.026182089000940323,
0.0019529585260897875,
0.028278054669499397,
0.0830700621008873,
-0.019667133688926697,
0.022706281393766403,
0.03568379580974579,
-0.004803251940757036,
0.03818148747086525,
0.02703794091939926,
-0.039299335330724716,
0.012488454580307007,
0.019719531759619713,
0.004820718429982662,
-0.021972693502902985,
0.009667635895311832,
0.0007565121632069349,
-0.02286347933113575,
-0.00820919405668974,
-0.06846817582845688,
-0.02310800738632679,
-0.0035500398371368647,
0.04956955835223198,
0.012427322566509247,
0.03243504837155342,
-0.033325836062431335,
0.02646155096590519,
0.0046984534710645676,
-0.026304354891180992,
-0.004742119461297989,
-0.005855600815266371,
0.011300741694867611,
-0.004838184453547001,
0.0027203871868550777,
0.017737099900841713,
-0.043037138879299164,
0.016531920060515404,
0.03758762776851654,
0.009650169871747494,
-0.009947097860276699,
-0.0788082629442215,
-0.008309626020491123,
-0.0038840840570628643,
-0.06679140031337738,
-0.0461810827255249,
-0.004497590474784374,
0.03028668649494648,
-0.0052792103961110115,
-0.00290160090662539,
0.03409435600042343,
-0.0008569437777623534,
0.038111619651317596,
0.03409435600042343,
0.058232881128787994,
0.04394538700580597,
0.016060328111052513,
-0.0364348478615284,
-0.0032836776226758957,
-0.011344407685101032,
-0.0295705646276474,
-0.0013667434686794877,
0.0012477538548409939,
0.0251515731215477,
0.009606503881514072,
-0.028644848614931107,
-0.023509735241532326,
-0.04838184639811516,
-0.061726152896881104,
0.0318586602807045,
-0.022915877401828766,
0.04719413444399834,
0.014767816290259361,
0.019317805767059326,
0.03905480355024338,
0.0173790380358696,
-0.019090743735432625,
0.0688873678445816,
-0.006877383217215538,
-0.027247538790106773,
0.009693835861980915,
-0.03699377179145813,
-0.00823102705180645,
-0.01172866765409708,
-0.022793613374233246,
-0.020889779552817345,
0.014208892360329628,
-0.013187109492719173,
0.0014966495800763369,
-0.04031238332390785,
0.0474037304520607,
-0.02033085562288761,
-0.07021480798721313,
-0.023439869284629822,
0.031090140342712402,
0.05264364182949066,
0.03014695644378662,
-0.009196043945848942,
-0.12974019348621368,
0.04226861521601677,
-0.024103591218590736,
-0.027125272899866104,
0.03288917616009712,
0.06382212042808533,
-0.014584419317543507,
0.05432041361927986,
-0.025465968996286392,
0.009187310934066772,
-0.05149086192250252,
-0.017579901963472366,
-0.019195541739463806,
-0.01255832053720951,
0.011999396607279778,
-0.03601565584540367,
0.002875401172786951,
0.000173299151356332,
-0.012165327556431293,
0.03336076810956001,
-0.06724552810192108,
-0.0338323600590229,
0.02190282940864563,
0.03971852734684944,
0.010671952739357948,
0.017972895875573158,
-0.021099375560879707,
-0.018619151785969734,
-0.09026620537042618,
0.00034059424069710076,
0.05323749780654907,
0.04929009824991226,
-0.0035587730817496777,
0.01903834380209446,
-0.04646054655313492,
0.02022605761885643,
-0.021378837525844574,
0.031212404370307922,
0.01999899372458458,
0.0023797929752618074,
0.022234689444303513,
0.004680987447500229,
-0.07252036780118942,
-0.010968880727887154,
-0.03804175555706024,
0.048416778445243835,
-0.009423106908798218,
-0.024208389222621918,
-0.028749646618962288,
-0.04048704728484154,
-0.021693231537938118,
0.07587391138076782,
-0.010139227844774723,
-0.012960046529769897,
0.01903834380209446,
-0.04436458274722099,
0.03014695644378662,
0.016269924119114876,
0.018479419872164726,
-0.04513310268521309,
-0.03306384012103081,
-0.05627664551138878,
-0.04488857090473175,
-0.016531920060515404,
-0.002079589758068323,
0.01585073210299015,
-0.03397209197282791,
-0.10682432353496552,
0.015012345276772976,
-0.013964363373816013,
0.04167475923895836,
-0.006990914698690176,
-0.02454025112092495,
0.046250950545072556,
0.10305158793926239,
0.021274039521813393,
-0.04768319055438042,
0.041360367089509964,
-0.005611071363091469,
-0.054425209760665894,
-0.028784578666090965,
-0.01429622434079647,
0.02440051920711994,
-0.007593504618853331,
-0.008934048935770988,
0.018234891816973686,
0.01807769387960434,
-0.01621752418577671,
0.028767112642526627,
-0.024976909160614014,
0.030426418408751488,
-0.046879738569259644,
-0.05603211745619774,
0.020732581615447998,
0.02860991470515728,
-0.044574178755283356,
-0.006117596291005611,
-0.012759183533489704,
0.00993836484849453,
-0.006405791267752647,
-0.050687406212091446,
-0.0440501868724823,
0.05358682572841644,
-0.06696606427431107,
-0.03397209197282791,
-0.012008129619061947,
0.02979762852191925,
0.03706363961100578,
0.026479016989469528,
-0.05854727327823639,
-0.040032923221588135,
-0.01304737851023674,
0.003270577872171998,
0.0037923858035355806,
-0.020086325705051422,
-0.027823928743600845,
-0.02691567689180374,
-0.04855651035904884,
0.0317014642059803,
0.04415498301386833,
-0.027614332735538483,
0.012960046529769897,
-0.009501705877482891,
-0.04838184639811516,
0.018339689821004868,
-0.04715920239686966,
-0.008846716955304146,
-0.08097409456968307,
0.008348925039172173,
0.024749847128987312,
0.01549267116934061,
0.03723830357193947,
-0.05218951404094696,
-0.04551736265420914,
-0.0006861008587293327,
-0.006200561765581369,
-0.05047781020402908,
-0.005947299301624298,
-0.0670708641409874,
0.010986346751451492,
0.04038224741816521,
0.05997951701283455,
0.07503552734851837,
-0.05292310193181038,
-0.04132543131709099,
-0.017597367987036705,
-0.030688412487506866,
-0.0528881698846817,
0.03147440031170845,
0.006615387741476297,
-0.03936919942498207,
0.0897771418094635,
-0.024383053183555603,
0.04803251847624779,
0.02609475702047348,
0.01711704395711422,
-0.08453723043203354,
-0.02288094535470009,
-0.012235192582011223,
0.0226364154368639,
0.019213007763028145,
0.008375125005841255,
0.022287089377641678,
-0.03723830357193947,
0.005357809364795685,
0.039334267377853394,
0.02550090104341507,
0.009178577922284603,
-0.011754867620766163,
0.04719413444399834,
-0.016130194067955017,
0.044818706810474396,
-0.043281666934490204,
0.03709857165813446,
0.08558521419763565,
-0.0823015347123146,
0.10458862781524658,
0.0287321787327528,
0.034059423953294754,
0.0014529837062582374,
-0.021885361522436142,
0.00904757995158434,
0.006480023264884949,
-0.013807166367769241,
0.03173639625310898,
-0.0031373968813568354,
-0.04272274300456047,
0.015955530107021332
] |
725,254 | dockerfile_parse.parser | _delete_instructions |
:param instruction: name of instruction to be deleted
:param value: if specified, delete instruction only when it has this value
if instruction is LABEL then value is label name
| def _delete_instructions(self, instruction, value=None):
"""
:param instruction: name of instruction to be deleted
:param value: if specified, delete instruction only when it has this value
if instruction is LABEL then value is label name
"""
if instruction == 'LABEL' and value:
self._modify_instruction_label(value, None)
return
if instruction == 'ENV' and value:
self._modify_instruction_env(value, None)
return
if instruction == 'ARG' and value:
self._modify_instruction_arg(value, None)
return
lines = self.lines
deleted = False
for insn in reversed(self.structure):
if insn['instruction'] == instruction:
if value and insn['value'] != value:
continue
deleted = True
del lines[insn['startline']:insn['endline'] + 1]
if deleted:
self.lines = lines
| (self, instruction, value=None) | [
0.0759417712688446,
-0.0042936732061207294,
-0.010334080085158348,
-0.03656252473592758,
-0.0705278068780899,
-0.030673012137413025,
-0.05604180693626404,
0.036086972802877426,
-0.0017192983068525791,
-0.028258679434657097,
-0.008441022597253323,
0.04751847684383392,
0.015208473429083824,
-0.05735871568322182,
0.01086450181901455,
-0.029374394565820694,
0.002549225464463234,
0.01850074715912342,
-0.026960060000419617,
-0.07959984987974167,
0.02941097505390644,
0.029502427205443382,
-0.022113101556897163,
0.025039566680788994,
0.03290444239974022,
0.06035834178328514,
0.0271612536162138,
-0.01828126236796379,
0.03442254662513733,
0.032428890466690063,
0.004888111259788275,
-0.018180664628744125,
-0.07367376238107681,
-0.03519074246287346,
0.039360955357551575,
-0.007384751923382282,
-0.0165619645267725,
0.05289585888385773,
-0.007435050327330828,
-0.012309444136917591,
-0.024051886051893234,
0.0078008584678173065,
0.0028304404113441706,
-0.003191675990819931,
0.008966872468590736,
0.002129689324647188,
-0.031953342258930206,
-0.005203620996326208,
0.0001811893453123048,
-0.0012071668170392513,
0.0543225072324276,
0.010873647406697273,
0.05402986332774162,
0.05655393749475479,
0.026996640488505363,
-0.0017055805074051023,
0.011705860495567322,
0.02802090346813202,
0.06057782843708992,
-0.014934116974473,
0.0330873467028141,
0.059882793575525284,
-0.017037514597177505,
-0.03147779032588005,
0.009730496443808079,
-0.015940090641379356,
0.023283688351511955,
-0.03513587266206741,
-0.021582679823040962,
-0.007595091592520475,
-0.05724897235631943,
-0.053810376673936844,
0.024179918691515923,
-0.017019223421812057,
0.019607316702604294,
-0.05165211111307144,
-0.0009791083866730332,
0.04484807699918747,
0.06328480690717697,
-0.06906457990407944,
-0.018747666850686073,
-0.03851959854364395,
0.027545353397727013,
0.008623926900327206,
-0.003820408834144473,
0.027636805549263954,
0.06862560659646988,
0.01977192983031273,
0.055200450122356415,
-0.01335199736058712,
-0.005354516673833132,
-0.03497125953435898,
-0.03546509891748428,
-0.005208193324506283,
0.02844158373773098,
0.03954385966062546,
0.04104367271065712,
-0.03647107258439064,
-0.049347519874572754,
-0.010663307271897793,
0.10842553526163101,
-0.03572116419672966,
0.03851959854364395,
-0.032392311841249466,
0.030032848939299583,
0.0032968458253890276,
0.01204423326998949,
0.014467711560428143,
0.007828294299542904,
-0.01064501702785492,
-0.05809033289551735,
-0.022076521068811417,
-0.015930945053696632,
-0.03334341198205948,
0.03546509891748428,
-0.007604236714541912,
-0.061492349952459335,
-0.03266666829586029,
-0.014815229922533035,
-0.07107651978731155,
-0.003870707470923662,
0.0020679591689258814,
-0.048359837383031845,
-0.009186357259750366,
0.09101306647062302,
0.034678611904382706,
0.048689063638448715,
0.054103024303913116,
0.0033402855042368174,
-0.02379581891000271,
-0.042506907135248184,
-0.042945876717567444,
-0.012538074515759945,
0.015345651656389236,
-0.0033494308590888977,
-0.0369100421667099,
0.017037514597177505,
-0.035007838159799576,
0.020119447261095047,
-0.02138148620724678,
0.001909061218611896,
0.008541620336472988,
0.022844718769192696,
0.016287608072161674,
0.0423240028321743,
-0.04594550281763077,
0.001978793414309621,
0.022972751408815384,
-0.028386712074279785,
-0.03917805105447769,
-0.010983389802277088,
0.04053154215216637,
-0.05523702874779701,
-0.07981933653354645,
0.02813064679503441,
0.05048152431845665,
-0.008125513792037964,
-0.053773798048496246,
-0.01592179946601391,
-0.03222769871354103,
0.04100709408521652,
0.06624785810709,
0.0041816444136202335,
-0.003354003420099616,
-0.018747666850686073,
0.0672355368733406,
-0.0068771932274103165,
0.015373087488114834,
-0.021966779604554176,
0.012455767020583153,
-0.06474804133176804,
0.006287327501922846,
0.06866218894720078,
0.08933034539222717,
-0.0022497200407087803,
0.046750281006097794,
0.006205020472407341,
-0.012839865870773792,
0.023686077445745468,
-0.05743187665939331,
-0.035556551069021225,
0.03692833334207535,
0.0002877881343010813,
0.01759537123143673,
0.029557297006249428,
0.003820408834144473,
0.009456140920519829,
0.0013614922063425183,
0.061382606625556946,
0.01221799198538065,
-0.030234042555093765,
-0.0352821946144104,
0.005523703061044216,
0.04579918086528778,
-0.000846502895001322,
-0.02791116200387478,
0.018116647377610207,
-0.03669055551290512,
0.051835015416145325,
-0.008445595391094685,
-0.044116463512182236,
-0.055200450122356415,
0.04572601616382599,
0.013004478998482227,
-0.03460545092821121,
0.03840985521674156,
0.027508772909641266,
0.005592292174696922,
-0.055200450122356415,
0.03193505108356476,
0.031111981719732285,
-0.04290929436683655,
0.05231056362390518,
0.0445188507437706,
0.08640388399362564,
-0.03268495574593544,
-0.030014557763934135,
0.05655393749475479,
-0.04546995088458061,
-0.010709033347666264,
0.0011351483408361673,
0.08516013622283936,
-0.015555990859866142,
-0.026447929441928864,
0.035995520651340485,
0.0010048291878774762,
0.016635125502943993,
0.020540127530694008,
0.04397013783454895,
-0.025131018832325935,
0.04221425950527191,
-0.006205020472407341,
-0.002361748833209276,
-0.01975364051759243,
0.07286898046731949,
-0.01953415386378765,
-0.017385032027959824,
-0.06760134547948837,
0.02899029478430748,
-0.015016424469649792,
-0.0303986556828022,
-0.03050839900970459,
0.02877080999314785,
-0.005784341134130955,
0.03665397688746452,
0.025789473205804825,
0.0217290036380291,
-0.0176228079944849,
-0.023704366758465767,
-0.09020828455686569,
0.0477745421230793,
-0.024033594876527786,
0.022387458011507988,
-0.04964016377925873,
0.008143804036080837,
-0.023375140503048897,
0.019168347120285034,
-0.026228444650769234,
0.06972303241491318,
-0.012254572473466396,
-0.013854983262717724,
-0.05604180693626404,
0.014129339717328548,
-0.018537327647209167,
0.07901456207036972,
0.03288615122437477,
0.029374394565820694,
0.053810376673936844,
0.001476950361393392,
-0.009712206199765205,
-0.0521276593208313,
0.013269690796732903,
-0.00943784974515438,
-0.021326614543795586,
-0.05505412444472313,
0.061272863298654556,
0.0088205486536026,
-0.0434580072760582,
-0.004348544403910637,
-0.03932437673211098,
0.0320630818605423,
-0.06782083213329315,
0.029502427205443382,
0.021326614543795586,
-0.012089959345757961,
-0.012135685421526432,
0.05681000277400017,
0.01465976145118475,
0.0705643892288208,
0.05681000277400017,
0.055090706795454025,
0.05765136331319809,
0.0037289566826075315,
-0.022936170920729637,
0.01689119078218937,
0.031422920525074005,
-0.042506907135248184,
-0.0017398749478161335,
-0.017275288701057434,
-0.0003095079737249762,
0.019589025527238846,
-0.03811720758676529,
0.015958379954099655,
-0.03332512080669403,
0.0018724803812801838,
0.0038752800319343805,
0.08647704124450684,
0.015738895162940025,
-0.01818981021642685,
-0.027655094861984253,
0.054103024303913116,
0.031660694628953934,
0.026960060000419617,
0.001783314743079245,
0.0445188507437706,
-0.014568309299647808,
0.06116311997175217,
0.025880925357341766,
-0.010023143142461777,
0.02802090346813202,
-0.007297872565686703,
-0.02129003405570984,
-0.0575416199862957,
0.020247479900717735,
-0.013763531111180782,
-0.029282942414283752,
0.07173497974872589,
-0.03884882479906082,
0.008742814883589745,
0.03444083780050278,
0.026649123057723045,
-0.009268663823604584,
-0.008395296521484852,
0.013443449512124062,
0.02604554034769535,
0.005290500354021788,
-0.019607316702604294,
0.025679731741547585,
-0.018820829689502716,
0.03453228995203972,
-0.013452594168484211,
0.05765136331319809,
0.00005358517591957934,
-0.013873273506760597,
0.06449197232723236,
-0.05772452428936958,
0.030581559985876083,
0.05121314153075218,
-0.0010088302660733461,
0.05732213705778122,
0.03385554254055023,
0.10359686613082886,
0.02397872321307659,
0.006680571008473635,
0.07422247529029846,
-0.025972377508878708,
-0.01812579296529293,
-0.0293195229023695,
-0.014376260340213776,
-0.06482120603322983,
0.08545278012752533,
0.0029881952796131372,
0.027728257700800896,
0.035885777324438095,
0.0036992349196225405,
-0.061492349952459335,
-0.05220082029700279,
-0.003450028132647276,
0.02021089941263199,
-0.04133632034063339,
-0.0008933720528148115,
0.030874207615852356,
0.037824563682079315,
0.012766703963279724,
0.0640530064702034,
-0.021418066695332527,
0.042177677154541016,
0.0030430664774030447,
-0.06921090185642242,
0.04898171126842499,
-0.005500840023159981,
-0.00020276631403248757,
0.014421986415982246,
0.008326707407832146,
-0.04612840712070465,
0.04331168532371521,
0.03455057740211487,
0.010736469179391861,
-0.012135685421526432,
0.007275009527802467,
-0.015866927802562714,
-0.01922321692109108,
-0.04334826394915581,
-0.024582307785749435,
0.004135918337851763,
-0.014047032222151756,
-0.020174318924546242,
0.034916386008262634,
-0.039470698684453964,
0.002111398847773671,
-0.011257745325565338,
0.006776595953851938,
-0.030581559985876083,
0.04309219866991043,
0.004227370489388704,
-0.03840985521674156,
-0.07089361548423767,
-0.03105711191892624,
-0.0011099990224465728,
-0.019369540736079216,
0.011010824702680111,
-0.0640530064702034,
0.032428890466690063,
0.002370893955230713,
0.012062523514032364,
-0.0073435986414551735,
0.022552071139216423,
0.02039380371570587,
-0.016196155920624733,
-0.030106009915471077,
-0.007526502478867769,
0.03645278140902519,
-0.039360955357551575,
0.029868233948946,
-0.017083240672945976,
-0.008056924678385258,
0.01757708191871643,
-0.00955673772841692,
-0.02300933189690113,
0.00654339324682951,
-0.06771108508110046,
-0.04243374615907669,
-0.017778275534510612,
0.03449570760130882,
-0.0352456159889698,
-0.03616013377904892,
-0.0003483750915620476,
-0.03844643384218216,
0.058639045804739,
0.04755505919456482,
-0.07345427572727203,
-0.02291787974536419,
0.026630831882357597,
0.008605636656284332,
-0.059882793575525284,
0.027417320758104324,
-0.007316162809729576,
0.016241881996393204,
0.05706607177853584,
0.018857410177588463,
0.009140631183981895,
0.0013592059258371592,
-0.02246061898767948,
-0.02626502513885498,
0.02246061898767948,
-0.06057782843708992,
-0.0022943029180169106,
-0.011769876815378666,
0.017613662406802177,
-0.014595745131373405,
0.06654050201177597,
0.07879507541656494,
-0.04159238561987877,
-0.02421649917960167,
-0.012775849550962448,
0.03246547281742096,
0.04605524614453316,
0.04137289896607399,
0.04865248128771782,
0.019387831911444664,
-0.02701493166387081,
-0.05816349387168884,
-0.020265771076083183,
0.03184359893202782,
-0.015382232144474983,
0.026521090418100357,
0.017824001610279083,
-0.01004143338650465,
-0.03950728103518486,
-0.0008527902537025511,
0.043275102972984314,
-0.048469576984643936,
-0.024820081889629364,
0.008998880162835121,
0.013297125697135925,
-0.03541022911667824,
0.020594999194145203,
-0.07330795377492905,
0.031203433871269226,
-0.015757186338305473,
-0.032959312200546265,
-0.06964986771345139,
0.03416648134589195,
-0.04243374615907669,
0.05154236778616905,
-0.018537327647209167,
-0.009058323688805103,
-0.01829955168068409,
0.045104142278432846,
-0.046311311423778534,
0.022972751408815384,
0.026246733963489532,
-0.06101679801940918,
-0.01629675179719925,
0.03354460746049881,
0.039909668266773224,
0.07689286768436432,
0.03336170315742493,
-0.05779768526554108,
-0.008797685615718365,
-0.031861890107393265,
0.002295446116477251,
0.026905188336968422,
0.029667040333151817,
-0.001258608652278781,
-0.003710666438564658,
-0.036635685712099075,
-0.0015455393586307764,
0.0033837254159152508,
0.026649123057723045,
0.021107129752635956,
0.004165640100836754,
-0.027289288118481636,
0.0023480309173464775,
-0.038483016192913055,
-0.005907801445573568,
-0.05706607177853584,
-0.047408733516931534,
0.05329824611544609,
-0.022844718769192696,
0.022844718769192696,
-0.012309444136917591,
0.030691303312778473,
-0.010937663726508617,
0.06134602427482605,
0.01638820394873619,
0.02953900769352913,
-0.04682344198226929,
0.04927435517311096,
0.01986338198184967,
0.003191675990819931,
0.002567515941336751,
-0.015565136447548866,
0.03191675990819931,
-0.029264651238918304,
0.036416199058294296,
0.020156027749180794,
-0.02105225808918476,
-0.04301903769373894,
0.04601866379380226,
-0.050005972385406494,
-0.003415733575820923,
0.0013294839300215244,
-0.027527062222361565,
0.02291787974536419,
0.03888540714979172,
0.017275288701057434,
0.05088391155004501,
0.03246547281742096,
0.030581559985876083,
-0.028313549235463142,
-0.04320194199681282,
0.03050839900970459,
-0.068442702293396,
0.02855132520198822,
0.03094736859202385,
-0.01768682338297367,
-0.06280925869941711,
0.030874207615852356,
0.0012849010527133942,
-0.03899514675140381,
-0.008948581293225288,
0.06174841523170471,
-0.011184584349393845,
-0.051835015416145325,
-0.00635134382173419,
0.020558416843414307,
-0.013434303924441338,
0.00351404445245862,
-0.02725270576775074,
-0.09035461395978928,
0.01563829742372036,
0.023594625294208527,
-0.030471818521618843,
0.05567599833011627,
0.061272863298654556,
-0.008015770465135574,
0.01422993652522564,
-0.00781914871186018,
0.022661814466118813,
-0.004513157997280359,
0.02745390124619007,
-0.005898656323552132,
-0.03449570760130882,
-0.02866106852889061,
-0.0047600786201655865,
0.05399328097701073,
-0.02650279924273491,
-0.06997909396886826,
0.07323478907346725,
-0.04181187227368355,
-0.06972303241491318,
0.07063755393028259,
0.015071295201778412,
0.018573908135294914,
0.04133632034063339,
-0.04953042417764664,
-0.045104142278432846,
-0.033489733934402466,
-0.03987308591604233,
0.03987308591604233,
0.046201568096876144,
0.016699140891432762,
-0.019899962469935417,
-0.041226577013731,
0.030782755464315414,
0.03279469907283783,
0.002167413244023919,
-0.020357223227620125,
-0.04177528992295265,
-0.0013912140857428312,
-0.0727226585149765,
-0.05468831583857536,
-0.036525942385196686,
-0.027380740270018578,
0.042506907135248184,
0.007970045320689678,
0.03656252473592758,
-0.04415304213762283,
0.041958194226026535,
-0.018006905913352966,
0.006932064425200224,
-0.04572601616382599,
0.06716237217187881,
-0.02039380371570587,
-0.03672713786363602,
-0.0018439017003402114,
-0.01966218836605549,
-0.0024920678697526455,
0.0024760637897998095,
0.0003509471716824919,
-0.08830608427524567,
-0.0014037886867299676,
0.03921463340520859,
-0.07466144114732742,
-0.030965659767389297,
0.004087905865162611,
-0.0943785011768341,
0.011001680046319962,
0.0010951381409540772,
0.015940090641379356,
0.04686002433300018,
-0.027435610070824623,
-0.050115715712308884,
0.060541246086359024,
0.01920492760837078,
-0.03451399877667427,
0.018052631989121437,
-0.03114856407046318,
-0.030307205393910408,
-0.0038592759519815445,
-0.004636618308722973,
0.0012563223717734218,
0.02910003811120987,
0.008797685615718365,
0.01651623845100403,
0.023521464318037033,
0.02096080593764782,
0.022058231756091118,
-0.02487495355308056,
-0.004814949817955494,
-0.004227370489388704,
-0.04718925058841705,
-0.0026040966622531414,
-0.009177211672067642,
-0.021125420928001404,
0.014906682074069977,
0.021198581904172897,
-0.03736730292439461,
-0.007535647600889206,
-0.042287420481443405,
-0.0021239735651761293,
0.07740500569343567,
-0.03605039417743683,
-0.018747666850686073,
0.01869279518723488,
0.006671425886452198,
0.02268010564148426,
-0.0004098194476682693,
-0.02030235156416893,
-0.04751847684383392,
-0.018317842856049538,
0.036324746906757355,
-0.012163120321929455,
-0.06547965854406357,
-0.0021308325231075287,
-0.009876820258796215,
-0.026246733963489532,
0.04642105475068092,
0.03127659484744072,
-0.033800672739744186,
0.006145576946437359,
-0.022515490651130676,
-0.03601381182670593,
0.01808006688952446,
-0.04971332475543022,
-0.040641285479068756,
-0.03321537747979164,
-0.013507465831935406,
0.05798058956861496,
0.028624486178159714,
0.0227898471057415,
-0.0673818588256836,
-0.020540127530694008,
0.0038295539561659098,
-0.0005149892531335354,
-0.06778424978256226,
-0.061382606625556946,
-0.026447929441928864,
-0.024271370843052864,
0.029008585959672928,
0.034367673099040985,
0.039690181612968445,
-0.03237402066588402,
-0.05893169343471527,
-0.011861328966915607,
-0.0037769691552966833,
-0.06441881507635117,
-0.026521090418100357,
0.0445188507437706,
-0.03884882479906082,
0.07396640628576279,
-0.053810376673936844,
0.048689063638448715,
0.013589772395789623,
0.0017387318657711148,
-0.007947182282805443,
-0.03877566382288933,
0.016708286479115486,
0.02498469687998295,
0.00356662948615849,
0.005034434609115124,
0.009565883316099644,
0.02129003405570984,
-0.031221725046634674,
0.03455057740211487,
-0.021637551486492157,
0.052164241671562195,
-0.012766703963279724,
-0.022826427593827248,
-0.008294699713587761,
0.030124301090836525,
-0.027289288118481636,
0.011477230116724968,
0.06829638034105301,
-0.04755505919456482,
0.05604180693626404,
-0.023594625294208527,
0.007325307931751013,
0.030965659767389297,
-0.026136992499232292,
0.016882045194506645,
-0.0330873467028141,
0.007727697025984526,
0.043384846299886703,
-0.040238894522190094,
-0.05446883291006088,
0.00890742801129818
] |
725,255 | dockerfile_parse.parser | _instruction_getter |
Get LABEL or ENV or ARG instructions with environment replacement
:param name: e.g. 'LABEL' or 'ENV' or 'ARG'
:param env_replace: bool, whether to perform ENV substitution
:return: Labels instance or Envs instance
| def _instruction_getter(self, name, env_replace):
"""
Get LABEL or ENV or ARG instructions with environment replacement
:param name: e.g. 'LABEL' or 'ENV' or 'ARG'
:param env_replace: bool, whether to perform ENV substitution
:return: Labels instance or Envs instance
"""
if name not in ('LABEL', 'ENV', 'ARG'):
raise ValueError("Unsupported instruction '{0}'".format(name))
in_stage = False
top_args = {}
instructions = {}
args = {}
envs = {}
for instruction_desc in self.structure:
this_instruction = instruction_desc['instruction']
if this_instruction == 'FROM':
in_stage = True
instructions.clear()
args = {}
envs = self.parent_env.copy()
elif this_instruction in (name, 'ENV', 'ARG'):
logger.debug("%s value: %r", name.lower(), instruction_desc['value'])
key_val_list = extract_key_values(
env_replace=this_instruction != 'ARG' and env_replace,
args=args, envs=envs,
instruction_value=instruction_desc['value'])
for key, value in key_val_list:
if this_instruction == 'ARG':
if in_stage:
if key in top_args:
value = top_args[key]
elif key in self.build_args:
value = self.build_args[key]
args[key] = value
else:
if key in self.build_args:
value = self.build_args[key]
top_args[key] = value
if this_instruction == name:
instructions[key] = value
logger.debug("new %s %r=%r", name.lower(), key, value)
if this_instruction == 'ENV':
envs[key] = value
logger.debug("instructions: %r", instructions)
if name == 'LABEL':
return Labels(instructions, self)
elif name == 'ENV':
return Envs(instructions, self)
else:
return Args(instructions, self)
| (self, name, env_replace) | [
0.04966501146554947,
-0.1286965012550354,
-0.06431030482053757,
-0.024528974667191505,
-0.05725324526429176,
-0.02033647522330284,
0.019179267808794975,
-0.029745887964963913,
0.0651070699095726,
-0.048640597611665726,
-0.009471068158745766,
0.009143825620412827,
0.005605809856206179,
0.012719782069325447,
-0.0143227968364954,
0.009134340099990368,
0.012795664370059967,
0.04393589124083519,
-0.00862213410437107,
-0.010936546139419079,
0.0006947979563847184,
0.012672355398535728,
0.03188956528902054,
-0.05676000937819481,
0.051144715398550034,
0.06472765654325485,
0.0426458902657032,
-0.04052118584513664,
0.0457950085401535,
-0.025287799537181854,
-0.04386000707745552,
-0.027791917324066162,
-0.04461883381009102,
0.004166416358202696,
0.0471988320350647,
-0.050992950797080994,
-0.05676000937819481,
0.03384353592991829,
-0.04093853756785393,
-0.012577502056956291,
-0.002047638176009059,
-0.091590017080307,
0.02631221152842045,
-0.054976776242256165,
-0.026767505332827568,
-0.04302530363202095,
-0.0205641221255064,
-0.09819178283214569,
0.03737206757068634,
-0.06267883628606796,
0.07277119159698486,
-0.028683535754680634,
0.0627167746424675,
0.024813534691929817,
-0.008802354335784912,
0.007915479131042957,
0.003115919651463628,
0.022954415529966354,
0.0205641221255064,
0.037941183894872665,
-0.027753975242376328,
0.021911034360527992,
-0.032363828271627426,
0.06324795633554459,
-0.06127501279115677,
-0.023087210953235626,
-0.05012030526995659,
-0.038548242300748825,
-0.01024411991238594,
0.013051766902208328,
-0.022878533229231834,
-0.038244713097810745,
-0.009186509065330029,
-0.020886622369289398,
-0.018543753772974014,
0.005695920437574387,
-0.0620717778801918,
-0.011970443651080132,
0.08400177955627441,
-0.06328589469194412,
-0.06351353973150253,
0.002210073871538043,
-0.06006089597940445,
-0.04662971571087837,
0.03600618243217468,
0.007374817505478859,
0.007000148296356201,
0.0034834749531000853,
0.03957265615463257,
-0.06571412831544876,
-0.03194647654891014,
0.017101988196372986,
-0.03280015289783478,
0.07982824742794037,
0.036290742456912994,
0.009618090465664864,
0.020943533629179,
-0.033938389271497726,
-0.014977281913161278,
-0.001552031608298421,
0.060250598937273026,
-0.036290742456912994,
-0.028304122388362885,
-0.003867629449814558,
-0.010557134635746479,
0.003011581487953663,
-0.003115919651463628,
0.02659676969051361,
0.027867799624800682,
-0.0797523707151413,
-0.04776795208454132,
-0.024851474910974503,
-0.03376765549182892,
-0.02682441659271717,
-0.016447503119707108,
0.004830386955291033,
-0.019255150109529495,
-0.009499523788690567,
-0.028247211128473282,
-0.02350456267595291,
-0.008802354335784912,
0.03486794978380203,
-0.015916327014565468,
-0.0006698990473523736,
0.05786030367016792,
0.03225000575184822,
0.007796913385391235,
0.005449302494525909,
0.04169736057519913,
-0.05220706760883331,
0.015631766989827156,
-0.01039588451385498,
-0.044656772166490555,
0.06465177983045578,
0.049702949821949005,
-0.01020617876201868,
-0.0037870043888688087,
-0.0029594122897833586,
-0.017728017643094063,
0.021740298718214035,
0.0306564774364233,
-0.047274716198444366,
-0.0009230378782376647,
-0.023011328652501106,
-0.04082471504807472,
-0.054673247039318085,
0.06681442260742188,
0.020298533141613007,
-0.02953721210360527,
-0.0033388242591172457,
0.03934500738978386,
0.02359941601753235,
-0.06840795278549194,
-0.0063598910346627235,
0.03291397541761398,
0.02327691577374935,
-0.03209824115037918,
0.006615994032472372,
-0.01062353141605854,
-0.02652088738977909,
-0.027450446039438248,
0.018373018130660057,
-0.06730765849351883,
-0.04598471522331238,
0.02758324146270752,
0.050992950797080994,
0.0022883275523781776,
-0.003440791042521596,
0.0064737144857645035,
0.018894709646701813,
-0.04712295159697533,
-0.001812877249903977,
0.0139433853328228,
0.04822324588894844,
-0.02644500508904457,
0.06893913447856903,
-0.0058666556142270565,
-0.008878236636519432,
0.009613347239792347,
0.007953420281410217,
-0.01888522505760193,
0.011240075342357159,
-0.07766560465097427,
-0.03295191749930382,
0.010500222444534302,
0.05319353938102722,
0.037049565464258194,
-0.006644449662417173,
0.02674853429198265,
0.023561475798487663,
-0.010424340143799782,
0.003149118274450302,
0.04499824345111847,
0.06461383402347565,
-0.02041235752403736,
-0.013412208296358585,
-0.05175177380442619,
0.025344710797071457,
-0.0021614618599414825,
0.05990912765264511,
-0.027090005576610565,
0.021512651816010475,
0.02621735818684101,
0.08316707611083984,
-0.0332554467022419,
0.06415854394435883,
0.038927655667066574,
-0.02538265287876129,
-0.02064000442624092,
-0.0015698164934292436,
-0.043670304119586945,
-0.04071088880300522,
0.031529124826192856,
0.030087359249591827,
0.03904147818684578,
0.0005545933963730931,
0.0013148991856724024,
0.0665108934044838,
-0.017462430521845818,
0.027336623519659042,
0.051296480000019073,
0.00542558915913105,
0.019634563475847244,
-0.03374868258833885,
-0.01830662041902542,
-0.055432070046663284,
-0.016447503119707108,
0.016589783132076263,
-0.013914928771555424,
-0.0003485846391413361,
-0.0018935021944344044,
-0.05266236141324043,
0.032515592873096466,
-0.00179983489215374,
0.07057060301303864,
0.01898956298828125,
0.026501916348934174,
-0.020772797986865044,
0.06628324836492538,
0.00506514823064208,
-0.013412208296358585,
0.019957061856985092,
-0.006905295420438051,
-0.004100019112229347,
-0.0025681438855826855,
-0.03731515258550644,
0.048337068408727646,
-0.005880883429199457,
-0.02917676977813244,
-0.034393683075904846,
0.023770151659846306,
-0.014503017999231815,
-0.00021015858510509133,
0.0071613984182477,
-0.0306564774364233,
-0.0596814826130867,
0.04674353823065758,
-0.02268882840871811,
0.0805111899971962,
-0.050537656992673874,
0.006274523213505745,
-0.02796265296638012,
-0.0008981389692053199,
-0.0020986218005418777,
0.006487942300736904,
0.015736106783151627,
0.06582795083522797,
-0.016637209802865982,
-0.01638110540807247,
-0.02388397604227066,
0.018135886639356613,
0.06601765751838684,
-0.0364045649766922,
0.054976776242256165,
-0.02614147588610649,
-0.008413457311689854,
0.007664119359105825,
0.010908090509474277,
0.011173678562045097,
-0.01871448941528797,
0.031908534467220306,
-0.0013563972897827625,
-0.05087912827730179,
0.009902648627758026,
-0.024320298805832863,
-0.06563825160264969,
-0.0030329234432429075,
-0.021986916661262512,
0.05861913040280342,
-0.01194198802113533,
0.05827765911817551,
0.07637560367584229,
0.013326840475201607,
-0.0364045649766922,
0.017120959237217903,
0.05440765619277954,
-0.06624531000852585,
0.028474858030676842,
0.0008963604923337698,
-0.014683238230645657,
0.012188605032861233,
-0.03693574294447899,
-0.04515000805258751,
-0.016039635986089706,
-0.03162397816777229,
0.026995152235031128,
0.08104237169027328,
-0.0004129067820031196,
-0.023561475798487663,
-0.006819927599281073,
-0.0004923461237922311,
0.021379856392741203,
0.01792720891535282,
0.010538163594901562,
-0.016921767964959145,
-0.07906942814588547,
0.0016148716676980257,
0.04621236026287079,
0.031908534467220306,
0.03911736235022545,
-0.025970740243792534,
0.04393589124083519,
-0.024092651903629303,
0.011192649602890015,
0.04754030331969261,
0.013620885089039803,
0.06400677561759949,
-0.02932853437960148,
0.09477707743644714,
-0.001431094016879797,
-0.030713388696312904,
-0.037182360887527466,
0.037960153073072433,
0.044960301369428635,
-0.024623828008770943,
0.01736757718026638,
-0.0023167836479842663,
0.03814985975623131,
-0.01617242954671383,
-0.03232588991522789,
0.0767170712351799,
-0.00016643729759380221,
-0.08195295929908752,
-0.016257796436548233,
0.05869501084089279,
-0.06867354363203049,
0.07409913092851639,
0.014977281913161278,
0.03314162418246269,
0.049778833985328674,
-0.05178971588611603,
-0.010263090021908283,
0.050347950309515,
0.0178228709846735,
0.020070886239409447,
-0.01462632603943348,
-0.06302030384540558,
-0.056494422256946564,
0.033729713410139084,
-0.03926912695169449,
0.060326483100652695,
-0.024453092366456985,
0.0047331624664366245,
0.021114269271492958,
-0.008389743976294994,
-0.10494531691074371,
-0.011847134679555893,
0.024396181106567383,
0.0033767654094845057,
-0.02720382809638977,
0.0075360676273703575,
0.02405470982193947,
0.0371064767241478,
-0.020924562588334084,
-0.013402722775936127,
-0.00710448669269681,
-0.006061104126274586,
-0.03739103674888611,
-0.029821770265698433,
0.0182022824883461,
0.0278867706656456,
0.06867354363203049,
-0.02540162205696106,
0.07531324774026871,
0.045187950134277344,
-0.017709048464894295,
0.051144715398550034,
0.013194046914577484,
0.09834355115890503,
0.00518371444195509,
-0.02397882752120495,
0.01833507791161537,
-0.005662721581757069,
0.02359941601753235,
0.02614147588610649,
-0.05311765894293785,
0.009181766770780087,
-0.004854100290685892,
-0.0016184286214411259,
0.0023072983603924513,
-0.01035794336348772,
0.04086265340447426,
0.05960559844970703,
0.01708301715552807,
-0.011249560862779617,
-0.04241824522614479,
0.021664416417479515,
0.04131795093417168,
-0.015356694348156452,
0.008465626277029514,
-0.010158752091228962,
0.0028930152766406536,
-0.0286455936729908,
-0.06753531098365784,
-0.07648942619562149,
-0.010651987046003342,
0.07766560465097427,
0.027526328340172768,
0.003635239787399769,
-0.012881032191216946,
-0.02420647442340851,
0.02367529831826687,
0.009499523788690567,
0.011221105232834816,
-0.0018994305282831192,
0.028171328827738762,
-0.0434047132730484,
-0.0019895408768206835,
-0.004801930859684944,
0.0511067733168602,
-0.05687383562326431,
0.00925290584564209,
-0.00352378748357296,
0.012330885045230389,
0.0255533866584301,
-0.06772501021623611,
-0.0027910482604056597,
-0.005031949374824762,
0.039762359112501144,
0.055735599249601364,
-0.018164342269301414,
0.0025491733103990555,
0.02915780059993267,
0.03156706318259239,
-0.09568766504526138,
-0.025800004601478577,
-0.0565323643386364,
0.05493883416056633,
0.011012428440153599,
-0.03752383217215538,
0.04378412663936615,
0.0053923907689750195,
0.041925009340047836,
-0.028740447014570236,
0.008162097074091434,
-0.019634563475847244,
0.028209270909428596,
0.020146768540143967,
-0.006364633794873953,
0.015081620775163174,
0.029499270021915436,
-0.0013172704493626952,
-0.015309267677366734,
0.0341280959546566,
-0.013990812003612518,
-0.03316059336066246,
0.03513353690505028,
-0.0014085664879530668,
-0.013137134723365307,
-0.024661770090460777,
0.008128898218274117,
-0.025003239512443542,
0.008010332472622395,
0.03363486006855965,
-0.003068493213504553,
-0.017016621306538582,
0.005767059978097677,
-0.02314412221312523,
-0.060250598937273026,
-0.061995893716812134,
-0.030258094891905785,
-0.055052656680345535,
0.04860265552997589,
0.01551794447004795,
-0.001098515815101564,
-0.04708500951528549,
0.07629971951246262,
0.01886625401675701,
0.00540661858394742,
0.018391989171504974,
-0.060857657343149185,
0.003073235973715782,
0.024016769602894783,
0.01620088517665863,
-0.00174292316660285,
-0.007393788080662489,
0.014635811559855938,
0.0027270226273685694,
0.03589235991239548,
-0.04044530168175697,
0.01888522505760193,
-0.006165442522615194,
-0.0076498910784721375,
0.00015769305173307657,
0.019074929878115654,
-0.010158752091228962,
-0.01016823761165142,
-0.006355148274451494,
0.015982722863554955,
0.01029154658317566,
0.004702335689216852,
-0.013118164613842964,
0.03723927214741707,
-0.013801105320453644,
-0.00721831014379859,
0.017054561525583267,
-0.013611399568617344,
0.02598971128463745,
-0.04587089270353317,
0.02027956210076809,
0.05243471637368202,
-0.015878384932875633,
0.034185007214546204,
-0.018980076536536217,
0.0033720226492732763,
0.026331180706620216,
0.01658029668033123,
-0.021000444889068604,
0.005634265951812267,
0.0031752027571201324,
-0.0526244230568409,
-0.058808833360672,
0.0017369948327541351,
0.04006589204072952,
0.055507950484752655,
-0.008726472035050392,
0.04522589221596718,
0.005643751006573439,
-0.048868246376514435,
0.030333977192640305,
0.05118265748023987,
-0.022442210465669632,
-0.05213118717074394,
0.021967945620417595,
-0.0016042006900534034,
-0.017377061769366264,
-0.0005101310671307147,
0.014910885132849216,
-0.01642853207886219,
-0.07242971658706665,
-0.06252706795930862,
0.01442713476717472,
-0.0057528321631252766,
0.04761618748307228,
0.014569414779543877,
-0.009902648627758026,
0.0011803265661001205,
0.03549397736787796,
-0.012843091040849686,
0.059947069734334946,
0.0031088057439774275,
-0.016950223594903946,
0.006677648518234491,
-0.009490038268268108,
-0.0065116556361317635,
0.034848976880311966,
-0.03323647752404213,
0.03678397834300995,
0.017433974891901016,
-0.02012779749929905,
0.013355297036468983,
-0.03445059433579445,
0.06677648425102234,
-0.023390740156173706,
-0.005605809856206179,
0.005525184795260429,
-0.002598971128463745,
0.034545447677373886,
0.03562677279114723,
-0.04128000885248184,
-0.016599267721176147,
-0.025743093341588974,
-0.01952073909342289,
-0.020981473848223686,
0.012008384801447392,
0.04499824345111847,
-0.01660875417292118,
0.059188246726989746,
0.04587089270353317,
0.01726323924958706,
-0.039610594511032104,
-0.012463678605854511,
0.00172395259141922,
0.03111177124083042,
0.004870699252933264,
-0.02155059203505516,
0.004187758080661297,
0.009940589778125286,
-0.003647096222266555,
-0.026843387633562088,
-0.0643482506275177,
-0.05182765796780586,
0.08362236618995667,
-0.003763291286304593,
-0.01944485679268837,
-0.02487044595181942,
0.009959560818970203,
-0.0278867706656456,
-0.006355148274451494,
0.011591032147407532,
0.07288501411676407,
-0.05831560119986534,
0.024434123188257217,
0.012729267589747906,
-0.00929084699600935,
0.0021768754813820124,
-0.0012236031470820308,
0.03904147818684578,
-0.0019764986354857683,
-0.053914424031972885,
0.006725074723362923,
-0.021228091791272163,
-0.061388835310935974,
-0.02811441756784916,
-0.04609853774309158,
0.05072736367583275,
0.04697118699550629,
-0.028588682413101196,
-0.002591857220977545,
-0.017585739493370056,
0.03202236071228981,
0.01926463656127453,
0.032306917011737823,
-0.023789122700691223,
0.027374563738703728,
-0.029632065445184708,
0.09409413486719131,
0.003922170028090477,
-0.07159501314163208,
0.044353242963552475,
-0.02885426953434944,
-0.03329338878393173,
-0.012985370121896267,
0.038927655667066574,
-0.03443162515759468,
-0.03293294832110405,
0.02953721210360527,
-0.05455942079424858,
0.032287947833538055,
0.04647795110940933,
0.027867799624800682,
0.03926912695169449,
-0.04071088880300522,
0.0020998073741793633,
0.03617691993713379,
0.029878681525588036,
-0.02532573975622654,
0.002225487492978573,
0.0013433550484478474,
-0.016314709559082985,
-0.032819125801324844,
0.045187950134277344,
-0.006634964607656002,
0.0027886771131306887,
-0.026255298405885696,
0.018752429634332657,
0.002451949054375291,
0.017101988196372986,
0.06059207022190094,
0.0240357406437397,
0.02012779749929905,
-0.07580648362636566,
-0.017073532566428185,
-0.022290445864200592,
-0.024358240887522697,
-0.005615295376628637,
0.06097148358821869,
0.015679193660616875,
0.027298681437969208,
0.00024068939092103392,
-0.029138829559087753,
0.013307870365679264,
0.02872147597372532,
0.02690029889345169,
-0.013345811516046524,
-0.030846182256937027,
0.038168832659721375,
0.009091656655073166,
0.05247265845537186,
-0.05827765911817551,
-0.001831847825087607,
-0.010035443119704723,
0.06028854101896286,
0.000350659538526088,
-0.05418001115322113,
-0.04875442013144493,
-0.04135588929057121,
-0.08438119292259216,
-0.015005738474428654,
0.02035544440150261,
0.004531600046902895,
-0.03610103577375412,
-0.01560331229120493,
-0.08400177955627441,
0.028398975729942322,
0.01073735486716032,
-0.03536118194460869,
-0.031680889427661896,
-0.02674853429198265,
0.013839046470820904,
0.035987213253974915,
-0.007673604413866997,
0.01718735694885254,
-0.06556236743927002,
0.08324296027421951,
0.016513900831341743,
-0.06848383694887161,
0.013459634967148304,
-0.05103089287877083,
0.04750236123800278,
0.00919125135987997,
0.037941183894872665,
0.05702560022473335,
-0.03467824310064316,
-0.037030596286058426,
-0.01032000221312046,
-0.043442655354738235,
-0.027753975242376328,
0.028968093916773796,
0.0518656000494957,
-0.0290250051766634,
0.039686478674411774,
-0.02147470973432064,
-0.02320103347301483,
-0.012112722732126713,
-0.06480354070663452,
-0.008740699850022793,
-0.010642502456903458,
-0.014607355929911137,
0.03253456577658653,
0.01724426820874214,
0.03448853641748428,
-0.06958413124084473,
0.02593280002474785,
0.00921496469527483,
0.02540162205696106,
0.03577853739261627,
-0.0030139528680592775,
-0.009921619668602943,
-0.030922064557671547,
0.016864856705069542,
0.05554589256644249,
0.02162647433578968,
-0.025818975642323494,
0.05638059973716736,
-0.09508060663938522,
0.04723677411675453,
-0.021967945620417595,
-0.005529927555471659,
-0.0013907814864069223,
-0.02322000451385975,
-0.0480714812874794,
-0.06165442243218422,
0.05213118717074394,
0.018524782732129097,
-0.01807897351682186,
0.011221105232834816,
-0.0008791683940216899
] |
725,256 | dockerfile_parse.parser | _instructions_setter | null | def _instructions_setter(self, name, instructions):
if not isinstance(instructions, dict):
raise TypeError('instructions needs to be a dictionary {name: value}')
if name == 'LABEL':
existing = self.labels
elif name == 'ENV':
existing = self.envs
elif name == 'ARG':
existing = self.args
else:
raise ValueError("Unexpected instruction '%s'" % name)
logger.debug("setting %s instructions: %r", name, instructions)
to_delete = [k for k in existing if k not in instructions]
for key in to_delete:
logger.debug("delete %r", key)
self._modify_instruction_label_env(name, key, None)
to_add = dict((k, v) for (k, v) in instructions.items() if k not in existing)
for k, v in to_add.items():
logger.debug("add %r", k)
self._add_instruction(name, (k, v))
to_change = dict((k, v) for (k, v) in instructions.items()
if (k in existing and v != existing[k]))
for k, v in to_change.items():
logger.debug("modify %r", k)
self._modify_instruction_label_env(name, k, v)
| (self, name, instructions) | [
0.04799584299325943,
-0.05861666798591614,
-0.0015366204315796494,
-0.021866407245397568,
-0.10767827183008194,
-0.013165782205760479,
-0.029345085844397545,
0.01303715631365776,
0.05483139306306839,
0.015177858993411064,
-0.03037409298121929,
-0.0009273699251934886,
0.09033215045928955,
0.005572258494794369,
0.007542991545051336,
-0.019918642938137054,
0.01929388754069805,
0.01923876255750656,
-0.024622676894068718,
-0.06210794299840927,
0.024549175053834915,
0.013083093799650669,
0.028591705486178398,
-0.003684213850647211,
0.005025598686188459,
0.013404658064246178,
0.05214862525463104,
-0.0015170967672020197,
0.04994360730051994,
0.013744598254561424,
-0.06993575394153595,
-0.014911419712007046,
-0.05597065016627312,
-0.022693287581205368,
0.0709647610783577,
-0.05722016096115112,
-0.03471062332391739,
0.06677522510290146,
0.01218271255493164,
-0.015324859879910946,
-0.019551139324903488,
-0.00835149735212326,
0.032597482204437256,
-0.026662316173315048,
0.012586965225636959,
0.009150815196335316,
-0.035574253648519516,
-0.03548238053917885,
0.036180634051561356,
-0.035684507340192795,
0.03935953229665756,
-0.006693141534924507,
0.06637097895145416,
0.02883058227598667,
0.00864090584218502,
0.023244541138410568,
0.031715478748083115,
0.06997250020503998,
0.005792760290205479,
-0.03421449661254883,
-0.0217745304107666,
0.03186247870326042,
-0.009058940224349499,
-0.031072348356246948,
-0.051046114414930344,
0.012835029512643814,
0.0157107375562191,
-0.009463192895054817,
0.057550910860300064,
-0.010841327719390392,
-0.0015860035782679915,
-0.03862452507019043,
-0.027911825105547905,
-0.016721369698643684,
0.01739206165075302,
0.019881892949342728,
-0.06383520364761353,
0.005811135284602642,
0.024328675121068954,
-0.021241651847958565,
-0.051781121641397476,
-0.02045152150094509,
-0.024218423292040825,
-0.02838957868516445,
-0.04101329296827316,
0.04546007513999939,
0.0494658537209034,
-0.011098579503595829,
0.04913510009646416,
-0.07930706441402435,
0.0018156926380470395,
0.02216040901839733,
-0.01929388754069805,
0.04071929305791855,
0.02506367862224579,
0.018705883994698524,
0.005751416087150574,
-0.051670871675014496,
-0.036511387676000595,
0.045937828719615936,
0.047150589525699615,
-0.09224315732717514,
0.04402681440114975,
-0.021627530455589294,
-0.01769525185227394,
-0.004421515855938196,
0.018568070605397224,
-0.015223796479403973,
-0.005783572793006897,
-0.0749705359339714,
-0.012770716100931168,
-0.011750896461308002,
0.005241506267338991,
-0.04281405732035637,
0.005691696889698505,
0.05380238592624664,
-0.017851440235972404,
-0.05894742161035538,
0.015554549172520638,
-0.02227065898478031,
-0.009950133971869946,
0.012669653631746769,
0.004648908507078886,
0.01232052594423294,
0.05192812159657478,
0.02072714827954769,
0.015536174178123474,
0.08864163607358932,
0.04612157866358757,
-0.04182180017232895,
-0.01430504024028778,
-0.06276945024728775,
-0.03754039481282234,
0.09488917887210846,
0.06335745751857758,
-0.013909975066781044,
-0.017649313434958458,
0.002107397885993123,
0.019826766103506088,
-0.0033304926473647356,
0.007460303604602814,
-0.005227725021541119,
0.013661910779774189,
0.04314480721950531,
-0.01907338574528694,
-0.03906552866101265,
0.005186380818486214,
0.024273548275232315,
-0.05990292876958847,
-0.014470416121184826,
0.018255693838000298,
0.02089252509176731,
-0.0793805718421936,
-0.05505189299583435,
0.0034958687610924244,
0.06607697159051895,
-0.019110137596726418,
0.02017589472234249,
-0.0012782200938090682,
-0.0036865107249468565,
0.004759158939123154,
0.0529203787446022,
-0.014323415234684944,
0.011456894688308239,
-0.03246885910630226,
0.023336417973041534,
-0.02721356973052025,
0.005788166541606188,
0.023391542956233025,
0.04443106800317764,
-0.011576333083212376,
-0.022730037569999695,
0.067252978682518,
0.07004600018262863,
0.008516873233020306,
0.004134404473006725,
0.04292430728673935,
-0.06754698604345322,
-0.003688807599246502,
-0.017897378653287888,
-0.013606784865260124,
0.006491015199571848,
-0.044945571571588516,
-0.0045914859510958195,
0.027966950088739395,
0.0305945947766304,
-0.02712169475853443,
0.012899341993033886,
0.017649313434958458,
0.014700105413794518,
0.019753266125917435,
-0.04928210377693176,
0.028463078662753105,
0.0352802537381649,
-0.011723333969712257,
-0.02842632867395878,
0.002905567642301321,
-0.05534589663147926,
0.021645905449986458,
0.012743153609335423,
-0.029345085844397545,
0.010437075048685074,
0.0687597393989563,
0.04957610368728638,
0.02006564289331436,
0.03917578235268593,
0.0036015259101986885,
-0.026699066162109375,
0.025670059025287628,
-0.020157519727945328,
0.057991914451122284,
-0.00948156788945198,
0.018228130415081978,
0.01232052594423294,
0.050605110824108124,
0.01281665451824665,
0.003454524790868163,
0.02704819291830063,
-0.0307967197149992,
0.0048740035854279995,
0.018926385790109634,
0.06420271098613739,
-0.006151075474917889,
-0.0154351107776165,
-0.0012851107167080045,
-0.03869802877306938,
-0.0255598071962595,
-0.007239801809191704,
0.016886746510863304,
0.05284687876701355,
0.008732781745493412,
-0.008314747363328934,
-0.02083740010857582,
-0.047150589525699615,
0.049355603754520416,
-0.020874150097370148,
0.0048050968907773495,
-0.08011557161808014,
0.036180634051561356,
0.02897758223116398,
0.0033833212219178677,
0.03731989115476608,
-0.0013069312553852797,
0.0022084610536694527,
0.024347050115466118,
-0.007791055832058191,
0.004249249119311571,
-0.01413047593086958,
-0.04071929305791855,
-0.031274475157260895,
0.0479590930044651,
-0.041858550161123276,
-0.00840662233531475,
-0.006601266097277403,
-0.005227725021541119,
0.011208830401301384,
0.050899114459753036,
-0.0013609081506729126,
0.08555461466312408,
0.0005747971008531749,
-0.004717815201729536,
-0.05189137160778046,
-0.013974287547171116,
-0.013294408097863197,
0.048142846673727036,
0.021866407245397568,
0.039322782307863235,
0.0003212776791770011,
-0.06471721082925797,
-0.03669513761997223,
0.003661244874820113,
0.04542332515120506,
-0.0250085536390543,
0.021076275035738945,
-0.00679420493543148,
0.04112354293465614,
0.0507153645157814,
-0.04461481794714928,
-0.013625159859657288,
-0.005875448230654001,
0.07666105031967163,
-0.05273662880063057,
0.046158332377672195,
0.017355311661958694,
0.011043454520404339,
-0.02326291613280773,
0.00602244958281517,
0.02230740897357464,
0.033093612641096115,
-0.006729891989380121,
0.10547325760126114,
0.10591425746679306,
0.032817985862493515,
-0.020488271489739418,
0.0019753265660256147,
0.021627530455589294,
-0.07820455729961395,
0.03647463768720627,
-0.01003282144665718,
0.018071942031383514,
-0.018182191997766495,
-0.043732814490795135,
-0.04200555011630058,
-0.03757714480161667,
-0.020598523318767548,
-0.05424338951706886,
0.07945407181978226,
0.013524096459150314,
-0.026313187554478645,
0.031494975090026855,
0.034802500158548355,
0.038551025092601776,
-0.009683694690465927,
0.043402060866355896,
0.04468832165002823,
-0.05920467525720596,
0.06221819669008255,
0.01628955453634262,
0.0018524429760873318,
0.022564660757780075,
0.0035992288030683994,
-0.029455335810780525,
-0.09665319323539734,
-0.02853657864034176,
0.016629494726657867,
0.03313036262989044,
0.08878863602876663,
-0.025927310809493065,
0.07879256457090378,
-0.01115370448678732,
-0.013064718805253506,
-0.05020086094737053,
0.0352802537381649,
0.02436542510986328,
-0.02776482328772545,
-0.011585520580410957,
-0.007859962992370129,
0.03318548947572708,
0.00948156788945198,
0.007850774563848972,
0.002496720990166068,
0.011530394665896893,
-0.0474078394472599,
-0.042997807264328,
0.05494164302945137,
-0.0452028252184391,
0.016188491135835648,
0.026882817968726158,
0.017594188451766968,
0.04700358584523201,
-0.05170762166380882,
0.04138079658150673,
0.036290884017944336,
-0.021370278671383858,
0.002103952458128333,
-0.04005778580904007,
-0.016583556309342384,
-0.046489082276821136,
-0.005292037967592478,
-0.0912141501903534,
0.0166754312813282,
0.002753972774371505,
0.016886746510863304,
0.01780550181865692,
-0.0209476500749588,
-0.06824523955583572,
-0.009307004511356354,
0.015839364379644394,
0.0149849196895957,
-0.059535425156354904,
0.040204789489507675,
0.02188478223979473,
0.005916792433708906,
0.06166694313287735,
0.016004739329218864,
0.002496720990166068,
0.009950133971869946,
0.0027080350555479527,
-0.06898024678230286,
-0.0159863643348217,
-0.027911825105547905,
-0.006509390193969011,
0.010703514330089092,
0.06254895031452179,
-0.003459118539467454,
0.006941205821931362,
0.05835941806435585,
-0.00975719466805458,
0.06993575394153595,
0.011677396483719349,
0.007740524131804705,
0.0000968283275142312,
-0.040976542979478836,
0.030870221555233,
0.0025380649603903294,
0.003470602910965681,
-0.015692362561821938,
0.01631711609661579,
-0.02203178219497204,
0.021407028660178185,
-0.027140069752931595,
-0.0051909745670855045,
0.01313821878284216,
0.04678308591246605,
0.025541432201862335,
0.016831619665026665,
-0.02425517328083515,
0.03019034117460251,
0.011438519693911076,
0.009146221913397312,
-0.0060775745660066605,
0.013285220600664616,
0.005365538410842419,
-0.07184676826000214,
-0.04766509309411049,
-0.018255693838000298,
0.009270253591239452,
-0.06287970393896103,
0.014525541104376316,
-0.028683580458164215,
-0.015324859879910946,
0.03443499654531479,
0.0007120363297872245,
0.013542472384870052,
-0.0009819210972636938,
0.005765197332948446,
0.01041870005428791,
-0.036180634051561356,
-0.014378540217876434,
0.022472785785794258,
-0.06534196436405182,
0.029657462611794472,
0.011199642904102802,
0.05494164302945137,
0.004393953364342451,
-0.0396902859210968,
0.03246885910630226,
-0.034747373312711716,
-0.01766768842935562,
0.028352828696370125,
-0.05876367166638374,
-0.04939235374331474,
0.015131920576095581,
-0.020966025069355965,
-0.10150422900915146,
-0.02789345011115074,
-0.04755483940243721,
0.01493898220360279,
0.023777419701218605,
-0.009160002693533897,
0.036952391266822815,
0.03770577162504196,
-0.028683580458164215,
-0.05707315728068352,
0.05593390017747879,
-0.015499423258006573,
0.013790536671876907,
-0.01940413936972618,
0.01951438933610916,
-0.0010370465461164713,
0.014599042013287544,
-0.020635273307561874,
-0.0333508625626564,
0.017649313434958458,
0.011438519693911076,
-0.00328455469571054,
0.021682655438780785,
0.009867445565760136,
0.05053161084651947,
0.008273403160274029,
-0.019661391153931618,
-0.0198451429605484,
0.04443106800317764,
0.041417546570301056,
-0.050788864493370056,
-0.025173930451273918,
-0.00602244958281517,
0.0031444444321095943,
-0.08680412173271179,
-0.035464003682136536,
0.03208297863602638,
-0.006706923246383667,
0.04898810014128685,
-0.015692362561821938,
0.020635273307561874,
-0.06254895031452179,
0.04704033583402634,
-0.035960134118795395,
0.0198451429605484,
0.0479590930044651,
-0.038551025092601776,
-0.04292430728673935,
0.010234948247671127,
0.0019730296917259693,
-0.004768346436321735,
-0.04160129651427269,
-0.00934375450015068,
-0.010437075048685074,
0.039212532341480255,
-0.0396902859210968,
0.01345059648156166,
-0.012394025921821594,
0.01934901438653469,
-0.026478564366698265,
0.0019293888472020626,
0.04634208232164383,
0.021976657211780548,
0.02478805184364319,
-0.020212644711136818,
-0.007570554036647081,
-0.010143072344362736,
-0.03548238053917885,
0.03268935903906822,
0.0072489893063902855,
0.03493112698197365,
-0.0083377156406641,
-0.030171966180205345,
0.02897758223116398,
-0.018871260806918144,
0.025376057252287865,
0.031825728714466095,
-0.017235873267054558,
0.023354792967438698,
-0.016739744693040848,
-0.026919567957520485,
-0.030006589367985725,
-0.009182971902191639,
-0.06717947870492935,
0.037007514387369156,
0.014883856289088726,
-0.02386929653584957,
-0.029271584004163742,
0.01849457062780857,
-0.004102248232811689,
0.05839616805315018,
0.051046114414930344,
0.050788864493370056,
-0.021296776831150055,
-0.004717815201729536,
0.04586432874202728,
0.009385098703205585,
-0.0060086678713560104,
0.009867445565760136,
0.023060789331793785,
-0.02464105188846588,
-0.016335491091012955,
-0.023465042933821678,
-0.01912851259112358,
0.01435097772628069,
-0.03774252161383629,
-0.085995614528656,
-0.006408327259123325,
-0.04476182162761688,
0.02776482328772545,
-0.012835029512643814,
-0.052369125187397,
0.03548238053917885,
0.04310805723071098,
0.035794757306575775,
0.1212758719921112,
-0.03327736258506775,
-0.056007400155067444,
0.04700358584523201,
-0.03731989115476608,
0.017263436689972878,
0.0457540787756443,
-0.028683580458164215,
-0.02464105188846588,
0.01300040539354086,
-0.01631711609661579,
0.017934128642082214,
0.040204789489507675,
0.059425175189971924,
-0.017989253625273705,
-0.02668069116771221,
-0.02866520546376705,
0.05758766084909439,
0.01561886165291071,
-0.014176414348185062,
-0.04343881085515022,
-0.08187958598136902,
0.06471721082925797,
-0.04832659661769867,
-0.04035178944468498,
0.04902485013008118,
0.03687888756394386,
0.005043973680585623,
0.057734664529561996,
-0.021296776831150055,
0.03208297863602638,
-0.06071143597364426,
-0.03340598940849304,
0.004745377693325281,
0.013937537558376789,
-0.013165782205760479,
0.000271894532488659,
0.038330525159835815,
-0.03586825728416443,
-0.03147660195827484,
0.031329598277807236,
-0.007106582168489695,
-0.0782780572772026,
0.0582859180867672,
0.016023114323616028,
-0.01561886165291071,
0.02464105188846588,
-0.03167872875928879,
0.002008631592616439,
-0.04112354293465614,
-0.026919567957520485,
0.03774252161383629,
0.0006982550257816911,
0.04998035728931427,
0.04920860379934311,
-0.009931758977472782,
-0.003638276131823659,
0.0002879727690014988,
0.04380631446838379,
-0.028316078707575798,
-0.026166187599301338,
-0.015719925984740257,
-0.07092800736427307,
-0.07769005745649338,
-0.05020086094737053,
-0.05472114309668541,
0.0048050968907773495,
0.017493125051259995,
0.04321831092238426,
-0.04046203941106796,
0.004782128147780895,
0.004122920334339142,
0.016638681292533875,
-0.00685851788148284,
-0.0032707734499126673,
0.053765635937452316,
-0.03851427510380745,
0.05115636810660362,
0.0049153477884829044,
-0.01367109827697277,
0.012577777728438377,
0.001236876007169485,
-0.04461481794714928,
0.047701843082904816,
0.026607191190123558,
-0.045827578753232956,
-0.008250433951616287,
0.014470416121184826,
-0.05549289658665657,
0.01174170896410942,
0.02249116078019142,
-0.015591299161314964,
0.004040231928229332,
-0.0485103465616703,
0.0003531470720190555,
0.07129550725221634,
0.052773378789424896,
-0.07346377521753311,
-0.025449557229876518,
-0.02352016791701317,
-0.03972703590989113,
-0.05453738942742348,
0.026607191190123558,
-0.021260026842355728,
0.018751822412014008,
0.046636082231998444,
0.04347556084394455,
-0.024181673303246498,
0.004472047556191683,
0.03597850725054741,
-0.008594967424869537,
0.024347050115466118,
-0.06247544661164284,
-0.01160389557480812,
-0.0031972730066627264,
0.005815729033201933,
0.001897232374176383,
0.02056177146732807,
-0.01187952235341072,
0.02925320900976658,
0.004855628591030836,
-0.05784491449594498,
-0.010960766114294529,
0.04928210377693176,
-0.006192419212311506,
-0.036676764488220215,
0.010896452702581882,
0.017015371471643448,
0.001847849227488041,
0.011704958975315094,
0.01730937324464321,
0.015600486658513546,
0.034471746534109116,
0.03487600013613701,
0.012586965225636959,
-0.06912724673748016,
-0.04424731805920601,
-0.02848145365715027,
-0.1090012788772583,
0.02892245724797249,
0.031274475157260895,
-0.008562811650335789,
-0.003309820545837283,
-0.021462153643369675,
-0.08342310041189194,
0.01659274473786354,
-0.02028614468872547,
-0.037172891199588776,
-0.03322223946452141,
-0.01934901438653469,
0.012825842015445232,
0.024108173325657845,
-0.002958396216854453,
0.005177193321287632,
-0.0705605074763298,
0.04145429655909538,
-0.0059765116311609745,
-0.02816907688975334,
-0.07746955752372742,
-0.03322223946452141,
0.014185601845383644,
0.021186526864767075,
0.05064186453819275,
0.027581073343753815,
-0.0626959502696991,
-0.05156061798334122,
-0.05813891813158989,
-0.01885288581252098,
-0.03895527869462967,
0.04512932151556015,
0.03101722151041031,
-0.029069459065794945,
0.05380238592624664,
-0.012476714327931404,
0.022362535819411278,
-0.022968914359807968,
-0.04325506091117859,
-0.011998960748314857,
-0.028683580458164215,
-0.010731076821684837,
0.07658755034208298,
-0.011410956270992756,
0.038771528750658035,
-0.02883058227598667,
0.018641570582985878,
-0.04902485013008118,
0.004970473237335682,
-0.027948575094342232,
0.052332375198602676,
0.005540102254599333,
-0.028095576912164688,
-0.004058607388287783,
0.05435363948345184,
-0.020157519727945328,
0.02089252509176731,
0.08834763616323471,
-0.06960500031709671,
0.03632763400673866,
-0.016023114323616028,
0.043512310832738876,
0.048142846673727036,
-0.034471746534109116,
-0.0004714369715657085,
-0.04729758948087692,
-0.01593123935163021,
0.013248469680547714,
-0.012908530421555042,
-0.00023098115343600512,
0.005158818326890469
] |
725,257 | dockerfile_parse.parser | _modify_instruction_arg | null | def _modify_instruction_arg(self, arg_key, arg_value):
self._modify_instruction_label_env('ARG', arg_key, arg_value)
| (self, arg_key, arg_value) | [
0.005814488511532545,
-0.02862517349421978,
-0.011252770200371742,
0.07443883270025253,
-0.021669523790478706,
-0.019562765955924988,
0.022455379366874695,
0.054641980677843094,
0.09089161455631256,
-0.09149354696273804,
-0.011403253301978111,
-0.010600677691400051,
0.03969402238726616,
0.02190360799431801,
-0.046783432364463806,
-0.007152113597840071,
0.01892739348113537,
0.07002466917037964,
-0.04547924920916557,
0.004451782908290625,
0.018893953412771225,
0.010767880827188492,
0.0053003388457000256,
-0.024829663336277008,
0.006082013715058565,
0.0025916483718901873,
0.050829749554395676,
0.008105170913040638,
0.05046190321445465,
-0.03183547407388687,
-0.03785478696227074,
-0.0741044208407402,
-0.031216822564601898,
0.015173682942986488,
0.03061489202082157,
-0.023859884589910507,
-0.04343936964869499,
0.019663086161017418,
0.006817707326263189,
-0.09610835462808609,
0.006734105758368969,
-0.030113281682133675,
0.019144756719470024,
-0.014538311399519444,
0.021134475246071815,
-0.027220668271183968,
0.012406471185386181,
-0.044108182191848755,
-0.01386949885636568,
-0.023525478318333626,
0.011010325513780117,
-0.03578146919608116,
0.06902144849300385,
0.011812900193035603,
0.006274296902120113,
0.0541403703391552,
0.013585253618657589,
0.03598211333155632,
-0.021736405789852142,
0.013777537271380424,
0.013769176788628101,
0.03668436408042908,
-0.04862266778945923,
-0.02038205973803997,
0.01687079481780529,
-0.013560173101723194,
-0.04119884967803955,
0.025431593880057335,
0.018542826175689697,
-0.030798815190792084,
-0.03116666153073311,
-0.043573133647441864,
-0.02183672785758972,
-0.011185889132320881,
-0.002625088905915618,
0.01735568419098854,
-0.08513982594013214,
0.04317184537649155,
-0.017522886395454407,
0.0002394400944467634,
0.015775615349411964,
-0.022371778264641762,
-0.007327676750719547,
0.00397316413000226,
-0.033641267567873,
-0.012381390668451786,
-0.03135058656334877,
-0.021000711247324944,
0.06604523211717606,
-0.033039335161447525,
-0.022555701434612274,
-0.008418677374720573,
-0.021318398416042328,
0.03467792645096779,
0.04788697510957718,
-0.013610334135591984,
0.023625800386071205,
0.0004140889795962721,
-0.022020651027560234,
0.01080132182687521,
0.028792377561330795,
-0.08801572024822235,
0.031083060428500175,
0.01114408764988184,
0.05066254734992981,
0.003885382553562522,
0.012974962592124939,
-0.024461816996335983,
0.009196171537041664,
-0.02004765346646309,
-0.055277351289987564,
-0.001611420069821179,
-0.025364713743329048,
-0.036784686148166656,
-0.07744848728179932,
0.06724909693002701,
-0.0006306692957878113,
-0.037520378828048706,
0.02598336525261402,
0.057517874985933304,
0.033958952873945236,
0.00266270968131721,
0.023425158113241196,
-0.003971074242144823,
0.010684279724955559,
0.04651590809226036,
-0.03392551466822624,
0.09196171909570694,
0.0010309116914868355,
-0.01916147768497467,
-0.013100364245474339,
-0.06320277601480484,
-0.02720394730567932,
0.01053379662334919,
0.07283367961645126,
-0.06855327636003494,
0.005760147701948881,
0.010960164479911327,
0.00706851202994585,
0.010149229317903519,
0.025347992777824402,
-0.003059817012399435,
0.0209672711789608,
0.0018298291834071279,
0.013275927864015102,
-0.0658111497759819,
-0.001758767873980105,
0.04638214409351349,
-0.011060486547648907,
0.01832546293735504,
-0.022806506603956223,
0.051130715757608414,
-0.029461190104484558,
-0.015583330765366554,
0.03491201251745224,
0.05842076987028122,
-0.005939891096204519,
-0.020265018567442894,
0.034109435975551605,
0.0199974924325943,
-0.0011537015670910478,
-0.04654935002326965,
-0.028608454391360283,
-0.05367220193147659,
0.006236676592379808,
0.018760189414024353,
0.003862392157316208,
0.06718221306800842,
-0.019194917753338814,
0.030464408919215202,
-0.002345023676753044,
-0.08039125800132751,
0.05307026952505112,
0.040596917271614075,
0.015859216451644897,
0.05982527509331703,
-0.03905864804983139,
-0.004274129867553711,
0.016661791130900383,
0.010308071970939636,
0.013560173101723194,
0.0015811144839972258,
-0.01926179975271225,
-0.01677047275006771,
0.005668185651302338,
-0.022405218333005905,
-0.007515780162066221,
0.011169168166816235,
0.02180328778922558,
0.006696484982967377,
0.0541403703391552,
-0.029996240511536598,
0.018275301903486252,
-0.007616102229803801,
-0.055076707154512405,
-0.030247043818235397,
-0.051565442234277725,
-0.052535220980644226,
0.04524516314268112,
0.04012874886393547,
0.009112570434808731,
-0.03385863080620766,
0.022254735231399536,
0.07196422666311264,
0.02242193929851055,
-0.001333444844931364,
0.039660580456256866,
0.006529281847178936,
-0.0040839361026883125,
-0.019495883956551552,
0.01533252652734518,
-0.05945742875337601,
0.061898596584796906,
0.008121891878545284,
0.0010753250680863857,
0.009647619910538197,
-0.07550892978906631,
0.027320990338921547,
-0.009079129435122013,
0.0006400744314305484,
0.06514233350753784,
0.026000086218118668,
0.028508132323622704,
-0.05768507719039917,
0.005062074400484562,
-0.016686871647834778,
0.04618150368332863,
0.019579485058784485,
-0.013392969965934753,
0.07430506497621536,
-0.01740584522485733,
0.0012059524888172746,
0.0032082099933177233,
0.004752748645842075,
0.007127033080905676,
-0.07269991934299469,
0.028993021696805954,
0.007607742212712765,
0.037185974419116974,
-0.0017713080160319805,
-0.014354388229548931,
0.049759648740291595,
0.025347992777824402,
0.041667018085718155,
-0.0006411194917745888,
-0.018409064039587975,
0.009931865148246288,
0.05638089403510094,
-0.00917109102010727,
-0.013250847347080708,
0.024595579132437706,
0.006190695334225893,
-0.04022907093167305,
0.024511978030204773,
-0.008318355306982994,
0.034109435975551605,
0.01623542234301567,
-0.0029594951774924994,
0.00010737575212260708,
-0.0017002467066049576,
-0.009906784631311893,
0.015357607044279575,
-0.007185554131865501,
-0.026351211592555046,
0.03290557488799095,
0.041767340153455734,
0.01686243526637554,
-0.025414874777197838,
-0.003745349822565913,
-0.03989466279745102,
0.0028403629548847675,
-0.01136145181953907,
0.004037955310195684,
0.034945450723171234,
-0.03131714463233948,
0.03822263330221176,
0.027320990338921547,
0.03116666153073311,
-0.014697154052555561,
-0.015140242874622345,
0.08360156416893005,
-0.038055431097745895,
-0.0061321742832660675,
0.041667018085718155,
-0.07577645778656006,
-0.0178071316331625,
0.015591691248118877,
0.0658111497759819,
0.002896794117987156,
-0.001071144943125546,
0.03447728231549263,
0.09570706635713577,
0.033674709498882294,
0.043573133647441864,
-0.020315179601311684,
0.017924174666404724,
-0.04842202365398407,
0.006905488669872284,
0.022605862468481064,
0.04029595106840134,
0.05036158114671707,
-0.0024202652275562286,
-0.11095599085092545,
-0.038690801709890366,
0.0026794299483299255,
0.02111775428056717,
0.06112946197390556,
0.022271456196904182,
-0.05206705257296562,
0.01954604499042034,
0.042737118899822235,
0.01765665039420128,
-0.05427413433790207,
0.00877816416323185,
0.04073068127036095,
-0.022455379366874695,
0.0370522104203701,
-0.012498433701694012,
-0.005981691647320986,
0.02750491350889206,
0.008803244680166245,
-0.0819295272231102,
-0.03621619567275047,
0.018158258870244026,
0.019228359684348106,
0.02277306467294693,
0.06460728496313095,
0.006249216850847006,
0.07156293839216232,
-0.012515153735876083,
0.01277431845664978,
-0.002179910661652684,
-0.004000334534794092,
0.012565314769744873,
-0.011336371302604675,
0.0018496845150366426,
-0.04300464317202568,
0.023090751841664314,
-0.04310496523976326,
0.003147598821669817,
-0.022371778264641762,
0.017288802191615105,
-0.08266521990299225,
0.0015549890231341124,
0.09978682547807693,
-0.007549220696091652,
0.02340843714773655,
0.011988463811576366,
0.07932116091251373,
-0.0019165658159181476,
-0.04374033585190773,
0.008188772946596146,
0.024980146437883377,
-0.034845128655433655,
0.050695985555648804,
0.034443844109773636,
-0.03056473098695278,
-0.06393847614526749,
-0.04417506605386734,
-0.06206579878926277,
0.0668143704533577,
-0.04300464317202568,
0.047953855246305466,
-0.027588514611124992,
-0.005392300430685282,
-0.023090751841664314,
-0.05725034698843956,
0.00308489752933383,
0.008418677374720573,
0.04818793758749962,
0.045613013207912445,
-0.018392343074083328,
0.0049951933324337006,
0.03290557488799095,
-0.004136187024414539,
0.014429629780352116,
-0.035380180925130844,
-0.022589141502976418,
-0.0721648633480072,
-0.03158466890454292,
0.018024496734142303,
-0.002735861111432314,
0.004986832849681377,
0.0429043211042881,
-0.03631651774048805,
0.015349246561527252,
0.03387535363435745,
-0.021786566823720932,
0.07189734280109406,
0.0016845714999362826,
-0.014697154052555561,
0.03758726269006729,
0.07290056347846985,
0.03136730566620827,
0.026217449456453323,
-0.07109476625919342,
-0.0032144798897206783,
-0.01824185997247696,
0.0006176065071485937,
-0.017238641157746315,
-0.026351211592555046,
0.02467918023467064,
-0.025816161185503006,
0.016210341826081276,
0.020448941737413406,
-0.005534423515200615,
-0.07109476625919342,
0.06497513502836227,
-0.02773899771273136,
0.026902982965111732,
-0.03832295536994934,
-0.027772437781095505,
0.008861765265464783,
-0.04414162412285805,
-0.01926179975271225,
-0.007081052288413048,
0.03574802726507187,
-0.05226769670844078,
0.001071144943125546,
-0.03130042552947998,
-0.011754379607737064,
0.014697154052555561,
-0.003745349822565913,
0.05972495302557945,
0.0053714001551270485,
0.018760189414024353,
0.029728714376688004,
-0.023659242317080498,
0.04277055710554123,
0.02437821589410305,
-0.08152823895215988,
0.025481754913926125,
0.008652761578559875,
0.053906287997961044,
-0.013008402660489082,
0.003339882241562009,
-0.006462400779128075,
-0.02008109539747238,
0.04521172493696213,
0.028993021696805954,
-0.05952431261539459,
-0.03501233458518982,
0.058153245598077774,
-0.0015737994108349085,
-0.04471011459827423,
-0.0040839361026883125,
-0.04450947046279907,
0.05036158114671707,
0.026117127388715744,
-0.024829663336277008,
0.028340928256511688,
0.022806506603956223,
-0.01770681142807007,
-0.039660580456256866,
-0.00042689047404564917,
-0.09390126913785934,
-0.08019061386585236,
-0.04303808510303497,
0.03247084468603134,
-0.00836015585809946,
0.012565314769744873,
0.03374158963561058,
-0.030514569953083992,
-0.04641558602452278,
0.009037328884005547,
0.04945868253707886,
0.040596917271614075,
-0.007536680903285742,
0.004919951781630516,
-0.011746019124984741,
-0.02740459144115448,
-0.015541530214250088,
0.03280525282025337,
0.009497136808931828,
0.018643148243427277,
-0.004123646765947342,
-0.021669523790478706,
0.035079214721918106,
-0.08995527774095535,
0.00028424529591575265,
-0.006374618969857693,
-0.012038624845445156,
0.07243239134550095,
0.03842327743768692,
0.0001446045789634809,
-0.025080468505620956,
0.03775446489453316,
0.013518372550606728,
-0.016745392233133316,
0.02814028598368168,
-0.01565021276473999,
0.014421269297599792,
0.023391716182231903,
0.0015393137000501156,
0.025715839117765427,
-0.04621494188904762,
-0.0053881206549704075,
0.026150567457079887,
0.007720604073256254,
0.01589265652000904,
-0.04323872551321983,
-0.03982778266072273,
-0.032989174127578735,
-0.0036826487630605698,
-0.0008072775672189891,
-0.00890356581658125,
-0.030648332089185715,
0.024645740166306496,
-0.008447937667369843,
0.005893909838050604,
0.010466915555298328,
-0.002988755702972412,
0.022555701434612274,
-0.0404631569981575,
0.012473353184759617,
0.018275301903486252,
-0.012799398973584175,
0.02778915874660015,
-0.04935836046934128,
0.002140199998393655,
0.00890356581658125,
-0.004351461306214333,
0.04136605188250542,
-0.06012624129652977,
0.01946244388818741,
-0.06758350133895874,
-0.030932577326893806,
-0.027822598814964294,
0.017790412530303,
0.02165280468761921,
-0.043706897646188736,
-0.008121891878545284,
0.04203486442565918,
0.010082348249852657,
0.04481043666601181,
0.05203361064195633,
0.026802660897374153,
0.014538311399519444,
0.0036241277121007442,
0.017723530530929565,
-0.03056473098695278,
0.01004890725016594,
-0.029778875410556793,
0.011712579056620598,
-0.03071521408855915,
0.03335702419281006,
-0.050695985555648804,
0.01043347455561161,
0.011277850717306137,
-0.024980146437883377,
-0.10540484637022018,
0.006245036609470844,
-0.015675293281674385,
0.06494168937206268,
-0.05223425477743149,
0.012205827981233597,
0.028942860662937164,
0.008853405714035034,
-0.02842453122138977,
0.039426494389772415,
0.014078502543270588,
-0.037955109030008316,
0.09590771049261093,
0.00943861622363329,
-0.012673996388912201,
-0.01333444844931364,
-0.07049283385276794,
-0.03715253248810768,
0.02462901920080185,
-0.005036993883550167,
0.028157005086541176,
-0.07778289169073105,
-0.002393094589933753,
0.008661122061312199,
-0.05674874037504196,
-0.01872674934566021,
0.08955398947000504,
-0.0018517745193094015,
0.02554863691329956,
-0.008013209328055382,
-0.042202066630125046,
0.04845546558499336,
-0.027588514611124992,
0.00899552833288908,
-0.02018141746520996,
0.07591021806001663,
0.05133135989308357,
0.05524390935897827,
-0.0035488861612975597,
-0.007440539076924324,
-0.07009154558181763,
-0.002434895373880863,
-0.01687079481780529,
-0.0546085387468338,
-0.02111775428056717,
-0.029176944866776466,
0.015725454315543175,
-0.041867662221193314,
0.014446349814534187,
-0.02252225950360298,
0.005475901998579502,
-0.07691343873739243,
0.026150567457079887,
0.038590479642152786,
-0.07550892978906631,
0.0231576319783926,
-0.0009828408947214484,
0.0011662418255582452,
-0.04136605188250542,
0.03618275374174118,
-0.0020555532537400723,
-0.03457760438323021,
0.01809137687087059,
0.03409271687269211,
-0.04073068127036095,
0.009982026182115078,
0.029728714376688004,
0.0292605459690094,
0.009271413087844849,
0.006140534766018391,
-0.04899051412940025,
-0.01720520108938217,
-0.04022907093167305,
-0.043706897646188736,
-0.008138611912727356,
0.002850813325494528,
0.028842538595199585,
0.05333779379725456,
-0.02106759324669838,
-0.055076707154512405,
-0.03594867140054703,
0.03989466279745102,
0.014789115637540817,
-0.011670777574181557,
0.061029139906167984,
-0.027036745101213455,
0.015583330765366554,
0.011570455506443977,
-0.030063120648264885,
-0.00872800312936306,
0.037520378828048706,
-0.026551855728030205,
-0.03076537512242794,
0.014981399290263653,
-0.01484763715416193,
0.036149315536022186,
-0.03302261605858803,
-0.02598336525261402,
-0.018108097836375237,
-0.023090751841664314,
0.047619447112083435,
-0.018977554515004158,
-0.04648246616125107,
0.01964636705815792,
0.0316849909722805,
0.04671655222773552,
-0.021134475246071815,
0.03838983550667763,
-0.01370229572057724,
-0.01146177388727665,
-0.023074030876159668,
0.028692055493593216,
0.020415501669049263,
-0.040931325405836105,
0.00666722422465682,
-0.025431593880057335,
-0.012322870083153248,
-0.029678553342819214,
-0.003287631319835782,
0.0365840420126915,
-0.01857626624405384,
-0.1092170774936676,
-0.05818668752908707,
-0.013861138373613358,
-0.0051665762439370155,
-0.05972495302557945,
0.042503032833337784,
0.020030934363603592,
0.031032899394631386,
0.024812942370772362,
-0.06969025731086731,
-0.04882331192493439,
0.033958952873945236,
0.0032437406480312347,
-0.0018151989206671715,
0.0555783174932003,
-0.011160808615386486,
0.06347030401229858,
0.02369268238544464,
-0.009137650951743126,
-0.015583330765366554,
-0.05066254734992981,
-0.015232204459607601,
-0.04170046001672745,
-0.06106257811188698,
-0.03882456570863724,
-0.062433645129203796,
-0.03145090863108635,
0.05276930332183838,
0.040697239339351654,
-0.029812317341566086,
0.019512604922056198,
-0.011620616540312767,
-0.0448773168027401,
0.004899051506072283,
-0.03153450787067413,
-0.05547799542546272,
-0.02569912001490593,
0.05641433224081993,
0.03872424364089966,
0.04213518649339676,
-0.02773899771273136,
-0.03742005676031113,
-0.03618275374174118,
0.03514609485864639,
0.01687079481780529,
-0.0853404700756073,
-0.03487857058644295,
-0.02320779301226139,
0.009204532019793987,
0.04364001378417015,
0.060828495770692825,
0.06343686580657959,
-0.03210299834609032,
-0.02228817529976368,
-0.055177029222249985,
0.026267610490322113,
-0.014881078153848648,
0.0326714888215065,
0.008456298150122166,
0.0006468670908361673,
0.03076537512242794,
0.0070267110131680965,
-0.026902982965111732,
0.018810350447893143,
-0.0022363418247550726,
-0.06169795244932175,
-0.037219416350126266,
0.014538311399519444,
0.07718095928430557,
0.00703507149592042,
0.03641683980822563,
-0.0492580384016037,
-0.005538603290915489,
0.041131969541311264,
0.0443757064640522,
-0.05019437521696091,
0.0020242028404027224,
0.032554447650909424,
-0.035380180925130844,
-0.003099527908489108,
0.09049032628536224,
-0.02310747094452381,
0.01994733139872551,
0.05925678461790085,
-0.05631401017308235,
0.05046190321445465,
0.04654935002326965,
0.0399949848651886,
0.011980103328824043,
-0.029277266934514046,
-0.006069473456591368,
-0.05992559716105461,
-0.020549263805150986,
0.04882331192493439,
0.011486854404211044,
0.024846384301781654,
0.015207123942673206
] |
725,258 | dockerfile_parse.parser | _modify_instruction_env | null | def _modify_instruction_env(self, env_var_key, env_var_value):
self._modify_instruction_label_env('ENV', env_var_key, env_var_value)
| (self, env_var_key, env_var_value) | [
0.006347442511469126,
-0.04995161294937134,
-0.044363103806972504,
0.01563575118780136,
-0.05509166046977043,
-0.02416512742638588,
0.003936966881155968,
0.013824661262333393,
0.05371178314089775,
-0.006782966665923595,
-0.017403721809387207,
-0.020680934190750122,
0.035462886095047,
0.05419474095106125,
0.011953200213611126,
-0.02416512742638588,
0.029287928715348244,
0.030167600139975548,
0.0072141787968575954,
-0.02083617076277733,
0.012979485094547272,
-0.02449284866452217,
-0.014436982572078705,
-0.09748844057321548,
0.017196739092469215,
0.013979896903038025,
0.03918856009840965,
0.012798376381397247,
0.04339718818664551,
-0.044570084661245346,
-0.030892036855220795,
-0.07334055751562119,
-0.05988674238324165,
-0.03246165066957474,
0.10328392684459686,
-0.01523903664201498,
-0.032375406473875046,
0.034220993518829346,
0.008412948809564114,
-0.05326332151889801,
0.0190940722823143,
-0.00977989099919796,
-0.011935952119529247,
-0.010219727642834187,
0.018697358667850494,
-0.008111100643873215,
0.012168806046247482,
-0.045053042471408844,
0.03144398704171181,
-0.006955451797693968,
0.013626303523778915,
-0.05288385599851608,
0.07775617390871048,
0.025217285379767418,
0.014531848952174187,
-0.003190969815477729,
0.015308030880987644,
0.0036329622380435467,
-0.06523377448320389,
-0.004271156154572964,
-0.02588997595012188,
0.017783189192414284,
-0.046536412090063095,
0.038360632956027985,
0.00414179265499115,
-0.003225466702133417,
-0.05119350552558899,
0.025044800713658333,
0.033065345138311386,
-0.06302596628665924,
-0.022423030808568,
-0.04488055780529976,
-0.0522284135222435,
-0.040878910571336746,
-0.01467846054583788,
0.02621769718825817,
-0.09735044836997986,
0.045742981135845184,
-0.028356509283185005,
-0.049192678183317184,
0.0011033640475943685,
-0.04639842361211777,
-0.0292016863822937,
-0.010599194094538689,
0.0027532894164323807,
0.04156884923577309,
-0.013108848594129086,
0.013496940024197102,
0.06657915562391281,
-0.019387297332286835,
0.015368400141596794,
0.019990993663668633,
-0.035945843905210495,
0.06619969010353088,
0.08244775980710983,
-0.013039855286478996,
0.05588509142398834,
-0.019835758954286575,
-0.03863660618662834,
-0.012729382142424583,
0.040430448949337006,
-0.08541449904441833,
0.03694625571370125,
-0.011815212666988373,
-0.009512539952993393,
0.018714606761932373,
0.03943003714084625,
0.02359592728316784,
0.029270678758621216,
-0.040878910571336746,
-0.06299147009849548,
0.008986460976302624,
-0.007524651475250721,
-0.07327156513929367,
-0.04439759999513626,
0.0386711023747921,
0.03268587961792946,
-0.01585998199880123,
0.04501854628324509,
0.025855479761958122,
0.015368400141596794,
0.008438820950686932,
-0.01213430892676115,
0.01432486716657877,
0.012910490855574608,
0.043983638286590576,
-0.008382763713598251,
0.07368552684783936,
0.008839848451316357,
-0.041706837713718414,
-0.06299147009849548,
-0.02219879999756813,
-0.025907224044203758,
0.009650527499616146,
0.04350068047642708,
-0.039844002574682236,
-0.03718773275613785,
0.0002894511562772095,
0.02911544218659401,
-0.0015793144702911377,
0.00733923027291894,
-0.0391540601849556,
-0.028477249667048454,
-0.015497763641178608,
-0.011953200213611126,
-0.05602307990193367,
0.0062568881548941135,
0.0274768378585577,
-0.03037458285689354,
0.013988521881401539,
0.021094897761940956,
0.06840749084949493,
-0.055505625903606415,
-0.0773422047495842,
0.04429411143064499,
0.068028025329113,
-0.001090427627786994,
-0.011358127929270267,
0.06561324000358582,
0.014048891142010689,
-0.00920206680893898,
-0.0025764924939721823,
-0.05226290971040726,
-0.01864561252295971,
0.025217285379767418,
0.04149985685944557,
-0.008072291500866413,
0.0564025454223156,
-0.006584609393030405,
-0.007787690963596106,
-0.007929990999400616,
-0.07603131979703903,
0.0556781105697155,
0.04118938371539116,
0.002992612076923251,
0.039740510284900665,
0.026062460616230965,
-0.044121626764535904,
-0.004266844131052494,
0.01954253390431404,
-0.01760207861661911,
0.032133929431438446,
-0.058610353618860245,
0.023095721378922462,
0.0032491832971572876,
0.0038442560471594334,
0.005342718213796616,
0.0010332920355722308,
0.02276800014078617,
0.00008098702528513968,
0.01850762404501438,
-0.015083800069987774,
0.025855479761958122,
0.013333079405128956,
-0.026717903092503548,
-0.018559370189905167,
-0.008598369546234608,
-0.0763762891292572,
-0.003190969815477729,
0.015333903022110462,
-0.03368629142642021,
0.018266145139932632,
0.030633309856057167,
0.06274998933076859,
0.029167188331484795,
0.044915053993463516,
-0.008443133905529976,
-0.03660128638148308,
0.0026347062084823847,
-0.024216873571276665,
-0.025596752762794495,
-0.032737623900175095,
0.06664814800024033,
0.02083617076277733,
0.02670065499842167,
-0.0029990803450345993,
-0.028460001572966576,
0.026079710572957993,
-0.030909284949302673,
0.018611116334795952,
-0.009296933189034462,
0.0029171500355005264,
0.04074092209339142,
-0.029943371191620827,
0.002955959178507328,
-0.020059987902641296,
-0.018783601000905037,
0.010702685452997684,
-0.04036145657300949,
0.025924474000930786,
-0.007412536535412073,
0.04691588133573532,
-0.022060813382267952,
-0.01173759438097477,
0.04129287227988243,
-0.02554500661790371,
0.015204539522528648,
0.010495703667402267,
0.038498617708683014,
0.007291797082871199,
-0.01955978199839592,
-0.002858936320990324,
0.04681238904595375,
-0.010090364143252373,
0.03670477494597435,
0.0027015439700335264,
0.027666570618748665,
0.03463495895266533,
0.0038701288867741823,
-0.0016105773393064737,
0.03563537076115608,
-0.04046494513750076,
-0.03798116371035576,
-0.017972921952605247,
0.003667459124699235,
0.026631660759449005,
0.024303115904331207,
0.014583594165742397,
0.0242686178535223,
-0.0017065219581127167,
-0.006123212166130543,
0.03334132209420204,
-0.010504327714443207,
-0.04784729704260826,
0.018438629806041718,
0.0662686824798584,
0.04898569732904434,
-0.00733923027291894,
-0.011677224189043045,
-0.039050571620464325,
0.062060050666332245,
0.07472043484449387,
-0.006739845499396324,
-0.00018973334226757288,
-0.012229176238179207,
0.01816265471279621,
0.004868384916335344,
0.02690763771533966,
-0.009745393879711628,
-0.027304351329803467,
0.055954087525606155,
-0.059196799993515015,
0.01235853973776102,
0.07313358038663864,
-0.03936104476451874,
-0.028546243906021118,
-0.009409048594534397,
-0.004760582000017166,
0.046536412090063095,
-0.01804191619157791,
0.01172897033393383,
0.08293071389198303,
0.0653027668595314,
0.04736433923244476,
-0.06050768494606018,
-0.0044975425116717815,
-0.040878910571336746,
0.026959381997585297,
0.015894480049610138,
0.05547112971544266,
0.053884267807006836,
0.011004533618688583,
-0.07513440400362015,
-0.0009308792068623006,
-0.029080945998430252,
0.04601895809173584,
0.09196892380714417,
0.023630425333976746,
-0.04443209618330002,
0.0008947651949711144,
0.027097370475530624,
0.02690763771533966,
-0.05950727313756943,
0.026045212522149086,
0.02059469185769558,
-0.035497382283210754,
0.01783493347465992,
-0.020042739808559418,
-0.015558133833110332,
0.011746218428015709,
-0.008451757952570915,
-0.06119762733578682,
0.013013982214033604,
0.00007323868339881301,
0.003216842422261834,
-0.0064768060110509396,
0.13226138055324554,
-0.04225878790020943,
0.07472043484449387,
0.014695709571242332,
-0.033531054854393005,
-0.010400836355984211,
0.016825897619128227,
0.05340130999684334,
-0.009529788047075272,
-0.015497763641178608,
-0.05602307990193367,
-0.028822218999266624,
-0.021940072998404503,
-0.007929990999400616,
-0.04301772266626358,
-0.001062398892827332,
-0.04632943123579025,
-0.03711874037981033,
0.060921650379896164,
-0.05060705542564392,
0.0029775197617709637,
0.008175781928002834,
-0.0005993848899379373,
0.033876024186611176,
-0.051607467234134674,
0.05602307990193367,
0.05226290971040726,
-0.008891594596207142,
-0.015308030880987644,
-0.00761951832100749,
-0.050434570759534836,
-0.049261674284935,
-0.005924854893237352,
-0.04812327399849892,
0.012349915690720081,
0.01976676471531391,
0.06678613275289536,
0.007860996760427952,
-0.010219727642834187,
-0.032030437141656876,
-0.01748996414244175,
-0.022526521235704422,
-0.009503914974629879,
0.01771419495344162,
0.035842351615428925,
0.004271156154572964,
0.019990993663668633,
0.014842321164906025,
0.0026217696722596884,
0.005368590820580721,
-0.03580785542726517,
-0.04374215751886368,
0.02104315161705017,
0.029598399996757507,
0.026510922238230705,
0.008727733977138996,
0.007196930702775717,
0.04277624189853668,
-0.023043977096676826,
0.020266970619559288,
0.054367225617170334,
0.010857921093702316,
0.061266619712114334,
0.016636164858937263,
-0.021198388189077377,
0.048709724098443985,
0.039395540952682495,
0.03149573504924774,
0.04660540819168091,
-0.03587684780359268,
-0.0069770123809576035,
-0.044708073139190674,
0.05692000314593315,
0.0298053827136755,
-0.018559370189905167,
0.05005510523915291,
0.017326103523373604,
0.02863248623907566,
0.02495855838060379,
-0.022285042330622673,
-0.0645783320069313,
0.033410314470529556,
-0.013954024761915207,
-0.005265099927783012,
-0.01609283685684204,
-0.03591134771704674,
0.004734709393233061,
-0.028684230521321297,
-0.05212492123246193,
0.0019781857263296843,
0.028011539950966835,
-0.05081403627991676,
0.03856761381030083,
-0.03047807328402996,
-0.02345794066786766,
0.03082304261624813,
-0.0026562667917460203,
0.026424679905176163,
-0.05485018342733383,
0.005886045750230551,
0.0023673546966165304,
-0.028132280334830284,
0.026631660759449005,
-0.02035321295261383,
-0.018904339522123337,
0.018231648951768875,
-0.0082835853099823,
0.06568223237991333,
-0.02104315161705017,
-0.026183201000094414,
0.004816639702767134,
-0.011772091500461102,
0.02244027890264988,
0.013712545856833458,
-0.047226350754499435,
-0.019594280049204826,
0.02690763771533966,
0.014462854713201523,
-0.010314594022929668,
0.048019781708717346,
-0.03808465600013733,
0.044570084661245346,
0.03694625571370125,
-0.023630425333976746,
0.05315983295440674,
-0.014988933689892292,
-0.03853311762213707,
-0.007119312416762114,
0.010314594022929668,
-0.01911132223904133,
0.008175781928002834,
-0.048157770186662674,
0.017619328573346138,
0.010763054713606834,
0.00025967054534703493,
0.023268206045031548,
-0.05809289962053299,
-0.0042107864283025265,
0.0007497700862586498,
-0.007464282214641571,
0.03970601409673691,
0.008313769474625587,
0.039637017995119095,
0.012039442546665668,
-0.05626456066966057,
-0.030046861618757248,
0.041016899049282074,
0.05209042504429817,
-0.001923206145875156,
0.021784836426377296,
-0.011133897118270397,
-0.008796727284789085,
-0.05978325009346008,
0.017170866951346397,
-0.05736846104264259,
0.01184108480811119,
0.02530352771282196,
0.012410284951329231,
0.005454833619296551,
-0.032841116189956665,
0.034807443618774414,
0.008727733977138996,
0.029719140380620956,
0.015920352190732956,
0.02195732109248638,
0.01816265471279621,
-0.0007934303139336407,
-0.009943751618266106,
0.03189244866371155,
-0.004419924225658178,
-0.006864896975457668,
0.01980126090347767,
0.015946224331855774,
-0.028253018856048584,
-0.01658441871404648,
-0.00007714654202573001,
-0.03427274152636528,
0.0017259265296161175,
-0.04267275333404541,
0.031219758093357086,
-0.031788960099220276,
0.003691175952553749,
0.007796315476298332,
0.0018628364196047187,
0.0386711023747921,
-0.004333681892603636,
0.020387709140777588,
-0.059645261615514755,
0.0073435427621006966,
0.013065727427601814,
-0.03127150237560272,
0.0002251735859317705,
-0.019370049238204956,
0.03991299495100975,
0.00266057881526649,
-0.01838688552379608,
0.04588096961379051,
-0.028908461332321167,
-0.0012968705268576741,
-0.06637217104434967,
-0.02818402461707592,
-0.012798376381397247,
-0.01093553937971592,
0.03416924923658371,
-0.07975699752569199,
-0.044915053993463516,
0.02897745557129383,
0.0277183149009943,
0.08651839941740036,
0.011211515404284,
0.02887396514415741,
0.02392364852130413,
-0.002570024225860834,
0.015273533761501312,
-0.03413475304841995,
-0.019076824188232422,
-0.03874009847640991,
0.02713186666369438,
-0.01988750323653221,
0.041396364569664,
0.0009260280639864504,
-0.016049714758992195,
-0.059058815240859985,
-0.03577335923910141,
-0.05374627932906151,
0.0347384475171566,
-0.010426709428429604,
0.07651428133249283,
-0.04588096961379051,
-0.05729946866631508,
0.041258376091718674,
0.03147848695516586,
-0.04105139523744583,
0.07761818170547485,
-0.009296933189034462,
-0.021025903522968292,
0.0529528483748436,
0.01155648473650217,
0.03025384247303009,
-0.01921481266617775,
-0.07679025828838348,
-0.004428548738360405,
0.024130631238222122,
-0.010400836355984211,
0.025476012378931046,
-0.04764031618833542,
0.08037794381380081,
0.013678048737347126,
-0.04025796428322792,
-0.017119120806455612,
0.0936247780919075,
0.012332666665315628,
0.033996764570474625,
0.00983163621276617,
-0.10507777333259583,
0.012255048379302025,
-0.04488055780529976,
0.01654992252588272,
0.007520339451730251,
0.042362280189991,
0.054919175803661346,
0.058023903518915176,
-0.009296933189034462,
-0.028460001572966576,
-0.08638041466474533,
-0.014747454784810543,
-0.0006505912751890719,
-0.012582769617438316,
-0.0453290194272995,
-0.062094546854496,
0.01726573333144188,
-0.006640666630119085,
0.013574558310210705,
0.015928976237773895,
0.013393448665738106,
-0.07320257276296616,
0.0842415988445282,
0.0317717082798481,
-0.04567398875951767,
-0.01658441871404648,
-0.007416848558932543,
-0.0031586289405822754,
-0.044328607618808746,
0.027528582140803337,
0.009115824475884438,
-0.008481943048536777,
0.012151557952165604,
0.0554366298019886,
-0.03680826723575592,
0.015497763641178608,
-0.0011836773483082652,
0.05133149027824402,
-0.03749820590019226,
-0.03587684780359268,
-0.0213018786162138,
-0.0011437901994213462,
-0.03573886305093765,
-0.02495855838060379,
0.017869431525468826,
0.03736021742224693,
0.04753682389855385,
-0.015170042403042316,
-0.041120387613773346,
-0.05578160285949707,
-0.027597576379776,
0.07968800514936447,
0.012979485094547272,
-0.009736769832670689,
0.044018134474754333,
-0.028132280334830284,
0.06488880515098572,
-0.028253018856048584,
0.016627538949251175,
-0.01438523642718792,
-0.0018132469849660993,
0.004613969940692186,
0.0213018786162138,
0.028615236282348633,
0.001333523541688919,
0.008757918141782284,
0.003182345535606146,
-0.03949902951717377,
-0.011953200213611126,
0.006899394094944,
0.02440660633146763,
-0.01611008495092392,
-0.0446045845746994,
0.023302704095840454,
0.03760169818997383,
0.044708073139190674,
-0.04405263066291809,
-0.014833697117865086,
-0.002535527339205146,
-0.027528582140803337,
-0.04039595276117325,
0.00561006972566247,
-0.020853418856859207,
-0.017050128430128098,
0.05164196342229843,
0.011487491428852081,
0.022457526996731758,
-0.04350068047642708,
0.039981987327337265,
0.016963886097073555,
0.04201731085777283,
-0.0980403870344162,
-0.042293284088373184,
0.0006074701086618006,
-0.010832048952579498,
-0.040430448949337006,
0.03303084895014763,
0.036532290279865265,
0.013143345713615417,
-0.00829220935702324,
-0.028460001572966576,
0.00035467196721583605,
0.04253476485610008,
-0.01700700633227825,
0.017524460330605507,
0.008223215118050575,
-0.004859760869294405,
0.04174133390188217,
0.026269443333148956,
-0.03349655866622925,
-0.026631660759449005,
0.0049805003218352795,
0.012815624475479126,
-0.0012365008005872369,
-0.07554836571216583,
-0.07927403599023819,
0.0005411712336353958,
-0.039050571620464325,
-0.023406194522976875,
0.02014623023569584,
-0.06492330133914948,
0.00036356571945361793,
-0.025010304525494576,
-0.06154259666800499,
0.02276800014078617,
-0.001965249190106988,
-0.052745867520570755,
-0.036394305527210236,
0.014540472999215126,
0.023302704095840454,
0.04256926104426384,
-0.06402637809515,
-0.022595515474677086,
-0.07451345771551132,
0.03316883742809296,
0.04208630323410034,
-0.06537175923585892,
-0.06050768494606018,
-0.036394305527210236,
0.006450933404266834,
0.0411548875272274,
0.08762230724096298,
0.03798116371035576,
-0.019490787759423256,
0.015558133833110332,
-0.07527238875627518,
-0.015420145355165005,
0.005437585059553385,
0.038119152188301086,
0.008218903094530106,
-0.03798116371035576,
0.001509242458269,
-0.030788546428084373,
-0.005071054678410292,
0.01645505428314209,
-0.02369941957294941,
-0.10190404951572418,
-0.01771419495344162,
-0.035238657146692276,
0.0783771201968193,
0.006343130487948656,
-0.028942957520484924,
-0.0593692846596241,
-0.044846061617136,
0.0229059886187315,
0.0411548875272274,
0.00919344276189804,
-0.03680826723575592,
0.015109673142433167,
-0.04646741971373558,
-0.031926944851875305,
0.09321081638336182,
-0.02532077580690384,
0.005739433690905571,
0.07865308970212936,
-0.07361653447151184,
0.05633355304598808,
0.023716667667031288,
0.04256926104426384,
0.016273945569992065,
-0.03635980561375618,
-0.013350327499210835,
-0.022871490567922592,
-0.028391007333993912,
0.03070230409502983,
-0.03228916600346565,
0.03874009847640991,
-0.0014715114375576377
] |
725,259 | dockerfile_parse.parser | _modify_instruction_label | null | def _modify_instruction_label(self, label_key, instr_value):
self._modify_instruction_label_env('LABEL', label_key, instr_value)
| (self, label_key, instr_value) | [
0.023162100464105606,
-0.04780549928545952,
-0.024811727926135063,
0.04874814301729202,
-0.05272071436047554,
-0.01677400805056095,
0.036022454500198364,
0.0435299389064312,
0.066153384745121,
-0.07628680765628815,
-0.025047387927770615,
-0.03693143278360367,
0.08477059751749039,
-0.006733168847858906,
-0.008803618140518665,
-0.010402746498584747,
0.008479584939777851,
0.032033052295446396,
-0.03208354860544205,
-0.03045075759291649,
-0.008020887151360512,
0.010066087357699871,
0.04188030958175659,
-0.03339651972055435,
-0.0019494628068059683,
0.033716343343257904,
0.001995753264054656,
0.0011709401151165366,
0.053932685405015945,
-0.060127198696136475,
-0.010747821070253849,
-0.07143892347812653,
-0.05251871794462204,
-0.03683043271303177,
0.027403997257351875,
0.00597568741068244,
-0.05534664914011955,
-0.011572633869946003,
0.011446387507021427,
-0.0433616079390049,
0.022707613185048103,
-0.02875063195824623,
-0.021142151206731796,
-0.003993610851466656,
0.011421137489378452,
0.010293331928551197,
-0.006341803353279829,
-0.0018032267689704895,
0.062214482575654984,
0.005058293230831623,
-0.03760474920272827,
-0.01755673810839653,
0.013845078647136688,
0.004822632297873497,
0.0016927607357501984,
0.03646010905504227,
0.013601001352071762,
0.0163868498057127,
-0.018381550908088684,
-0.0017001251690089703,
0.018819207325577736,
0.021259980276226997,
-0.05750126391649246,
0.019122200086712837,
0.0008016679203137755,
-0.020687662065029144,
0.025316715240478516,
0.009232858195900917,
-0.0026638100389391184,
-0.05881423130631447,
0.006783667951822281,
-0.08153867721557617,
-0.0017453636974096298,
-0.01192612573504448,
-0.016529930755496025,
-0.012027123011648655,
-0.07164091616868973,
0.015149630606174469,
0.030316093936562538,
-0.023515593260526657,
-0.0221521258354187,
-0.05194639787077904,
0.007292863447219133,
-0.031999386847019196,
-0.06049752235412598,
-0.004662719555199146,
0.04672819375991821,
-0.020569831132888794,
0.04639153555035591,
-0.002442877972498536,
-0.0009999808389693499,
-0.011774629354476929,
-0.007726311217993498,
0.05248505249619484,
0.030080432072281837,
-0.015065466053783894,
0.05692894384264946,
-0.013937659561634064,
-0.0031182989478111267,
0.0215629730373621,
0.07453618198633194,
-0.13486537337303162,
-0.0027584952767938375,
-0.015907112509012222,
0.04615587368607521,
-0.014754056930541992,
0.018802374601364136,
0.021360978484153748,
-0.011193893849849701,
-0.030316093936562538,
-0.03790774196386337,
-0.033817339688539505,
-0.020132174715399742,
-0.06170949339866638,
-0.025249384343624115,
0.05285537615418434,
0.013542085886001587,
-0.029928935691714287,
0.028094148263335228,
0.012952934019267559,
0.0020167946349829435,
0.01103398110717535,
-0.04773816838860512,
-0.015107547864317894,
0.01982918195426464,
0.044741906225681305,
0.020536165684461594,
0.06810600310564041,
0.04009602218866348,
-0.03649377450346947,
-0.018667710945010185,
-0.03252120688557625,
-0.010697321966290474,
0.05655862018465996,
0.07999004423618317,
-0.051744405180215836,
-0.03932170569896698,
0.009266523644328117,
0.013609417714178562,
0.014476313255727291,
0.026932675391435623,
-0.026983175426721573,
0.00987250916659832,
0.006682670209556818,
0.0442705862224102,
-0.054033681750297546,
0.002823722781613469,
0.019189530983567238,
-0.018347885459661484,
-0.013929243199527264,
0.038547392934560776,
0.03649377450346947,
-0.04171198233962059,
-0.03571946173906326,
0.027908984571695328,
0.044607244431972504,
0.03501247987151146,
-0.03258853778243065,
0.02614152804017067,
-0.020199507474899292,
0.01972818560898304,
-0.018533047288656235,
-0.023717587813735008,
-0.02437407150864601,
-0.0332450233399868,
0.060228195041418076,
-0.0014023928670212626,
0.0668603703379631,
-0.03487781435251236,
0.003103570081293583,
-0.02196696400642395,
-0.10274815559387207,
0.049017470329999924,
0.09446635842323303,
0.016647759824991226,
0.025215717032551765,
0.013533669523894787,
-0.012355364859104156,
-0.003095153719186783,
-0.005580113735049963,
0.026646515354514122,
0.06117083877325058,
-0.0645710900425911,
0.013676749542355537,
0.0038463228847831488,
0.010470077395439148,
0.007187657989561558,
0.03784041106700897,
0.01733791083097458,
-0.022455118596553802,
0.05433667451143265,
-0.04144265502691269,
0.02435723878443241,
0.0445735789835453,
-0.0324707068502903,
-0.031898386776447296,
0.012254367582499981,
-0.05258604884147644,
0.012001873925328255,
0.02422257512807846,
0.022421453148126602,
0.0222026240080595,
0.02821197733283043,
0.0641670972108841,
0.018331052735447884,
0.0160838570445776,
0.02444140426814556,
0.04602120816707611,
-0.017102248966693878,
-0.040533676743507385,
0.034204497933387756,
-0.02814464643597603,
0.029474446550011635,
0.029373450204730034,
0.0218154676258564,
0.008546916767954826,
-0.07063094526529312,
0.06325811892747879,
-0.049387793987989426,
-0.028952626511454582,
-0.028009982779622078,
0.04797383025288582,
0.01964402012526989,
-0.06268580257892609,
-0.014543645083904266,
-0.017093833535909653,
0.0664227083325386,
0.022791776806116104,
0.025905868038535118,
0.027168337255716324,
0.0076463548466563225,
-0.008290214464068413,
-0.0006559579633176327,
-0.019307361915707588,
0.031157739460468292,
-0.020721327513456345,
0.02193329855799675,
-0.007410693913698196,
0.007377028465270996,
0.03996135666966438,
-0.001975764287635684,
-0.003606453537940979,
0.007069827523082495,
0.006943580694496632,
0.009426436387002468,
0.012195452116429806,
0.01759040355682373,
0.0166561771184206,
-0.013903994113206863,
-0.011353806592524052,
0.04602120816707611,
-0.029962601140141487,
-0.016883421689271927,
-0.016092274338006973,
0.014922386035323143,
-0.005096167325973511,
0.02669701538980007,
-0.03127557039260864,
0.04211597144603729,
0.03058541938662529,
-0.08584790676832199,
0.034204497933387756,
-0.029356617480516434,
-0.03982669487595558,
0.02629302442073822,
0.0655473992228508,
0.00026235688710585237,
0.0331103578209877,
0.008092427626252174,
-0.04895013943314552,
0.049017470329999924,
0.056019965559244156,
-0.0019210572354495525,
0.023229433223605156,
-0.018095390871167183,
0.015949193388223648,
0.01433323323726654,
0.01747257262468338,
0.025788037106394768,
-0.06164216250181198,
0.06100251153111458,
-0.05517831817269325,
-0.00817659217864275,
0.02888529561460018,
-0.05208106338977814,
-0.011867210268974304,
0.03969202935695648,
0.027925819158554077,
0.020149007439613342,
-0.014821387827396393,
0.029592277482151985,
0.09338905662298203,
0.05477432906627655,
0.053259365260601044,
-0.045112233608961105,
0.00992300733923912,
-0.05995887145400047,
0.012826686725020409,
0.0075285243801772594,
0.04147632047533989,
-0.03457482159137726,
-0.03231921046972275,
-0.07662346214056015,
-0.040500011295080185,
-0.018886538222432137,
-0.017910229042172432,
0.10039155185222626,
0.029979435727000237,
-0.043024949729442596,
-0.015814529731869698,
0.02846447192132473,
0.038177069276571274,
-0.00299205188639462,
0.018448883667588234,
0.027504995465278625,
-0.02003117837011814,
0.02420574240386486,
-0.011025563813745975,
0.013794579543173313,
0.008113468997180462,
-0.010335414670407772,
-0.06968829780817032,
-0.0670960322022438,
0.03514714166522026,
0.03132607042789459,
0.003341335104778409,
0.12328432500362396,
-0.02408791147172451,
0.054033681750297546,
-0.038547392934560776,
0.027690157294273376,
-0.03444015979766846,
0.018953870981931686,
-0.022673945873975754,
-0.028009982779622078,
0.009199191816151142,
-0.018381550908088684,
-0.00149707798846066,
-0.051778070628643036,
0.018381550908088684,
-0.03524813801050186,
-0.008399628102779388,
-0.08221199363470078,
0.005310786888003349,
0.060632187873125076,
-0.0326053723692894,
-0.0005881002289243042,
0.005184540059417486,
0.025333547964692116,
0.010688905604183674,
-0.0440012589097023,
0.04659352824091911,
0.01759040355682373,
-0.019240031018853188,
0.01772506721317768,
0.010756237432360649,
-0.006337595172226429,
-0.0670623630285263,
-0.05295637249946594,
-0.05723193660378456,
0.02642768807709217,
-0.013053931295871735,
0.055750638246536255,
-0.010823569260537624,
-0.02652868628501892,
-0.011210726574063301,
-0.03147756680846214,
0.020973822101950645,
0.004877339117228985,
0.027690157294273376,
0.01211970392614603,
0.026798011735081673,
0.012389031238853931,
0.04975811764597893,
0.009258107282221317,
0.02439090423285961,
-0.021310480311512947,
-0.03699876368045807,
-0.07648880034685135,
0.004321852698922157,
0.03109040856361389,
-0.0163531843572855,
-0.006800500676035881,
0.05871323496103287,
-0.0036106619518250227,
0.031814225018024445,
0.08578057587146759,
0.002712204586714506,
0.0432606115937233,
-0.007730519864708185,
0.002499688882380724,
0.02806048095226288,
0.046795524656772614,
0.01732107810676098,
0.04087033495306969,
-0.054033681750297546,
-0.01935786008834839,
-0.027538660913705826,
0.04147632047533989,
-0.011235975660383701,
-0.035988789051771164,
0.0335816815495491,
-0.036157116293907166,
0.042620960623025894,
0.038143403828144073,
0.018398383632302284,
-0.05538031458854675,
0.03457482159137726,
-0.04787283018231392,
-0.006619546562433243,
-0.044741906225681305,
-0.015764031559228897,
-0.0007779966108500957,
-0.040365349501371384,
-0.02191646583378315,
-0.005845232401043177,
0.0083280885592103,
-0.03568579629063606,
0.002750078681856394,
-0.028902128338813782,
-0.029844772070646286,
0.006606922019273043,
0.03747008368372917,
0.008408044464886189,
-0.024895891547203064,
-0.016748758032917976,
0.04871447756886482,
-0.018246887251734734,
0.022354120388627052,
0.010756237432360649,
-0.06847632676362991,
0.008197633549571037,
-0.017051750794053078,
0.06894765049219131,
-0.015031799674034119,
-0.0666247084736824,
0.0021461977157741785,
-0.024744395166635513,
0.016698259860277176,
0.018617212772369385,
-0.0324033759534359,
-0.0074569848366081715,
0.040735673159360886,
0.010444828309118748,
-0.031376566737890244,
0.009805177338421345,
-0.056188296526670456,
0.012262783944606781,
0.024744395166635513,
-0.0074569848366081715,
0.014240652322769165,
0.0047342595644295216,
0.004109336994588375,
0.022354120388627052,
-0.010082921013236046,
-0.01947569102048874,
-0.029188288375735283,
-0.07292021811008453,
0.026747513562440872,
-0.005933605134487152,
-0.036089785397052765,
0.05416834354400635,
-0.04103866592049599,
0.004220855422317982,
0.02417207695543766,
0.008971947245299816,
0.03713342547416687,
0.01330642495304346,
0.026798011735081673,
-0.007398069370537996,
-0.026781179010868073,
-0.044943902641534805,
0.05760226026177406,
0.035786792635917664,
0.0166225116699934,
-0.012851936742663383,
-0.029794272035360336,
0.023313596844673157,
-0.06117083877325058,
-0.0002990473876707256,
-0.008643705397844315,
0.016748758032917976,
0.017927061766386032,
0.013516836799681187,
0.006922539323568344,
-0.02832980826497078,
0.0663217157125473,
0.02381858602166176,
0.01648784801363945,
0.007751560769975185,
-0.01536004152148962,
0.06086784601211548,
0.01972818560898304,
-0.025434546172618866,
0.025586042553186417,
-0.005769484210759401,
-0.02642768807709217,
-0.004877339117228985,
-0.000495519139803946,
-0.011412721127271652,
-0.026899009943008423,
-0.03753741830587387,
-0.05433667451143265,
-0.029137788340449333,
-0.019038034602999687,
0.03082108125090599,
-0.014686725102365017,
0.042923953384160995,
0.017144331708550453,
0.004023068584501743,
0.013567335903644562,
0.03090524487197399,
0.00003445488982833922,
0.005184540059417486,
0.012414280325174332,
0.01546103972941637,
-0.01655517891049385,
0.033716343343257904,
-0.029844772070646286,
-0.000745908881071955,
0.011320140212774277,
-0.027925819158554077,
0.02649502083659172,
-0.07244890183210373,
-0.001116233179345727,
-0.05864590033888817,
-0.038749389350414276,
-0.04228430241346359,
-0.005117208231240511,
0.02634352445602417,
-0.07514216750860214,
-0.010343831032514572,
0.0644364282488823,
0.01767456904053688,
0.040803004056215286,
0.03132607042789459,
0.01742207445204258,
-0.008971947245299816,
0.002442877972498536,
0.00124037591740489,
-0.03646010905504227,
-0.02639402262866497,
-0.006964621599763632,
0.010226000100374222,
0.026730680838227272,
0.03319452330470085,
-0.02008167654275894,
-0.011665215715765953,
-0.02853180281817913,
-0.006720544304698706,
-0.02856547012925148,
0.00006680566002614796,
-0.025367213413119316,
-0.017977561801671982,
-0.025653373450040817,
0.05500999093055725,
0.051306746900081635,
0.0327400341629982,
-0.006670045666396618,
0.07877808064222336,
-0.04824315756559372,
-0.013861911371350288,
0.12160103023052216,
-0.03524813801050186,
0.03235287591814995,
0.022690778598189354,
-0.049185797572135925,
-0.03773941099643707,
0.020552998408675194,
-0.020300503820180893,
0.038581058382987976,
-0.04117332771420479,
0.057871587574481964,
-0.009392770938575268,
-0.03747008368372917,
0.015848197042942047,
0.07945139706134796,
-0.005272912792861462,
0.01984601467847824,
0.007444359827786684,
-0.11311724036931992,
0.06914964318275452,
0.04161098599433899,
0.02378491871058941,
0.02006484381854534,
0.033851008862257004,
0.013382173143327236,
0.042721956968307495,
-0.03085474669933319,
0.009350688196718693,
-0.09884291887283325,
-0.005862065125256777,
-0.0056053632870316505,
-0.02445823699235916,
-0.0022934856824576855,
-0.05295637249946594,
-0.0108824847266078,
-0.038581058382987976,
0.04087033495306969,
0.04898380488157272,
-0.0007006704108789563,
-0.07170824706554413,
0.03531547263264656,
0.05517831817269325,
-0.03477681800723076,
0.03683043271303177,
-0.0010378548176959157,
-0.005765276029706001,
-0.05453866720199585,
0.009072945453226566,
0.011825128458440304,
0.029373450204730034,
0.02205112762749195,
0.036561109125614166,
-0.026865344494581223,
-0.023717587813735008,
0.028110980987548828,
0.016024941578507423,
-0.024693896993994713,
-0.031241904944181442,
-0.012203868478536606,
-0.018701376393437386,
-0.04157731682062149,
-0.02856547012925148,
-0.02196696400642395,
0.01679084077477455,
0.035854123532772064,
0.0019094846211373806,
-0.010125002823770046,
-0.031932052224874496,
-0.05847757309675217,
0.05928555130958557,
-0.035854123532772064,
-0.004586971364915371,
0.0436982661485672,
-0.0437655970454216,
0.028952626511454582,
-0.008488001301884651,
0.01727057807147503,
0.038143403828144073,
-0.027353499084711075,
-0.06332545727491379,
-0.003202463500201702,
0.0019463066710159183,
-0.021327313035726547,
0.03787407651543617,
-0.04632420092821121,
-0.07298754900693893,
-0.011235975660383701,
-0.00443547498434782,
0.03050125576555729,
-0.02870013192296028,
-0.0441695898771286,
0.031982552260160446,
0.045145899057388306,
0.05975687503814697,
-0.020435167476534843,
0.029541779309511185,
0.006350220181047916,
-0.03693143278360367,
-0.05073442682623863,
-0.005655861925333738,
0.021041152998805046,
-0.023549258708953857,
0.051609739661216736,
0.03085474669933319,
0.0033792091999202967,
-0.049084801226854324,
0.029457613825798035,
-0.07527682930231094,
0.04891647398471832,
-0.051205750554800034,
-0.05894889310002327,
0.013331674970686436,
0.0028910543769598007,
-0.047367844730615616,
0.009636848233640194,
0.020502500236034393,
0.02848130464553833,
-0.022337287664413452,
-0.031140906736254692,
-0.026899009943008423,
0.03561846539378166,
-0.03511347621679306,
-0.0012603651266545057,
0.033867839723825455,
0.024542400613427162,
0.012178619392216206,
0.02171446941792965,
-0.035955123603343964,
-0.0441695898771286,
0.024592898786067963,
0.003669577185064554,
-0.008252340368926525,
-0.07924939692020416,
-0.025636540725827217,
-0.010066087357699871,
-0.07386286556720734,
-0.00045212177792564034,
0.024929558858275414,
-0.04171198233962059,
-0.0161175224930048,
-0.010301748290657997,
-0.05716460570693016,
0.02228678949177265,
0.002562812529504299,
-0.06894765049219131,
-0.05251871794462204,
-0.02816147916018963,
0.03292519599199295,
0.047031186521053314,
-0.012927684001624584,
-0.040971335023641586,
-0.04652619734406471,
0.01757357083261013,
0.005479116458445787,
-0.0883391797542572,
-0.08140401542186737,
-0.044708240777254105,
0.009830426424741745,
0.03289153054356575,
0.04167831689119339,
0.0433279424905777,
0.0016601469833403826,
-0.020367836579680443,
-0.04204864054918289,
0.03571946173906326,
-0.00350756011903286,
-0.01728741079568863,
0.03669577091932297,
-0.026848511770367622,
0.04770450294017792,
-0.05628929287195206,
-0.007751560769975185,
0.011707297526299953,
-0.00390944629907608,
-0.05942021682858467,
-0.03442332521080971,
0.014981300570070744,
0.05628929287195206,
0.03292519599199295,
0.0030299259815365076,
-0.03514714166522026,
0.025872202590107918,
-0.046963851898908615,
0.05278804525732994,
-0.024980057030916214,
-0.0025102095678448677,
0.03938904032111168,
0.018230054527521133,
0.005529615096747875,
0.08416461199522018,
-0.04171198233962059,
0.01546103972941637,
0.09830426424741745,
-0.07063094526529312,
0.060160864144563675,
0.04639153555035591,
0.04618953913450241,
0.055649641901254654,
-0.009678930044174194,
0.006758418399840593,
-0.014560477808117867,
0.015780864283442497,
0.012759354896843433,
0.0006312346085906029,
-0.029743773862719536,
-0.005891522858291864
] |
725,260 | dockerfile_parse.parser | _modify_instruction_label_env |
set <INSTRUCTION> instr_key to instr_value
:param instr_key: str, label key
:param instr_value: str or None, new label/env value or None to remove
| def _modify_instruction_label_env(self, instruction, instr_key, instr_value):
"""
set <INSTRUCTION> instr_key to instr_value
:param instr_key: str, label key
:param instr_value: str or None, new label/env value or None to remove
"""
if instruction == 'LABEL':
instructions = self.labels
elif instruction == 'ENV':
instructions = self.envs
elif instruction == 'ARG':
instructions = self.args
else:
raise ValueError("Unknown instruction '%s'" % instruction)
if instr_key not in instructions:
raise KeyError('%s not in %ss' % (instr_key, instruction))
# extract target instructions from the final stage only
candidates = []
for insn in self.structure:
if insn['instruction'] == 'FROM':
candidates = []
if insn['instruction'] == instruction:
candidates.append(insn)
# Find where in the file to put the changes
content = startline = endline = None
for candidate in candidates:
words = list(WordSplitter(candidate['value']).split(dequote=False))
# LABEL/ENV/ARG syntax is one of two types:
if '=' not in words[0]: # LABEL/ENV/ARG name value
# Remove quotes from key name and see if it's the one
# we're looking for.
if WordSplitter(words[0]).dequote() == instr_key:
if instr_value is None:
# Delete this line altogether
content = None
else:
# Adjust label/env value
words[1:] = [quote(instr_value)]
# Now reconstruct the line
content = " ".join([instruction] + words) + '\n'
startline = candidate['startline']
endline = candidate['endline']
break
else: # LABEL/ENV/ARG "name"="value"
for index, token in enumerate(words):
key, _ = token.split("=", 1)
if WordSplitter(key).dequote() == instr_key:
if instr_value is None:
# Delete this label
del words[index]
else:
# Adjust label/env value
words[index] = "{0}={1}".format(key,
quote(instr_value))
if len(words) == 0:
# We removed the last label/env, delete the whole line
content = None
else:
# Now reconstruct the line
content = " ".join([instruction] + words) + '\n'
startline = candidate['startline']
endline = candidate['endline']
break
# We know the label/env we're looking for is there
assert startline and endline
# Re-write the Dockerfile
lines = self.lines
del lines[startline:endline + 1]
if content:
lines.insert(startline, content)
self.lines = lines
| (self, instruction, instr_key, instr_value) | [
0.044215988367795944,
-0.062381647527217865,
-0.0686430037021637,
0.020349403843283653,
-0.08186142146587372,
-0.0377613827586174,
0.007348395884037018,
0.02813744731247425,
0.05619759485125542,
-0.05751170590519905,
-0.01889035291969776,
-0.015595411881804466,
0.028601251542568207,
0.019711673259735107,
0.011179610155522823,
0.021779466420412064,
0.03845708817243576,
0.03146137669682503,
-0.024658916518092155,
-0.0441773384809494,
0.014803079888224602,
-0.018378235399723053,
0.015479461289942265,
-0.008034438826143742,
0.041587766259908676,
0.009416189044713974,
0.02116106078028679,
-0.028156772255897522,
0.054883480072021484,
-0.04348163306713104,
-0.025741126388311386,
-0.07173503190279007,
-0.03662119805812836,
-0.035481009632349014,
0.051327649503946304,
-0.036563221365213394,
-0.017170412465929985,
0.0015411822823807597,
0.01184632908552885,
-0.030514443293213844,
-0.008338810876011848,
-0.027828244492411613,
-0.02547057345509529,
-0.027306465432047844,
-0.0044496203772723675,
0.015556761994957924,
-0.002872203243896365,
-0.020890507847070694,
0.03810923546552658,
-0.023596031591296196,
0.0026692890096455812,
-0.010000775568187237,
0.0370270237326622,
0.027325790375471115,
0.006758978124707937,
0.012938201427459717,
0.0003098066372331232,
0.016310442239046097,
0.002886697184294462,
-0.01219418179243803,
-0.001567754428833723,
0.018242960795760155,
-0.03756812959909439,
0.02562517486512661,
-0.03331659361720085,
-0.010996021330356598,
-0.0032128095626831055,
-0.014271637424826622,
0.000629879767075181,
-0.06748349219560623,
-0.021412288770079613,
-0.07923319190740585,
0.009657753631472588,
-0.02724848873913288,
0.005116338841617107,
-0.004488270729780197,
-0.0725853368639946,
0.03841843828558922,
0.028040820732712746,
-0.06110618636012077,
-0.01852317526936531,
-0.017382990568876266,
0.01486105564981699,
-0.05496078357100487,
0.00010409925016574562,
0.03797395899891853,
0.04247672110795975,
0.01600124128162861,
0.04661230742931366,
-0.04862212762236595,
-0.0022175631020218134,
0.008039270527660847,
-0.03113284893333912,
0.06272950023412704,
0.058284711092710495,
-0.006039115600287914,
0.03178990259766579,
-0.03522978350520134,
-0.019885599613189697,
-0.003026804653927684,
0.0451822467148304,
-0.06725159287452698,
-0.021934067830443382,
-0.003838461823761463,
0.018629463389515877,
-0.005241952370852232,
0.0019953236915171146,
0.048158321529626846,
0.002355254953727126,
-0.06524176895618439,
-0.051520902663469315,
-0.05302826687693596,
-0.024446340277791023,
-0.07100067287683487,
0.015247559174895287,
0.02722916379570961,
-0.04680556058883667,
0.007130987476557493,
0.00765276700258255,
-0.010087738744914532,
0.008763964287936687,
0.0000982866040430963,
-0.06311600655317307,
0.011266574263572693,
0.02454296499490738,
-0.009942799806594849,
0.016600320115685463,
0.07289454340934753,
0.037471503019332886,
-0.049240533262491226,
-0.040660157799720764,
-0.03130677342414856,
-0.016948172822594643,
0.03078499436378479,
0.06118348613381386,
-0.059366922825574875,
-0.015923939645290375,
0.0022803700994700193,
0.022726399824023247,
-0.0010755665134638548,
0.04108531028032303,
-0.04116261005401611,
0.00017709705571178347,
-0.019170567393302917,
-0.000326112232869491,
-0.04931783303618431,
0.022745724767446518,
-0.003340838709846139,
-0.039056167006492615,
-0.004258784465491772,
0.03327794373035431,
0.021972717717289925,
-0.09585284441709518,
-0.0693773552775383,
0.0632319524884224,
0.01742164045572281,
-0.0034712834749370813,
-0.012909213081002235,
0.007546478882431984,
-0.00969640351831913,
0.012010592967271805,
-0.0087977834045887,
0.0008817108464427292,
0.0000507285694766324,
0.006377305835485458,
0.05894176661968231,
-0.00784118752926588,
0.022127319127321243,
-0.009904148988425732,
0.007126156240701675,
-0.040660157799720764,
-0.05735710263252258,
0.030900945886969566,
0.07281723618507385,
0.015334522351622581,
0.06856570392847061,
0.028156772255897522,
-0.05411047488451004,
-0.0035316748544573784,
0.009044179692864418,
-0.01884203962981701,
0.03368376940488815,
-0.04205156862735748,
0.024813517928123474,
-0.0029591666534543037,
0.01922854408621788,
-0.017160750925540924,
0.012957526370882988,
0.027692968025803566,
0.002038805279880762,
0.030707694590091705,
-0.0359254889190197,
0.007275926414877176,
0.0370270237326622,
-0.013817496597766876,
-0.01603022776544094,
-0.0011341458884999156,
-0.05820741131901741,
0.040466904640197754,
-0.02170216478407383,
-0.017344338819384575,
-0.005976308602839708,
0.06408226490020752,
0.05921231955289841,
-0.016416732221841812,
0.041201259940862656,
0.015962589532136917,
0.006966723594814539,
-0.04610985517501831,
0.015537436120212078,
0.0018503849860280752,
-0.053337469696998596,
0.024272413924336433,
-0.012319795787334442,
0.06110618636012077,
-0.008585206232964993,
-0.08016080409288406,
0.08897308260202408,
-0.06412091106176376,
0.0161751676350832,
-0.01148881297558546,
0.04340432956814766,
0.004237043205648661,
-0.009551465511322021,
-0.010445253923535347,
-0.02865922637283802,
0.029238982126116753,
0.021277012303471565,
0.034108925610780716,
0.026436831802129745,
0.004328838083893061,
-0.025335296988487244,
-0.004159742966294289,
-0.018242960795760155,
0.09461603313684464,
-0.012329458259046078,
-0.005154989194124937,
-0.005121170077472925,
0.04607120528817177,
0.013943109661340714,
-0.03236965835094452,
-0.019866274669766426,
0.01764388009905815,
-0.00961427204310894,
0.007647935766726732,
0.007981294766068459,
0.04997488856315613,
-0.00844993069767952,
-0.008411279879510403,
-0.044911693781614304,
0.06242029741406441,
0.009309899993240833,
-0.0236926581710577,
-0.014416576363146305,
0.030475791543722153,
-0.03882426396012306,
0.04348163306713104,
-0.053298816084861755,
0.08247982710599899,
-0.006116416305303574,
0.004012388177216053,
-0.025837751105427742,
0.004961737431585789,
-0.039404019713401794,
0.028369348496198654,
0.0681018978357315,
0.04962703585624695,
-0.008367798291146755,
-0.025354621931910515,
-0.030727019533514977,
0.02191474288702011,
0.0767982229590416,
-0.0323503352701664,
0.0345534048974514,
-0.033355243504047394,
0.020542655140161514,
0.004157327115535736,
-0.0096915727481246,
0.03948132321238518,
-0.013324704021215439,
0.06357980519533157,
-0.02778959460556507,
0.0029760762117803097,
0.04788776859641075,
-0.02222394570708275,
-0.04259267449378967,
-0.01711243763566017,
-0.006005296483635902,
0.049742985516786575,
-0.012938201427459717,
0.03866966441273689,
0.09152400493621826,
0.03468867763876915,
0.006894254125654697,
-0.033161990344524384,
0.052409861236810684,
-0.06802459806203842,
0.00770591152831912,
-0.004809551406651735,
-0.010126388631761074,
-0.01244540885090828,
-0.0006908748182468116,
-0.010358290746808052,
-0.042785923928022385,
-0.03325861692428589,
0.008208366110920906,
0.08093380928039551,
-0.019131917506456375,
-0.009367875754833221,
-0.028060145676136017,
0.04008040204644203,
0.00818420946598053,
0.009392032399773598,
0.021972717717289925,
0.018030382692813873,
-0.04680556058883667,
0.029606159776449203,
0.018252622336149216,
0.03008928894996643,
0.0015568840317428112,
-0.008923397399485111,
-0.03449542820453644,
-0.05237121134996414,
0.00978819839656353,
0.046032555401325226,
-0.03420554846525192,
0.140223428606987,
-0.03206045553088188,
0.07985159754753113,
-0.003937503322958946,
0.032678861171007156,
-0.012358445674180984,
0.010116726160049438,
0.03221505880355835,
-0.0349205806851387,
-0.022726399824023247,
-0.037838682532310486,
-0.008783289231359959,
-0.005348240491002798,
-0.007802537176758051,
0.024987444281578064,
-0.012058906257152557,
-0.03911414369940758,
-0.0035002713557332754,
0.08448964357376099,
-0.03866966441273689,
0.04684421047568321,
-0.005932827014476061,
0.013991422951221466,
0.07204423099756241,
-0.03258223459124565,
0.05283501371741295,
0.04379083588719368,
0.0035510000307112932,
0.008807445876300335,
-0.026108304038643837,
-0.03824451193213463,
-0.09152400493621826,
-0.0017006149282678962,
-0.08673135936260223,
0.03327794373035431,
-0.012600010260939598,
0.01387547142803669,
0.016793573275208473,
-0.005010050255805254,
-0.03824451193213463,
-0.04147181287407875,
0.013469642959535122,
0.018416887149214745,
0.004070363938808441,
0.03866966441273689,
0.01848452538251877,
0.0434429794549942,
-0.004319175612181425,
0.02757701650261879,
-0.010657831095159054,
-0.007425696589052677,
-0.030301865190267563,
-0.03343254327774048,
0.016638971865177155,
0.008140727877616882,
0.03899819403886795,
-0.021489588543772697,
0.04390678554773331,
-0.027828244492411613,
0.019653696566820145,
0.07985159754753113,
-0.014300625771284103,
0.05360801890492439,
0.008445098996162415,
0.000643769686575979,
0.029780086129903793,
0.01745062880218029,
-0.008594869635999203,
0.0417037159204483,
-0.05731845274567604,
-0.0185135118663311,
-0.010986358858644962,
0.034959230571985245,
0.011479150503873825,
-0.03590616583824158,
0.0241951122879982,
0.0008986204047687352,
0.042283471673727036,
0.00801028311252594,
-0.013517956249415874,
-0.029258307069540024,
0.011247248388826847,
-0.025915052741765976,
0.0009421019931323826,
-0.006899085361510515,
-0.011942954733967781,
0.019131917506456375,
-0.04788776859641075,
-0.026804009452462196,
0.0095997778698802,
0.03903684392571449,
-0.02672670967876911,
0.008503074757754803,
-0.052603110671043396,
-0.029838060960173607,
0.05032274127006531,
0.012281144969165325,
0.018416887149214745,
-0.032833464443683624,
0.013914122246205807,
0.0014699207386001945,
-0.029857387766242027,
0.006116416305303574,
0.023054927587509155,
-0.04425463825464249,
0.008594869635999203,
-0.06071968376636505,
0.08255712687969208,
-0.028929779306054115,
-0.0508638471364975,
0.019170567393302917,
-0.022861676290631294,
0.04935648292303085,
0.027692968025803566,
-0.051327649503946304,
-0.019441120326519012,
0.039771199226379395,
0.03128745034337044,
-0.04997488856315613,
0.029683461412787437,
-0.05036139115691185,
0.028234072029590607,
0.012947863899171352,
-0.0005072857020422816,
0.036022115498781204,
0.020330078899860382,
-0.0313454233109951,
-0.015112282708287239,
-0.0006812122301198542,
-0.0409693606197834,
0.0070923371240496635,
-0.03155800327658653,
0.0015943264588713646,
-0.00211248267441988,
0.0032297188881784678,
0.04576200246810913,
0.00026224859175272286,
0.0073870462365448475,
0.01317976601421833,
-0.024484990164637566,
0.026224255561828613,
-0.010029762983322144,
-0.0014747519744560122,
-0.0035799876786768436,
-0.03733622655272484,
-0.05465158075094223,
0.03378039598464966,
0.04324973002076149,
0.006304836366325617,
0.008580375462770462,
0.026378856971859932,
0.0009197572944685817,
-0.06385035812854767,
0.005043869372457266,
-0.028427325189113617,
-0.006845941301435232,
0.007483671884983778,
0.0349205806851387,
-0.0005743198562413454,
-0.03505585715174675,
0.06833379715681076,
-0.021605540066957474,
0.013556606136262417,
0.01467746589332819,
-0.027886219322681427,
-0.011971942149102688,
0.030127938836812973,
-0.015759676694869995,
0.0076720924116671085,
-0.00249053118750453,
0.010657831095159054,
0.02402118593454361,
0.014513202011585236,
-0.07281723618507385,
0.00046531384577974677,
-0.025741126388311386,
-0.04483439400792122,
-0.01352761872112751,
-0.014851393178105354,
-0.005584973841905594,
-0.02009817585349083,
0.019808297976851463,
-0.008406449109315872,
-0.017721179872751236,
0.009005528874695301,
-0.014300625771284103,
0.03851506486535072,
-0.03687242418527603,
0.001335852313786745,
0.036601871252059937,
-0.03240830823779106,
0.033567819744348526,
-0.028388673439621925,
0.03662119805812836,
0.026378856971859932,
-0.036563221365213394,
0.05959882214665413,
-0.009851004928350449,
-0.01299617625772953,
-0.022455846890807152,
0.00953697133809328,
-0.055424585938453674,
0.009271250106394291,
0.007894331589341164,
-0.06779269129037857,
-0.03897886723279953,
0.0572798028588295,
0.008445098996162415,
0.0883546769618988,
0.0028118120972067118,
0.051173049956560135,
-0.04089205712080002,
0.02865922637283802,
0.0014928693417459726,
-0.02009817585349083,
0.0023141889832913876,
-0.04224482178688049,
0.036717820912599564,
0.004092104732990265,
0.030727019533514977,
0.016126854345202446,
-0.01691918633878231,
-0.04947243258357048,
-0.02293897606432438,
-0.07907859236001968,
0.03696905076503754,
0.020677931606769562,
0.07142582535743713,
-0.027364440262317657,
-0.005899007897824049,
0.05051599442958832,
0.07648902386426926,
0.005493179429322481,
0.04873807728290558,
-0.02921965718269348,
-0.023248178884387016,
0.05353071913123131,
-0.04027365520596504,
0.028755852952599525,
0.028910454362630844,
-0.044911693781614304,
-0.007184132002294064,
0.03465002775192261,
-0.00862385705113411,
0.018069034442305565,
-0.025663824751973152,
0.09268351644277573,
-0.03420554846525192,
-0.0402350015938282,
-0.03008928894996643,
0.06427551060914993,
0.020426703616976738,
0.014175011776387691,
-0.01764388009905815,
-0.09237430989742279,
0.026301555335521698,
0.026224255561828613,
0.006019790191203356,
0.009392032399773598,
0.05476753041148186,
0.026204930618405342,
0.06558962911367416,
-0.004212887026369572,
0.02494879439473152,
-0.08224792033433914,
0.033046040683984756,
0.02417578734457493,
-0.023248178884387016,
-0.020175477489829063,
-0.048892680555582047,
0.052023354917764664,
-0.03028254024684429,
0.01121826097369194,
0.019962899386882782,
-0.031944505870342255,
-0.093301922082901,
0.07015036791563034,
0.03099757246673107,
-0.04661230742931366,
0.010657831095159054,
-0.010126388631761074,
-0.03412824869155884,
-0.03484328091144562,
0.02494879439473152,
0.053492069244384766,
0.019866274669766426,
0.03961659595370293,
0.0003910327213816345,
-0.0491245798766613,
0.010851082392036915,
0.03150002658367157,
0.011440500617027283,
-0.01959572173655033,
-0.05859391391277313,
0.017170412465929985,
-0.05136629939079285,
-0.0698411613702774,
-0.03188652917742729,
-0.02794419601559639,
0.04587795212864876,
0.03182855248451233,
0.008063427172601223,
-0.051173049956560135,
-0.03341321647167206,
-0.0161751676350832,
0.057589005678892136,
-0.014909368008375168,
0.010831757448613644,
0.04657365754246712,
0.002954335417598486,
0.052564460784196854,
-0.024504315108060837,
-0.020619956776499748,
0.007420865353196859,
0.03980984911322594,
-0.07637307047843933,
0.028214747086167336,
0.024233762174844742,
-0.036234691739082336,
-0.004683937877416611,
0.014117036014795303,
-0.05445832759141922,
0.009561127983033657,
0.01581765152513981,
0.024813517928123474,
0.0014699207386001945,
-0.05360801890492439,
-0.010909058153629303,
0.07490435987710953,
0.06261354684829712,
-0.0274030901491642,
0.011740040965378284,
-0.017035137861967087,
-0.018571488559246063,
-0.03327794373035431,
0.015605074353516102,
0.007019867654889822,
-0.01005875039845705,
0.028717201203107834,
0.013508293777704239,
0.03797395899891853,
-0.00543520413339138,
0.04645770788192749,
-0.005097013432532549,
0.02920033037662506,
-0.09554363787174225,
-0.05155955255031586,
0.006628533359616995,
0.0027127705980092287,
-0.0548061802983284,
0.05387857183814049,
0.035171810537576675,
0.02278437465429306,
-0.0001570169988553971,
-0.00311859929934144,
-0.0017404730897396803,
0.050825197249650955,
-0.044757094234228134,
0.006792797241359949,
0.01600124128162861,
0.034070275723934174,
0.012339120730757713,
0.03613806888461113,
-0.03789665922522545,
-0.02224327065050602,
-0.0017634216928854585,
0.031036222353577614,
-0.005526998545974493,
-0.06385035812854767,
-0.06261354684829712,
-0.01237777154892683,
-0.041239913552999496,
-0.014039735309779644,
0.030842971056699753,
-0.022011367604136467,
-0.007348395884037018,
-0.025238672271370888,
-0.05465158075094223,
0.029432233422994614,
-0.014484214596450329,
-0.08155221492052078,
-0.03627334162592888,
-0.035693589597940445,
0.020581305027008057,
0.049240533262491226,
0.013373017311096191,
-0.018590813502669334,
-0.06311600655317307,
0.06408226490020752,
0.03204113245010376,
-0.09894486516714096,
-0.06068103387951851,
-0.032099105417728424,
-0.025180695578455925,
0.019093267619609833,
0.06609208136796951,
0.04746261611580849,
-0.0417037159204483,
-0.022668423131108284,
-0.04835157468914986,
-0.0327175110578537,
-0.01942179538309574,
-0.00044387500383891165,
0.05693195015192032,
-0.041394513100385666,
0.05194605514407158,
-0.0501294881105423,
0.010184364393353462,
0.000965654558967799,
-0.016764584928750992,
-0.056893300265073776,
-0.04398408532142639,
-0.023634683340787888,
0.07246938347816467,
0.012503384612500668,
0.0022187710274010897,
-0.04541414976119995,
0.015711363404989243,
0.010280990041792393,
0.039056167006492615,
0.020890507847070694,
0.012928538024425507,
-0.0022405118215829134,
-0.0017090697074308991,
-0.004251537378877401,
0.06334790587425232,
-0.04483439400792122,
0.007314576767385006,
0.06261354684829712,
-0.09353382140398026,
0.06825649738311768,
0.015730688348412514,
0.042979177087545395,
0.04819697141647339,
0.002030350733548403,
-0.04734666645526886,
-0.02672670967876911,
0.029084380716085434,
0.06211109459400177,
-0.027093887329101562,
-0.01959572173655033,
-0.0075561413541436195
] |
725,261 | dockerfile_parse.parser | _open_dockerfile | null | @property
def structure(self):
"""
Returns a list of dicts describing the commands:
[
{"instruction": "FROM", # always upper-case
"startline": 0, # 0-based
"endline": 0, # 0-based
"content": "From fedora\n",
"value": "fedora"},
{"instruction": "CMD",
"startline": 1,
"endline": 2,
"content": "CMD yum -y update && \\\n yum clean all\n",
"value": "yum -y update && yum clean all"}
]
"""
def _rstrip_eol(text, line_continuation_char='\\'):
text = text.rstrip()
if text.endswith(line_continuation_char):
return text[:-1]
return text
def _create_instruction_dict(instruction=None, value=None):
return {
'instruction': instruction,
'startline': lineno,
'endline': lineno,
'content': line, # pylint: disable=undefined-loop-variable
'value': value
}
def _clean_comment_line(line):
line = re.sub(r'^\s*#\s*', '', line)
line = re.sub(r'\n', '', line)
return line
instructions = []
lineno = -1
line_continuation_char = '\\'
insnre = re.compile(r'^\s*(\S+)\s+(.*)$') # matched group is insn
contre = re.compile(r'^.*\\\s*$') # line continues?
commentre = re.compile(r'^\s*#') # line is a comment?
directive_possible = True
# escape directive regex
escape_directive_re = re.compile(r'^\s*#\s*escape\s*=\s*(\\|`)\s*$', re.I)
# syntax directive regex
syntax_directive_re = re.compile(r'^\s*#\s*syntax\s*=\s*(.*)\s*$', re.I)
in_continuation = False
current_instruction = {}
for line in self.lines:
lineno += 1
if directive_possible:
# once support for python versions before 3.8 is dropped use walrus operator
if escape_directive_re.match(line):
# Do the matching twice if there is a directive to avoid doing the matching
# for other lines
match = escape_directive_re.match(line)
line_continuation_char = match.group(1)
contre = re.compile(r'^.*' + re.escape(match.group(1)) + r'\s*$')
elif syntax_directive_re.match(line):
# Currently no information for the syntax directive is stored it is still
# necessary to detect escape directives after a syntax directive
pass
else:
directive_possible = False
# It is necessary to keep instructions and comment parsing separate,
# as a multi-line instruction can be interjected with comments.
if commentre.match(line):
comment = _create_instruction_dict(
instruction=COMMENT_INSTRUCTION,
value=_clean_comment_line(line)
)
instructions.append(comment)
else:
if not in_continuation:
m = insnre.match(line)
if not m:
continue
current_instruction = _create_instruction_dict(
instruction=m.groups()[0].upper(),
value=_rstrip_eol(m.groups()[1], line_continuation_char)
)
else:
current_instruction['content'] += line
current_instruction['endline'] = lineno
if current_instruction['value']:
current_instruction['value'] += _rstrip_eol(line, line_continuation_char)
else:
current_instruction['value'] = _rstrip_eol(line.lstrip(),
line_continuation_char)
in_continuation = contre.match(line)
if not in_continuation and current_instruction:
instructions.append(current_instruction)
return instructions
| (self, mode) | [
0.05696684494614601,
-0.020701171830296516,
-0.008337435312569141,
-0.021763265132904053,
-0.010292653925716877,
0.013585143722593784,
0.013826528564095497,
0.006097383331507444,
-0.02606957219541073,
-0.04167269542813301,
0.027247531339526176,
0.054610926657915115,
0.025915086269378662,
0.009964370168745518,
0.007989841513335705,
-0.00029313183040358126,
0.025316452607512474,
-0.028888948261737823,
-0.024795060977339745,
-0.04221339896321297,
-0.011103707365691662,
0.03481736406683922,
0.0501694455742836,
0.008849171921610832,
0.020141158252954483,
0.02060461789369583,
-0.00007599854143336415,
-0.026494409888982773,
0.016655560582876205,
-0.03765605017542839,
-0.0236557237803936,
-0.03174694627523422,
-0.04329480230808258,
-0.0430244505405426,
0.031476594507694244,
-0.0750417485833168,
0.009505738504230976,
0.04483966529369354,
-0.07894252985715866,
0.010186444036662579,
-0.004569416865706444,
-0.013160306960344315,
-0.02054668590426445,
-0.005827032495290041,
-0.0448782853782177,
-0.016192100942134857,
-0.03688361868262291,
0.025490248575806618,
0.01597968302667141,
-0.05503576621413231,
0.07732041925191879,
-0.011460957117378712,
-0.019320450723171234,
-0.01587347313761711,
0.015632089227437973,
-0.006753950379788876,
-0.002686614403501153,
0.05600130558013916,
0.040552668273448944,
-0.00004005481241620146,
-0.021106699481606483,
0.05105774104595184,
-0.020971523597836494,
0.027073733508586884,
-0.001876767841167748,
-0.01458930503576994,
-0.004533208906650543,
-0.05341365933418274,
0.019706666469573975,
-0.021859819069504738,
-0.04700247570872307,
-0.01507207565009594,
0.049358390271663666,
-0.05349090322852135,
0.010649903677403927,
-0.06747191399335861,
-0.0563875213265419,
0.046191420406103134,
0.08813446760177612,
-0.019706666469573975,
-0.07481002062559128,
0.04545760899782181,
0.020005984231829643,
-0.037694670259952545,
0.06805124133825302,
0.01347893476486206,
0.03454701229929924,
0.027691679075360298,
-0.0004420361656229943,
-0.051830172538757324,
-0.03319525718688965,
0.020778415724635124,
-0.03118693269789219,
0.05816411226987839,
-0.012561672367155552,
0.02709304541349411,
0.02153153531253338,
-0.03149590641260147,
-0.04746593162417412,
0.02552887052297592,
0.0067636058665812016,
0.07056164741516113,
-0.0060249678790569305,
-0.029603447765111923,
0.016288654878735542,
0.01713833026587963,
-0.07021404802799225,
0.04522588104009628,
-0.02332744002342224,
-0.07909701764583588,
-0.02442815527319908,
-0.04827698692679405,
-0.014009981416165829,
-0.0348752960562706,
0.05866619572043419,
-0.001126664225012064,
-0.05696684494614601,
-0.03435390442609787,
-0.009230559691786766,
-0.04526450112462044,
0.026359234005212784,
-0.016655560582876205,
-0.041518207639455795,
0.031727634370326996,
0.02962275967001915,
-0.0215122252702713,
-0.0035676693078130484,
0.009481600485742092,
0.06179454177618027,
-0.036729130893945694,
-0.037115346640348434,
0.006208420731127262,
0.03850572556257248,
0.015467946417629719,
0.008240881375968456,
0.007820871658623219,
-0.032191094011068344,
-0.03446976840496063,
-0.041904423385858536,
0.010958876460790634,
0.043989989906549454,
-0.024679195135831833,
-0.017939727753400803,
-0.018750781193375587,
-0.05491989850997925,
-0.037443630397319794,
0.03132211044430733,
0.03275110945105553,
-0.036342915147542953,
-0.025316452607512474,
0.012272009626030922,
-0.03798433393239975,
-0.0011821826919913292,
0.02514265477657318,
0.04978322982788086,
0.03533875569701195,
-0.050014957785606384,
-0.004675626289099455,
-0.04402861371636391,
-0.0073670679703354836,
-0.0021953959949314594,
-0.014560339041054249,
-0.019426658749580383,
0.03759811818599701,
0.0038983665872365236,
0.0597475990653038,
-0.012754780240356922,
-0.10304240137338638,
-0.014666548930108547,
0.012281665578484535,
0.004948391113430262,
0.029082056134939194,
0.014734135940670967,
0.06415046006441116,
-0.011171294376254082,
0.0578165203332901,
0.015718987211585045,
0.05820273607969284,
-0.03997334465384483,
-0.019687354564666748,
-0.010437484830617905,
0.019262516871094704,
-0.0014205502811819315,
-0.028290314599871635,
0.02670682966709137,
0.01124853827059269,
0.06291457265615463,
-0.04082302004098892,
0.07940598577260971,
0.013575488701462746,
-0.02917861007153988,
-0.04020507633686066,
0.04368101805448532,
0.03512633591890335,
-0.005715995095670223,
-0.022863980382680893,
-0.004340101033449173,
0.012938232161104679,
0.05171430855989456,
-0.0250847227871418,
-0.041904423385858536,
-0.020237712189555168,
0.03810019791126251,
0.04908803850412369,
-0.03871814161539078,
0.03008621744811535,
-0.008009152486920357,
0.02890826016664505,
-0.07979220151901245,
0.03091658279299736,
-0.038467101752758026,
-0.04433758556842804,
0.0236557237803936,
0.06183316558599472,
0.05082601308822632,
-0.02643647789955139,
0.061485569924116135,
0.09099246561527252,
-0.016269344836473465,
-0.00860778708010912,
0.0811825841665268,
0.038273993879556656,
-0.027595125138759613,
-0.013961704447865486,
0.000533158949110657,
-0.04565071687102318,
-0.02574128843843937,
0.01793007366359234,
0.029004814103245735,
0.008878137916326523,
0.06314630061388016,
-0.05627165734767914,
-0.01625003293156624,
0.04746593162417412,
0.05314330756664276,
-0.04259961470961571,
0.0008460541721433401,
0.002153153531253338,
0.03638153895735741,
0.01549691241234541,
-0.0850447416305542,
0.01270650327205658,
0.031032446771860123,
-0.017621099948883057,
-0.01669418253004551,
-0.002773512853309512,
0.037752602249383926,
0.00690360926091671,
-0.018818369135260582,
-0.006720156408846378,
-0.005503576714545488,
0.0029907594434916973,
0.02846411056816578,
-0.00970850232988596,
-0.031032446771860123,
-0.03278972953557968,
0.010582315735518932,
0.010118856094777584,
0.08852068334817886,
-0.022651562467217445,
0.053838495165109634,
-0.06032692268490791,
0.0068167103454470634,
-0.04816112294793129,
0.031804878264665604,
-0.025123344734311104,
0.017418336123228073,
0.0012564086355268955,
-0.05283433571457863,
0.01402929238975048,
-0.013025131076574326,
0.019156308844685555,
-0.05573095381259918,
0.0023885038681328297,
-0.07423069328069687,
0.040166452527046204,
0.02937171794474125,
-0.04738869145512581,
-0.019021132960915565,
-0.060906246304512024,
0.006729811895638704,
0.013015476055443287,
-0.015323115512728691,
-0.0026190264616161585,
0.01581554114818573,
-0.009013313800096512,
0.007429828401654959,
-0.0022014304995536804,
0.02910136803984642,
0.04623004421591759,
0.04066853225231171,
-0.01655900664627552,
0.028174448758363724,
-0.04012783244252205,
0.10481899231672287,
0.05631027743220329,
-0.06727880984544754,
-0.009785745292901993,
-0.04669350013136864,
-0.08388609439134598,
-0.007251203525811434,
0.018306633457541466,
0.012310631573200226,
0.00492425262928009,
-0.06372562050819397,
-0.005093222018331289,
0.04901079833507538,
-0.02767236903309822,
0.018306633457541466,
-0.07562106847763062,
0.03978023678064346,
0.038467101752758026,
0.027691679075360298,
0.013015476055443287,
-0.029062746092677116,
-0.0008273468702100217,
-0.01996736228466034,
0.061678677797317505,
0.052795711904764175,
0.030298637226223946,
-0.016983844339847565,
0.0009057969436980784,
0.03448908030986786,
0.007159477099776268,
0.07801561057567596,
0.018528707325458527,
0.05715995281934738,
-0.014367231167852879,
0.010186444036662579,
0.011885793879628181,
-0.006285663694143295,
-0.023230886086821556,
-0.07110234349966049,
0.07002094388008118,
0.0018803885905072093,
-0.04194304719567299,
-0.01545829139649868,
-0.02832893654704094,
-0.021550847217440605,
-0.047620419412851334,
0.09531808644533157,
0.022516386583447456,
-0.019368726760149002,
-0.03638153895735741,
0.07005956023931503,
-0.0840405821800232,
0.07098647952079773,
0.03441183641552925,
0.01072714664041996,
0.04827698692679405,
0.04140234366059303,
0.012165800668299198,
0.0033335259649902582,
-0.0004999685334041715,
0.012387874536216259,
-0.047813527286052704,
-0.017843173816800117,
-0.04383550584316254,
0.009549188427627087,
-0.018799059092998505,
0.05468817055225372,
0.04816112294793129,
0.010775423608720303,
0.05994070693850517,
-0.029062746092677116,
-0.048585958778858185,
-0.052409496158361435,
0.049744606018066406,
0.07129545509815216,
-0.018576985225081444,
-0.008602959103882313,
0.06569532305002213,
0.06191040948033333,
-0.04383550584316254,
0.02709304541349411,
-0.0028942052740603685,
0.05121222883462906,
-0.02857997640967369,
-0.055383358150720596,
-0.03358147293329239,
0.0033190427348017693,
0.04213615506887436,
-0.0006432908703573048,
-0.003135590348392725,
-0.03864090144634247,
0.0006046692724339664,
0.06805124133825302,
-0.013884461484849453,
0.011702341958880424,
0.01549691241234541,
-0.022960534319281578,
0.014454130083322525,
-0.04298583045601845,
0.01380721852183342,
-0.03168901428580284,
-0.048585958778858185,
0.02282535843551159,
0.014869311824440956,
-0.024910924956202507,
-0.0016076236497610807,
0.03304076939821243,
-0.024872303009033203,
0.05940000340342522,
0.03553186357021332,
-0.002428332343697548,
-0.07280169427394867,
0.05225501209497452,
0.011934070847928524,
-0.02282535843551159,
0.025181276723742485,
-0.012667881324887276,
-0.05970897898077965,
-0.002168843522667885,
-0.006280836183577776,
-0.02145429328083992,
-0.045921068638563156,
0.024466777220368385,
-0.017949383705854416,
-0.002452470827847719,
0.02236190065741539,
-0.018103869631886482,
-0.014666548930108547,
-0.013459623791277409,
0.03929746896028519,
-0.00841467920690775,
0.05573095381259918,
-0.02211086079478264,
-0.017176952213048935,
-0.008139500394463539,
0.002248500706627965,
-0.010669213719666004,
0.03155383840203285,
-0.0262626800686121,
-0.027073733508586884,
-0.02093290165066719,
-0.08635787665843964,
0.02442815527319908,
-0.05488127842545509,
0.07450104504823685,
0.02981586754322052,
-0.02087496966123581,
0.03570565953850746,
0.00025843275943771005,
0.030626920983195305,
-0.03566703945398331,
-0.012745124287903309,
-0.011103707365691662,
-0.021241873502731323,
-0.01342100277543068,
-0.03014415130019188,
-0.04449206963181496,
0.05043979734182358,
0.002621440449729562,
-0.01569967530667782,
0.029255853965878487,
-0.02676476165652275,
0.0430244505405426,
0.0017922831466421485,
-0.00040582841029390693,
-0.016018304973840714,
0.04804525896906853,
0.05530611425638199,
0.008067084476351738,
0.0430244505405426,
-0.01368169765919447,
-0.03949057683348656,
0.02805858477950096,
0.03481736406683922,
-0.06299181282520294,
0.016906600445508957,
-0.021029455587267876,
-0.02332744002342224,
-0.03248075768351555,
0.034450456500053406,
0.012011314742267132,
-0.007381551433354616,
0.02346261590719223,
-0.045148637145757675,
-0.041981667280197144,
-0.05735306069254875,
-0.005518059711903334,
-0.0334462970495224,
-0.01186648290604353,
-0.02417711541056633,
-0.0019443556666374207,
0.0034397353883832693,
0.10080234706401825,
-0.09408219158649445,
0.009587809443473816,
-0.03902711719274521,
-0.022265346720814705,
0.009993336163461208,
0.02852204442024231,
-0.007748456206172705,
0.03060760907828808,
0.012136834673583508,
-0.026919247582554817,
0.007280169520527124,
0.07268583029508591,
-0.051366712898015976,
0.012793401256203651,
-0.001927458681166172,
-0.025953708216547966,
-0.007144994102418423,
0.01691625639796257,
0.06917126476764679,
0.025779910385608673,
0.023385372012853622,
-0.023385372012853622,
-0.006531876511871815,
0.028155138716101646,
-0.004827698692679405,
0.0032345580402761698,
0.005725650582462549,
-0.06434357166290283,
-0.003936988301575184,
-0.014965865761041641,
0.041325099766254425,
-0.004026300739496946,
0.0039321607910096645,
-0.012832023203372955,
-0.00985816027969122,
-0.004426999483257532,
-0.009722985327243805,
-0.02937171794474125,
0.09879402816295624,
-0.032770417630672455,
-0.059477247297763824,
0.019851496443152428,
-0.015535534359514713,
0.035493239760398865,
-0.03676775470376015,
0.0023945386055856943,
0.00717878807336092,
0.029352407902479172,
-0.002927999245002866,
0.09392770379781723,
-0.021087387576699257,
-0.019812874495983124,
0.021241873502731323,
0.033620093017816544,
0.012049935758113861,
-0.04043680429458618,
0.01342100277543068,
-0.002860411535948515,
0.031032446771860123,
0.04970598593354225,
-0.06326216459274292,
-0.049551498144865036,
-0.007637419272214174,
-0.03954850882291794,
0.01727350614964962,
-0.029584137722849846,
0.02632061392068863,
-0.008820205926895142,
-0.021686023101210594,
0.02255500853061676,
-0.012938232161104679,
0.009529877454042435,
0.03118693269789219,
0.0016909014666453004,
-0.0033528367057442665,
-0.06380286812782288,
-0.04928114637732506,
-0.007618108298629522,
0.047929391264915466,
0.012127178721129894,
0.010514727793633938,
-0.011296815238893032,
0.054610926657915115,
-0.01400032639503479,
0.016327276825904846,
0.058048248291015625,
-0.0023076399229466915,
-0.03547393158078194,
-0.00327317975461483,
-0.009331941604614258,
0.035937387496232986,
0.04051404818892479,
-0.04433758556842804,
-0.014647237956523895,
-0.0017150399507954717,
0.017650065943598747,
-0.009293319657444954,
0.005764272063970566,
0.034585632383823395,
-0.015728643164038658,
0.07581418007612228,
0.01931079477071762,
-0.014772757887840271,
-0.01933976076543331,
0.01735074818134308,
0.01617279089987278,
-0.019590800628066063,
0.007116027642041445,
0.02605026215314865,
0.02483368292450905,
0.008602959103882313,
-0.007956047542393208,
0.02139636129140854,
-0.05851170793175697,
-0.0168293584138155,
0.00671050138771534,
0.02417711541056633,
-0.004004576243460178,
0.007072578649967909,
0.043140314519405365,
-0.041904423385858536,
-0.034199416637420654,
-0.037443630397319794,
0.025239208713173866,
-0.0072367205284535885,
0.012803057208657265,
-0.01625968888401985,
-0.05291157588362694,
0.023057088255882263,
-0.038022954016923904,
0.04005058854818344,
0.021859819069504738,
-0.027073733508586884,
0.05936138331890106,
0.011142328381538391,
-0.05658062919974327,
-0.033484917134046555,
-0.06113797426223755,
0.05797100439667702,
-0.027962030842900276,
-0.014212745241820812,
-0.02263225056231022,
-0.00018541379540693015,
0.02321157604455948,
0.018470775336027145,
0.021222563460469246,
0.014541028067469597,
-0.006150488276034594,
-0.008984346874058247,
0.02728615328669548,
-0.03080071695148945,
-0.0024862647987902164,
-0.023829521611332893,
-0.013961704447865486,
-0.10690455883741379,
-0.0039345743134617805,
0.014058258384466171,
-0.05800962820649147,
0.00607807282358408,
0.02717028744518757,
-0.07909701764583588,
0.03460494428873062,
0.011934070847928524,
0.02255500853061676,
0.07905839383602142,
0.0036835339851677418,
-0.008134672418236732,
0.037636738270521164,
-0.03232626989483833,
-0.05503576621413231,
-0.012262354604899883,
-0.007936736568808556,
-0.008757445029914379,
-0.005658062640577555,
0.021280495449900627,
-0.015863817185163498,
0.010360240936279297,
-0.010649903677403927,
-0.016327276825904846,
0.046114176511764526,
0.04341066628694534,
0.05379987508058548,
0.027846166864037514,
0.08303641527891159,
-0.012986509129405022,
-0.024273669347167015,
0.01251339539885521,
0.005624269135296345,
-0.03591807931661606,
0.03810019791126251,
-0.024292979389429092,
0.017910761758685112,
-0.02249707654118538,
0.007169132586568594,
-0.010582315735518932,
0.04364239424467087,
-0.05457230657339096,
-0.0439513698220253,
0.014415508136153221,
0.05940000340342522,
-0.010987842455506325,
0.03547393158078194,
-0.07620039582252502,
-0.02593439817428589,
0.03410286456346512,
0.005040117539465427,
0.02910136803984642,
-0.028637908399105072,
-0.006444977596402168,
-0.028502732515335083,
-0.0692485123872757,
0.02780754491686821,
-0.01328582689166069,
0.005653235130012035,
-0.04163407161831856,
-0.0031524873338639736,
-0.04561209678649902,
-0.007685696240514517,
-0.022284656763076782,
-0.008187777362763882,
-0.05043979734182358,
-0.016288654878735542,
0.02502679079771042,
0.03939402103424072,
0.10566867142915726,
-0.011837516911327839,
-0.03300214931368828,
0.08288192749023438,
-0.038795385509729385,
-0.023288818076252937,
0.026146816089749336,
0.01785282976925373,
-0.010254031978547573,
0.020855657756328583,
0.046577636152505875,
0.040475424379110336,
0.007574659306555986,
-0.03360078111290932,
0.004764938727021217,
-0.028637908399105072,
-0.0010204548016190529,
0.010862321592867374,
-0.014850000850856304,
-0.03779122605919838,
0.06824434548616409,
-0.02269018441438675,
0.0031524873338639736,
0.017698343843221664,
-0.0139713604003191,
-0.018441809341311455,
-0.04298583045601845,
-0.05437919870018959,
0.06291457265615463,
-0.019986672326922417,
-0.012387874536216259,
-0.040359560400247574,
0.03454701229929924,
-0.05329779163002968,
0.026204748079180717,
0.04120923578739166,
0.04908803850412369,
-0.004977357108145952,
0.010794734582304955,
-0.023308129981160164,
-0.015902439132332802,
-0.05522887408733368,
-0.011644409038126469,
-0.005431160796433687,
-0.04719558358192444,
0.04117061570286751,
0.022921914234757423,
-0.0030776578933000565,
0.021299807354807854,
-0.04545760899782181,
-0.027710990980267525,
0.013990670442581177,
0.04947425425052643,
0.015564500354230404,
-0.024601953104138374,
-0.045882448554039,
0.05534473806619644
] |
725,262 | dockerfile_parse.parser | add_lines |
Add lines to the beginning or end of the build.
:param lines: one or more lines to add to the content, by default at the end.
:param all_stages: bool for whether to add in all stages for a multistage build
or (by default) only the last.
:param at_start: adds at the beginning (after FROM) of the stage(s) instead of the end.
:param skip_scratch: skip stages which use "FROM scratch"
| def add_lines(self, *lines, **kwargs):
"""
Add lines to the beginning or end of the build.
:param lines: one or more lines to add to the content, by default at the end.
:param all_stages: bool for whether to add in all stages for a multistage build
or (by default) only the last.
:param at_start: adds at the beginning (after FROM) of the stage(s) instead of the end.
:param skip_scratch: skip stages which use "FROM scratch"
"""
assert len(lines) > 0
lines = [_endline(line) for line in lines]
all_stages = kwargs.pop('all_stages', False)
at_start = kwargs.pop('at_start', False)
skip_scratch = kwargs.pop('skip_scratch', False)
assert not kwargs, "Unknown keyword argument(s): {0}".format(list(kwargs))
froms = [
instr for instr in self.structure
if instr['instruction'] == 'FROM'
] or [{'endline': -1}] # no FROM? fake one before the beginning
if not all_stages: # only modify the last
froms = [froms[-1]]
df_lines = self.lines
# make sure last line has a newline if lines are to be appended
if df_lines and not at_start:
df_lines[-1] = _endline(df_lines[-1])
# iterate through the stages in reverse order
# so adding lines doesn't invalidate line numbers from structure dicts.
# first add a bogus instruction to represent EOF in our iteration.
froms.append({'startline': len(df_lines) + 1})
for stage in range(len(froms)-2, -1, -1): # e.g. 0 for single or 2, 1, 0 for 3 stages
start, finish = froms[stage], froms[stage+1]
linenum = start['endline'] + 1 if at_start else finish['startline']
image, _ = image_from(froms[stage].get('value') or '')
if skip_scratch and image == 'scratch':
continue
df_lines[linenum:linenum] = lines
self.lines = df_lines
| (self, *lines, **kwargs) | [
-0.014445765875279903,
-0.03968900442123413,
-0.08505313098430634,
0.038141243159770966,
-0.06408466398715973,
-0.004157303366810083,
-0.04974944889545441,
0.02824663184583187,
-0.041457876563072205,
0.017228050157427788,
-0.00498876441270113,
0.024303527548909187,
0.005670515820384026,
0.05789361894130707,
-0.005394130013883114,
0.012096486985683441,
0.031010489910840988,
-0.028596721589565277,
-0.024524636566638947,
-0.06308967620134354,
0.00884434673935175,
0.02117115445435047,
0.02620137669146061,
0.05015481635928154,
0.02988652139902115,
0.046506524085998535,
0.03213445842266083,
-0.0404997356235981,
-0.013358648866415024,
-0.009019390679895878,
0.007536120247095823,
-0.06548501551151276,
-0.03810439258813858,
-0.06883849948644638,
0.005758038256317377,
-0.015127518214285374,
0.008835134096443653,
0.040462885051965714,
-0.04381636902689934,
0.05969933792948723,
0.029315324500203133,
0.03386647626757622,
0.007757228799164295,
-0.013229668140411377,
-0.02636720798909664,
-0.028873106464743614,
-0.011175200343132019,
0.0018333593616262078,
0.00489663565531373,
-0.05059703439474106,
0.044995613396167755,
-0.02295845001935959,
0.04503246396780014,
-0.006034424062818289,
0.003671325044706464,
0.00796451885253191,
-0.018186187371611595,
0.0021845996379852295,
0.041384171694517136,
-0.026459336280822754,
-0.02461676485836506,
-0.0006425970350392163,
0.011341031640768051,
0.026477763429284096,
0.016924025490880013,
-0.0026302719488739967,
-0.04956519231200218,
-0.03880457207560539,
0.019844502210617065,
0.031047342345118523,
-0.04713299870491028,
0.01721883751451969,
0.03242927044630051,
-0.023511221632361412,
-0.05995729938149452,
0.03298204392194748,
-0.09743522107601166,
0.04451654478907585,
0.02205558866262436,
-0.05089184269309044,
-0.004551153164356947,
0.043337296694517136,
-0.021576520055532455,
-0.015477607026696205,
0.045290425419807434,
0.013717950321733952,
0.03646450489759445,
0.020010333508253098,
0.015044602565467358,
-0.0436689630150795,
0.014980112202465534,
0.02937060035765171,
-0.03484303876757622,
-0.012658471241593361,
0.049122974276542664,
-0.00936947949230671,
-0.011626631021499634,
0.005136169958859682,
-0.07267104834318161,
0.014980112202465534,
-0.016924025490880013,
-0.014666874893009663,
0.014869557693600655,
-0.0013819291489198804,
-0.03325842693448067,
-0.03721996024250984,
-0.028780978173017502,
-0.005237511359155178,
0.00016640730609651655,
-0.017154347151517868,
-0.04451654478907585,
-0.06460057944059372,
-0.04646966978907585,
-0.07974652200937271,
-0.009526098147034645,
0.0099406773224473,
-0.03088151104748249,
-0.006527312099933624,
-0.016629213467240334,
-0.030255036428570747,
0.01216097641736269,
-0.014233870431780815,
-0.01956811733543873,
0.0256117545068264,
-0.009083881042897701,
-0.050265371799468994,
0.00003402640504646115,
0.03651978075504303,
0.02846774086356163,
-0.17261216044425964,
-0.011470012366771698,
-0.011119923554360867,
-0.024801021441817284,
-0.03312944993376732,
-0.014860345050692558,
-0.044627100229263306,
0.0019266395829617977,
0.0035768933594226837,
-0.021410688757896423,
0.024211399257183075,
0.01318360399454832,
-0.0441480316221714,
-0.02183448150753975,
-0.024119270965456963,
-0.037090979516506195,
0.01039210706949234,
0.03825179859995842,
-0.017191199585795403,
-0.04676448181271553,
0.07362918555736542,
0.023290112614631653,
-0.022092441096901894,
-0.08357907831668854,
0.02727006934583187,
0.02590656466782093,
-0.01322045549750328,
-0.004664010833948851,
-0.0012748296139761806,
0.03681459277868271,
0.01498932484537363,
0.015265710651874542,
0.015652650967240334,
0.027822840958833694,
0.022239847108721733,
-0.04595375061035156,
0.06802776455879211,
-0.08188390731811523,
-0.033332131803035736,
-0.03386647626757622,
-0.014712939038872719,
0.05428217723965645,
0.049896854907274246,
0.07167606055736542,
0.017264900729060173,
-0.007904634810984135,
0.03066040202975273,
-0.0004079570062458515,
0.040241777896881104,
-0.01106464583426714,
-0.015311774797737598,
-0.05612475052475929,
0.03570904955267906,
-0.011912229470908642,
0.029333749786019325,
-0.0005090105696581304,
-0.005979146808385849,
-0.027583306655287743,
-0.025022130459547043,
0.0778302475810051,
-0.01100015640258789,
-0.002570388140156865,
0.0168318971991539,
0.02634878270328045,
-0.035119425505399704,
-0.010714557021856308,
0.017605777829885483,
-0.014390489086508751,
-0.015532883815467358,
0.04064714163541794,
-0.00971956830471754,
-0.052587009966373444,
-0.009590588510036469,
0.02551962435245514,
-0.02546434849500656,
0.007268947549164295,
0.043189894407987595,
-0.04547468200325966,
0.007858570665121078,
-0.060952287167310715,
0.06662741303443909,
-0.03920993581414223,
-0.054024215787649155,
0.0018563915509730577,
0.03224501386284828,
0.06312652677297592,
-0.07167606055736542,
-0.06437947601079941,
0.037459492683410645,
-0.0004966307897120714,
0.023400666192173958,
0.03541423752903938,
0.016776619479060173,
-0.043705813586711884,
-0.050633884966373444,
-0.0024022534489631653,
-0.005163808818906546,
0.049823153764009476,
0.01057636458426714,
-0.005601419601589441,
-0.003498584032058716,
-0.021373838186264038,
-0.04256341978907585,
-0.045364126563072205,
0.013699524104595184,
0.07119698822498322,
0.035653773695230484,
-0.027085810899734497,
-0.0097564198076725,
0.028651997447013855,
-0.020673660561442375,
-0.05671437457203865,
0.045437831431627274,
0.027380622923374176,
-0.018720533698797226,
-0.03233714401721954,
-0.02598026767373085,
-0.0028076195158064365,
0.005108531564474106,
-0.04215805232524872,
0.011958293616771698,
0.04923352971673012,
0.026717297732830048,
0.0046594045124948025,
-0.003966136835515499,
-0.017449159175157547,
-0.017357030883431435,
0.06375300139188766,
-0.03646450489759445,
0.04938093572854996,
-0.04963889718055725,
0.08335796743631363,
-0.07908319681882858,
-0.010732983238995075,
0.0018494818359613419,
-0.005937688983976841,
0.0022997604683041573,
0.0029803605284541845,
-0.03125002607703209,
-0.060510072857141495,
0.04234230890870094,
-0.03865716606378555,
0.07060736417770386,
-0.00171819853130728,
0.018213827162981033,
0.005974540486931801,
0.00730119226500392,
-0.02266363799571991,
-0.0256117545068264,
-0.03456665575504303,
0.0066470792517066,
0.08033614605665207,
0.008752218447625637,
-0.012059635482728481,
0.005675122607499361,
0.04057344049215317,
-0.06762240082025528,
0.007411746773868799,
0.0341612882912159,
-0.01693323813378811,
-0.05247645825147629,
0.048164837062358856,
0.07060736417770386,
0.03027346171438694,
-0.01050266157835722,
0.02990494668483734,
0.01325730700045824,
-0.04517986997961998,
0.019973482936620712,
-0.05664066970348358,
-0.005559961777180433,
0.016233060508966446,
-0.007158393040299416,
0.08630608022212982,
0.0005919263348914683,
-0.0675855502486229,
-0.03876771777868271,
0.003507796907797456,
-0.03839920461177826,
0.0163436159491539,
-0.07790395617485046,
0.010161785408854485,
0.04495876282453537,
0.0247641708701849,
-0.05457698926329613,
-0.02734377235174179,
-0.037533197551965714,
0.0010819353628903627,
0.031065767630934715,
0.0013185907155275345,
0.0071169352158904076,
-0.03574590012431145,
-0.015431541949510574,
-0.0015742476098239422,
-0.014786642044782639,
0.06917016208171844,
-0.004928880836814642,
0.0922023132443428,
0.003300507552921772,
0.017043793573975563,
0.04573264345526695,
0.030770955607295036,
0.020434126257896423,
0.013459989801049232,
0.09522413462400436,
-0.037993840873241425,
-0.060510072857141495,
-0.024966852739453316,
-0.04993370547890663,
-0.00971956830471754,
-0.06283171474933624,
0.04510616883635521,
0.04930723085999489,
-0.02130013518035412,
-0.03803069144487381,
0.10045703500509262,
-0.03629867359995842,
0.08895938843488693,
0.012363659217953682,
-0.0028859288431704044,
0.11306022852659225,
0.0007462417706847191,
0.021042175590991974,
-0.01649102196097374,
-0.00795069895684719,
0.01763341575860977,
0.02146596647799015,
-0.0040191104635596275,
-0.07768284529447556,
0.02649618871510029,
-0.03884142264723778,
0.060657478868961334,
0.042047496885061264,
-0.013174391351640224,
0.05166572332382202,
0.003954620566219091,
-0.0018863333389163017,
-0.023603349924087524,
-0.009176009334623814,
0.053508296608924866,
-0.018582340329885483,
0.002501291688531637,
0.02763858251273632,
0.09117047488689423,
0.016822684556245804,
0.004297799896448851,
-0.012925644405186176,
0.004528121091425419,
-0.015449968166649342,
-0.01111071091145277,
0.029278472065925598,
-0.034087587147951126,
0.012888792902231216,
0.013828504830598831,
-0.004965732339769602,
0.009452395141124725,
-0.012492639943957329,
0.05111295357346535,
-0.039578452706336975,
0.03379277512431145,
-0.04429543763399124,
0.042747676372528076,
0.023013727739453316,
-0.008443587459623814,
0.005219085607677698,
0.01381929125636816,
-0.08136799186468124,
0.020673660561442375,
0.031084192916750908,
0.01883108727633953,
-0.02725164219737053,
0.020507829263806343,
-0.013358648866415024,
-0.009636652655899525,
0.04042603448033333,
-0.00512235052883625,
-0.05310293287038803,
-0.020065611228346825,
-0.020489402115345,
-0.008848953060805798,
0.011589779518544674,
0.021705500781536102,
-0.018379658460617065,
-0.05918341875076294,
-0.0010381742613390088,
-0.00555074866861105,
-0.013423138298094273,
0.06791721284389496,
-0.028430888429284096,
-0.031434282660484314,
0.002547356067225337,
0.037551622837781906,
0.062315791845321655,
0.004383018705993891,
0.08438980579376221,
0.032945189625024796,
0.003973046317696571,
-0.04842279851436615,
-0.02559332735836506,
-0.004845964722335339,
-0.02922319620847702,
0.00916219037026167,
0.014123315922915936,
-0.049896854907274246,
0.06261060386896133,
-0.0351378507912159,
-0.05693548172712326,
0.015772419050335884,
-0.05535086989402771,
0.0365934856235981,
0.029407452791929245,
0.020120888948440552,
-0.02649618871510029,
0.026606742292642593,
0.003222198225557804,
-0.0026809426490217447,
0.005149989388883114,
-0.014740577898919582,
-0.002482866169884801,
-0.05490865185856819,
0.010263127274811268,
-0.008383703418076038,
0.060804884880781174,
-0.02093162015080452,
-0.0039983815513551235,
-0.011009369045495987,
-0.05969933792948723,
0.05306607857346535,
-0.03991011530160904,
-0.02386130951344967,
0.019236454740166664,
0.0609891414642334,
0.03651978075504303,
0.015919823199510574,
0.05173942819237709,
0.04588004946708679,
-0.049675747752189636,
0.011248903349041939,
0.001799962716177106,
-0.04038918390870094,
-0.01792822778224945,
0.034972019493579865,
-0.04595375061035156,
0.00551389716565609,
-0.03071567788720131,
0.09883557260036469,
0.02410084381699562,
0.03917308524250984,
-0.05737769976258278,
-0.00851268321275711,
-0.006278564687818289,
-0.04569578915834427,
-0.01825067773461342,
-0.011608204804360867,
0.02734377235174179,
-0.037772729992866516,
0.0531766340136528,
0.014335211366415024,
-0.03331370651721954,
0.018646830692887306,
-0.012262318283319473,
-0.008310000412166119,
-0.0448850579559803,
0.00159152178093791,
0.04285822808742523,
-0.015671076253056526,
0.008148775435984135,
0.02529851719737053,
0.021871332079172134,
0.04271082207560539,
-0.07532434910535812,
0.009360266849398613,
0.03734893724322319,
-0.00047561395331285894,
0.04005752131342888,
-0.011755610816180706,
0.043116189539432526,
0.04337415099143982,
0.019383858889341354,
-0.0514814667403698,
-0.023695478215813637,
0.027233216911554337,
-0.03539581224322319,
0.0022410284727811813,
-0.01795586571097374,
-0.013063836842775345,
0.013202030211687088,
-0.02959170937538147,
0.033166300505399704,
0.05280812084674835,
0.024801021441817284,
0.003459429368376732,
0.00006085526547394693,
0.04584319517016411,
-0.04042603448033333,
-0.0046409787610173225,
0.03810439258813858,
0.005016402807086706,
-0.012861154042184353,
0.0487913116812706,
0.027914969250559807,
0.015357838943600655,
-0.0028698062524199486,
0.07189717143774033,
0.007255128119140863,
0.05800417438149452,
0.0014544804580509663,
0.0578199177980423,
-0.05759880691766739,
0.02139226347208023,
-0.04584319517016411,
0.011267328634858131,
-0.03078938089311123,
0.022497806698083878,
-0.01629755087196827,
-0.03961530327796936,
0.062094684690237045,
0.06121024861931801,
-0.003966136835515499,
0.01943913660943508,
-0.026311932131648064,
-0.02373233065009117,
0.02666202001273632,
-0.014187806285917759,
0.06861738860607147,
0.00672078225761652,
-0.0070524453185498714,
-0.002317034639418125,
0.014777429401874542,
-0.005983753129839897,
-0.027620157226920128,
0.02815450355410576,
0.037017274647951126,
-0.02688312903046608,
-0.057414550334215164,
-0.02981281839311123,
-0.00046179466880857944,
-0.004541940521448851,
0.017329391092061996,
0.03233714401721954,
0.019512839615345,
0.04142102226614952,
0.03346111252903938,
-0.005315820686519146,
-0.06412151455879211,
-0.012492639943957329,
-0.01709906943142414,
-0.0304945707321167,
0.054097920656204224,
-0.017412306740880013,
-0.023971864953637123,
-0.010981730185449123,
-0.0404997356235981,
0.018480999395251274,
-0.03064197674393654,
-0.0029918765649199486,
0.02983124367892742,
-0.05818843096494675,
0.04407432675361633,
0.0012736780336126685,
-0.005753431934863329,
-0.021797629073262215,
0.054097920656204224,
0.026533039286732674,
-0.017550500109791756,
-0.04584319517016411,
0.012658471241593361,
0.029038937762379646,
-0.038362354040145874,
-0.041531577706336975,
0.028780978173017502,
-0.04595375061035156,
0.009784058667719364,
-0.02047097682952881,
0.05225534737110138,
0.005173021461814642,
-0.013017772696912289,
0.018241465091705322,
0.00018785599968396127,
-0.04978629946708679,
0.04407432675361633,
0.07023885101079941,
0.04669078066945076,
0.025943417102098465,
-0.0644163265824318,
-0.07421880960464478,
-0.03666718676686287,
0.003952317405492067,
-0.018434934318065643,
0.08778014034032822,
-0.04215805232524872,
0.023750755935907364,
0.008475832641124725,
-0.058630649000406265,
-0.0018702107481658459,
-0.03336898237466812,
0.01949441432952881,
0.015081453137099743,
-0.03139743208885193,
0.004919667728245258,
0.011202839203178883,
-0.01005123183131218,
0.04713299870491028,
-0.004092813469469547,
-0.005338852759450674,
0.03088151104748249,
0.009176009334623814,
0.014998537488281727,
-0.01743994653224945,
0.010042018257081509,
0.0015201220521703362,
0.01766105554997921,
-0.07506639510393143,
-0.030255036428570747,
-0.05398736521601677,
-0.01641731895506382,
0.009383299387991428,
0.0009114974527619779,
-0.052144791930913925,
0.02890995889902115,
0.015477607026696205,
0.02688312903046608,
0.003242927137762308,
-0.027693860232830048,
-0.013736375607550144,
0.04956519231200218,
0.09205491095781326,
-0.011147561483085155,
0.0032360174227505922,
0.030457718297839165,
0.004260948393493891,
-0.0064121512696146965,
-0.04772261902689934,
0.021852906793355942,
-0.008567960932850838,
-0.008650876581668854,
-0.025869714096188545,
0.07613508403301239,
-0.00004883536166744307,
0.022037163376808167,
0.033774349838495255,
-0.05859379470348358,
-0.05910971760749817,
-0.027583306655287743,
-0.00036333221942186356,
0.02327168732881546,
-0.007789473980665207,
-0.028191354125738144,
0.008001369424164295,
0.04237915948033333,
-0.02815450355410576,
-0.02717794105410576,
0.027804413810372353,
-0.01269532274454832,
-0.026477763429284096,
-0.01919960230588913,
0.03593015670776367,
-0.002715490758419037,
0.017403094097971916,
0.031434282660484314,
0.006785272154957056,
-0.006550344172865152,
0.023013727739453316,
0.028301909565925598,
0.04820168763399124,
-0.008144169114530087,
-0.008738398551940918,
0.0054862587712705135,
-0.08534794300794601,
-0.009691929444670677,
0.031139470636844635,
0.03222658857703209,
0.023179559037089348,
-0.010696131736040115,
0.013791653327643871,
-0.02393501251935959,
-0.02395343966782093,
-0.01995505765080452,
0.024432508274912834,
-0.01057636458426714,
0.0072367023676633835,
0.007849358022212982,
0.04945463687181473,
0.017919015139341354,
0.03898882865905762,
0.010585577227175236,
-0.041384171694517136,
0.009710355661809444,
-0.002533536870032549,
-0.035119425505399704,
-0.024911576882004738,
0.02183448150753975,
0.06603778898715973,
0.03141585737466812,
-0.07805135846138,
-0.032189738005399704,
-0.013883781619369984,
-0.04436913877725601,
-0.014353637583553791,
0.04337415099143982,
-0.01284272875636816,
-0.008259329944849014,
0.023290112614631653,
-0.007430172525346279,
-0.008752218447625637,
0.022792618721723557,
-0.016325190663337708,
-0.02666202001273632,
-0.01881266199052334,
-0.053582001477479935,
-0.03541423752903938,
-0.008646270260214806,
-0.03493516892194748,
-0.014049612917006016,
-0.017550500109791756,
-0.015228859148919582,
0.03465878218412399,
0.08158909529447556,
0.04787002503871918,
-0.023548072203993797,
0.01783609949052334,
0.03117632120847702,
-0.028136078268289566,
-0.008088892325758934,
0.031286876648664474,
0.023842884227633476,
-0.028062375262379646,
0.0714918002486229,
0.000026918827643385157,
0.0012552522821351886,
-0.050854992121458054,
0.014418127946555614,
-0.08048355579376221,
0.005771857686340809,
0.0519605353474617,
0.09176009893417358,
0.007858570665121078,
-0.041531577706336975,
0.047096144407987595
] |
725,263 | dockerfile_parse.parser | add_lines_at |
Add lines at a specific location in the file.
:param anchor: structure_dict|line_str|line_num a reference to where adds should occur
:param lines: one or more lines to add to the content
:param replace: if True -- replace the anchor
:param after: if True -- insert after the anchor (conflicts with "replace")
| def add_lines_at(self, anchor, *lines, **kwargs):
"""
Add lines at a specific location in the file.
:param anchor: structure_dict|line_str|line_num a reference to where adds should occur
:param lines: one or more lines to add to the content
:param replace: if True -- replace the anchor
:param after: if True -- insert after the anchor (conflicts with "replace")
"""
assert len(lines) > 0
replace = kwargs.pop('replace', False)
after = kwargs.pop('after', False)
assert not (after and replace)
assert not kwargs, "Unknown keyword argument(s): {0}".format(list(kwargs))
# find the line number for the insertion
df_lines = self.lines
if isinstance(anchor, int): # line number, just validate
assert 0 <= anchor < len(df_lines)
if replace:
del df_lines[anchor]
elif isinstance(anchor, dict): # structure
assert anchor in self.structure, "Current structure does not match: {0}".format(anchor)
if replace:
df_lines[anchor['startline']:anchor['endline'] + 1] = []
if after:
anchor = anchor['endline']
else:
anchor = anchor['startline']
elif isinstance(anchor, str): # line contents
matches = [index for index, text in enumerate(df_lines) if text == anchor]
if not matches:
raise RuntimeError("Cannot find line in the build file:\n" + anchor)
anchor = matches[-1]
if replace:
del df_lines[anchor]
else:
raise RuntimeError("Unknown anchor type {0}".format(anchor))
if after:
# ensure there's a newline on final line
df_lines[anchor] = _endline(df_lines[anchor])
anchor += 1
df_lines[anchor:anchor] = [_endline(line) for line in lines]
self.lines = df_lines
| (self, anchor, *lines, **kwargs) | [
-0.021700013428926468,
-0.02052263356745243,
-0.030430736020207405,
0.0031177918426692486,
-0.041914716362953186,
0.007367679849267006,
-0.04745745658874512,
0.08375697582960129,
-0.06346981972455978,
-0.03655311092734337,
-0.029633739963173866,
-0.009079408831894398,
0.005434060003608465,
0.01618444174528122,
-0.019635070115327835,
-0.00816014688462019,
-0.010895290412008762,
-0.011311901733279228,
-0.04111772030591965,
-0.06075279042124748,
-0.014182896353304386,
0.031535662710666656,
-0.0057148197665810585,
-0.016619166359305382,
0.04397965967655182,
0.03532139211893082,
0.008735251612961292,
0.0050400905311107635,
0.0639045462012291,
-0.01409232895821333,
0.0172712542116642,
-0.07024428248405457,
-0.0209211315959692,
-0.020413951948285103,
-0.0037449731025844812,
-0.0623830109834671,
0.046225737780332565,
0.016818415373563766,
0.03646254166960716,
0.031644344329833984,
0.0052302828989923,
0.03617272526025772,
0.05521005019545555,
-0.01031565759330988,
-0.021084152162075043,
0.03090168908238411,
-0.03160811588168144,
0.03774860501289368,
-0.01700860820710659,
-0.0241453405469656,
0.016130100935697556,
-0.045791011303663254,
0.0507541224360466,
-0.002318532206118107,
-0.02336645871400833,
-0.0029140147380530834,
-0.007372207939624786,
0.03573800250887871,
0.03470553085207939,
-0.006502758711576462,
0.05981088802218437,
0.004392531700432301,
0.011828137561678886,
-0.014717246405780315,
0.03280360996723175,
-0.011302844621241093,
-0.014001761563122272,
-0.05452173575758934,
0.019743751734495163,
0.02146453782916069,
-0.0009407716570422053,
0.008902802132070065,
0.06481022387742996,
-0.007358623202890158,
0.01072321180254221,
0.037965964525938034,
-0.05894143879413605,
0.07198318094015121,
0.020576974377036095,
-0.008807705715298653,
-0.020287157967686653,
0.005461230408400297,
0.0707876905798912,
0.014182896353304386,
0.021084152162075043,
-0.005818972829729319,
0.021555105224251747,
0.03361871838569641,
0.05035562440752983,
-0.02818465791642666,
0.003998562693595886,
-0.006412190850824118,
-0.017379935830831528,
-0.07506248354911804,
0.022225305438041687,
-0.01929091289639473,
0.05071789398789406,
-0.03631763532757759,
-0.016111988574266434,
0.023964205756783485,
0.02443515695631504,
-0.0015600280603393912,
0.03807464614510536,
-0.0196894109249115,
-0.043363798409700394,
-0.05502891540527344,
0.0037449731025844812,
-0.017470503225922585,
-0.016809359192848206,
0.04441438242793083,
-0.022315872833132744,
-0.05709385871887207,
-0.02010602131485939,
-0.030575644224882126,
-0.020196590572595596,
-0.020703768357634544,
-0.03535761684179306,
-0.053507376462221146,
-0.016782188788056374,
-0.034234579652547836,
0.04166112840175629,
-0.03792973980307579,
-0.03465119004249573,
0.04024827107787132,
0.014653848484158516,
-0.08477133512496948,
-0.011474923230707645,
-0.0006175583112053573,
0.03439759835600853,
-0.15925419330596924,
-0.013702888041734695,
-0.018856188282370567,
-0.004168376792222261,
-0.04390720650553703,
-0.01738899201154709,
0.004288379102945328,
-0.00779334781691432,
0.019671296700835228,
-0.05879652872681618,
-0.021029813215136528,
0.023312117904424667,
-0.01295117661356926,
-0.0019404123304411769,
-0.05198584124445915,
-0.04140753671526909,
-0.013847796246409416,
-0.010786608792841434,
-0.01079566590487957,
-0.07651156187057495,
0.02697105146944523,
0.02767747826874256,
-0.025304606184363365,
-0.053760968148708344,
0.039741091430187225,
0.008400151506066322,
-0.04263925924897194,
-0.019943000748753548,
-0.05919502675533295,
0.015278765931725502,
0.0029683553148061037,
0.049196358770132065,
0.00022160775552038103,
0.0601731576025486,
0.036353860050439835,
-0.01929091289639473,
0.08187317103147507,
-0.06346981972455978,
-0.046877823770046234,
-0.03466930240392685,
-0.028981653973460197,
0.025069130584597588,
0.0807139053940773,
0.044885337352752686,
0.03389042243361473,
-0.020323384553194046,
-0.002163435099646449,
0.006398605648428202,
0.02548574097454548,
0.020486406981945038,
-0.008051465265452862,
-0.007068806327879429,
0.049739763140678406,
0.028583155944943428,
0.04738500341773033,
0.012344373390078545,
-0.007376736495643854,
-0.049051448702812195,
0.01941770873963833,
0.06651289761066437,
0.0014354975428432226,
-0.0002609480870887637,
0.011800967156887054,
0.03803842142224312,
-0.039451275020837784,
-0.044450610876083374,
-0.009210731834173203,
-0.05734744668006897,
0.045791011303663254,
0.0008275620639324188,
0.015487071126699448,
-0.039342593401670456,
-0.024109113961458206,
0.0027509930077940226,
-0.021555105224251747,
0.04883408546447754,
0.033111538738012314,
0.02644575946033001,
0.005361605901271105,
-0.09947952628135681,
0.05767349153757095,
-0.01221757847815752,
-0.01741616241633892,
-0.02309475466609001,
-0.004048374947160482,
0.01369383092969656,
-0.05379719287157059,
-0.03604593127965927,
0.05535495653748512,
-0.030014125630259514,
0.01580405794084072,
0.051623571664094925,
0.04144376516342163,
-0.01901921071112156,
-0.030974142253398895,
0.045428741723299026,
-0.01889241486787796,
0.08651023358106613,
0.025721218436956406,
0.026391418650746346,
-0.02782238833606243,
-0.006769933272153139,
-0.04278416559100151,
-0.03955995664000511,
0.008255243301391602,
0.0985376238822937,
-0.02849258854985237,
0.008264299482107162,
-0.017044834792613983,
0.006416719406843185,
0.010777552612125874,
-0.043363798409700394,
0.09114730358123779,
0.04470419883728027,
0.026409531012177467,
-0.023674387484788895,
0.012244748882949352,
-0.010098295286297798,
0.010406224988400936,
-0.050138261169195175,
-0.0252502653747797,
0.03818332776427269,
0.018439577892422676,
0.00012721927487291396,
0.02443515695631504,
-0.005366134457290173,
-0.019091663882136345,
0.04564610496163368,
-0.0128153245896101,
0.02429024875164032,
-0.019508276134729385,
0.04441438242793083,
-0.020540747791528702,
0.03876296058297157,
-0.016573883593082428,
-0.009428094141185284,
-0.012462111189961433,
-0.034470055252313614,
0.0027192942798137665,
-0.035430070012807846,
0.06720121204853058,
-0.028546929359436035,
0.029090335592627525,
0.0031608114950358868,
0.00614501629024744,
-0.015269708819687366,
0.01673690415918827,
-0.0006000107969157398,
-0.01701766438782215,
-0.006742762867361307,
0.007856745272874832,
0.057130083441734314,
-0.012190408073365688,
0.0035411957651376724,
0.047566138207912445,
0.035411957651376724,
-0.06270905584096909,
-0.009763194248080254,
0.06749102473258972,
-0.0164652019739151,
-0.01958072930574417,
-0.01240777038037777,
0.000646426749881357,
0.0029026938136667013,
-0.0020411687437444925,
-0.0003679311485029757,
0.021265288814902306,
-0.020848676562309265,
0.052565474063158035,
-0.0148530974984169,
-0.023511366918683052,
-0.04213207960128784,
0.0035547809675335884,
0.06502758711576462,
0.035701774060726166,
-0.03981354832649231,
-0.06394077092409134,
-0.0018475804245099425,
-0.019653184339404106,
0.0031177918426692486,
-0.039487503468990326,
0.01606670394539833,
0.01032471377402544,
0.02294984646141529,
-0.06274528056383133,
-0.03642631694674492,
-0.0063895490020513535,
-0.023402685299515724,
0.014037988148629665,
-0.007059749681502581,
-0.00871260929852724,
-0.060789018869400024,
-0.0326768159866333,
-0.04416079446673393,
-0.0345425084233284,
0.062636598944664,
-0.009138277731835842,
0.06183960288763046,
-0.005746518727391958,
-0.016619166359305382,
0.04734877496957779,
0.03492289409041405,
0.028565041720867157,
-0.022986074909567833,
0.01632029376924038,
-0.0596659779548645,
-0.045935921370983124,
-0.048109546303749084,
-0.042023397982120514,
0.004845370072871447,
-0.03465119004249573,
-0.008948085829615593,
0.05165979638695717,
-0.02266003005206585,
-0.014925551600754261,
0.04908767715096474,
-0.0288548581302166,
0.031626228243112564,
0.02458006516098976,
-0.008205430582165718,
0.07752592116594315,
0.023167209699749947,
0.021120380610227585,
-0.03171679750084877,
-0.041479989886283875,
0.027369549497961998,
0.00782504677772522,
0.03390853479504585,
-0.046877823770046234,
0.009011482819914818,
-0.0268623698502779,
0.04611705616116524,
-0.01726219803094864,
-0.00779334781691432,
-0.015704434365034103,
-0.02630085125565529,
0.029199015349149704,
-0.042856618762016296,
-0.010877177119255066,
0.060390520840883255,
-0.0326768159866333,
-0.007662024814635515,
0.015767831355333328,
0.11447753012180328,
0.022026056423783302,
0.010288487188518047,
-0.019399594515562057,
0.013603263534605503,
0.028546929359436035,
-0.06549853831529617,
0.02133774198591709,
-0.012317202985286713,
-0.018258441239595413,
0.032984744757413864,
0.004444608464837074,
-0.03604593127965927,
-0.053398698568344116,
0.033238332718610764,
-0.024906108155846596,
0.02441704273223877,
0.005945767275989056,
0.030974142253398895,
0.003833276452496648,
-0.00471857562661171,
-0.026626894250512123,
-0.01012546569108963,
-0.07328735291957855,
0.003840069053694606,
-0.007458247244358063,
-0.03090168908238411,
-0.001080019399523735,
0.02430836111307144,
0.026608780026435852,
-0.01619349978864193,
0.0241453405469656,
0.008105806075036526,
-0.005615195259451866,
-0.002791748382151127,
0.008196373470127583,
-0.01268853060901165,
0.029180902987718582,
-0.030738666653633118,
-0.011701342649757862,
-0.04354493319988251,
0.0014841776574030519,
0.03418023884296417,
0.015568582341074944,
0.04470419883728027,
-0.02822088450193405,
-0.06836047768592834,
-0.030466962605714798,
-0.0022302288562059402,
0.01173757016658783,
-0.02521403878927231,
0.08027917891740799,
0.0693386048078537,
-0.007485417649149895,
-0.05868784710764885,
-0.04550119489431381,
-0.006172186695039272,
-0.03470553085207939,
0.04155244678258896,
-0.01970752514898777,
-0.031209617853164673,
0.05636931583285332,
-0.01914600469172001,
-0.029615627601742744,
0.04111772030591965,
-0.0450664721429348,
0.001934751751832664,
-0.0058823698200285435,
-0.0003065149358008057,
0.00384459737688303,
-0.006090675480663776,
0.02159133180975914,
-0.018928643316030502,
-0.030285827815532684,
0.0300865788012743,
-0.06589703261852264,
-0.026210283860564232,
0.004227245692163706,
0.0252502653747797,
0.06183960288763046,
-0.0074491905979812145,
0.022170964628458023,
-0.05738367512822151,
-0.06437549740076065,
0.024453269317746162,
-0.054847780615091324,
-0.0028823160100728273,
0.03255001828074455,
0.06455663591623306,
0.0423494428396225,
0.011945875361561775,
0.011402469128370285,
0.06361472606658936,
-0.02807597629725933,
0.003998562693595886,
-0.016030477359890938,
-0.05546363815665245,
-0.039487503468990326,
0.05205829441547394,
-0.06651289761066437,
-0.042059626430273056,
0.012860609218478203,
0.03644442930817604,
0.03512214124202728,
0.0594123899936676,
-0.059847116470336914,
-0.03274926915764809,
0.017914284020662308,
-0.04503024369478226,
-0.034759871661663055,
-0.06046297401189804,
0.0241453405469656,
0.01093151792883873,
0.027731819078326225,
0.017896171659231186,
-0.06879519671201706,
0.009400923736393452,
-0.0033759097568690777,
0.017325595021247864,
-0.02494233474135399,
-0.0068016317673027515,
0.03255001828074455,
0.044740427285432816,
0.0035049687139689922,
0.014282520860433578,
0.023964205756783485,
-0.0022743805311620235,
-0.08310489356517792,
0.008169203996658325,
-0.01390213705599308,
-0.031934160739183426,
0.0046008373610675335,
0.0008598268032073975,
0.024652518332004547,
0.03713274374604225,
0.036897268146276474,
-0.052710384130477905,
-0.0003005714388564229,
0.02372872829437256,
0.016899926587939262,
0.039886001497507095,
0.01295117661356926,
-0.003246850799769163,
0.03128207102417946,
-0.055391184985637665,
-0.0014717245940119028,
0.025848012417554855,
0.033238332718610764,
-0.0070235226303339005,
0.0008094485383480787,
0.03930636867880821,
-0.11563679575920105,
0.017869001254439354,
0.028166543692350388,
0.012326259166002274,
0.005343492608517408,
0.052710384130477905,
-0.01065075770020485,
-0.010025841183960438,
-0.01874750666320324,
0.052311886101961136,
-0.03738633170723915,
0.05028316751122475,
0.05705763027071953,
0.059992022812366486,
-0.027912955731153488,
0.024779314175248146,
0.0007998257060535252,
-0.008169203996658325,
-0.00036821418325416744,
-0.05531873181462288,
-0.059593524783849716,
-0.029307696968317032,
0.04289284721016884,
0.0268623698502779,
-0.044885337352752686,
0.015559525229036808,
0.020015453919768333,
0.016284067183732986,
0.014844040386378765,
0.023547593504190445,
0.07470021396875381,
-0.013349674642086029,
-0.011701342649757862,
0.010949631221592426,
-0.04673291742801666,
-0.010134521871805191,
-0.014508940279483795,
0.038110874593257904,
0.04774727299809456,
0.02430836111307144,
-0.024507610127329826,
-0.012462111189961433,
0.04267548397183418,
0.031119050458073616,
0.01981620490550995,
0.008449963293969631,
0.04492156207561493,
0.017778433859348297,
0.021772466599941254,
-0.011556434445083141,
-0.051080163568258286,
-0.055137597024440765,
-0.010025841183960438,
-0.04858049750328064,
0.022841164842247963,
-0.002809861907735467,
-0.0046144225634634495,
-0.008486190810799599,
-0.011873421259224415,
-0.00389667390845716,
-0.014798756688833237,
0.03186170384287834,
0.02872806414961815,
-0.03727765381336212,
0.06846915930509567,
0.013965534046292305,
-0.007059749681502581,
-0.06680271029472351,
0.05419569090008736,
-0.021392082795500755,
-0.059557296335697174,
-0.03450627997517586,
0.018113533034920692,
0.03524893522262573,
-0.013820625841617584,
-0.04499401897192001,
0.013603263534605503,
-0.033020973205566406,
0.0073223961517214775,
-0.0510077103972435,
0.031227732077240944,
0.026518212631344795,
0.005425003357231617,
0.01743427664041519,
-0.03211529552936554,
-0.0826701670885086,
0.014753472991287708,
0.03439759835600853,
0.06031806766986847,
0.041081495583057404,
-0.07701874524354935,
-0.05981088802218437,
-0.01805919222533703,
-0.00560161005705595,
-0.015976136550307274,
0.06194828450679779,
-0.016619166359305382,
0.038110874593257904,
0.0065299286507070065,
0.005298208445310593,
0.019924886524677277,
-0.024652518332004547,
0.017896171659231186,
-0.027224641293287277,
-0.05437682941555977,
-0.006865029223263264,
0.03050319105386734,
-0.012036442756652832,
0.0252502653747797,
-0.020178476348519325,
-0.009835648350417614,
0.009355640038847923,
0.01821315847337246,
-0.0033962875604629517,
-0.05709385871887207,
0.029253356158733368,
0.020341498777270317,
0.02441704273223877,
-0.09527718275785446,
-0.024362701922655106,
-0.02872806414961815,
0.014418372884392738,
0.02403665892779827,
0.029996011406183243,
-0.07031673938035965,
-0.0011773796286433935,
-0.0029615627136081457,
0.07165713608264923,
0.029090335592627525,
-0.022225305438041687,
-0.027188414707779884,
0.07484512031078339,
0.05948484316468239,
-0.031517546623945236,
0.027188414707779884,
0.028583155944943428,
-0.010216033086180687,
0.014391202479600906,
-0.05506514012813568,
-0.0423494428396225,
-0.022623803466558456,
0.0128153245896101,
-0.02510535717010498,
0.05832557752728462,
0.013847796246409416,
0.026246510446071625,
0.05839803069829941,
-0.024380816146731377,
-0.03119150549173355,
-0.03593724966049194,
0.02726086787879467,
0.0645928606390953,
-0.07651156187057495,
-0.02336645871400833,
0.01283343881368637,
0.04358116164803505,
-0.022696256637573242,
-0.018294669687747955,
0.016791244968771935,
-0.008205430582165718,
-0.01876562088727951,
-0.018249385058879852,
0.06814311444759369,
0.03211529552936554,
0.046769142150878906,
-0.006086147390305996,
-0.02861938253045082,
0.029362037777900696,
0.03858182579278946,
-0.028945427387952805,
0.060825247317552567,
0.013965534046292305,
0.008363923989236355,
-0.010514906607568264,
-0.061042606830596924,
0.003443835536018014,
0.0370059497654438,
0.06578835099935532,
0.06814311444759369,
0.011330015026032925,
-0.010714154690504074,
-0.03211529552936554,
-0.039197687059640884,
-0.0324232243001461,
0.033020973205566406,
-0.06346981972455978,
0.012208521366119385,
-0.0061812433414161205,
0.05981088802218437,
0.0361546128988266,
-0.01343118492513895,
0.005923125427216291,
-0.006285395938903093,
0.02186303585767746,
-0.043255116790533066,
-0.016392746940255165,
-0.0022845694329589605,
-0.0025992919690907,
0.044052112847566605,
0.053760968148708344,
-0.0718020498752594,
-0.0031404339242726564,
-0.04075545072555542,
-0.04843558743596077,
-0.008024295791983604,
-0.007843160070478916,
-0.03104659728705883,
0.029742421582341194,
0.07542475312948227,
-0.023529479280114174,
0.014210066758096218,
-0.004102715291082859,
0.014771586284041405,
-0.06267282366752625,
-0.04372607171535492,
-0.024869881570339203,
-0.015948966145515442,
0.02994167059659958,
0.019635070115327835,
-0.014273464679718018,
-0.019218459725379944,
0.011320958845317364,
0.01578594371676445,
0.034053441137075424,
0.07042542099952698,
-0.007444662041962147,
0.03970486670732498,
0.0027442004065960646,
0.004562346264719963,
-0.026246510446071625,
0.06191205605864525,
0.011483980342745781,
-0.040429405868053436,
0.09766817092895508,
0.030394509434700012,
0.048109546303749084,
-0.025594422593712807,
0.00391705147922039,
-0.027188414707779884,
0.012924006208777428,
0.06814311444759369,
0.031372640281915665,
0.0016630487516522408,
-0.08426415920257568,
0.06220187246799469
] |
725,378 | tushare.pro.data_pro | ht_subs | null | def ht_subs(username, password):
from tushare.subs.ht_subs.subscribe import InsightSubscribe
app = InsightSubscribe(username, password)
return app
| (username, password) | [
-0.0372295156121254,
-0.07362163066864014,
0.05635020509362221,
-0.04678986221551895,
-0.006485507357865572,
0.02494761534035206,
0.00007271389767993242,
0.014514976181089878,
0.0007807033252902329,
0.02098739892244339,
0.01334610115736723,
0.020324455574154854,
0.03667124733328819,
-0.00968246627599001,
-0.04337046667933464,
-0.027128349989652634,
0.03995107486844063,
-0.013110581785440445,
-0.0108949551358819,
-0.04563843458890915,
-0.0032383922953158617,
-0.0331471785902977,
0.046126917004585266,
0.06245626509189606,
-0.052651677280664444,
0.010764110833406448,
-0.009560344740748405,
-0.022697094827890396,
-0.001652997569181025,
0.0054998151026666164,
0.00866624340415001,
0.007296741008758545,
0.03656657412648201,
-0.006433169823139906,
0.02470337226986885,
-0.012796556577086449,
-0.023586835712194443,
-0.03035583905875683,
-0.0918351337313652,
0.03876475617289543,
0.038346052169799805,
-0.024895276874303818,
0.07243531197309494,
-0.002176373964175582,
0.031106011942029,
0.06758535653352737,
0.01575363427400589,
0.026552636176347733,
0.03803202882409096,
-0.00760204391553998,
-0.0032296692952513695,
0.02255752868950367,
-0.03702016547322273,
-0.006952184718102217,
-0.018789216876029968,
0.053035490214824677,
0.004429074004292488,
0.07215617597103119,
-0.009054413996636868,
-0.003077017841860652,
-0.040090642869472504,
-0.032588910311460495,
0.02028956264257431,
0.0685972198843956,
0.04337046667933464,
0.030791986733675003,
-0.01339843962341547,
-0.01685272343456745,
-0.003109728917479515,
-0.06109548732638359,
0.013162919320166111,
-0.01912068948149681,
-0.044801030308008194,
-0.04103272035717964,
0.030443068593740463,
0.006468061823397875,
-0.0180215984582901,
-0.008814533241093159,
-0.05652466416358948,
0.02028956264257431,
0.03297272324562073,
-0.02807042747735977,
-0.014951122924685478,
0.09874370694160461,
0.06189799681305885,
0.04207947477698326,
0.015727464109659195,
-0.06625946611166,
-0.04867401719093323,
0.050209254026412964,
-0.0025296532548964024,
-0.04260284826159477,
-0.012334240600466728,
0.036357223987579346,
-0.011941707693040371,
-0.04337046667933464,
-0.04870890825986862,
0.03963704779744148,
-0.043684493750333786,
0.013258872553706169,
-0.026029258966445923,
-0.005059306509792805,
-0.07145833969116211,
0.04180033877491951,
0.0024664117954671383,
-0.03318207338452339,
0.0026626780163496733,
0.04082337021827698,
0.012770387344062328,
-0.00584001000970602,
0.003109728917479515,
0.030739648267626762,
0.014863893389701843,
-0.02580246329307556,
-0.029727786779403687,
-0.005626297555863857,
0.008221372961997986,
-0.01008372101932764,
0.02163289673626423,
-0.05774587765336037,
-0.045324407517910004,
0.025436099618673325,
0.044277653098106384,
0.04504527524113655,
0.0377877838909626,
0.052407436072826385,
-0.024197442457079887,
-0.044556789100170135,
0.041590988636016846,
-0.03227488696575165,
0.033810123801231384,
-0.005661189556121826,
0.006699219811707735,
-0.01226445659995079,
-0.03131536394357681,
-0.03267614170908928,
0.0592811144888401,
0.007178981322795153,
0.031071120873093605,
0.02023722603917122,
-0.05429159104824066,
0.018004152923822403,
-0.04413808882236481,
0.04581289365887642,
0.013747356832027435,
-0.056768909096717834,
-0.01709696650505066,
0.028872938826680183,
0.0377877838909626,
0.004710388835519552,
-0.024511467665433884,
-0.02948354370892048,
0.007296741008758545,
0.0028153297025710344,
-0.010990907438099384,
0.02023722603917122,
0.014541144482791424,
0.0047670877538621426,
0.02191203087568283,
-0.0020291744731366634,
0.027128349989652634,
0.019504498690366745,
-0.05471029505133629,
0.011418331414461136,
-0.06793427467346191,
-0.012770387344062328,
0.06821341067552567,
0.02459869720041752,
0.005730973090976477,
0.0010549308499321342,
-0.029780125245451927,
-0.039497483521699905,
-0.047173671424388885,
-0.011147920042276382,
0.005796395242214203,
-0.06727132946252823,
0.042637743055820465,
0.003674539504572749,
0.003977661486715078,
0.02807042747735977,
-0.022749433293938637,
-0.012508698739111423,
-0.06730622053146362,
0.02278432436287403,
0.0270236749202013,
0.010249457322061062,
0.03190852329134941,
0.048394884914159775,
0.030094150453805923,
-0.00755842961370945,
-0.023674065247178078,
-0.022574974223971367,
-0.012656989507377148,
-0.013241426087915897,
0.0054649231024086475,
-0.01165385078638792,
-0.03691549226641655,
0.01293612364679575,
-0.10125591605901718,
-0.010441361926496029,
-0.044103194028139114,
-0.010537314228713512,
0.007933516055345535,
-0.02191203087568283,
0.07215617597103119,
-0.020969953387975693,
0.019173026084899902,
-0.009438223205506802,
-0.011793417856097221,
-0.07065583020448685,
0.03319951891899109,
-0.01058092899620533,
0.0021927296184003353,
0.021720126271247864,
-0.021179303526878357,
0.034909214824438095,
0.012552313506603241,
-0.02911718189716339,
0.04518483951687813,
-0.047068994492292404,
0.036775924265384674,
0.013066967017948627,
-0.06782960146665573,
-0.04933696240186691,
-0.049685876816511154,
0.023761294782161713,
0.018387962132692337,
0.009525452740490437,
-0.014663266018033028,
-0.04567332565784454,
0.07362163066864014,
0.04863912612199783,
0.06608501076698303,
0.002767353318631649,
-0.08876466006040573,
0.0029788848478347063,
-0.04644094407558441,
-0.008705495856702328,
0.08276327699422836,
0.06716665625572205,
0.022121381014585495,
0.03318207338452339,
0.015605343505740166,
0.04382406175136566,
-0.02878570929169655,
0.008260626345872879,
-0.05401245877146721,
0.00868805032223463,
0.00715281255543232,
-0.01212488953024149,
-0.03302505984902382,
-0.07711081206798553,
-0.006106059532612562,
-0.006603267043828964,
-0.017489498481154442,
-0.010799002833664417,
-0.01136599387973547,
0.013424607925117016,
-0.023115796968340874,
-0.06447999179363251,
0.020254671573638916,
0.05743185058236122,
-0.06650371104478836,
0.04260284826159477,
-0.0010772834066301584,
-0.03157705068588257,
-0.004610075149685144,
0.018457746133208275,
-0.03469986468553543,
-0.013442053459584713,
0.03323440998792648,
0.030041811987757683,
0.01789947785437107,
0.012229564599692822,
-0.03611297905445099,
-0.05087219923734665,
0.025313979014754295,
0.055443018674850464,
0.017506945878267288,
-0.035432592034339905,
-0.058269254863262177,
0.0261513814330101,
0.0261513814330101,
0.022888999432325363,
0.04661540314555168,
-0.039148565381765366,
0.021598005667328835,
0.001816552714444697,
0.030094150453805923,
-0.06671306490898132,
0.04162587970495224,
0.009394608438014984,
0.011793417856097221,
-0.00252747256308794,
-0.018562421202659607,
0.09092795103788376,
-0.07564535737037659,
0.028122765943408012,
0.0738309845328331,
0.00860518217086792,
0.03436839208006859,
0.025156965479254723,
-0.04050934314727783,
-0.005416946951299906,
-0.01901601441204548,
-0.029274193570017815,
-0.01611127331852913,
0.06549184769392014,
-0.0007190975593402982,
-0.00007659833499928936,
-0.05209340900182724,
-0.03232722356915474,
-0.0031228133011609316,
0.006306687369942665,
-0.061200160533189774,
-0.007933516055345535,
0.013747356832027435,
0.01906835101544857,
0.024371899664402008,
0.028628695756196976,
0.016643373295664787,
0.005015691742300987,
0.05701315030455589,
-0.006699219811707735,
0.021092073991894722,
0.009002076461911201,
0.011592790484428406,
-0.012944846414029598,
-0.008347855880856514,
-0.02452891319990158,
-0.05279124528169632,
0.05652466416358948,
0.04305644333362579,
-0.03288549184799194,
-0.06168864667415619,
0.018859000876545906,
0.025680342689156532,
0.0183181781321764,
-0.08101868629455566,
-0.06971375644207001,
-0.032065536826848984,
0.022801771759986877,
-0.03046051412820816,
0.028733370825648308,
0.009560344740748405,
-0.03726441040635109,
-0.08157695829868317,
-0.021999260410666466,
-0.000419246411183849,
-0.07194682955741882,
0.013162919320166111,
0.010136058554053307,
0.04312622547149658,
0.02417999505996704,
0.05209340900182724,
-0.010511144995689392,
-0.025767570361495018,
0.0027826186269521713,
0.012386578135192394,
-0.05635020509362221,
-0.04703410342335701,
0.04029999300837517,
-0.03358332812786102,
-0.019556837156414986,
-0.07229574769735336,
-0.026552636176347733,
0.022801771759986877,
0.029675450176000595,
-0.032013196498155594,
0.023639174178242683,
0.027058565989136696,
-0.005382055416703224,
0.013878201134502888,
0.06727132946252823,
-0.049616094678640366,
-0.0019354027463123202,
-0.012744218111038208,
-0.030617527663707733,
-0.06427063792943954,
0.001509068999439478,
0.018649650737643242,
0.08227478712797165,
0.00994415394961834,
0.010057552717626095,
0.044382330030202866,
-0.047941289842128754,
-0.06357280164957047,
0.03768311068415642,
0.035258132964372635,
0.05837392807006836,
-0.005521622486412525,
-0.007588959764689207,
-0.0044356160797178745,
-0.01258720550686121,
-0.03628743812441826,
-0.029797570779919624,
-0.00964757427573204,
0.020132550969719887,
0.03667124733328819,
0.024371899664402008,
0.018056489527225494,
-0.035310469567775726,
0.014052660204470158,
-0.013538006693124771,
0.021702680736780167,
-0.0016977025661617517,
0.05471029505133629,
-0.04337046667933464,
0.027407484129071236,
-0.06179332360625267,
-0.020429130643606186,
-0.003526249434798956,
-0.07250509411096573,
0.017009736970067024,
0.011147920042276382,
-0.01557917520403862,
-0.01150556094944477,
0.04064891114830971,
-0.050383713096380234,
0.02861125022172928,
0.0013269776245579123,
-0.04023021087050438,
0.02086527831852436,
0.011104305274784565,
0.011714911088347435,
0.03946258872747421,
-0.0043571097776293755,
0.009752249345183372,
0.00575714185833931,
-0.011915539391338825,
0.017358655110001564,
-0.02168523333966732,
-0.0017445884877815843,
-0.04602224379777908,
0.025558220222592354,
-0.01241274643689394,
0.0022243503481149673,
-0.028576359152793884,
-0.0008243180345743895,
-0.016425300389528275,
-0.00043233082396909595,
-0.03283315524458885,
0.03131536394357681,
-0.059560250490903854,
0.04364960268139839,
-0.029623111709952354,
-0.07585470378398895,
-0.023325147107243538,
0.017655234783887863,
-0.022226056084036827,
-0.02163289673626423,
-0.011435776948928833,
0.00241189356893301,
-0.000559358682949096,
0.0010418463498353958,
-0.033862460404634476,
0.042009688913822174,
0.02983246184885502,
-0.013625235296785831,
-0.03536280617117882,
-0.01866709627211094,
-0.01304952148348093,
0.01168002001941204,
-0.0066948579624295235,
0.014846447855234146,
-0.02116185799241066,
0.021301424130797386,
-0.014000321738421917,
0.01154045294970274,
0.00949928443878889,
-0.0033452482894062996,
0.032693587243556976,
0.008321686647832394,
0.027861077338457108,
0.09274232387542725,
0.037473760545253754,
-0.032414454966783524,
-0.026186272501945496,
-0.05600128695368767,
-0.009717357344925404,
-0.03719462454319,
0.05945557355880737,
0.03796224296092987,
0.03267614170908928,
-0.029500991106033325,
-0.03562449663877487,
0.020708264783024788,
-0.055547695606946945,
-0.011924262158572674,
-0.01901601441204548,
0.015840863808989525,
0.019312594085931778,
-0.019731294363737106,
0.02866358868777752,
-0.022749433293938637,
0.013913093134760857,
-0.035833846777677536,
0.04392873868346214,
-0.003275464754551649,
0.015422161668539047,
-0.016774218529462814,
0.010336686857044697,
0.016521252691745758,
0.0406838022172451,
0.00723568070679903,
0.03457774221897125,
-0.03405436500906944,
0.020132550969719887,
0.03715973347425461,
0.016137443482875824,
0.0007883359212428331,
0.0019735656678676605,
-0.006524760741740465,
0.0015788525342941284,
0.02459869720041752,
-0.012002767994999886,
-0.02452891319990158,
0.010703049600124359,
-0.037299301475286484,
-0.026587527245283127,
-0.014837725088000298,
0.027599388733506203,
0.004040902946144342,
0.04958120360970497,
0.05910665541887283,
-0.01667826622724533,
-0.015884477645158768,
0.019103243947029114,
-0.012404023669660091,
0.0785064771771431,
0.005874901544302702,
0.045149948447942734,
-0.047941289842128754,
-0.04574310779571533,
-0.024284670129418373,
-0.0505930632352829,
-0.10976950079202652,
-0.03586873784661293,
0.06699219346046448,
-0.019330039620399475,
-0.0412769615650177,
0.042707525193691254,
-0.026500297710299492,
-0.04256795719265938,
-0.06605011969804764,
0.036601465195417404,
-0.06092102825641632,
0.011313656345009804,
-0.0314025916159153,
0.00860518217086792,
-0.01011861301958561,
-0.03859029710292816,
0.04337046667933464,
0.023464715108275414,
-0.04895315319299698,
0.0258722472935915,
-0.056245531886816025,
0.008273710496723652,
-0.02878570929169655,
0.045429084450006485,
-0.012194673530757427,
-0.03698527440428734,
-0.05006968975067139,
0.04134674742817879,
-0.030041811987757683,
-0.011810863390564919,
0.02285410836338997,
0.015657681971788406,
-0.02627350203692913,
0.023970644921064377,
0.026639865711331367,
-0.011810863390564919,
0.055722154676914215,
0.04619670286774635,
-0.0738309845328331,
-0.02034190110862255,
0.04916250333189964,
-0.006899847183376551,
0.0831121951341629,
0.03344376012682915,
-0.0006847509648650885,
0.029500991106033325,
-0.016137443482875824,
0.00796404667198658,
0.020132550969719887,
0.008522314950823784,
0.061304837465286255,
0.040369775146245956,
-0.060886137187480927,
-0.017410991713404655,
-0.004014734178781509,
-0.0027019314002245665,
0.028820600360631943,
0.02400553598999977,
0.021894585341215134,
-0.046894535422325134,
-0.015177919529378414,
-0.01598042994737625,
0.04860423505306244,
-0.014846447855234146,
-0.027006229385733604,
0.06447999179363251,
-0.008500507101416588,
-0.11898092925548553,
0.04658051207661629,
-0.014166058041155338,
0.00003255769843235612,
-0.08164674043655396,
-0.01721036434173584,
-0.0401255339384079,
0.03471731022000313,
0.022103935480117798,
-0.014532421715557575,
0.006956546567380428,
0.04553375765681267,
0.05722250044345856,
-0.02592458389699459,
-0.02749471366405487,
-0.009560344740748405,
-0.028105320408940315,
0.010676881298422813,
0.05631531402468681,
-0.046475835144519806,
0.03960215672850609,
-0.008286794647574425,
0.0270236749202013,
0.05226786807179451,
0.044103194028139114,
-0.03517090156674385,
0.041137393563985825,
-0.02250519022345543,
-0.026761986315250397,
0.010415192693471909,
0.05387289077043533,
0.003053029766306281,
-0.012927399948239326,
0.008365301415324211,
-0.00933354813605547,
0.04337046667933464,
0.04134674742817879,
-0.049685876816511154,
-0.00979586411267519,
0.026936445385217667,
-0.026290947571396828,
0.038799647241830826,
0.03471731022000313,
-0.0372295156121254,
-0.03447306901216507,
-0.05383799970149994,
-0.03520579636096954,
0.029448652639985085,
0.024685926735401154,
0.012796556577086449,
0.09951132535934448,
-0.07543600350618362,
0.06371237337589264,
0.04640605300664902,
-0.03698527440428734,
0.02001042850315571,
0.030600080266594887,
-0.02318558096885681,
0.007855009287595749,
0.03506622835993767,
0.008552844636142254,
0.04249817505478859,
0.010598374530673027,
0.030198825523257256,
-0.013852031901478767,
-0.048743799328804016,
-0.0053776940330863,
0.05959514155983925,
0.010537314228713512,
0.01702718250453472,
0.003750865114852786,
0.006886763032525778,
-0.002806606702506542,
-0.03155960515141487,
-0.03075709380209446,
0.02034190110862255,
-0.0067690033465623856,
-0.003757407423108816,
-0.022016705945134163,
0.04326579347252846,
-0.06758535653352737,
-0.06092102825641632,
0.02041168510913849,
0.02412765845656395,
-0.003617840353399515,
-0.07397054880857468,
-0.06057211011648178,
-0.022348178550601006,
0.004086698405444622,
-0.05024414882063866,
-0.025907138362526894,
0.04169566184282303,
0.02575012482702732,
-0.014366685412824154,
-0.03796224296092987,
0.01837051659822464,
-0.03375778719782829,
0.04378917068243027,
0.01894623041152954,
0.03698527440428734,
0.020568696781992912,
0.009342270903289318,
-0.014392854645848274,
-0.01165385078638792,
-0.06259583681821823,
0.0511513315141201,
0.005072390660643578,
-0.038450729101896286,
-0.02494761534035206,
0.038346052169799805,
0.049441635608673096,
0.021423546597361565,
-0.05087219923734665,
-0.048743799328804016,
0.04870890825986862,
-0.016896339133381844,
0.04239349812269211,
0.028925275430083275,
-0.046126917004585266,
0.014698158018290997,
-0.005853094160556793,
0.0842985138297081,
0.04738302156329155,
0.07313314825296402,
0.024930167943239212,
0.01307569071650505,
-0.019382378086447716,
-0.015282594598829746,
-0.031018782407045364,
-0.026709649711847305,
0.10307028144598007,
0.01229062583297491,
0.020324455574154854,
-0.038974106311798096,
0.015003460459411144,
0.03925323858857155,
0.014872616156935692,
0.034909214824438095,
-0.04033488407731056,
0.05917644128203392,
0.007431946694850922,
-0.0325714647769928,
-0.012273179367184639,
0.005674273706972599,
-0.08143738657236099,
0.042114365845918655,
0.026814324781298637,
0.0024511467199772596,
0.027407484129071236,
-0.03168172761797905,
-0.03358332812786102,
-0.012962291948497295,
0.02348216064274311,
-0.03396713733673096,
-0.02948354370892048,
-0.09413798898458481,
-0.007196427322924137,
0.04441722109913826,
0.048569340258836746,
0.012377855367958546,
0.008408916182816029,
0.02330770157277584,
0.041660770773887634,
0.051535140722990036,
0.006271795369684696
] |
725,404 | tushare.util.verify_token | wrapper |
沪深京 A 股 all -实时行情
@param src: 数据源 新浪sina |东方财富 dc
@param interval: 分页采集时间间隔(默认3秒翻译一夜)
@param page_count: 限制抓取的页数(仅对新浪有效)
@param proxies: 设置代理 防止被封禁
@return: 按涨跌幅 倒序排序
-------
DataFrame 实时交易数据
东方财富:
2、代码:TS_CODE
3、名称:NAME
4、最新价:PRICE
5、涨跌幅:PCT_CHANGE
6、涨跌额:CHANGE
7、成交量:VOLUME
8、成交额:AMOUNT
9、振幅:SWING
10、最高:HIGH
11、最低:LOW
12、今开:OPEN
13、昨收:CLOSE
14、量比:VOL_RATIO
15、换手率:TURNOVER_RATE
16、市盈率-动态:PE
17、市净率:PB
18、总市值:TOTAL_MV
19、流通市值:FLOAT_MV
20、涨速:RISE
21、5分钟涨跌:5MIN
22、60日涨跌幅:60DAY
23、年初至今涨跌幅:1YEAR
新浪财经:
1、代码:TS_CODE
2、名称:NAME
3、最新价:PRICE
4、涨跌额:CHANGE
5、涨跌幅:PCT_CHANGE
6、买入:BUY
7、卖出:SALE
8、昨收:CLOSE
9、今开:OPEN
10、最高:HIGH
11、最低:LOW
12、成交量:VOLUME
13、成交额:AMOUNT
14、时间戳:TIME
| def require_permission(event_name, event_detail):
def decorator(func):
def wrapper(*args, **kwargs):
# event_name = kwargs["event_name"]
# event_detail = kwargs["event_detail"]
# 检查用户权限
token = get_token()
if token:
try:
r = verify_token(token, event_name, event_detail).json()
except Exception as err:
raise PermissionError(f"验证token出错,{err}")
if r.get("message") == "success":
# 如果有足够权限,调用原始函数
return func(*args, **kwargs)
else:
print(f"验证token出错,{r.text}")
raise PermissionError(f"{r['msg']}")
else:
raise PermissionError(ct.TOKEN_ERR_MSG)
wrapper.__doc__ = func.__doc__
return wrapper
return decorator
| (*args, **kwargs) | [
-0.013250689022243023,
0.05364478379487991,
0.009603628888726234,
0.05617721751332283,
0.03286812826991081,
-0.00935395248234272,
-0.036131758242845535,
0.0025346623733639717,
-0.006027904339134693,
-0.01756652630865574,
0.05182570964097977,
0.012742418795824051,
0.03133440390229225,
-0.07725704461336136,
0.008497918955981731,
-0.015997130423784256,
0.050791338086128235,
0.008141237311065197,
-0.04715319350361824,
-0.007708762306720018,
-0.004326983354985714,
0.004899901803582907,
0.019706610590219498,
-0.0710151344537735,
-0.03538272902369499,
0.0808238536119461,
-0.035685908049345016,
0.021240336820483208,
0.03176242113113403,
-0.015185682103037834,
-0.05749693512916565,
-0.0281777773052454,
0.026447877287864685,
0.05624855309724808,
0.011476202867925167,
0.01342902984470129,
-0.04173164442181587,
0.027803262695670128,
-0.13917681574821472,
-0.051611702889204025,
-0.03727313503623009,
0.02659054845571518,
-0.01365195494145155,
0.022310379892587662,
0.0345623642206192,
-0.02352309413254261,
0.019706610590219498,
0.0422309972345829,
0.009585794992744923,
0.0004628489841707051,
-0.009193445555865765,
0.012492742389440536,
0.025484837591648102,
-0.02823127992451191,
0.01569395139813423,
0.010129733011126518,
0.03588208183646202,
0.05603454262018204,
0.060814063996076584,
-0.005702433176338673,
0.0009034054237417877,
0.06627128273248672,
0.008377538993954659,
0.012029057368636131,
-0.016264641657471657,
-0.0021044162567704916,
0.0016619092784821987,
0.007588382810354233,
-0.008167988620698452,
0.023701434955000877,
-0.03550756722688675,
-0.00793614611029625,
0.048829592764377594,
0.019599607214331627,
0.03827184438705444,
-0.03499038144946098,
-0.07130047678947449,
-0.03934188559651375,
0.053751785308122635,
0.01263541541993618,
0.033777665346860886,
-0.05824596434831619,
-0.008439958095550537,
0.04968562722206116,
-0.015783121809363365,
0.02630520425736904,
-0.045048777014017105,
-0.04601181298494339,
0.0831066146492958,
0.019956286996603012,
-0.026447877287864685,
-0.024931984022259712,
-0.052432067692279816,
-0.012769170105457306,
-0.00866734143346548,
-0.020830154418945312,
0.022560056298971176,
0.050577327609062195,
-0.011716961860656738,
0.00979088619351387,
-0.004095140844583511,
0.03415217995643616,
0.04212399572134018,
0.04141063243150711,
0.04005524516105652,
-0.0024009072221815586,
-0.020419972017407417,
0.003678270149976015,
-0.0014389838324859738,
0.028302615508437157,
-0.03206559643149376,
-0.031530577689409256,
0.023719269782304764,
0.020437806844711304,
-0.028106441721320152,
0.03308213874697685,
0.004721561446785927,
-0.05086267367005348,
-0.03450886160135269,
-0.018565231934189796,
0.1136384829878807,
-0.025342166423797607,
0.050684332847595215,
-0.06323949247598648,
-0.001605063327588141,
0.0729055404663086,
-0.021365176886320114,
0.04233800247311592,
0.037059128284454346,
-0.018832743167877197,
0.022524388507008553,
0.010673671029508114,
0.010682588443160057,
0.0445137545466423,
-0.00449863588437438,
0.012733502313494682,
0.0716928243637085,
-0.02402244694530964,
0.007592841051518917,
-0.06559358537197113,
-0.040839944034814835,
0.05332376807928085,
0.038985203951597214,
0.0234695915132761,
0.0071113221347332,
-0.05371611937880516,
-0.05988669395446777,
0.029729338362812996,
0.057853616774082184,
-0.06413119286298752,
0.036952123045921326,
-0.014561491087079048,
0.02225687727332115,
-0.05442947894334793,
0.0037183966487646103,
0.07961113750934601,
0.011939887888729572,
-0.03313564136624336,
0.01696016825735569,
0.03762981668114662,
0.013179353438317776,
-0.0016541068907827139,
-0.04629715904593468,
0.0022002742625772953,
0.031744584441185,
-0.010914430022239685,
0.00234517571516335,
0.000868294679094106,
0.0038833615835756063,
0.054786160588264465,
-0.0014100035186856985,
0.015239184722304344,
0.05924466997385025,
0.04968562722206116,
-0.003337194211781025,
0.001388825592584908,
-0.019670942798256874,
0.006571842357516289,
-0.022827567532658577,
-0.013437946327030659,
0.03106689266860485,
-0.0031499366741627455,
-0.001609521801583469,
-0.02320208214223385,
0.004088453017175198,
0.051611702889204025,
0.018476061522960663,
0.0018146132351830602,
-0.00842658244073391,
0.0031566245015710592,
-0.06773366779088974,
-0.0031098101753741503,
0.02823127992451191,
-0.009550126269459724,
-0.005488425027579069,
-0.02182886004447937,
-0.038093503564596176,
0.03466936573386192,
0.04929327592253685,
-0.05154036730527878,
0.021186836063861847,
0.08289260417222977,
0.01206472609192133,
0.06973108649253845,
0.0007289662607945502,
0.03338531777262688,
0.04208832606673241,
0.05268174409866333,
-0.07311955094337463,
-0.05475049093365669,
0.05860264599323273,
-0.00771322101354599,
0.020544810220599174,
0.06955274194478989,
0.014677411876618862,
0.037059128284454346,
-0.0029715963173657656,
0.012394655495882034,
0.023933276534080505,
0.014472320675849915,
0.031976427882909775,
0.004440675023943186,
-0.00987113919109106,
-0.021347342059016228,
0.056212883442640305,
0.0016574508044868708,
0.026893727481365204,
-0.05767527595162392,
0.014757665805518627,
0.0079851895570755,
-0.016674824059009552,
-0.009781968779861927,
0.006438087206333876,
0.030710211023688316,
-0.01827988773584366,
-0.03133440390229225,
0.029087314382195473,
-0.03502604737877846,
-0.025021154433488846,
0.006442545913159847,
0.00956796109676361,
0.022328214719891548,
0.04183864966034889,
0.06694897264242172,
0.06573625653982162,
0.002124479738995433,
0.0006648752023465931,
0.0657719299197197,
-0.0033149016089737415,
-0.022132039070129395,
-0.07511696219444275,
0.041767314076423645,
-0.04907926917076111,
-0.016549985855817795,
-0.04743853956460953,
0.007450168952345848,
-0.032350942492485046,
-0.023915443569421768,
0.041767314076423645,
0.03317130729556084,
-0.008818930946290493,
-0.01766461320221424,
0.008578171953558922,
-0.007459085900336504,
0.028926808387041092,
-0.057853616774082184,
0.0008287254022434354,
0.006246371194720268,
-0.019563937559723854,
-0.04390740022063255,
-0.005858480930328369,
0.005069324746727943,
0.023861940950155258,
-0.050291985273361206,
-0.01162779238075018,
-0.04347938299179077,
0.035775076597929,
0.003330506384372711,
0.010548832826316357,
-0.009960309602320194,
-0.02111549861729145,
0.013750042766332626,
-0.015417524613440037,
0.1078602522611618,
-0.07108647376298904,
-0.007811307907104492,
0.007945063523948193,
-0.003083059098571539,
0.0011006944114342332,
-0.0027509001083672047,
0.007196033839136362,
-0.03156624361872673,
0.004117433447390795,
0.0007289662607945502,
-0.0044094654731452465,
0.006589676719158888,
-0.004899901803582907,
-0.026768889278173447,
0.033777665346860886,
0.01820855215191841,
0.04365772008895874,
0.015765288844704628,
-0.039805568754673004,
-0.05838863551616669,
-0.0005163510795682669,
-0.016398396342992783,
0.049649957567453384,
-0.040447596460580826,
-0.08588872104883194,
-0.03477637097239494,
0.020937159657478333,
0.004841940943151712,
0.00218244013376534,
-0.012572996318340302,
0.009728467091917992,
0.03791516274213791,
0.014525823295116425,
0.02799943834543228,
0.03548973426222801,
0.053145430982112885,
0.013553868047893047,
0.047830887138843536,
0.03534705936908722,
-0.05803195387125015,
0.05136202648282051,
-0.052824415266513824,
0.02473580837249756,
-0.04551246017217636,
-0.009416371583938599,
0.049542952328920364,
-0.08660208433866501,
-0.06834002584218979,
0.02735741250216961,
-0.0486869215965271,
-0.11428050696849823,
0.028480956330895424,
-0.022952405735850334,
-0.0018892933148890734,
0.03738014027476311,
-0.02220337651669979,
0.0033059846609830856,
-0.01926076039671898,
0.014115639962255955,
0.07568765431642532,
-0.057853616774082184,
-0.02543133683502674,
0.02566317841410637,
0.028926808387041092,
0.07775639742612839,
0.010513165034353733,
0.027910267934203148,
0.014133473858237267,
0.020152460783720016,
-0.050577327609062195,
0.0498996339738369,
0.005773769225925207,
0.01833339035511017,
-0.012412489391863346,
0.002378614619374275,
-0.043087031692266464,
0.008399831131100655,
-0.02188236266374588,
0.007173741236329079,
0.012679999694228172,
0.006424711551517248,
0.01738818548619747,
-0.0014512446941807866,
-0.0027932559605687857,
0.04715319350361824,
0.011609957553446293,
-0.03609608858823776,
-0.011716961860656738,
-0.004326983354985714,
0.06448787450790405,
0.02543133683502674,
-0.036952123045921326,
-0.000028614573238883168,
-0.012920759618282318,
-0.07418959587812424,
0.013446863740682602,
-0.02336258813738823,
0.0331534743309021,
0.016942335292696953,
-0.019991954788565636,
0.012644331902265549,
-0.02254222333431244,
-0.06555791944265366,
0.03415217995643616,
-0.04654683545231819,
-0.01542644202709198,
-0.00024034151283558458,
-0.017762700095772743,
-0.04808056354522705,
0.00045866912114433944,
-0.07147882133722305,
-0.04775955155491829,
-0.04619015380740166,
0.05607021227478981,
-0.03730880469083786,
0.0281777773052454,
0.002356322016566992,
0.006968650035560131,
-0.044656429439783096,
-0.08068118244409561,
0.02418295294046402,
0.03458019718527794,
-0.009523375891149044,
-0.04754554107785225,
-0.010245653800666332,
0.006424711551517248,
0.00956796109676361,
-0.06530824303627014,
0.01739710196852684,
0.025912854820489883,
0.01984928362071514,
0.027500085532665253,
0.0011647854698821902,
0.001561592798680067,
-0.022898903116583824,
-0.03488337621092796,
0.0563555546104908,
-0.028641462326049805,
0.016389479860663414,
0.022328214719891548,
-0.0322796069085598,
0.01668374054133892,
0.0000498795707244426,
0.030763713642954826,
-0.0334923192858696,
0.0009819866390898824,
-0.030835049226880074,
0.009915724396705627,
-0.028213446959853172,
-0.04030492156744003,
-0.013001012615859509,
-0.026786722242832184,
-0.039520226418972015,
0.020633980631828308,
-0.005006905645132065,
-0.005104993004351854,
0.03969856724143028,
-0.005238748155534267,
0.030460534617304802,
0.009666047990322113,
0.020830154418945312,
0.017031505703926086,
-0.0340273417532444,
0.04886526241898537,
0.057247258722782135,
-0.08531802892684937,
0.05421547219157219,
0.0881001427769661,
0.016335977241396904,
0.009701715782284737,
0.002786568133160472,
-0.024272123351693153,
-0.05014931038022041,
-0.050969675183296204,
0.0010806311620399356,
-0.001344240503385663,
0.008970520459115505,
-0.019706610590219498,
-0.06370317935943604,
-0.04405007138848305,
-0.007592841051518917,
0.005055949557572603,
-0.0020587167236953974,
0.0006141596240922809,
-0.00930044986307621,
-0.0022047327365726233,
0.06905338913202286,
-0.07411825656890869,
-0.0022693811915814877,
-0.012394655495882034,
0.006460379809141159,
0.014293980784714222,
0.01151187065988779,
0.002603769302368164,
0.09601845592260361,
0.06687764078378677,
0.025645345449447632,
-0.02302374131977558,
-0.001065026386640966,
0.02587718702852726,
-0.022328214719891548,
-0.012626498006284237,
-0.031869422644376755,
-0.04194565489888191,
-0.02056264504790306,
0.0026394373271614313,
-0.02100849524140358,
-0.005559761077165604,
0.020419972017407417,
0.00564893102273345,
0.05881665274500847,
0.002828923985362053,
0.015542362816631794,
-0.001216058386489749,
-0.04579780623316765,
0.005439381115138531,
-0.03085288405418396,
0.022453052923083305,
-0.0025792475789785385,
-0.014249395579099655,
0.01656782068312168,
0.014829001389443874,
-0.045441124588251114,
-0.04722452908754349,
-0.003415218088775873,
0.005622180178761482,
-0.008422124199569225,
0.07718571275472641,
0.08296393603086472,
0.07497429102659225,
-0.002552496502175927,
-0.024931984022259712,
-0.011110604740679264,
0.0427660197019577,
-0.03276112675666809,
-0.029889846220612526,
0.061028074473142624,
-0.005862939637154341,
0.012483825907111168,
-0.00852912850677967,
0.008480084128677845,
-0.03452669456601143,
0.028142109513282776,
-0.016451898962259293,
-0.011681294068694115,
0.03204776346683502,
-0.020812321454286575,
0.03313564136624336,
0.010959015227854252,
0.008805555291473866,
-0.005773769225925207,
0.02225687727332115,
-0.0354362316429615,
0.031530577689409256,
-0.015658283606171608,
0.04604748263955116,
0.01968877576291561,
-0.0058317300863564014,
-0.0029158650431782007,
0.013812461867928505,
-0.03400950878858566,
0.020312968641519547,
-0.028088608756661415,
-0.047402869910001755,
0.008194739930331707,
-0.032404445111751556,
-0.006094782147556543,
0.010736090131103992,
0.025752348825335503,
-0.016986919566988945,
0.04993530362844467,
0.021579183638095856,
0.053965795785188675,
-0.016050633043050766,
-0.02248872071504593,
0.009469873271882534,
-0.04426407814025879,
0.032582785934209824,
0.030103854835033417,
-0.003248024033382535,
-0.07418959587812424,
-0.026394374668598175,
0.04447808861732483,
-0.012243065983057022,
-0.037558481097221375,
-0.043087031692266464,
-0.042266666889190674,
-0.038378845900297165,
0.0029760547913610935,
0.0002962122089229524,
-0.06627128273248672,
-0.0020297362934798002,
0.04947161674499512,
-0.04051893204450607,
-0.014597158879041672,
-0.012929677031934261,
-0.0199741218239069,
-0.06755533069372177,
-0.020312968641519547,
-0.04301569610834122,
-0.03074587881565094,
0.021026330068707466,
0.026982897892594337,
0.02789243310689926,
-0.007820225320756435,
-0.015328354202210903,
-0.026875892654061317,
-0.04501310735940933,
-0.025199493393301964,
-0.07094379514455795,
0.06430953741073608,
0.017825119197368622,
-0.061456091701984406,
-0.00927369948476553,
0.005069324746727943,
0.033242642879486084,
-0.02077665366232395,
0.012109311297535896,
-0.029336990788578987,
-0.031138228252530098,
-0.022328214719891548,
0.019349928945302963,
0.0016240120166912675,
-0.07026610523462296,
-0.03112039342522621,
-0.021597018465399742,
-0.027928100898861885,
0.04019792005419731,
-0.015230267308652401,
0.0416959784924984,
0.03670244663953781,
0.0593160055577755,
-0.09701716154813766,
0.004010429140180349,
0.05482183024287224,
-0.002512370003387332,
-0.01157428976148367,
0.007146990392357111,
-0.03156624361872673,
-0.01373220793902874,
-0.023701434955000877,
-0.04711752384901047,
0.042159661650657654,
-0.059815358370542526,
-0.04376472532749176,
-0.006968650035560131,
-0.04026925563812256,
0.004703727085143328,
0.03730880469083786,
-0.05760394036769867,
0.02685805968940258,
-0.039199214428663254,
-0.03144140541553497,
-0.0034085302613675594,
0.015390773303806782,
-0.039805568754673004,
-0.014650661498308182,
0.04355071857571602,
-0.0063712093979120255,
-0.02849879115819931,
-0.019902784377336502,
0.10821693390607834,
0.03461586683988571,
0.0007741086301393807,
0.08788613229990005,
-0.06691330671310425,
-0.0007111321901902556,
0.09987060725688934,
0.018957581371068954,
0.06445220857858658,
0.03101339004933834,
-0.009969226084649563,
-0.03866419196128845,
-0.039092209190130234,
-0.013027763925492764,
-0.01870790496468544,
0.0029314698185771704,
-0.02193586528301239,
0.023005906492471695,
-0.03748714551329613,
-0.010887679643929005,
-0.006010070443153381,
-0.003433051984757185,
-0.05614154785871506,
0.0011274454882368445,
0.024878481402993202,
0.031922925263643265,
-0.024004613980650902,
0.025021154433488846,
-0.0052119973115623,
0.07882644236087799,
-0.004104057792574167,
0.027928100898861885,
-0.06609293818473816,
-0.01749519072473049,
0.006076947785913944,
-0.05289575457572937,
0.01881490834057331,
0.0422309972345829,
-0.04804489389061928,
-0.04198132082819939,
0.045655135065317154,
0.0015861146384850144,
-0.024486131966114044,
-0.047474205493927,
-0.013981884345412254,
0.010646919719874859,
-0.029854176566004753,
-0.002209191210567951,
-0.04390740022063255,
-0.03655977547168732,
-0.0010260144481435418,
-0.023968946188688278,
0.08189389854669571,
-0.009246948175132275,
0.017156343907117844,
-0.004944486543536186,
-0.029301322996616364,
0.0030942053999751806,
-0.004636849742382765,
-0.007490295451134443,
-0.03584641218185425,
-0.03409867733716965,
-0.071550153195858,
0.01603279821574688,
-0.04380039498209953,
-0.018993249163031578,
-0.010102981701493263,
0.06880371272563934,
-0.02384410798549652,
-0.01984928362071514,
-0.034758538007736206,
0.0003862183657474816,
0.011092770844697952,
0.09366436302661896,
-0.04098261520266533,
-0.010753924027085304,
0.04522711783647537,
-0.01607738435268402,
-0.0404832623898983,
0.02309507690370083,
-0.05289575457572937,
-0.028480956330895424,
0.0010137534700334072,
-0.021793192252516747,
-0.04487043619155884,
0.015435358509421349,
-0.0020564873702824116,
-0.04019792005419731,
0.030121687799692154,
-0.010620168410241604,
0.00943420547991991,
-0.05414413660764694,
0.0586383119225502,
-0.045441124588251114,
0.016380563378334045,
0.032796792685985565,
0.07604433596134186,
0.014213726855814457,
-0.003299296833574772,
0.08011049032211304,
0.01071825623512268,
-0.04173164442181587,
0.009126568213105202,
0.04804489389061928,
-0.029087314382195473,
0.03855718672275543,
0.02074098400771618,
-0.0031744586303830147,
0.02783893048763275,
-0.027535753324627876,
-0.011761547066271305,
-0.0026394373271614313,
0.01910025253891945,
0.04315836727619171,
0.04173164442181587,
-0.047010522335767746,
0.03317130729556084,
-0.05471482500433922,
-0.015007342211902142,
-0.01751302368938923,
0.017165260389447212,
0.0415533073246479,
0.05592753738164902
] |
725,405 | tushare.util.verify_token | wrapper |
获取实时交易数据 getting real time quotes data
用于跟踪交易情况(本次执行的结果-上一次执行的数据)
Parameters
------
ts_code : string
src : sina ,dc
return
-------
DataFrame 实时交易数据
属性:0:name,股票名字
1:open,今日开盘价
2:pre_close,昨日收盘价
3:price,当前价格
4:high,今日最高价
5:low,今日最低价
6:bid,竞买价,即“买一”报价
7:ask,竞卖价,即“卖一”报价
8:volumn,成交量 maybe you need do volumn/100
9:amount,成交金额(元 CNY)
10:b1_v,委买一(笔数 bid volume)
11:b1_p,委买一(价格 bid price)
12:b2_v,“买二”
13:b2_p,“买二”
14:b3_v,“买三”
15:b3_p,“买三”
16:b4_v,“买四”
17:b4_p,“买四”
18:b5_v,“买五”
19:b5_p,“买五”
20:a1_v,委卖一(笔数 ask volume)
21:a1_p,委卖一(价格 ask price)
...
30:date,日期;
31:time,时间;
| def require_permission(event_name, event_detail):
def decorator(func):
def wrapper(*args, **kwargs):
# event_name = kwargs["event_name"]
# event_detail = kwargs["event_detail"]
# 检查用户权限
token = get_token()
if token:
try:
r = verify_token(token, event_name, event_detail).json()
except Exception as err:
raise PermissionError(f"验证token出错,{err}")
if r.get("message") == "success":
# 如果有足够权限,调用原始函数
return func(*args, **kwargs)
else:
print(f"验证token出错,{r.text}")
raise PermissionError(f"{r['msg']}")
else:
raise PermissionError(ct.TOKEN_ERR_MSG)
wrapper.__doc__ = func.__doc__
return wrapper
return decorator
| (*args, **kwargs) | [
-0.013250689022243023,
0.05364478379487991,
0.009603628888726234,
0.05617721751332283,
0.03286812826991081,
-0.00935395248234272,
-0.036131758242845535,
0.0025346623733639717,
-0.006027904339134693,
-0.01756652630865574,
0.05182570964097977,
0.012742418795824051,
0.03133440390229225,
-0.07725704461336136,
0.008497918955981731,
-0.015997130423784256,
0.050791338086128235,
0.008141237311065197,
-0.04715319350361824,
-0.007708762306720018,
-0.004326983354985714,
0.004899901803582907,
0.019706610590219498,
-0.0710151344537735,
-0.03538272902369499,
0.0808238536119461,
-0.035685908049345016,
0.021240336820483208,
0.03176242113113403,
-0.015185682103037834,
-0.05749693512916565,
-0.0281777773052454,
0.026447877287864685,
0.05624855309724808,
0.011476202867925167,
0.01342902984470129,
-0.04173164442181587,
0.027803262695670128,
-0.13917681574821472,
-0.051611702889204025,
-0.03727313503623009,
0.02659054845571518,
-0.01365195494145155,
0.022310379892587662,
0.0345623642206192,
-0.02352309413254261,
0.019706610590219498,
0.0422309972345829,
0.009585794992744923,
0.0004628489841707051,
-0.009193445555865765,
0.012492742389440536,
0.025484837591648102,
-0.02823127992451191,
0.01569395139813423,
0.010129733011126518,
0.03588208183646202,
0.05603454262018204,
0.060814063996076584,
-0.005702433176338673,
0.0009034054237417877,
0.06627128273248672,
0.008377538993954659,
0.012029057368636131,
-0.016264641657471657,
-0.0021044162567704916,
0.0016619092784821987,
0.007588382810354233,
-0.008167988620698452,
0.023701434955000877,
-0.03550756722688675,
-0.00793614611029625,
0.048829592764377594,
0.019599607214331627,
0.03827184438705444,
-0.03499038144946098,
-0.07130047678947449,
-0.03934188559651375,
0.053751785308122635,
0.01263541541993618,
0.033777665346860886,
-0.05824596434831619,
-0.008439958095550537,
0.04968562722206116,
-0.015783121809363365,
0.02630520425736904,
-0.045048777014017105,
-0.04601181298494339,
0.0831066146492958,
0.019956286996603012,
-0.026447877287864685,
-0.024931984022259712,
-0.052432067692279816,
-0.012769170105457306,
-0.00866734143346548,
-0.020830154418945312,
0.022560056298971176,
0.050577327609062195,
-0.011716961860656738,
0.00979088619351387,
-0.004095140844583511,
0.03415217995643616,
0.04212399572134018,
0.04141063243150711,
0.04005524516105652,
-0.0024009072221815586,
-0.020419972017407417,
0.003678270149976015,
-0.0014389838324859738,
0.028302615508437157,
-0.03206559643149376,
-0.031530577689409256,
0.023719269782304764,
0.020437806844711304,
-0.028106441721320152,
0.03308213874697685,
0.004721561446785927,
-0.05086267367005348,
-0.03450886160135269,
-0.018565231934189796,
0.1136384829878807,
-0.025342166423797607,
0.050684332847595215,
-0.06323949247598648,
-0.001605063327588141,
0.0729055404663086,
-0.021365176886320114,
0.04233800247311592,
0.037059128284454346,
-0.018832743167877197,
0.022524388507008553,
0.010673671029508114,
0.010682588443160057,
0.0445137545466423,
-0.00449863588437438,
0.012733502313494682,
0.0716928243637085,
-0.02402244694530964,
0.007592841051518917,
-0.06559358537197113,
-0.040839944034814835,
0.05332376807928085,
0.038985203951597214,
0.0234695915132761,
0.0071113221347332,
-0.05371611937880516,
-0.05988669395446777,
0.029729338362812996,
0.057853616774082184,
-0.06413119286298752,
0.036952123045921326,
-0.014561491087079048,
0.02225687727332115,
-0.05442947894334793,
0.0037183966487646103,
0.07961113750934601,
0.011939887888729572,
-0.03313564136624336,
0.01696016825735569,
0.03762981668114662,
0.013179353438317776,
-0.0016541068907827139,
-0.04629715904593468,
0.0022002742625772953,
0.031744584441185,
-0.010914430022239685,
0.00234517571516335,
0.000868294679094106,
0.0038833615835756063,
0.054786160588264465,
-0.0014100035186856985,
0.015239184722304344,
0.05924466997385025,
0.04968562722206116,
-0.003337194211781025,
0.001388825592584908,
-0.019670942798256874,
0.006571842357516289,
-0.022827567532658577,
-0.013437946327030659,
0.03106689266860485,
-0.0031499366741627455,
-0.001609521801583469,
-0.02320208214223385,
0.004088453017175198,
0.051611702889204025,
0.018476061522960663,
0.0018146132351830602,
-0.00842658244073391,
0.0031566245015710592,
-0.06773366779088974,
-0.0031098101753741503,
0.02823127992451191,
-0.009550126269459724,
-0.005488425027579069,
-0.02182886004447937,
-0.038093503564596176,
0.03466936573386192,
0.04929327592253685,
-0.05154036730527878,
0.021186836063861847,
0.08289260417222977,
0.01206472609192133,
0.06973108649253845,
0.0007289662607945502,
0.03338531777262688,
0.04208832606673241,
0.05268174409866333,
-0.07311955094337463,
-0.05475049093365669,
0.05860264599323273,
-0.00771322101354599,
0.020544810220599174,
0.06955274194478989,
0.014677411876618862,
0.037059128284454346,
-0.0029715963173657656,
0.012394655495882034,
0.023933276534080505,
0.014472320675849915,
0.031976427882909775,
0.004440675023943186,
-0.00987113919109106,
-0.021347342059016228,
0.056212883442640305,
0.0016574508044868708,
0.026893727481365204,
-0.05767527595162392,
0.014757665805518627,
0.0079851895570755,
-0.016674824059009552,
-0.009781968779861927,
0.006438087206333876,
0.030710211023688316,
-0.01827988773584366,
-0.03133440390229225,
0.029087314382195473,
-0.03502604737877846,
-0.025021154433488846,
0.006442545913159847,
0.00956796109676361,
0.022328214719891548,
0.04183864966034889,
0.06694897264242172,
0.06573625653982162,
0.002124479738995433,
0.0006648752023465931,
0.0657719299197197,
-0.0033149016089737415,
-0.022132039070129395,
-0.07511696219444275,
0.041767314076423645,
-0.04907926917076111,
-0.016549985855817795,
-0.04743853956460953,
0.007450168952345848,
-0.032350942492485046,
-0.023915443569421768,
0.041767314076423645,
0.03317130729556084,
-0.008818930946290493,
-0.01766461320221424,
0.008578171953558922,
-0.007459085900336504,
0.028926808387041092,
-0.057853616774082184,
0.0008287254022434354,
0.006246371194720268,
-0.019563937559723854,
-0.04390740022063255,
-0.005858480930328369,
0.005069324746727943,
0.023861940950155258,
-0.050291985273361206,
-0.01162779238075018,
-0.04347938299179077,
0.035775076597929,
0.003330506384372711,
0.010548832826316357,
-0.009960309602320194,
-0.02111549861729145,
0.013750042766332626,
-0.015417524613440037,
0.1078602522611618,
-0.07108647376298904,
-0.007811307907104492,
0.007945063523948193,
-0.003083059098571539,
0.0011006944114342332,
-0.0027509001083672047,
0.007196033839136362,
-0.03156624361872673,
0.004117433447390795,
0.0007289662607945502,
-0.0044094654731452465,
0.006589676719158888,
-0.004899901803582907,
-0.026768889278173447,
0.033777665346860886,
0.01820855215191841,
0.04365772008895874,
0.015765288844704628,
-0.039805568754673004,
-0.05838863551616669,
-0.0005163510795682669,
-0.016398396342992783,
0.049649957567453384,
-0.040447596460580826,
-0.08588872104883194,
-0.03477637097239494,
0.020937159657478333,
0.004841940943151712,
0.00218244013376534,
-0.012572996318340302,
0.009728467091917992,
0.03791516274213791,
0.014525823295116425,
0.02799943834543228,
0.03548973426222801,
0.053145430982112885,
0.013553868047893047,
0.047830887138843536,
0.03534705936908722,
-0.05803195387125015,
0.05136202648282051,
-0.052824415266513824,
0.02473580837249756,
-0.04551246017217636,
-0.009416371583938599,
0.049542952328920364,
-0.08660208433866501,
-0.06834002584218979,
0.02735741250216961,
-0.0486869215965271,
-0.11428050696849823,
0.028480956330895424,
-0.022952405735850334,
-0.0018892933148890734,
0.03738014027476311,
-0.02220337651669979,
0.0033059846609830856,
-0.01926076039671898,
0.014115639962255955,
0.07568765431642532,
-0.057853616774082184,
-0.02543133683502674,
0.02566317841410637,
0.028926808387041092,
0.07775639742612839,
0.010513165034353733,
0.027910267934203148,
0.014133473858237267,
0.020152460783720016,
-0.050577327609062195,
0.0498996339738369,
0.005773769225925207,
0.01833339035511017,
-0.012412489391863346,
0.002378614619374275,
-0.043087031692266464,
0.008399831131100655,
-0.02188236266374588,
0.007173741236329079,
0.012679999694228172,
0.006424711551517248,
0.01738818548619747,
-0.0014512446941807866,
-0.0027932559605687857,
0.04715319350361824,
0.011609957553446293,
-0.03609608858823776,
-0.011716961860656738,
-0.004326983354985714,
0.06448787450790405,
0.02543133683502674,
-0.036952123045921326,
-0.000028614573238883168,
-0.012920759618282318,
-0.07418959587812424,
0.013446863740682602,
-0.02336258813738823,
0.0331534743309021,
0.016942335292696953,
-0.019991954788565636,
0.012644331902265549,
-0.02254222333431244,
-0.06555791944265366,
0.03415217995643616,
-0.04654683545231819,
-0.01542644202709198,
-0.00024034151283558458,
-0.017762700095772743,
-0.04808056354522705,
0.00045866912114433944,
-0.07147882133722305,
-0.04775955155491829,
-0.04619015380740166,
0.05607021227478981,
-0.03730880469083786,
0.0281777773052454,
0.002356322016566992,
0.006968650035560131,
-0.044656429439783096,
-0.08068118244409561,
0.02418295294046402,
0.03458019718527794,
-0.009523375891149044,
-0.04754554107785225,
-0.010245653800666332,
0.006424711551517248,
0.00956796109676361,
-0.06530824303627014,
0.01739710196852684,
0.025912854820489883,
0.01984928362071514,
0.027500085532665253,
0.0011647854698821902,
0.001561592798680067,
-0.022898903116583824,
-0.03488337621092796,
0.0563555546104908,
-0.028641462326049805,
0.016389479860663414,
0.022328214719891548,
-0.0322796069085598,
0.01668374054133892,
0.0000498795707244426,
0.030763713642954826,
-0.0334923192858696,
0.0009819866390898824,
-0.030835049226880074,
0.009915724396705627,
-0.028213446959853172,
-0.04030492156744003,
-0.013001012615859509,
-0.026786722242832184,
-0.039520226418972015,
0.020633980631828308,
-0.005006905645132065,
-0.005104993004351854,
0.03969856724143028,
-0.005238748155534267,
0.030460534617304802,
0.009666047990322113,
0.020830154418945312,
0.017031505703926086,
-0.0340273417532444,
0.04886526241898537,
0.057247258722782135,
-0.08531802892684937,
0.05421547219157219,
0.0881001427769661,
0.016335977241396904,
0.009701715782284737,
0.002786568133160472,
-0.024272123351693153,
-0.05014931038022041,
-0.050969675183296204,
0.0010806311620399356,
-0.001344240503385663,
0.008970520459115505,
-0.019706610590219498,
-0.06370317935943604,
-0.04405007138848305,
-0.007592841051518917,
0.005055949557572603,
-0.0020587167236953974,
0.0006141596240922809,
-0.00930044986307621,
-0.0022047327365726233,
0.06905338913202286,
-0.07411825656890869,
-0.0022693811915814877,
-0.012394655495882034,
0.006460379809141159,
0.014293980784714222,
0.01151187065988779,
0.002603769302368164,
0.09601845592260361,
0.06687764078378677,
0.025645345449447632,
-0.02302374131977558,
-0.001065026386640966,
0.02587718702852726,
-0.022328214719891548,
-0.012626498006284237,
-0.031869422644376755,
-0.04194565489888191,
-0.02056264504790306,
0.0026394373271614313,
-0.02100849524140358,
-0.005559761077165604,
0.020419972017407417,
0.00564893102273345,
0.05881665274500847,
0.002828923985362053,
0.015542362816631794,
-0.001216058386489749,
-0.04579780623316765,
0.005439381115138531,
-0.03085288405418396,
0.022453052923083305,
-0.0025792475789785385,
-0.014249395579099655,
0.01656782068312168,
0.014829001389443874,
-0.045441124588251114,
-0.04722452908754349,
-0.003415218088775873,
0.005622180178761482,
-0.008422124199569225,
0.07718571275472641,
0.08296393603086472,
0.07497429102659225,
-0.002552496502175927,
-0.024931984022259712,
-0.011110604740679264,
0.0427660197019577,
-0.03276112675666809,
-0.029889846220612526,
0.061028074473142624,
-0.005862939637154341,
0.012483825907111168,
-0.00852912850677967,
0.008480084128677845,
-0.03452669456601143,
0.028142109513282776,
-0.016451898962259293,
-0.011681294068694115,
0.03204776346683502,
-0.020812321454286575,
0.03313564136624336,
0.010959015227854252,
0.008805555291473866,
-0.005773769225925207,
0.02225687727332115,
-0.0354362316429615,
0.031530577689409256,
-0.015658283606171608,
0.04604748263955116,
0.01968877576291561,
-0.0058317300863564014,
-0.0029158650431782007,
0.013812461867928505,
-0.03400950878858566,
0.020312968641519547,
-0.028088608756661415,
-0.047402869910001755,
0.008194739930331707,
-0.032404445111751556,
-0.006094782147556543,
0.010736090131103992,
0.025752348825335503,
-0.016986919566988945,
0.04993530362844467,
0.021579183638095856,
0.053965795785188675,
-0.016050633043050766,
-0.02248872071504593,
0.009469873271882534,
-0.04426407814025879,
0.032582785934209824,
0.030103854835033417,
-0.003248024033382535,
-0.07418959587812424,
-0.026394374668598175,
0.04447808861732483,
-0.012243065983057022,
-0.037558481097221375,
-0.043087031692266464,
-0.042266666889190674,
-0.038378845900297165,
0.0029760547913610935,
0.0002962122089229524,
-0.06627128273248672,
-0.0020297362934798002,
0.04947161674499512,
-0.04051893204450607,
-0.014597158879041672,
-0.012929677031934261,
-0.0199741218239069,
-0.06755533069372177,
-0.020312968641519547,
-0.04301569610834122,
-0.03074587881565094,
0.021026330068707466,
0.026982897892594337,
0.02789243310689926,
-0.007820225320756435,
-0.015328354202210903,
-0.026875892654061317,
-0.04501310735940933,
-0.025199493393301964,
-0.07094379514455795,
0.06430953741073608,
0.017825119197368622,
-0.061456091701984406,
-0.00927369948476553,
0.005069324746727943,
0.033242642879486084,
-0.02077665366232395,
0.012109311297535896,
-0.029336990788578987,
-0.031138228252530098,
-0.022328214719891548,
0.019349928945302963,
0.0016240120166912675,
-0.07026610523462296,
-0.03112039342522621,
-0.021597018465399742,
-0.027928100898861885,
0.04019792005419731,
-0.015230267308652401,
0.0416959784924984,
0.03670244663953781,
0.0593160055577755,
-0.09701716154813766,
0.004010429140180349,
0.05482183024287224,
-0.002512370003387332,
-0.01157428976148367,
0.007146990392357111,
-0.03156624361872673,
-0.01373220793902874,
-0.023701434955000877,
-0.04711752384901047,
0.042159661650657654,
-0.059815358370542526,
-0.04376472532749176,
-0.006968650035560131,
-0.04026925563812256,
0.004703727085143328,
0.03730880469083786,
-0.05760394036769867,
0.02685805968940258,
-0.039199214428663254,
-0.03144140541553497,
-0.0034085302613675594,
0.015390773303806782,
-0.039805568754673004,
-0.014650661498308182,
0.04355071857571602,
-0.0063712093979120255,
-0.02849879115819931,
-0.019902784377336502,
0.10821693390607834,
0.03461586683988571,
0.0007741086301393807,
0.08788613229990005,
-0.06691330671310425,
-0.0007111321901902556,
0.09987060725688934,
0.018957581371068954,
0.06445220857858658,
0.03101339004933834,
-0.009969226084649563,
-0.03866419196128845,
-0.039092209190130234,
-0.013027763925492764,
-0.01870790496468544,
0.0029314698185771704,
-0.02193586528301239,
0.023005906492471695,
-0.03748714551329613,
-0.010887679643929005,
-0.006010070443153381,
-0.003433051984757185,
-0.05614154785871506,
0.0011274454882368445,
0.024878481402993202,
0.031922925263643265,
-0.024004613980650902,
0.025021154433488846,
-0.0052119973115623,
0.07882644236087799,
-0.004104057792574167,
0.027928100898861885,
-0.06609293818473816,
-0.01749519072473049,
0.006076947785913944,
-0.05289575457572937,
0.01881490834057331,
0.0422309972345829,
-0.04804489389061928,
-0.04198132082819939,
0.045655135065317154,
0.0015861146384850144,
-0.024486131966114044,
-0.047474205493927,
-0.013981884345412254,
0.010646919719874859,
-0.029854176566004753,
-0.002209191210567951,
-0.04390740022063255,
-0.03655977547168732,
-0.0010260144481435418,
-0.023968946188688278,
0.08189389854669571,
-0.009246948175132275,
0.017156343907117844,
-0.004944486543536186,
-0.029301322996616364,
0.0030942053999751806,
-0.004636849742382765,
-0.007490295451134443,
-0.03584641218185425,
-0.03409867733716965,
-0.071550153195858,
0.01603279821574688,
-0.04380039498209953,
-0.018993249163031578,
-0.010102981701493263,
0.06880371272563934,
-0.02384410798549652,
-0.01984928362071514,
-0.034758538007736206,
0.0003862183657474816,
0.011092770844697952,
0.09366436302661896,
-0.04098261520266533,
-0.010753924027085304,
0.04522711783647537,
-0.01607738435268402,
-0.0404832623898983,
0.02309507690370083,
-0.05289575457572937,
-0.028480956330895424,
0.0010137534700334072,
-0.021793192252516747,
-0.04487043619155884,
0.015435358509421349,
-0.0020564873702824116,
-0.04019792005419731,
0.030121687799692154,
-0.010620168410241604,
0.00943420547991991,
-0.05414413660764694,
0.0586383119225502,
-0.045441124588251114,
0.016380563378334045,
0.032796792685985565,
0.07604433596134186,
0.014213726855814457,
-0.003299296833574772,
0.08011049032211304,
0.01071825623512268,
-0.04173164442181587,
0.009126568213105202,
0.04804489389061928,
-0.029087314382195473,
0.03855718672275543,
0.02074098400771618,
-0.0031744586303830147,
0.02783893048763275,
-0.027535753324627876,
-0.011761547066271305,
-0.0026394373271614313,
0.01910025253891945,
0.04315836727619171,
0.04173164442181587,
-0.047010522335767746,
0.03317130729556084,
-0.05471482500433922,
-0.015007342211902142,
-0.01751302368938923,
0.017165260389447212,
0.0415533073246479,
0.05592753738164902
] |
725,406 | tushare.util.verify_token | wrapper |
历史分笔数据
:param ts_code: 股票代码
:type ts_code: str
:param src: 来源 腾讯财经tx 新浪财经sina
:type src: str
:param page_count: 限制页数
:type page_count: str
:return: 历史分笔数据
:rtype: pandas.DataFrame
1、TIME : 成交时间
2、PRICE : 成交价格
3、PCHANGE : 涨跌幅
4、CHANGE : 价格变动
5、VOLUME : 成交量(手)
6、AMOUNT : 成交额(元)
7、TYPE : 性质
| def require_permission(event_name, event_detail):
def decorator(func):
def wrapper(*args, **kwargs):
# event_name = kwargs["event_name"]
# event_detail = kwargs["event_detail"]
# 检查用户权限
token = get_token()
if token:
try:
r = verify_token(token, event_name, event_detail).json()
except Exception as err:
raise PermissionError(f"验证token出错,{err}")
if r.get("message") == "success":
# 如果有足够权限,调用原始函数
return func(*args, **kwargs)
else:
print(f"验证token出错,{r.text}")
raise PermissionError(f"{r['msg']}")
else:
raise PermissionError(ct.TOKEN_ERR_MSG)
wrapper.__doc__ = func.__doc__
return wrapper
return decorator
| (*args, **kwargs) | [
-0.013250689022243023,
0.05364478379487991,
0.009603628888726234,
0.05617721751332283,
0.03286812826991081,
-0.00935395248234272,
-0.036131758242845535,
0.0025346623733639717,
-0.006027904339134693,
-0.01756652630865574,
0.05182570964097977,
0.012742418795824051,
0.03133440390229225,
-0.07725704461336136,
0.008497918955981731,
-0.015997130423784256,
0.050791338086128235,
0.008141237311065197,
-0.04715319350361824,
-0.007708762306720018,
-0.004326983354985714,
0.004899901803582907,
0.019706610590219498,
-0.0710151344537735,
-0.03538272902369499,
0.0808238536119461,
-0.035685908049345016,
0.021240336820483208,
0.03176242113113403,
-0.015185682103037834,
-0.05749693512916565,
-0.0281777773052454,
0.026447877287864685,
0.05624855309724808,
0.011476202867925167,
0.01342902984470129,
-0.04173164442181587,
0.027803262695670128,
-0.13917681574821472,
-0.051611702889204025,
-0.03727313503623009,
0.02659054845571518,
-0.01365195494145155,
0.022310379892587662,
0.0345623642206192,
-0.02352309413254261,
0.019706610590219498,
0.0422309972345829,
0.009585794992744923,
0.0004628489841707051,
-0.009193445555865765,
0.012492742389440536,
0.025484837591648102,
-0.02823127992451191,
0.01569395139813423,
0.010129733011126518,
0.03588208183646202,
0.05603454262018204,
0.060814063996076584,
-0.005702433176338673,
0.0009034054237417877,
0.06627128273248672,
0.008377538993954659,
0.012029057368636131,
-0.016264641657471657,
-0.0021044162567704916,
0.0016619092784821987,
0.007588382810354233,
-0.008167988620698452,
0.023701434955000877,
-0.03550756722688675,
-0.00793614611029625,
0.048829592764377594,
0.019599607214331627,
0.03827184438705444,
-0.03499038144946098,
-0.07130047678947449,
-0.03934188559651375,
0.053751785308122635,
0.01263541541993618,
0.033777665346860886,
-0.05824596434831619,
-0.008439958095550537,
0.04968562722206116,
-0.015783121809363365,
0.02630520425736904,
-0.045048777014017105,
-0.04601181298494339,
0.0831066146492958,
0.019956286996603012,
-0.026447877287864685,
-0.024931984022259712,
-0.052432067692279816,
-0.012769170105457306,
-0.00866734143346548,
-0.020830154418945312,
0.022560056298971176,
0.050577327609062195,
-0.011716961860656738,
0.00979088619351387,
-0.004095140844583511,
0.03415217995643616,
0.04212399572134018,
0.04141063243150711,
0.04005524516105652,
-0.0024009072221815586,
-0.020419972017407417,
0.003678270149976015,
-0.0014389838324859738,
0.028302615508437157,
-0.03206559643149376,
-0.031530577689409256,
0.023719269782304764,
0.020437806844711304,
-0.028106441721320152,
0.03308213874697685,
0.004721561446785927,
-0.05086267367005348,
-0.03450886160135269,
-0.018565231934189796,
0.1136384829878807,
-0.025342166423797607,
0.050684332847595215,
-0.06323949247598648,
-0.001605063327588141,
0.0729055404663086,
-0.021365176886320114,
0.04233800247311592,
0.037059128284454346,
-0.018832743167877197,
0.022524388507008553,
0.010673671029508114,
0.010682588443160057,
0.0445137545466423,
-0.00449863588437438,
0.012733502313494682,
0.0716928243637085,
-0.02402244694530964,
0.007592841051518917,
-0.06559358537197113,
-0.040839944034814835,
0.05332376807928085,
0.038985203951597214,
0.0234695915132761,
0.0071113221347332,
-0.05371611937880516,
-0.05988669395446777,
0.029729338362812996,
0.057853616774082184,
-0.06413119286298752,
0.036952123045921326,
-0.014561491087079048,
0.02225687727332115,
-0.05442947894334793,
0.0037183966487646103,
0.07961113750934601,
0.011939887888729572,
-0.03313564136624336,
0.01696016825735569,
0.03762981668114662,
0.013179353438317776,
-0.0016541068907827139,
-0.04629715904593468,
0.0022002742625772953,
0.031744584441185,
-0.010914430022239685,
0.00234517571516335,
0.000868294679094106,
0.0038833615835756063,
0.054786160588264465,
-0.0014100035186856985,
0.015239184722304344,
0.05924466997385025,
0.04968562722206116,
-0.003337194211781025,
0.001388825592584908,
-0.019670942798256874,
0.006571842357516289,
-0.022827567532658577,
-0.013437946327030659,
0.03106689266860485,
-0.0031499366741627455,
-0.001609521801583469,
-0.02320208214223385,
0.004088453017175198,
0.051611702889204025,
0.018476061522960663,
0.0018146132351830602,
-0.00842658244073391,
0.0031566245015710592,
-0.06773366779088974,
-0.0031098101753741503,
0.02823127992451191,
-0.009550126269459724,
-0.005488425027579069,
-0.02182886004447937,
-0.038093503564596176,
0.03466936573386192,
0.04929327592253685,
-0.05154036730527878,
0.021186836063861847,
0.08289260417222977,
0.01206472609192133,
0.06973108649253845,
0.0007289662607945502,
0.03338531777262688,
0.04208832606673241,
0.05268174409866333,
-0.07311955094337463,
-0.05475049093365669,
0.05860264599323273,
-0.00771322101354599,
0.020544810220599174,
0.06955274194478989,
0.014677411876618862,
0.037059128284454346,
-0.0029715963173657656,
0.012394655495882034,
0.023933276534080505,
0.014472320675849915,
0.031976427882909775,
0.004440675023943186,
-0.00987113919109106,
-0.021347342059016228,
0.056212883442640305,
0.0016574508044868708,
0.026893727481365204,
-0.05767527595162392,
0.014757665805518627,
0.0079851895570755,
-0.016674824059009552,
-0.009781968779861927,
0.006438087206333876,
0.030710211023688316,
-0.01827988773584366,
-0.03133440390229225,
0.029087314382195473,
-0.03502604737877846,
-0.025021154433488846,
0.006442545913159847,
0.00956796109676361,
0.022328214719891548,
0.04183864966034889,
0.06694897264242172,
0.06573625653982162,
0.002124479738995433,
0.0006648752023465931,
0.0657719299197197,
-0.0033149016089737415,
-0.022132039070129395,
-0.07511696219444275,
0.041767314076423645,
-0.04907926917076111,
-0.016549985855817795,
-0.04743853956460953,
0.007450168952345848,
-0.032350942492485046,
-0.023915443569421768,
0.041767314076423645,
0.03317130729556084,
-0.008818930946290493,
-0.01766461320221424,
0.008578171953558922,
-0.007459085900336504,
0.028926808387041092,
-0.057853616774082184,
0.0008287254022434354,
0.006246371194720268,
-0.019563937559723854,
-0.04390740022063255,
-0.005858480930328369,
0.005069324746727943,
0.023861940950155258,
-0.050291985273361206,
-0.01162779238075018,
-0.04347938299179077,
0.035775076597929,
0.003330506384372711,
0.010548832826316357,
-0.009960309602320194,
-0.02111549861729145,
0.013750042766332626,
-0.015417524613440037,
0.1078602522611618,
-0.07108647376298904,
-0.007811307907104492,
0.007945063523948193,
-0.003083059098571539,
0.0011006944114342332,
-0.0027509001083672047,
0.007196033839136362,
-0.03156624361872673,
0.004117433447390795,
0.0007289662607945502,
-0.0044094654731452465,
0.006589676719158888,
-0.004899901803582907,
-0.026768889278173447,
0.033777665346860886,
0.01820855215191841,
0.04365772008895874,
0.015765288844704628,
-0.039805568754673004,
-0.05838863551616669,
-0.0005163510795682669,
-0.016398396342992783,
0.049649957567453384,
-0.040447596460580826,
-0.08588872104883194,
-0.03477637097239494,
0.020937159657478333,
0.004841940943151712,
0.00218244013376534,
-0.012572996318340302,
0.009728467091917992,
0.03791516274213791,
0.014525823295116425,
0.02799943834543228,
0.03548973426222801,
0.053145430982112885,
0.013553868047893047,
0.047830887138843536,
0.03534705936908722,
-0.05803195387125015,
0.05136202648282051,
-0.052824415266513824,
0.02473580837249756,
-0.04551246017217636,
-0.009416371583938599,
0.049542952328920364,
-0.08660208433866501,
-0.06834002584218979,
0.02735741250216961,
-0.0486869215965271,
-0.11428050696849823,
0.028480956330895424,
-0.022952405735850334,
-0.0018892933148890734,
0.03738014027476311,
-0.02220337651669979,
0.0033059846609830856,
-0.01926076039671898,
0.014115639962255955,
0.07568765431642532,
-0.057853616774082184,
-0.02543133683502674,
0.02566317841410637,
0.028926808387041092,
0.07775639742612839,
0.010513165034353733,
0.027910267934203148,
0.014133473858237267,
0.020152460783720016,
-0.050577327609062195,
0.0498996339738369,
0.005773769225925207,
0.01833339035511017,
-0.012412489391863346,
0.002378614619374275,
-0.043087031692266464,
0.008399831131100655,
-0.02188236266374588,
0.007173741236329079,
0.012679999694228172,
0.006424711551517248,
0.01738818548619747,
-0.0014512446941807866,
-0.0027932559605687857,
0.04715319350361824,
0.011609957553446293,
-0.03609608858823776,
-0.011716961860656738,
-0.004326983354985714,
0.06448787450790405,
0.02543133683502674,
-0.036952123045921326,
-0.000028614573238883168,
-0.012920759618282318,
-0.07418959587812424,
0.013446863740682602,
-0.02336258813738823,
0.0331534743309021,
0.016942335292696953,
-0.019991954788565636,
0.012644331902265549,
-0.02254222333431244,
-0.06555791944265366,
0.03415217995643616,
-0.04654683545231819,
-0.01542644202709198,
-0.00024034151283558458,
-0.017762700095772743,
-0.04808056354522705,
0.00045866912114433944,
-0.07147882133722305,
-0.04775955155491829,
-0.04619015380740166,
0.05607021227478981,
-0.03730880469083786,
0.0281777773052454,
0.002356322016566992,
0.006968650035560131,
-0.044656429439783096,
-0.08068118244409561,
0.02418295294046402,
0.03458019718527794,
-0.009523375891149044,
-0.04754554107785225,
-0.010245653800666332,
0.006424711551517248,
0.00956796109676361,
-0.06530824303627014,
0.01739710196852684,
0.025912854820489883,
0.01984928362071514,
0.027500085532665253,
0.0011647854698821902,
0.001561592798680067,
-0.022898903116583824,
-0.03488337621092796,
0.0563555546104908,
-0.028641462326049805,
0.016389479860663414,
0.022328214719891548,
-0.0322796069085598,
0.01668374054133892,
0.0000498795707244426,
0.030763713642954826,
-0.0334923192858696,
0.0009819866390898824,
-0.030835049226880074,
0.009915724396705627,
-0.028213446959853172,
-0.04030492156744003,
-0.013001012615859509,
-0.026786722242832184,
-0.039520226418972015,
0.020633980631828308,
-0.005006905645132065,
-0.005104993004351854,
0.03969856724143028,
-0.005238748155534267,
0.030460534617304802,
0.009666047990322113,
0.020830154418945312,
0.017031505703926086,
-0.0340273417532444,
0.04886526241898537,
0.057247258722782135,
-0.08531802892684937,
0.05421547219157219,
0.0881001427769661,
0.016335977241396904,
0.009701715782284737,
0.002786568133160472,
-0.024272123351693153,
-0.05014931038022041,
-0.050969675183296204,
0.0010806311620399356,
-0.001344240503385663,
0.008970520459115505,
-0.019706610590219498,
-0.06370317935943604,
-0.04405007138848305,
-0.007592841051518917,
0.005055949557572603,
-0.0020587167236953974,
0.0006141596240922809,
-0.00930044986307621,
-0.0022047327365726233,
0.06905338913202286,
-0.07411825656890869,
-0.0022693811915814877,
-0.012394655495882034,
0.006460379809141159,
0.014293980784714222,
0.01151187065988779,
0.002603769302368164,
0.09601845592260361,
0.06687764078378677,
0.025645345449447632,
-0.02302374131977558,
-0.001065026386640966,
0.02587718702852726,
-0.022328214719891548,
-0.012626498006284237,
-0.031869422644376755,
-0.04194565489888191,
-0.02056264504790306,
0.0026394373271614313,
-0.02100849524140358,
-0.005559761077165604,
0.020419972017407417,
0.00564893102273345,
0.05881665274500847,
0.002828923985362053,
0.015542362816631794,
-0.001216058386489749,
-0.04579780623316765,
0.005439381115138531,
-0.03085288405418396,
0.022453052923083305,
-0.0025792475789785385,
-0.014249395579099655,
0.01656782068312168,
0.014829001389443874,
-0.045441124588251114,
-0.04722452908754349,
-0.003415218088775873,
0.005622180178761482,
-0.008422124199569225,
0.07718571275472641,
0.08296393603086472,
0.07497429102659225,
-0.002552496502175927,
-0.024931984022259712,
-0.011110604740679264,
0.0427660197019577,
-0.03276112675666809,
-0.029889846220612526,
0.061028074473142624,
-0.005862939637154341,
0.012483825907111168,
-0.00852912850677967,
0.008480084128677845,
-0.03452669456601143,
0.028142109513282776,
-0.016451898962259293,
-0.011681294068694115,
0.03204776346683502,
-0.020812321454286575,
0.03313564136624336,
0.010959015227854252,
0.008805555291473866,
-0.005773769225925207,
0.02225687727332115,
-0.0354362316429615,
0.031530577689409256,
-0.015658283606171608,
0.04604748263955116,
0.01968877576291561,
-0.0058317300863564014,
-0.0029158650431782007,
0.013812461867928505,
-0.03400950878858566,
0.020312968641519547,
-0.028088608756661415,
-0.047402869910001755,
0.008194739930331707,
-0.032404445111751556,
-0.006094782147556543,
0.010736090131103992,
0.025752348825335503,
-0.016986919566988945,
0.04993530362844467,
0.021579183638095856,
0.053965795785188675,
-0.016050633043050766,
-0.02248872071504593,
0.009469873271882534,
-0.04426407814025879,
0.032582785934209824,
0.030103854835033417,
-0.003248024033382535,
-0.07418959587812424,
-0.026394374668598175,
0.04447808861732483,
-0.012243065983057022,
-0.037558481097221375,
-0.043087031692266464,
-0.042266666889190674,
-0.038378845900297165,
0.0029760547913610935,
0.0002962122089229524,
-0.06627128273248672,
-0.0020297362934798002,
0.04947161674499512,
-0.04051893204450607,
-0.014597158879041672,
-0.012929677031934261,
-0.0199741218239069,
-0.06755533069372177,
-0.020312968641519547,
-0.04301569610834122,
-0.03074587881565094,
0.021026330068707466,
0.026982897892594337,
0.02789243310689926,
-0.007820225320756435,
-0.015328354202210903,
-0.026875892654061317,
-0.04501310735940933,
-0.025199493393301964,
-0.07094379514455795,
0.06430953741073608,
0.017825119197368622,
-0.061456091701984406,
-0.00927369948476553,
0.005069324746727943,
0.033242642879486084,
-0.02077665366232395,
0.012109311297535896,
-0.029336990788578987,
-0.031138228252530098,
-0.022328214719891548,
0.019349928945302963,
0.0016240120166912675,
-0.07026610523462296,
-0.03112039342522621,
-0.021597018465399742,
-0.027928100898861885,
0.04019792005419731,
-0.015230267308652401,
0.0416959784924984,
0.03670244663953781,
0.0593160055577755,
-0.09701716154813766,
0.004010429140180349,
0.05482183024287224,
-0.002512370003387332,
-0.01157428976148367,
0.007146990392357111,
-0.03156624361872673,
-0.01373220793902874,
-0.023701434955000877,
-0.04711752384901047,
0.042159661650657654,
-0.059815358370542526,
-0.04376472532749176,
-0.006968650035560131,
-0.04026925563812256,
0.004703727085143328,
0.03730880469083786,
-0.05760394036769867,
0.02685805968940258,
-0.039199214428663254,
-0.03144140541553497,
-0.0034085302613675594,
0.015390773303806782,
-0.039805568754673004,
-0.014650661498308182,
0.04355071857571602,
-0.0063712093979120255,
-0.02849879115819931,
-0.019902784377336502,
0.10821693390607834,
0.03461586683988571,
0.0007741086301393807,
0.08788613229990005,
-0.06691330671310425,
-0.0007111321901902556,
0.09987060725688934,
0.018957581371068954,
0.06445220857858658,
0.03101339004933834,
-0.009969226084649563,
-0.03866419196128845,
-0.039092209190130234,
-0.013027763925492764,
-0.01870790496468544,
0.0029314698185771704,
-0.02193586528301239,
0.023005906492471695,
-0.03748714551329613,
-0.010887679643929005,
-0.006010070443153381,
-0.003433051984757185,
-0.05614154785871506,
0.0011274454882368445,
0.024878481402993202,
0.031922925263643265,
-0.024004613980650902,
0.025021154433488846,
-0.0052119973115623,
0.07882644236087799,
-0.004104057792574167,
0.027928100898861885,
-0.06609293818473816,
-0.01749519072473049,
0.006076947785913944,
-0.05289575457572937,
0.01881490834057331,
0.0422309972345829,
-0.04804489389061928,
-0.04198132082819939,
0.045655135065317154,
0.0015861146384850144,
-0.024486131966114044,
-0.047474205493927,
-0.013981884345412254,
0.010646919719874859,
-0.029854176566004753,
-0.002209191210567951,
-0.04390740022063255,
-0.03655977547168732,
-0.0010260144481435418,
-0.023968946188688278,
0.08189389854669571,
-0.009246948175132275,
0.017156343907117844,
-0.004944486543536186,
-0.029301322996616364,
0.0030942053999751806,
-0.004636849742382765,
-0.007490295451134443,
-0.03584641218185425,
-0.03409867733716965,
-0.071550153195858,
0.01603279821574688,
-0.04380039498209953,
-0.018993249163031578,
-0.010102981701493263,
0.06880371272563934,
-0.02384410798549652,
-0.01984928362071514,
-0.034758538007736206,
0.0003862183657474816,
0.011092770844697952,
0.09366436302661896,
-0.04098261520266533,
-0.010753924027085304,
0.04522711783647537,
-0.01607738435268402,
-0.0404832623898983,
0.02309507690370083,
-0.05289575457572937,
-0.028480956330895424,
0.0010137534700334072,
-0.021793192252516747,
-0.04487043619155884,
0.015435358509421349,
-0.0020564873702824116,
-0.04019792005419731,
0.030121687799692154,
-0.010620168410241604,
0.00943420547991991,
-0.05414413660764694,
0.0586383119225502,
-0.045441124588251114,
0.016380563378334045,
0.032796792685985565,
0.07604433596134186,
0.014213726855814457,
-0.003299296833574772,
0.08011049032211304,
0.01071825623512268,
-0.04173164442181587,
0.009126568213105202,
0.04804489389061928,
-0.029087314382195473,
0.03855718672275543,
0.02074098400771618,
-0.0031744586303830147,
0.02783893048763275,
-0.027535753324627876,
-0.011761547066271305,
-0.0026394373271614313,
0.01910025253891945,
0.04315836727619171,
0.04173164442181587,
-0.047010522335767746,
0.03317130729556084,
-0.05471482500433922,
-0.015007342211902142,
-0.01751302368938923,
0.017165260389447212,
0.0415533073246479,
0.05592753738164902
] |
725,417 | tushare.pro.data_pro | subs | null | def subs(token=''):
if token == '' or token is None:
token = upass.get_token()
from tushare.subs.ts_subs.subscribe import TsSubscribe
app = TsSubscribe(token=token)
return app
| (token='') | [
0.01655317097902298,
-0.028735755011439323,
0.004252289421856403,
-0.032762203365564346,
0.020321514457464218,
0.038922324776649475,
0.0007216202211566269,
-0.015426110476255417,
0.008728270418941975,
0.05822862312197685,
0.033157963305711746,
0.017034968361258507,
0.004116784315556288,
-0.009283198043704033,
-0.012096548452973366,
-0.0020874289330095053,
0.06280569732189178,
-0.023556437343358994,
0.03467218577861786,
0.012776226736605167,
0.004435114562511444,
0.028925033286213875,
0.01796414889395237,
0.022954190149903297,
-0.03544650226831436,
0.017284471541643143,
-0.002770333318039775,
-0.019719267264008522,
-0.0427422858774662,
-0.020717276260256767,
0.01226001512259245,
0.006998963188380003,
0.07017030566930771,
-0.010986695066094398,
-0.007631321903318167,
-0.01269019115716219,
-0.00788082368671894,
-0.020304307341575623,
-0.11384177207946777,
0.015735836699604988,
0.06490495055913925,
-0.04208841919898987,
0.06955085694789886,
0.015486335381865501,
0.037236034870147705,
0.04938420280814171,
-0.01851477473974228,
0.04408443346619606,
0.0349130816757679,
0.031437259167432785,
0.0348958745598793,
0.01523683313280344,
-0.050141312181949615,
-0.036375682801008224,
-0.03420759364962578,
0.06493936479091644,
0.027169914916157722,
0.11817794293165207,
0.0015991792315617204,
0.008543294854462147,
0.02532876282930374,
-0.017740458250045776,
0.014875485561788082,
0.0454954132437706,
0.06380370259284973,
0.012776226736605167,
0.02278212085366249,
-0.009343422017991543,
-0.027307571843266487,
-0.01172659732401371,
-0.012681587599217892,
-0.013232213445007801,
-0.07309550046920776,
-0.012526724487543106,
0.030611323192715645,
-0.01312036719173193,
-0.02035592682659626,
0.025122277438640594,
-0.09367512166500092,
0.029114311560988426,
0.01545192115008831,
-0.028804583474993706,
-0.01416139304637909,
0.07977183163166046,
0.0392320491373539,
0.06015580892562866,
-0.010220981203019619,
-0.055200181901454926,
-0.06958526372909546,
0.03799314424395561,
0.010719985701143742,
-0.002888631774112582,
-0.017086589708924294,
0.026619289070367813,
-0.032452475279569626,
-0.06676331162452698,
-0.03477542847394943,
0.008982074446976185,
-0.07660573720932007,
0.015503542497754097,
-0.03129960596561432,
0.042879942804574966,
-0.08582871407270432,
-0.007399026770144701,
0.03308913856744766,
-0.005686926655471325,
-0.01913422718644142,
0.02560407482087612,
0.03477542847394943,
0.0071710338816046715,
-0.016217634081840515,
0.04384353756904602,
0.04150337725877762,
-0.008655141107738018,
-0.0694132000207901,
-0.031351227313280106,
-0.014152789488434792,
0.010745796374976635,
-0.021508799865841866,
-0.05729944258928299,
-0.012423482723534107,
0.03885349631309509,
0.04442857578396797,
0.010556519031524658,
-0.013860270380973816,
0.0022562730591744184,
0.06060319393873215,
-0.039128806442022324,
0.014393688179552555,
-0.06879374384880066,
0.04442857578396797,
0.019185848534107208,
0.025827765464782715,
-0.05444307252764702,
-0.007665736135095358,
-0.05637026205658913,
0.03145446628332138,
-0.012819244526326656,
-0.012440689839422703,
-0.015598181635141373,
-0.038647010922431946,
0.05760916694998741,
-0.06552440673112869,
0.028993861749768257,
-0.002938101999461651,
-0.016768259927630424,
-0.049280960112810135,
0.03967943415045738,
0.02612028643488884,
0.010393051430583,
-0.024795344099402428,
-0.0010023100767284632,
0.02937241643667221,
0.01086624525487423,
-0.012320240028202534,
0.014445309527218342,
0.02403823472559452,
-0.009463871829211712,
0.02152600698173046,
-0.025105070322752,
0.005299767944961786,
0.0286325141787529,
-0.08059777319431305,
0.01780928485095501,
-0.02403823472559452,
-0.03455173596739769,
0.008018480613827705,
0.03351931273937225,
-0.01675105281174183,
0.025053448975086212,
0.0012399823172017932,
-0.011623355560004711,
-0.017792079597711563,
-0.02706667222082615,
-0.0140237370505929,
-0.0639413595199585,
0.0015443317824974656,
0.03868142515420914,
0.009231576696038246,
0.013782838359475136,
-0.0245200302451849,
0.01250951737165451,
-0.03259013220667839,
-0.010487690567970276,
-0.003772643394768238,
0.04019564390182495,
0.0006861307192593813,
0.05310092493891716,
0.02686018869280815,
-0.04659666121006012,
0.014281842857599258,
-0.020958174020051956,
0.026498841121792793,
-0.030026283115148544,
-0.022334737703204155,
-0.004344777669757605,
-0.02412426844239235,
0.01741352304816246,
-0.08954543620347977,
-0.025001827627420425,
-0.023504815995693207,
-0.0009910179069265723,
-0.0048179710283875465,
-0.022524014115333557,
0.041950762271881104,
-0.012647174298763275,
0.004736237693578005,
0.008655141107738018,
0.0016378950094804168,
-0.05024455487728119,
0.05723061412572861,
-0.012354654259979725,
0.027737747877836227,
0.014780846424400806,
-0.0038543767295777798,
-0.006801082286983728,
0.019082605838775635,
-0.04725053161382675,
0.0451168566942215,
-0.03875025361776352,
0.0651114359498024,
-0.015340075828135014,
-0.022644463926553726,
-0.002086353488266468,
-0.03988591581583023,
0.02474372275173664,
0.01799856312572956,
0.007072092965245247,
-0.02384895645081997,
-0.0178436990827322,
0.05695530027151108,
0.017740458250045776,
0.07509151846170425,
-0.025277141481637955,
-0.09484519809484482,
0.00904229935258627,
0.025913801044225693,
-0.0025229821912944317,
0.045048028230667114,
0.029441244900226593,
0.021990597248077393,
0.021852940320968628,
0.0025487926322966814,
0.027548469603061676,
0.0029553091153502464,
0.051827602088451385,
-0.012612760066986084,
-0.024692101404070854,
-0.002892933553084731,
0.025896593928337097,
0.0013356964336708188,
-0.058848075568675995,
-0.02063124068081379,
0.019117020070552826,
-0.014763640239834785,
-0.0654899924993515,
-0.028030266985297203,
0.03940412029623985,
0.003680155612528324,
-0.01580466516315937,
-0.0178436990827322,
0.09863074868917465,
-0.04429091885685921,
0.06986057758331299,
-0.060775261372327805,
-0.009386439807713032,
-0.026533255353569984,
-0.0011044768616557121,
-0.026533255353569984,
0.0075280796736478806,
0.040333300828933716,
-0.011984703131020069,
0.02106141671538353,
0.014875485561788082,
-0.018807293847203255,
-0.02643001265823841,
-0.017387714236974716,
0.027393607422709465,
0.002817652653902769,
-0.040574200451374054,
-0.054615143686532974,
0.004495339002460241,
0.06411343067884445,
0.002910140436142683,
0.039438534528017044,
-0.03246968239545822,
0.0392320491373539,
-0.0404021292924881,
0.009171351790428162,
-0.03224599361419678,
0.011580337770283222,
-0.004774953238666058,
0.05241264030337334,
0.04109041020274162,
-0.009386439807713032,
0.07027354836463928,
-0.039472948759794235,
0.03709837794303894,
0.08266261965036392,
-0.021835733205080032,
0.04570189490914345,
0.06122264638543129,
-0.03298589587211609,
0.022971397265791893,
0.004166254308074713,
-0.01247510313987732,
-0.013825856149196625,
0.04160661995410919,
-0.013223609887063503,
-0.022610049694776535,
-0.04415326192975044,
-0.009721977636218071,
-0.012526724487543106,
-0.008366922847926617,
-0.07323315739631653,
0.018222255632281303,
0.014299049973487854,
-0.0012883770978078246,
0.03129960596561432,
-0.014694811776280403,
0.015271247364580631,
0.03071456588804722,
0.056335847824811935,
-0.020304307341575623,
0.014393688179552555,
0.026051457971334457,
-0.02298860438168049,
-0.015976736322045326,
-0.00397912785410881,
-0.012328843586146832,
-0.048179712146520615,
0.05299768224358559,
-0.002490718849003315,
-0.01925467699766159,
-0.041572205722332,
0.012500913813710213,
-0.006160120014101267,
0.022936983034014702,
-0.04680314660072327,
-0.02686018869280815,
-0.005858996883034706,
0.016148805618286133,
-0.03548091650009155,
0.016527362167835236,
-0.05327299237251282,
0.00434262678027153,
-0.07385261356830597,
-0.0026111681945621967,
0.01370540726929903,
-0.0815613642334938,
-0.018618017435073853,
0.03561856970191002,
0.041709862649440765,
0.061084989458322525,
0.07240722328424454,
-0.017706044018268585,
-0.021439971402287483,
0.04071185365319252,
0.02133672870695591,
-0.05874483287334442,
-0.0454954132437706,
0.06758925318717957,
-0.0388190820813179,
-0.024692101404070854,
-0.06070643663406372,
-0.030301596969366074,
0.02051079086959362,
-0.004090973641723394,
-0.03167815878987312,
-0.02290256880223751,
0.006633313838392496,
-0.002785389544442296,
0.01815342716872692,
0.0474570132791996,
-0.024898586794734,
0.015520749613642693,
-0.03506794571876526,
-0.017551179975271225,
-0.02271329239010811,
0.009635942056775093,
0.01462598331272602,
0.07784464955329895,
0.06641916930675507,
0.0077904872596263885,
0.06659124046564102,
-0.025466417893767357,
-0.09381277859210968,
0.01744793727993965,
0.047560255974531174,
0.058848075568675995,
0.010952280834317207,
0.021439971402287483,
-0.04095275327563286,
-0.006555881816893816,
-0.05509693920612335,
-0.010427465662360191,
-0.05757475271821022,
-0.000054108073527459055,
0.02909710444509983,
0.02525993436574936,
0.03954177722334862,
0.016140202060341835,
0.014083961956202984,
-0.02897665463387966,
0.03212554380297661,
0.006779573392122984,
0.06721069663763046,
-0.045873966068029404,
-0.021113038063049316,
-0.0047491430304944515,
-0.03432804346084595,
-0.05592287704348564,
-0.05168994516134262,
0.0006570938276126981,
-0.01496152114123106,
-0.015503542497754097,
0.01952998898923397,
0.039748262614011765,
-0.0037597380578517914,
0.00831530150026083,
-0.007898030802607536,
-0.04009240120649338,
0.020889345556497574,
0.01247510313987732,
0.018652429804205894,
0.036410097032785416,
-0.008521785959601402,
0.013481715694069862,
-0.0227477066218853,
-0.016604792326688766,
0.020596826449036598,
-0.034964703023433685,
-0.00748076057061553,
-0.04907447472214699,
0.008130325935781002,
0.009265990927815437,
-0.007906634360551834,
-0.027152707800269127,
-0.008186249062418938,
-0.019891338422894478,
-0.030972670763731003,
-0.00705058453604579,
0.03788990154862404,
-0.020614033564925194,
0.034104350954294205,
-0.04415326192975044,
-0.058572761714458466,
-0.018618017435073853,
-0.011012504808604717,
-0.05588846281170845,
-0.05537225306034088,
-0.00782059971243143,
-0.009283198043704033,
0.00015217476175166667,
0.043396152555942535,
-0.04405001923441887,
0.05754033848643303,
0.03902556374669075,
-0.038647010922431946,
-0.04019564390182495,
0.0020745235960930586,
-0.024692101404070854,
0.042845528572797775,
0.0074205356650054455,
0.045942794531583786,
0.0025552453007549047,
0.045082442462444305,
-0.0077517712488770485,
-0.00899928156286478,
-0.03477542847394943,
-0.004164103418588638,
0.03623802587389946,
0.02054520510137081,
0.00982521940022707,
0.05062311142683029,
0.013077350333333015,
-0.03195347264409065,
-0.05974284186959267,
-0.05860717594623566,
-0.029785385355353355,
-0.04473830386996269,
0.0494186170399189,
0.007949652150273323,
0.06958526372909546,
-0.056026119738817215,
-0.025156691670417786,
0.011597544886171818,
-0.08810003846883774,
-0.017826491966843605,
-0.022936983034014702,
-0.016105789691209793,
-0.009678959846496582,
-0.021267900243401527,
-0.02219708077609539,
-0.0313684344291687,
0.01897936500608921,
-0.05244705453515053,
0.04208841919898987,
-0.008349715732038021,
0.016372498124837875,
-0.009111127816140652,
-0.005936428438872099,
-0.01158894132822752,
0.03283103182911873,
0.005906316451728344,
0.031557708978652954,
-0.0658685490489006,
0.008801400661468506,
0.0011958891991525888,
0.016613395884633064,
-0.014703415334224701,
-0.016837088391184807,
-0.011451284401118755,
0.01362797524780035,
0.07495386153459549,
0.0025961119681596756,
-0.036375682801008224,
-0.006379509810358286,
-0.015426110476255417,
-0.022369151934981346,
-0.05612936243414879,
-0.002593961078673601,
0.008956263773143291,
0.05389244854450226,
0.05640467628836632,
-0.05557873845100403,
-0.052963268011808395,
0.019392333924770355,
-0.020803309977054596,
0.06927554309368134,
0.016363894566893578,
0.03381183370947838,
-0.039782676845788956,
-0.02501903474330902,
-0.01772325113415718,
-0.04150337725877762,
-0.05234381556510925,
-0.032882653176784515,
0.04597720876336098,
-0.023900577798485756,
-0.03482704609632492,
0.03271058201789856,
0.013361265882849693,
-0.03376021236181259,
-0.08218082040548325,
0.0002173733082599938,
-0.032142750918865204,
-0.028443235903978348,
0.011305024847388268,
0.03004349023103714,
-0.034069936722517014,
-0.04429091885685921,
0.020803309977054596,
0.04910888895392418,
-0.04652783274650574,
-0.017946941778063774,
-0.045942794531583786,
0.004389945883303881,
-0.014952917583286762,
-0.00449964078143239,
-0.03071456588804722,
0.012130962684750557,
-0.04329290986061096,
0.055475495755672455,
-0.013817252591252327,
0.020734483376145363,
0.009894047863781452,
-0.01552935317158699,
0.004826574586331844,
0.026068665087223053,
0.053789205849170685,
-0.08637933433055878,
0.05409893020987511,
0.017232850193977356,
-0.031041499227285385,
0.019461162388324738,
0.040849510580301285,
0.004899704363197088,
0.0272559504956007,
0.0404021292924881,
0.017284471541643143,
0.03699513524770737,
-0.015546560287475586,
0.0024347961880266666,
0.029441244900226593,
0.03592829778790474,
0.04597720876336098,
0.007330198772251606,
-0.04604603722691536,
-0.021405557170510292,
-0.014032340608537197,
-0.0019626780413091183,
0.035756226629018784,
0.03436245769262314,
0.009481078945100307,
-0.041434552520513535,
0.005575080867856741,
0.013430094346404076,
0.051793187856674194,
-0.02011502906680107,
0.019874131307005882,
0.05007248371839523,
-0.0012496612034738064,
-0.12361536920070648,
0.051276978105306625,
-0.04053978621959686,
-0.040643028914928436,
-0.0380275584757328,
0.008190550841391087,
0.03534325957298279,
0.022919775918126106,
0.01934071257710457,
-0.052963268011808395,
-0.005179319065064192,
0.04749142751097679,
0.05027896910905838,
-0.05186201632022858,
0.007863616570830345,
0.013369869440793991,
-0.00550195062533021,
0.021973390132188797,
0.07037679105997086,
-0.04611486569046974,
0.011399663984775543,
-0.017826491966843605,
0.0435338094830513,
0.01698334701359272,
-0.006633313838392496,
-0.0905778557062149,
0.020459169521927834,
0.014419498853385448,
-0.05027896910905838,
0.051001664251089096,
0.03902556374669075,
0.016174616292119026,
-0.02305743284523487,
-0.013326851651072502,
-0.01992575079202652,
0.03561856970191002,
0.037752244621515274,
-0.0301983542740345,
0.00039119127904996276,
0.008126024156808853,
-0.03365696966648102,
0.005050266161561012,
0.01033282745629549,
-0.05392686277627945,
-0.008091609925031662,
-0.036616578698158264,
-0.00778618548065424,
0.050451040267944336,
0.011029711924493313,
-0.016209030523896217,
0.1270567774772644,
-0.057987723499536514,
0.043946780264377594,
0.056611157953739166,
-0.06211741268634796,
0.03381183370947838,
0.022214287891983986,
-0.0009501511813141406,
-0.0006043972680345178,
0.023195089772343636,
0.03148888051509857,
-0.01233744714409113,
-0.02560407482087612,
0.038302868604660034,
-0.023349951952695847,
-0.03329562023282051,
0.025225520133972168,
0.05557873845100403,
0.0029424037784337997,
-0.020287100225687027,
-0.010091928765177727,
0.033037517219781876,
-0.005088981706649065,
-0.005983748007565737,
-0.02593100816011429,
0.023401573300361633,
0.015202418901026249,
-0.01025539543479681,
0.007510872557759285,
0.07454089820384979,
-0.040608614683151245,
-0.0847274586558342,
0.02051079086959362,
0.03878466784954071,
0.03926646336913109,
-0.025483625009655952,
-0.0556819811463356,
-0.016148805618286133,
0.026412805542349815,
-0.04098716750741005,
-0.036134783178567886,
0.016682224348187447,
0.05502811074256897,
-0.029510073363780975,
-0.051552288234233856,
-0.05244705453515053,
-0.04807646945118904,
0.05062311142683029,
0.003832868067547679,
0.045873966068029404,
-0.0030477968975901604,
-0.016621999442577362,
0.01651015505194664,
0.010522104799747467,
-0.07681222259998322,
-0.014462516643106937,
0.0029467055574059486,
-0.016062771901488304,
-0.038887910544872284,
0.02599983662366867,
0.038647010922431946,
-0.0062160431407392025,
-0.04597720876336098,
-0.011623355560004711,
0.03995474427938461,
0.01604556478559971,
0.04690638929605484,
0.0038952436298131943,
-0.06328748911619186,
0.02121627889573574,
-0.0045985812321305275,
0.09704770147800446,
0.03277941048145294,
0.09456989169120789,
0.039507362991571426,
0.040815096348524094,
-0.01654456928372383,
-0.02255842834711075,
-0.025225520133972168,
-0.014548552222549915,
0.06555882096290588,
-0.0011055523063987494,
0.0033510709181427956,
-0.02082051709294319,
0.013636578805744648,
0.017241453751921654,
0.003921054303646088,
0.011425473727285862,
-0.007635623682290316,
0.03702954947948456,
0.0018368514720350504,
-0.00990265142172575,
-0.0001035110981320031,
-0.006250456906855106,
-0.07433441281318665,
0.029320795089006424,
0.04718170315027237,
0.01043606922030449,
0.018910536542534828,
-0.050210140645504,
-0.00636230269446969,
-0.03207392245531082,
0.05509693920612335,
-0.03730485960841179,
-0.04711287468671799,
-0.08871949464082718,
-0.043396152555942535,
0.026602083817124367,
0.0560949482023716,
0.059674013406038284,
-0.0014055999927222729,
0.022919775918126106,
0.02290256880223751,
0.027032257989048958,
-0.001559387892484665
] |
725,427 | lotkavolterra_simulator.simulator | LVobserver | This class contains observational simulators
for a prey and predator populations.
Attributes
----------
Xtrue : array, double, dimension=n
true number of preys to be observed
Ytrue : array, double, dimension=n
true number of predators to be observed
X0 : double
initial condition: number of preys
Y0 : double
initial condition: number of predators
| class LVobserver(object):
"""This class contains observational simulators
for a prey and predator populations.
Attributes
----------
Xtrue : array, double, dimension=n
true number of preys to be observed
Ytrue : array, double, dimension=n
true number of predators to be observed
X0 : double
initial condition: number of preys
Y0 : double
initial condition: number of predators
"""
def __init__(self, Xtrue, Ytrue, X0, Y0):
self.Xtrue=Xtrue
self.Ytrue=Ytrue
self.X0=X0
self.Y0=Y0
@property
def tmax(self):
"""double: number of timesteps (each of length 1).
"""
return len(self.Xtrue)
@property
def t(self):
"""array, double: timestepping of the problem.
"""
import numpy as np
return np.arange(self.tmax)
def make_signal(self, **metaparams):
"""Simulate the signal.
Parameters
----------
model : int, optional, default=0
0= correct data model; 1=misspecified data model
Xefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
Yefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
P : double
rate of prey misses due to correlation between preys and predators
Q : double
rate of predator misses due to correlation between preys and predators
Returns
-------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
"""
import numpy as np
t=self.t
X0=self.X0
Y0=self.Y0
Xtrue=self.Xtrue
Ytrue=self.Ytrue
Xsignal, Ysignal = self.Xtrue, self.Ytrue
if not "model" in metaparams or metaparams["model"] == 0:
# correct data model: The (unobserved) signal is a retarded and non-linear
# observation of the true underlying functions.
P=metaparams["obsP"]
Q=metaparams["obsQ"]
Xefficiency=metaparams["Xefficiency"]
Yefficiency=metaparams["Yefficiency"]
Xretard = np.roll(Xtrue,1)
Yretard = np.roll(Ytrue,1)
Xsignal = Xretard - P*Xretard*Yretard + Q*Xretard**2
Xsignal *= Xefficiency
Ysignal = Yretard + P*Xretard*Yretard - Q*Yretard**2
Ysignal *= Yefficiency
Xsignal[0] = X0
Ysignal[0] = Y0
elif "model" == 1:
# misspecified data model : consider that the measurement is a direct
# observation of the function.
pass
return Xsignal, Ysignal
def Dnoise_cov(self, **metaparams):
"""Covariance matrix for the demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
D : array, double, dimension=(2*n,2*n)
demographic noise covariance matrix
"""
import numpy as np
Xtrue=self.Xtrue
Ytrue=self.Ytrue
obsR=metaparams["obsR"]
D=obsR*np.diag(np.concatenate((Xtrue, Ytrue)))
return D
def make_demographic_noise(self, **metaparams):
"""Simulate demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
XDnoise : array, double, dimension=n
demographic noise for preys
YDnoise : array, double, dimension=n
demographic noise for predators
"""
import numpy as np
import scipy.stats as ss
Xtrue=self.Xtrue
Ytrue=self.Ytrue
obsR=metaparams["obsR"]
XDnoise = np.sqrt(obsR*Xtrue) * ss.multivariate_normal(mean=np.zeros_like(Xtrue)).rvs()
YDnoise = np.sqrt(obsR*Ytrue) * ss.multivariate_normal(mean=np.zeros_like(Xtrue)).rvs()
return XDnoise, YDnoise
def Onoise_cov(self, X, Y, **metaparams):
"""Covariance matrix for the observational noise.
Prey and predator populations introduce a noise to the other
population, and there is also a non-diagonal term
proportional to the geometric mean of both populations.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
O : array, double, dimension=(2*n,2*n)
observational noise covariance matrix
Note
----
Getting a positive semidefinite matrix should be enforced by user parameter choice.
"""
import numpy as np
obsS=metaparams["obsS"]
obsT=metaparams["obsT"]
O00=np.diag(Y)
O01=obsT*np.diag(np.sqrt(X*Y))
O10=obsT*np.diag(np.sqrt(X*Y))
O11=np.diag(X)
O=np.block([ [obsS*O00, obsS*O01], [obsS*O10, obsS*O11] ])
return O
def make_observational_noise(self, Xsignal, Ysignal, **metaparams):
"""Simulate observational noise.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
XOnoise : array, double, dimension=n
observational noise for preys
YOnoise : array, double, dimension=n
observational noise for predators
"""
import numpy as np
import scipy.stats as ss
from scipy.linalg import sqrtm
tmax=self.tmax
# Writing this in a single call to multivariate_normal causes numerical instabilities
XOnoise = np.zeros(tmax) # Pre-allocate the memory for XOnoise
YOnoise = np.zeros(tmax) # Pre-allocate the memory for YOnoise
for n in range(tmax-1):
O = self.Onoise_cov(np.array([Xsignal[n]]), np.array([Ysignal[n]]), **metaparams)
XOnoise[n], YOnoise[n] = ss.multivariate_normal(mean=[0,0], cov=O).rvs()
return XOnoise, YOnoise
def simulate_obs(self, Xsignal, Ysignal, **metaparams):
"""Simulate the observational process, assuming additive noise, i.e.
data = signal + noise.
Parameters
----------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
model : int, optional, default=0
0= correct data model; 1=misspecified data model
obsR : double
strength of demographic noise
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
"""
import numpy as np
import scipy.stats as ss
tmax=self.tmax
# draw demographic noise
XDnoise, YDnoise = self.make_demographic_noise(**metaparams)
# observational noise
XOnoise, YOnoise = np.zeros_like(XDnoise), np.zeros_like(YDnoise)
if not "model" in metaparams or metaparams["model"] == 0:
# correct data model: draw observational noise
XOnoise, YOnoise = self.make_observational_noise(Xsignal, Ysignal, **metaparams)
elif "model" == 1:
# misspecified data model : only consider demographic noise
pass
# data = signal+noise
self.Xdata = Xsignal+XDnoise+XOnoise
self.Ydata = Ysignal+YDnoise+YOnoise
self.Xobs = np.arange(tmax)
self.Yobs = np.arange(tmax)
return Xsignal, XDnoise, XOnoise, self.Xdata, Ysignal, YDnoise, YOnoise, self.Ydata
| (Xtrue, Ytrue, X0, Y0) | [
0.021960239857435226,
-0.021333998069167137,
0.04007952660322189,
0.028744535520672798,
0.031437378376722336,
-0.05611133575439453,
-0.09502187371253967,
0.015979623422026634,
0.04256362095475197,
0.02861928753554821,
-0.05272962525486946,
0.03427634388208389,
0.047803185880184174,
0.054107360541820526,
-0.05661233142018318,
0.03859741985797882,
0.00948235671967268,
0.009085736237466335,
0.0009941600728780031,
-0.0324811153113842,
-0.03258549049496651,
-0.000805635005235672,
-0.025926442816853523,
0.03669781610369682,
-0.03502783551812172,
0.016751989722251892,
-0.053272370249032974,
-0.03536183387041092,
-0.02235686033964157,
-0.004657679237425327,
-0.0376163050532341,
-0.03809642419219017,
0.02475745789706707,
-0.050725650042295456,
0.02816004306077957,
-0.025321075692772865,
0.017085986211895943,
0.051518891006708145,
-0.07610934972763062,
0.012013420462608337,
0.01132455375045538,
-0.10044931620359421,
0.058449309319257736,
0.020446820184588432,
-0.04918091744184494,
0.012149106711149216,
-0.037866801023483276,
0.07832207530736923,
0.03515308350324631,
-0.03619682043790817,
0.03327435627579689,
-0.024715708568692207,
0.015113321132957935,
0.012503976933658123,
-0.008245527744293213,
0.06258250772953033,
0.0420835018157959,
0.06675746291875839,
0.06220676377415657,
-0.040851891040802,
-0.001103752525523305,
0.020697318017482758,
0.03413022309541702,
0.006888668518513441,
-0.0007456201128661633,
-0.007661034353077412,
-0.035591453313827515,
0.021981114521622658,
0.06203976646065712,
-0.00021967415523249656,
0.033963222056627274,
-0.020686879754066467,
0.029162030667066574,
0.04033002257347107,
0.059868793934583664,
-0.03139562904834747,
-0.09602386504411697,
-0.04239662364125252,
0.018672466278076172,
-0.04337773844599724,
0.0032355866860598326,
0.028535787016153336,
-0.005187376402318478,
0.015635190531611443,
0.021250499412417412,
-0.013359841890633106,
0.005756213329732418,
0.004177560098469257,
0.04160338267683983,
-0.0021422714926302433,
-0.03621769696474075,
0.04279324412345886,
0.013265905901789665,
0.01816103607416153,
-0.0035930669400840998,
0.018275845795869827,
-0.03402584791183472,
-0.04596620798110962,
0.06688270717859268,
-0.024235589429736137,
0.02811829186975956,
-0.005604871083050966,
-0.0478866845369339,
0.08099403977394104,
-0.05156064033508301,
0.025634197518229485,
-0.0337127260863781,
0.08341551572084427,
0.016136184334754944,
-0.02317097596824169,
-0.06638171523809433,
0.028890658169984818,
-0.06984692811965942,
-0.06642346829175949,
-0.012785786762833595,
-0.05064215138554573,
-0.04070577025413513,
0.04521471634507179,
-0.04738568887114525,
-0.015113321132957935,
-0.026093441992998123,
0.020206760615110397,
-0.0954393744468689,
0.031604375690221786,
0.006846919190138578,
-0.05043340474367142,
0.041874755173921585,
-0.004360213875770569,
0.020551195368170738,
-0.05043340474367142,
-0.07185090333223343,
-0.012295229360461235,
0.05932604894042015,
0.055067598819732666,
-0.028243541717529297,
-0.005891899112612009,
-0.010150348767638206,
-0.03387972339987755,
0.011783798225224018,
-0.025613322854042053,
0.021292248740792274,
0.01881859079003334,
-0.028514912351965904,
0.031562626361846924,
0.01639711856842041,
0.019089961424469948,
0.03997515141963959,
-0.004840333480387926,
0.028389664366841316,
-0.025801194831728935,
-0.03183399885892868,
-0.0013933897716924548,
-0.008480368182063103,
-0.013860836625099182,
0.02170974388718605,
-0.01782703958451748,
-0.004002734087407589,
-0.0008043303387239575,
-0.022774355486035347,
-0.0018669856945052743,
-0.05803181231021881,
-0.024820081889629364,
0.012420478276908398,
-0.0019922342617064714,
-0.00634592492133379,
0.02859841287136078,
-0.011366303078830242,
0.02038419619202614,
0.016647616401314735,
0.0011611582012847066,
-0.019079525023698807,
-0.054733604192733765,
0.0011944272555410862,
0.000936102238483727,
-0.052145134657621384,
0.08253877609968185,
-0.024820081889629364,
-0.017451293766498566,
-0.0533558689057827,
-0.013819086365401745,
0.03636382147669792,
-0.017712228000164032,
-0.07736183702945709,
0.01429920643568039,
-0.048763424158096313,
0.0275129247456789,
0.07377137988805771,
-0.07527436316013336,
0.04053876921534538,
0.02540457434952259,
-0.02152187004685402,
0.005521372426301241,
-0.010014662519097328,
0.011522863991558552,
0.053105372935533524,
0.007191352546215057,
0.04930616542696953,
0.012096919119358063,
0.04563220962882042,
-0.019841453060507774,
0.02331709861755371,
0.008892645128071308,
-0.026803182438015938,
-0.03707356005907059,
-0.02538369968533516,
-0.03425547108054161,
-0.03202187269926071,
0.03137475252151489,
-0.0530218742787838,
0.028013918548822403,
0.0414155088365078,
-0.015572565607726574,
0.03644732013344765,
0.01930914632976055,
0.08337376266717911,
-0.00405753031373024,
0.047009944915771484,
0.03939066082239151,
-0.021667994558811188,
-0.019100399687886238,
-0.006304175592958927,
-0.04421272873878479,
-0.11990458518266678,
0.02523757703602314,
0.010395627468824387,
0.03826342150568962,
0.029036782681941986,
0.03552883118391037,
0.047803185880184174,
-0.04705169424414635,
0.01945527084171772,
0.05719682574272156,
-0.024632208049297333,
-0.045089468359947205,
0.02329622395336628,
-0.01912127435207367,
0.006507704500108957,
-0.0038461731746792793,
-0.0543578565120697,
-0.024465210735797882,
-0.06675746291875839,
-0.04366998374462128,
0.033002983778715134,
0.00916401669383049,
0.03467296436429024,
0.018432406708598137,
0.062290262430906296,
0.04546521231532097,
-0.03891054168343544,
0.029475152492523193,
0.04400397837162018,
-0.041728630661964417,
-0.007801939267665148,
0.012712724506855011,
-0.002118787495419383,
-0.009946820326149464,
0.0629582554101944,
0.016804177314043045,
0.044588472694158554,
-0.05869980528950691,
-0.003112947568297386,
-0.008156809955835342,
-0.04897217079997063,
0.05623658373951912,
-0.02456958405673504,
0.022753480821847916,
0.0024332134053111076,
0.005724900867789984,
-0.012263917364180088,
0.005850149784237146,
0.06888668239116669,
0.07410537451505661,
-0.05911730229854584,
-0.05222863331437111,
-0.007624503690749407,
0.02943340130150318,
0.0162405576556921,
-0.03279423713684082,
-0.02025894820690155,
0.016010936349630356,
0.000395641807699576,
-0.009404076263308525,
0.016000498086214066,
0.01198210846632719,
-0.014925448223948479,
-0.05156064033508301,
-0.028034793213009834,
-0.021323559805750847,
0.04371173307299614,
-0.021031314507126808,
0.008193341083824635,
0.009289265610277653,
0.049890659749507904,
0.02124006114900112,
0.054107360541820526,
0.007921968586742878,
-0.07331213355064392,
0.04713519290089607,
-0.012149106711149216,
0.0009543676278553903,
0.05773956701159477,
0.025655072182416916,
0.01198210846632719,
-0.029642149806022644,
-0.0014194832183420658,
-0.013495528139173985,
0.02233598567545414,
-0.025655072182416916,
0.03435984253883362,
-0.03573757782578468,
0.021135687828063965,
0.020144136622548103,
0.017952287569642067,
0.025634197518229485,
0.026970181614160538,
-0.014100896194577217,
0.005630964878946543,
0.013057158328592777,
0.050391655415296555,
0.10930021107196808,
0.013526840135455132,
-0.047176942229270935,
0.012900597415864468,
-0.005195204168558121,
0.045089468359947205,
-0.028848908841609955,
0.0062206764705479145,
-0.018766403198242188,
-0.056654080748558044,
0.0030790260061621666,
-0.013902585953474045,
-0.03939066082239151,
-0.051184896379709244,
0.03323260694742203,
0.0004546782292891294,
-0.0347147136926651,
-0.030581513419747353,
-0.047970183193683624,
0.047510936856269836,
0.003141650464385748,
-0.0021253107115626335,
-0.0030946822371333838,
-0.07193440198898315,
0.030623262748122215,
0.03630119562149048,
-0.08541949093341827,
0.06642346829175949,
-0.030268391594290733,
0.004555915016680956,
0.07352088391780853,
0.016334494575858116,
0.13727237284183502,
0.03519483283162117,
0.08082704246044159,
0.0601610392332077,
0.04533996433019638,
-0.03210537135601044,
0.014090458862483501,
-0.011512426659464836,
-0.02715805359184742,
-0.06337574869394302,
0.07180915027856827,
0.029537776485085487,
0.0017508699093014002,
0.012733599171042442,
-0.02025894820690155,
-0.004529821686446667,
0.026740558445453644,
-0.01608399674296379,
-0.05427435785531998,
-0.08032605051994324,
-0.03498608618974686,
-0.041227638721466064,
0.0032929922454059124,
0.003929672297090292,
-0.04513121768832207,
0.009101392701268196,
-0.02665705978870392,
0.029788272455334663,
0.0024932282976806164,
0.010348659008741379,
0.006674702279269695,
-0.013151094317436218,
0.013318092562258244,
0.0023510190658271313,
-0.005028206389397383,
-0.018536780029535294,
0.0391819104552269,
-0.014414017088711262,
-0.048930421471595764,
0.0343807190656662,
-0.03534095734357834,
0.017294732853770256,
-0.016584990546107292,
-0.005568340420722961,
0.011877734214067459,
0.01477932557463646,
0.05669583007693291,
-0.0728946402668953,
-0.013359841890633106,
-0.0465506985783577,
-0.03458946570754051,
-0.03548708185553551,
0.03874354064464569,
-0.011272367089986801,
-0.054107360541820526,
0.03323260694742203,
0.0029511682223528624,
0.0003728100564330816,
0.025822069495916367,
-0.018265409395098686,
0.028410539031028748,
-0.0037574556190520525,
-0.03137475252151489,
0.02686580829322338,
-0.002859841100871563,
-0.023400599136948586,
-0.00818812195211649,
0.059701792895793915,
0.03490258753299713,
0.023838968947529793,
0.0033947566989809275,
0.047343939542770386,
0.03659344092011452,
0.021020876243710518,
-0.00900223758071661,
-0.02703280560672283,
0.010536531917750835,
-0.036384694278240204,
0.030581513419747353,
0.01253528892993927,
0.0066068596206605434,
-0.04817892983555794,
-0.05030815675854683,
-0.007796720135957003,
-0.00884045846760273,
-0.005067346151918173,
-0.05565209314227104,
0.023880718275904655,
0.01164811197668314,
0.0047750999219715595,
0.07402187585830688,
0.047176942229270935,
-0.0007834555581212044,
-0.038827039301395416,
-0.004114935640245676,
0.019998013973236084,
-0.02686580829322338,
-0.04143638536334038,
-0.005216078832745552,
0.028577536344528198,
0.07239364087581635,
0.026949306949973106,
0.01831759512424469,
-0.010009444318711758,
0.00231318362057209,
-0.004383698105812073,
-0.024005966261029243,
-0.05243737995624542,
-0.035424456000328064,
-0.031729623675346375,
0.027366802096366882,
-0.06045328453183174,
-0.02653181180357933,
0.039307162165641785,
0.075900599360466,
0.0169085506349802,
-0.02878628484904766,
-0.012086481787264347,
-0.0020392024889588356,
-0.0010796161368489265,
-0.02843141369521618,
-0.010082505643367767,
-0.007801939267665148,
-0.009127485565841198,
-0.03003877028822899,
-0.05995229259133339,
0.019163023680448532,
0.020029325038194656,
-0.03068588674068451,
-0.01831759512424469,
-0.02636481262743473,
-0.00177957268897444,
-0.0019165632547810674,
-0.017733102664351463,
0.002259691944345832,
0.015374255366623402,
-0.06103777885437012,
-0.002778951544314623,
-0.015833500772714615,
-0.029704773798584938,
-0.007765408139675856,
0.001058089081197977,
-0.00755144190043211,
-0.06387674808502197,
0.06024453788995743,
-0.011272367089986801,
-0.020989565178751945,
0.07101590931415558,
-0.0700974240899086,
0.018202785402536392,
-0.0008610835648141801,
-0.04617495462298393,
-0.0299135223031044,
-0.0022414266131818295,
0.005714463535696268,
-0.05406561121344566,
0.010494782589375973,
-0.06575547158718109,
-0.006163270678371191,
0.021500995382666588,
-0.022878728806972504,
0.03210537135601044,
-0.04851292818784714,
0.010087724775075912,
-0.041373759508132935,
-0.009576292708516121,
0.05548509582877159,
-0.011105368845164776,
-0.008777833543717861,
0.013860836625099182,
0.0019752734806388617,
-0.013234593905508518,
0.023901592940092087,
0.016762426123023033,
0.04083101823925972,
-0.0546918548643589,
-0.000857821898534894,
0.05598608776926994,
0.017085986211895943,
-0.018140161409974098,
-0.026573561131954193,
0.006758201401680708,
0.07615110278129578,
0.018474156036973,
-0.033357854932546616,
0.030184892937541008,
-0.0868389755487442,
0.010719185695052147,
0.00005218688238528557,
-0.016198808327317238,
-0.004407182335853577,
0.01928827166557312,
-0.023191850632429123,
0.0035956762731075287,
0.04145725816488266,
0.006779076065868139,
0.03972465544939041,
-0.053105372935533524,
0.0186411552131176,
0.010635687038302422,
-0.04968191310763359,
0.03968290612101555,
-0.007728877477347851,
0.08425050228834152,
0.021010439842939377,
0.010969682596623898,
-0.00018575268040876836,
0.021302685141563416,
0.06103777885437012,
-0.039620280265808105,
-0.03602982312440872,
0.0005427435971796513,
-0.044296227395534515,
-0.026114316657185555,
0.05164413899183273,
0.03056063875555992,
0.010426939465105534,
0.005004722159355879,
0.008021123707294464,
0.032209742814302444,
0.014768888242542744,
0.009837227873504162,
0.005573559086769819,
-0.07072366774082184,
0.02955865114927292,
0.027909545227885246,
0.001266184262931347,
-0.036948312073946,
-0.02703280560672283,
0.019382208585739136,
0.0036008949391543865,
0.022899603471159935,
-0.07072366774082184,
0.02363022044301033,
-0.03573757782578468,
-0.0536898672580719,
0.03613419830799103,
0.03440159186720848,
0.028577536344528198,
-0.012817098759114742,
0.04078926891088486,
-0.087506964802742,
-0.037344932556152344,
0.01101143192499876,
0.03231411799788475,
0.015123758465051651,
-0.004887301474809647,
0.007775845471769571,
0.02795129455626011,
-0.02475745789706707,
-0.01832803338766098,
-0.0027867795433849096,
-0.05097614601254463,
-0.014038271270692348,
-0.04039264842867851,
-0.025592448189854622,
-0.03273161128163338,
0.014006959274411201,
-0.007556660566478968,
-0.0022101146169006824,
0.05932604894042015,
0.02090606465935707,
-0.02329622395336628,
0.02312922663986683,
-0.013933897949755192,
-0.04596620798110962,
0.029496027156710625,
0.04425447806715965,
0.027846921235322952,
0.038639169186353683,
-0.015729127451777458,
0.0053282808512449265,
-0.01960139349102974,
-0.03742843121290207,
-0.05686282739043236,
0.03246024250984192,
-0.07272764295339584,
-0.011721174232661724,
-0.05293837562203407,
0.021114813163876534,
-0.018588967621326447,
-0.0044124010019004345,
-0.047009944915771484,
0.012545726262032986,
0.008589960634708405,
0.0019348287023603916,
0.027053680270910263,
-0.00941451359540224,
0.04160338267683983,
0.02104175090789795,
-0.01013991143554449,
0.016031811013817787,
-0.022941354662179947,
-0.029475152492523193,
0.004161904100328684,
-0.02315010130405426,
0.04083101823925972,
0.03375447541475296,
0.011940359137952328,
-0.023108351975679398,
-0.0071548218838870525,
-0.06500398367643356,
0.0148732615634799,
-0.030143143609166145,
0.01783747598528862,
-0.013036283664405346,
0.009430170059204102,
0.05460835620760918,
-0.016918987035751343,
-0.0019439613679423928,
0.02861928753554821,
0.00875174067914486,
-0.021093938499689102,
0.08207952976226807,
-0.02907853201031685,
0.025467198342084885,
0.006053678225725889,
0.014810637570917606,
0.022732606157660484,
0.01706511154770851,
-0.0218767412006855,
0.0052239070646464825,
0.02119831182062626,
0.043335989117622375,
-0.06704970449209213,
0.002773732878267765,
-0.006539016496390104,
-0.032689861953258514,
-0.0014129598857834935,
0.08337376266717911,
0.03717793524265289,
0.02317097596824169,
-0.10362227261066437,
0.04913916811347008,
0.010886183939874172,
0.017774851992726326,
-0.04078926891088486,
-0.017555667087435722,
-0.02317097596824169,
-0.04600795730948448,
0.043795231729745865,
0.04538171365857124,
0.019987575709819794,
0.015729127451777458,
-0.07352088391780853,
-0.055568594485521317,
0.035278331488370895,
-0.022294236347079277,
-0.06913718581199646,
0.029036782681941986,
0.0001847741805249825,
-0.003457380924373865,
0.03177137300372124,
-0.03262723982334137,
0.03966202959418297,
-0.06053678318858147,
-0.02119831182062626,
0.018902089446783066,
-0.03826342150568962,
-0.032084494829177856,
0.05669583007693291,
0.03342048078775406,
-0.010593937709927559,
0.0002147816412616521,
-0.008052435703575611,
-0.002724155317991972,
0.015155070461332798,
-0.015676939859986305,
0.006539016496390104,
0.024214712902903557,
-0.01052609458565712,
-0.016501491889357567,
0.02682405710220337,
-0.06558847427368164,
0.03325348347425461,
0.01480020023882389,
-0.059075552970170975,
0.026009943336248398,
-0.03331610560417175,
-0.003407803364098072,
0.04195825383067131,
0.04479721933603287,
-0.011491551995277405,
-0.015791751444339752,
-0.034652091562747955,
-0.038346920162439346,
-0.018526343628764153,
-0.013213719241321087,
0.04433797672390938,
-0.04103976488113403,
-0.03500696271657944,
0.008078529499471188,
-0.0059806169010698795,
-0.024527834728360176,
0.024882705882191658,
0.02022763527929783,
0.022085489705204964,
0.03792942687869072,
-0.029767397791147232,
0.07260239124298096,
-0.010980119928717613,
0.00026207600603811443,
-0.005625746212899685,
0.038806166499853134,
0.03534095734357834,
0.02459045872092247,
-0.02540457434952259,
-0.014111333526670933,
-0.03427634388208389,
0.00514040794223547,
0.01180467288941145,
0.04834592714905739,
0.06767594814300537,
-0.00011424034892115742,
0.0632922500371933,
-0.03425547108054161,
0.0318131223320961
] |
725,428 | lotkavolterra_simulator.simulator | Dnoise_cov | Covariance matrix for the demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
D : array, double, dimension=(2*n,2*n)
demographic noise covariance matrix
| def Dnoise_cov(self, **metaparams):
"""Covariance matrix for the demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
D : array, double, dimension=(2*n,2*n)
demographic noise covariance matrix
"""
import numpy as np
Xtrue=self.Xtrue
Ytrue=self.Ytrue
obsR=metaparams["obsR"]
D=obsR*np.diag(np.concatenate((Xtrue, Ytrue)))
return D
| (self, **metaparams) | [
-0.01879691891372204,
-0.009997380897402763,
0.11853115260601044,
-0.016668442636728287,
0.01659473031759262,
-0.024804560467600822,
-0.03287617862224579,
-0.002635254291817546,
0.04411747306585312,
0.05834415927529335,
-0.04057922959327698,
0.06534693390130997,
0.018925916403532028,
0.062177255749702454,
-0.035658858716487885,
-0.005505470093339682,
0.00829736515879631,
0.022261448204517365,
-0.023182865232229233,
-0.012577349320054054,
-0.02218773402273655,
0.012217996641993523,
-0.01977362111210823,
-0.04072665423154831,
-0.054068781435489655,
0.0027596454601734877,
-0.011075438931584358,
-0.0462920181453228,
-0.04478089138865471,
0.03862582519650459,
-0.08078989386558533,
-0.025910262018442154,
0.014438613317906857,
0.04526003077626228,
0.03866267949342728,
0.007048844359815121,
0.015203389339148998,
-0.021690169349312782,
-0.10555759817361832,
0.02992764301598072,
-0.027697810903191566,
-0.019847333431243896,
0.0906674861907959,
-0.003188104834407568,
-0.039178673177957535,
-0.04496517777442932,
-0.003413852071389556,
0.02760566957294941,
-0.07562994956970215,
0.010375161655247211,
0.03980523720383644,
0.00014620304864365608,
0.027679383754730225,
-0.02786366641521454,
0.02734767273068428,
0.03460844233632088,
0.005777288228273392,
0.05635389685630798,
0.03142033889889717,
-0.007486517541110516,
0.006053713150322437,
-0.04179549962282181,
0.01894434541463852,
-0.02533898316323757,
-0.009338567033410072,
0.018502064049243927,
-0.011333435773849487,
0.03881010785698891,
0.08882465213537216,
-0.015138890594244003,
0.02869294211268425,
-0.0035244221799075603,
-0.019091771915555,
0.03683827444911003,
0.07164943218231201,
-0.020676609128713608,
-0.09612227976322174,
-0.04087408259510994,
0.00483283493667841,
-0.0020098420791327953,
-0.033226318657398224,
-0.04912998527288437,
-0.004058844409883022,
0.044596608728170395,
0.023367149755358696,
0.009905238635838032,
-0.032820891588926315,
-0.024693990126252174,
0.0187692753970623,
-0.0028817334678024054,
0.002630647039040923,
0.007744514383375645,
-0.013047272339463234,
0.0031581586226820946,
-0.0178110022097826,
0.05053053796291351,
0.006827704142779112,
0.04279063269495964,
0.1068844348192215,
0.042864345014095306,
0.006168890278786421,
-0.017377935349941254,
0.02462027780711651,
0.05399506911635399,
-0.05967099964618683,
0.017027797177433968,
0.0032157471869140863,
0.0710228681564331,
0.04478089138865471,
-0.00636699516326189,
-0.039178673177957535,
0.0522628054022789,
0.04057922959327698,
-0.05535876750946045,
-0.0200500451028347,
-0.04279063269495964,
-0.022685300558805466,
0.034866441041231155,
-0.02434385195374489,
0.00625642528757453,
-0.02001318894326687,
0.0024878273252397776,
-0.03847839683294296,
0.03287617862224579,
-0.008315793238580227,
-0.033779166638851166,
-0.016290662810206413,
-0.03600899875164032,
0.01751614734530449,
0.01855734921991825,
-0.013581695035099983,
-0.055432479828596115,
0.07857848703861237,
-0.027918951585888863,
0.023367149755358696,
-0.01894434541463852,
0.0369119867682457,
-0.06947488337755203,
0.07835734635591507,
0.012337780557572842,
0.025357410311698914,
0.03667241707444191,
-0.019405053928494453,
0.03991580754518509,
-0.015820739790797234,
0.051230814307928085,
0.060444992035627365,
-0.010835870169103146,
0.02489670179784298,
-0.007836656644940376,
-0.040800370275974274,
0.043527763336896896,
-0.008804144337773323,
-0.0296512171626091,
0.012079783715307713,
-0.020068474113941193,
0.009089783765375614,
0.006855346728116274,
-0.03059106320142746,
-0.013839691877365112,
-0.027716239914298058,
-0.015627240762114525,
-0.019552480429410934,
0.02546798065304756,
0.022150877863168716,
-0.0021549651864916086,
0.02544955350458622,
0.01881534606218338,
0.008375685662031174,
0.002377257216721773,
-0.03530872240662575,
-0.04197978228330612,
-0.00022315581736620516,
-0.05049368366599083,
0.01211664080619812,
0.028766656294465065,
-0.059634145349264145,
0.01964462175965309,
-0.04492831975221634,
-0.01772807352244854,
0.0384046845138073,
-0.01732265017926693,
-0.00001662870818108786,
0.014668967574834824,
0.01246677991002798,
0.020234329625964165,
0.040394946932792664,
-0.03589842841029167,
0.041906069964170456,
0.003358566900715232,
0.011278150603175163,
0.0026767179369926453,
-0.043269768357276917,
0.008781109005212784,
0.025928689166903496,
-0.04076351225376129,
0.030701633542776108,
-0.03224961459636688,
0.02572597749531269,
-0.013406625017523766,
0.025265268981456757,
0.015664098784327507,
-0.06073984503746033,
-0.024012140929698944,
0.018161140382289886,
0.002607611706480384,
-0.05749645456671715,
-0.017295006662607193,
-0.018419137224555016,
0.024841416627168655,
0.036764562129974365,
0.0023795608431100845,
0.11410834640264511,
-0.045702312141656876,
0.09317374229431152,
0.005952357314527035,
0.06449922919273376,
-0.012319352477788925,
-0.06988030672073364,
0.004109522327780724,
0.0533316470682621,
-0.06575235724449158,
-0.03936295956373215,
0.07754649966955185,
-0.0390312485396862,
0.01570095494389534,
-0.014991463162004948,
0.0011339194606989622,
-0.014844036661088467,
-0.031051771715283394,
-0.020086903125047684,
0.049203697592020035,
-0.005533112213015556,
-0.042016640305519104,
0.001716140192002058,
0.0030268565751612186,
0.008412541821599007,
0.006178104784339666,
-0.006187318824231625,
0.02896936796605587,
-0.09015149623155594,
0.01597738079726696,
0.025412695482373238,
0.08786638081073761,
0.05849158763885498,
-0.0023000885266810656,
0.037814974784851074,
0.03833096846938133,
-0.023754144087433815,
0.04341719672083855,
0.011324221268296242,
-0.041500646620988846,
-0.003717919811606407,
0.03140190988779068,
0.016779012978076935,
0.0029761786572635174,
0.045002032071352005,
0.02788209542632103,
0.03383445367217064,
-0.06343038380146027,
0.000051685765356523916,
-0.03169676288962364,
-0.040800370275974274,
0.016502588987350464,
-0.0027965023182332516,
0.03910496085882187,
0.0029462326783686876,
-0.01847442239522934,
-0.04455975443124771,
-0.009209568612277508,
0.03506915271282196,
0.1006925106048584,
-0.00818218756467104,
-0.07043315470218658,
0.01393183320760727,
0.010688443668186665,
0.026352541521191597,
-0.033226318657398224,
-0.024141140282154083,
0.07047001272439957,
-0.021450601518154144,
-0.03153090924024582,
-0.013839691877365112,
0.07400825619697571,
-0.020105330273509026,
-0.006758597679436207,
-0.011886286549270153,
0.0015468297060579062,
0.02718181721866131,
0.025357410311698914,
0.024712419137358665,
-0.0018255584873259068,
0.02790052257478237,
0.03858896717429161,
0.018244067206978798,
-0.020934605970978737,
-0.04448603838682175,
0.04341719672083855,
-0.030351493507623672,
0.03707784414291382,
0.05322107672691345,
0.04916683956980705,
0.004019684158265591,
-0.015461386181414127,
-0.026444682851433754,
-0.003100570058450103,
0.008412541821599007,
-0.04618144780397415,
0.027513528242707253,
0.01508360542356968,
-0.015166533179581165,
0.032139044255018234,
-0.037814974784851074,
0.06073984503746033,
-0.0022954815067350864,
-0.00938463769853115,
-0.04374890401959419,
0.008559969253838062,
0.046107735484838486,
0.07109657675027847,
0.012475993484258652,
-0.07282884418964386,
-0.015092819929122925,
-0.021450601518154144,
0.026297256350517273,
-0.020897749811410904,
-0.041648074984550476,
-0.028379660099744797,
0.002888644114136696,
0.053552787750959396,
-0.0045610168017446995,
-0.02178231067955494,
-0.04234835132956505,
0.024048998951911926,
0.015138890594244003,
-0.054474204778671265,
-0.0007837808225303888,
-0.0573858842253685,
0.004579445347189903,
0.03549300506711006,
-0.04157435894012451,
-0.03698569908738136,
-0.03759383782744408,
-0.0018186478409916162,
0.006924452725797892,
-0.02557855099439621,
0.05749645456671715,
-0.036598704755306244,
-0.00656510004773736,
0.059339288622140884,
0.02532055415213108,
0.08418070524930954,
0.05605904385447502,
0.07739907503128052,
0.03449787199497223,
0.053405363112688065,
-0.020879320800304413,
0.08322243392467499,
-0.01933133974671364,
-0.04290120303630829,
-0.04153750464320183,
0.09140462428331375,
0.03457158803939819,
-0.009324745275080204,
-0.004436625633388758,
0.0211188904941082,
-0.028877226635813713,
0.0010930316057056189,
-0.003526725573465228,
-0.011913929134607315,
-0.07585109025239944,
-0.019939476624131203,
-0.05093596130609512,
0.0018174961442127824,
0.02557855099439621,
-0.06759519129991531,
-0.047582004219293594,
-0.02745824307203293,
0.05576419085264206,
0.020234329625964165,
-0.1264922022819519,
-0.010679229162633419,
0.00477294297888875,
-0.013489552773535252,
-0.02246415987610817,
0.047471433877944946,
-0.03423987701535225,
0.03833096846938133,
-0.040542371571063995,
-0.01881534606218338,
-0.010172449983656406,
-0.019312912598252296,
0.015323174186050892,
-0.015323174186050892,
-0.04640258848667145,
-0.021155746653676033,
0.016686871647834778,
0.026499968022108078,
-0.05683303624391556,
0.0070258090272545815,
-0.045702312141656876,
-0.010596301406621933,
-0.021321602165699005,
0.021174175664782524,
-0.07341855019330978,
-0.0637989491224289,
-0.01689879782497883,
-0.01719365082681179,
0.021487457677721977,
-0.019718335941433907,
0.031770478934049606,
0.0241042822599411,
0.017672788351774216,
0.016603944823145866,
0.029466932639479637,
0.0056989677250385284,
-0.0300750695168972,
-0.04389633238315582,
0.035658858716487885,
0.042016640305519104,
0.021874452009797096,
-0.07172314077615738,
0.012982773594558239,
0.019257627427577972,
0.026334114372730255,
-0.010218520648777485,
-0.024177996441721916,
0.019570909440517426,
-0.012337780557572842,
-0.030001355335116386,
0.004141771700233221,
0.019534051418304443,
-0.007140986155718565,
-0.004461964592337608,
0.0166408009827137,
-0.03438730165362358,
-0.017331864684820175,
-0.0022724459413439035,
-0.00879032351076603,
0.025928689166903496,
-0.007085700985044241,
0.043122339993715286,
0.013111772015690804,
-0.042827486991882324,
-0.08196930587291718,
-0.018907487392425537,
0.07762021571397781,
-0.03210218623280525,
0.012752419337630272,
-0.05723845958709717,
0.06818489730358124,
0.03276560828089714,
0.01574702560901642,
-0.04065294191241264,
0.010596301406621933,
0.02397528477013111,
0.06309867650270462,
-0.03532714769244194,
-0.024012140929698944,
-0.05211537703871727,
-0.0006127426750026643,
0.01508360542356968,
-0.09081491082906723,
-0.01617087796330452,
0.0043997690081596375,
0.052189089357852936,
0.005625254008919001,
-0.011821786873042583,
-0.0035589751787483692,
-0.010577873326838017,
0.029337935149669647,
0.024030569940805435,
-0.00846782699227333,
-0.01933133974671364,
0.007620123215019703,
-0.01143479160964489,
-0.060444992035627365,
0.02841651812195778,
-0.005620647221803665,
0.04275377467274666,
-0.05030939728021622,
-0.010909583419561386,
-0.012641848996281624,
-0.010080307722091675,
0.0008707395754754543,
0.004220092203468084,
-0.024417564272880554,
-0.023219721391797066,
0.024325422942638397,
-0.005017118528485298,
0.049609120935201645,
0.017184438183903694,
-0.01595895178616047,
-0.03300517797470093,
-0.006178104784339666,
0.0343504473567009,
0.021727025508880615,
-0.03326317295432091,
0.040800370275974274,
-0.00042701943311840296,
-0.01689879782497883,
-0.027918951585888863,
-0.022279877215623856,
-0.017903143540024757,
-0.04806113988161087,
-0.029337935149669647,
-0.03447944298386574,
0.01556274201720953,
-0.01237463764846325,
0.011462434194982052,
0.021763881668448448,
0.0178110022097826,
-0.01875084638595581,
-0.0019418875453993678,
0.05797559395432472,
-0.03355802595615387,
-0.06486779451370239,
0.06276696175336838,
-0.006878382060676813,
0.023367149755358696,
0.03869953751564026,
0.01279849000275135,
-0.040394946932792664,
0.059228722006082535,
-0.01723972149193287,
0.014512326568365097,
-0.05532190948724747,
-0.021082034334540367,
0.03346588462591171,
0.03645128011703491,
-0.06490465253591537,
-0.03632228076457977,
-0.02828751876950264,
0.06899574398994446,
-0.03995266556739807,
-0.02651839703321457,
0.01089115533977747,
-0.0014926964649930596,
-0.033115748316049576,
-0.012982773594558239,
0.031991615891456604,
-0.04883512854576111,
0.058454729616642,
0.001922307419590652,
-0.00190387899056077,
0.03411087766289711,
-0.022851156070828438,
-0.02775309607386589,
0.02231673337519169,
0.005906286649405956,
-0.015479815192520618,
-0.023588288575410843,
-0.041353218257427216,
0.0012439136626198888,
0.08764524012804031,
0.03339217230677605,
-0.02882194146513939,
-0.051378242671489716,
-0.017018582671880722,
0.04050551727414131,
-0.014245115220546722,
-0.07216542214155197,
0.05561676248908043,
-0.011084653437137604,
-0.00355436815880239,
0.03302360326051712,
0.023256579414010048,
0.002171090105548501,
-0.023514576256275177,
-0.02248258888721466,
-0.020252758637070656,
0.0019660748075693846,
0.002083555329591036,
0.09310002624988556,
-0.042974915355443954,
0.033097319304943085,
0.05263137072324753,
-0.0009905238403007388,
-0.009794668294489384,
-0.020234329625964165,
-0.0010815138230100274,
-0.00734369782730937,
0.004531070590019226,
-0.005224437452852726,
-0.008301972411572933,
-0.01896277256309986,
-0.09133090823888779,
-0.017700431868433952,
0.0642043724656105,
0.0227221567183733,
-0.007233127951622009,
-0.030388351529836655,
-0.05605904385447502,
-0.02248258888721466,
-0.014834822155535221,
0.022556301206350327,
0.04212721064686775,
0.012826132588088512,
0.006620385218411684,
-0.00022877070296090096,
-0.021985022351145744,
-0.028914082795381546,
0.04533374309539795,
-0.009896024130284786,
-0.013784406706690788,
-0.0026237363927066326,
-0.005335007794201374,
-0.016631586477160454,
-0.0031765869352966547,
0.0010354429250583053,
-0.0565381795167923,
0.015673313289880753,
-0.015341602265834808,
0.03921553120017052,
0.023385576903820038,
0.0031904082279652357,
-0.030535778030753136,
-0.004692318849265575,
-0.0035290291998535395,
0.043785762041807175,
0.028748227283358574,
-0.043638333678245544,
-0.016557874158024788,
-0.024159567430615425,
-0.03366859629750252,
-0.024859845638275146,
0.00561143271625042,
-0.008361863903701305,
-0.04179549962282181,
-0.02979864366352558,
0.009978951886296272,
0.036875128746032715,
0.03149405121803284,
-0.023348720744252205,
-0.033115748316049576,
0.022261448204517365,
0.004683104809373617,
0.020473897457122803,
-0.00022574729518964887,
0.053257934749126434,
0.025486409664154053,
0.013360554352402687,
-0.024159567430615425,
0.006551278755068779,
-0.05749645456671715,
0.014954607002437115,
-0.051525671035051346,
0.03457158803939819,
0.019994761794805527,
-0.018695561215281487,
-0.007555624004453421,
-0.026186686009168625,
-0.04422804340720177,
0.03449787199497223,
0.0441543273627758,
-0.039731524884700775,
-0.008343435823917389,
0.042164068669080734,
0.011554576456546783,
-0.03276560828089714,
0.0375385507941246,
0.012503636069595814,
-0.02749509923160076,
-0.06737405061721802,
0.11536147445440292,
-0.02045547030866146,
-0.01920234225690365,
-0.025965547189116478,
-0.018677134066820145,
-0.024822989478707314,
0.02124788798391819,
-0.0000842953086248599,
-0.01319469977170229,
-0.008854822255671024,
-0.01388576254248619,
-0.052741941064596176,
0.026757964864373207,
-0.03573257103562355,
0.0004892151337116957,
0.018382281064987183,
0.04102151095867157,
0.01798607036471367,
0.07784135639667511,
-0.041500646620988846,
0.017903143540024757,
-0.001979895867407322,
0.03523500636219978,
-0.033779166638851166,
-0.054474204778671265,
0.003441494656726718,
-0.025007272139191628,
-0.032286472618579865,
0.03530872240662575,
-0.004169414285570383,
0.06103469803929329,
-0.041906069964170456,
-0.031236054375767708,
0.078947052359581,
-0.042422063648700714,
-0.028785083442926407,
-0.015940522775053978,
0.04643944278359413,
-0.02056604065001011,
0.0736028328537941,
-0.04024751856923103,
-0.015811525285243988,
0.03534557670354843,
-0.009591956622898579,
0.03330003097653389,
-0.00687377480790019,
-0.034166160970926285,
0.04002637788653374,
0.06239839643239975,
0.013692264445126057,
-0.04588659480214119,
-0.028748227283358574,
0.03718841075897217,
0.027255531400442123,
0.013683050870895386,
-0.028914082795381546,
0.013701478950679302,
-0.014134544879198074,
-0.020068474113941193,
0.03289460763335228,
-0.05318422242999077,
0.00016657501691952348,
0.008288150653243065,
-0.03468215838074684,
0.029946070164442062,
-0.04179549962282181,
-0.013332911767065525,
-0.0005289512919262052,
0.06413066387176514,
-0.00409109378233552,
-0.04935112223029137,
0.046918582171201706,
-0.05712788924574852,
-0.02248258888721466,
-0.007389768958091736,
0.02235358953475952,
-0.07636708766222,
0.050014544278383255,
0.06899574398994446,
-0.02030804194509983,
0.008361863903701305,
0.0023841678630560637,
-0.01122286543250084,
0.04183235764503479,
0.04301176965236664,
-0.06055556237697601,
0.04901941493153572,
0.021340031176805496,
0.012153497897088528,
-0.01717522367835045,
-0.023330291733145714,
-0.003849221859127283,
0.0017863982357084751,
-0.0684797540307045,
0.0029508396983146667,
-0.0003596407768782228,
-0.002462488366290927,
0.011554576456546783,
0.002054761163890362,
0.028729800134897232,
0.0058602155186235905,
0.06298810243606567,
0.03379759564995766,
0.0004445839731488377
] |
725,429 | lotkavolterra_simulator.simulator | Onoise_cov | Covariance matrix for the observational noise.
Prey and predator populations introduce a noise to the other
population, and there is also a non-diagonal term
proportional to the geometric mean of both populations.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
O : array, double, dimension=(2*n,2*n)
observational noise covariance matrix
Note
----
Getting a positive semidefinite matrix should be enforced by user parameter choice.
| def Onoise_cov(self, X, Y, **metaparams):
"""Covariance matrix for the observational noise.
Prey and predator populations introduce a noise to the other
population, and there is also a non-diagonal term
proportional to the geometric mean of both populations.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
O : array, double, dimension=(2*n,2*n)
observational noise covariance matrix
Note
----
Getting a positive semidefinite matrix should be enforced by user parameter choice.
"""
import numpy as np
obsS=metaparams["obsS"]
obsT=metaparams["obsT"]
O00=np.diag(Y)
O01=obsT*np.diag(np.sqrt(X*Y))
O10=obsT*np.diag(np.sqrt(X*Y))
O11=np.diag(X)
O=np.block([ [obsS*O00, obsS*O01], [obsS*O10, obsS*O11] ])
return O
| (self, X, Y, **metaparams) | [
-0.017283765599131584,
-0.025321222841739655,
0.0987010970711708,
-0.010713535360991955,
0.01908319629728794,
-0.05868913233280182,
-0.030267350375652313,
0.015595068223774433,
0.06703110784292221,
0.015133675187826157,
-0.020707298070192337,
0.031245503574609756,
0.017449866980314255,
0.02436152659356594,
-0.03274041414260864,
0.0272221602499485,
-0.013158915564417839,
-0.04303869605064392,
0.004840007983148098,
-0.012088485062122345,
-0.00741457799449563,
-0.025764159858226776,
-0.003566564293578267,
-0.04097165912389755,
-0.065000981092453,
-0.006602527108043432,
-0.05854148790240288,
-0.04624998942017555,
-0.035767149180173874,
-0.009587736800312996,
-0.03752044215798378,
-0.04506882280111313,
-0.008729547262191772,
0.019655322656035423,
0.05628988891839981,
0.005915052257478237,
0.025468869134783745,
0.007146970368921757,
-0.047135863453149796,
-0.0031028648372739553,
-0.033921580761671066,
-0.06507480144500732,
0.03126395866274834,
0.004969197791069746,
-0.047062039375305176,
-0.02133479155600071,
-0.033201806247234344,
0.08489622920751572,
-0.031319327652454376,
0.010012217797338963,
0.010492066852748394,
-0.02170390449464321,
0.01838187873363495,
-0.03465980663895607,
0.047098949551582336,
0.044256772845983505,
0.027535907924175262,
0.030876388773322105,
0.03539803624153137,
0.020633473992347717,
0.016739321872591972,
-0.010944231413304806,
0.012623700313270092,
0.025911806151270866,
0.012374548241496086,
-0.017883574590086937,
-0.02447226084768772,
0.03715132921934128,
0.108888640999794,
0.0010952305747196078,
0.052377283573150635,
-0.025745704770088196,
-0.019489221274852753,
0.0476895347237587,
0.057766348123550415,
-0.055219460278749466,
-0.10032519698143005,
0.0021996889263391495,
0.010058357380330563,
-0.00950468610972166,
-0.06094072759151459,
-0.04182061925530434,
-0.05138067528605461,
0.03763117641210556,
0.009790750220417976,
0.0033081844449043274,
-0.02938147820532322,
-0.023494107648730278,
0.04344472289085388,
0.017468322068452835,
-0.011783965863287449,
0.033423274755477905,
-0.001785589149221778,
-0.017219169065356255,
-0.02441689372062683,
0.05374300479888916,
-0.02415851317346096,
0.01646248623728752,
0.0855606347322464,
0.015475106425583363,
0.0006719029042869806,
-0.03532421216368675,
0.0008207020000554621,
0.09109734743833542,
-0.03798183426260948,
0.020430462434887886,
0.0010652400087565184,
0.08031921088695526,
0.03214983269572258,
-0.03956902399659157,
-0.019526133313775063,
0.002072806004434824,
-0.02373403310775757,
-0.08327212929725647,
-0.013260421343147755,
-0.0431494303047657,
-0.01833573915064335,
0.03964284807443619,
-0.01602877676486969,
-0.02166699431836605,
-0.03462289646267891,
0.017837435007095337,
-0.05355844646692276,
0.022054564207792282,
-0.013786409050226212,
-0.023567931726574898,
-0.0020854943431913853,
-0.06337688118219376,
0.0007341908640228212,
-0.013112775981426239,
-0.03218674287199974,
-0.04078710079193115,
0.07456103712320328,
-0.007991318590939045,
-0.015327460132539272,
-0.036173176020383835,
-0.01453386526554823,
-0.06263865530490875,
0.06263865530490875,
-0.01649939827620983,
0.022349854931235313,
0.02903081849217415,
-0.05699120834469795,
0.005273716989904642,
-0.007926723919808865,
0.0688028559088707,
0.04248502478003502,
-0.039052266627550125,
0.06640361249446869,
-0.016813144087791443,
-0.04577014222741127,
0.033718567341566086,
-0.009836888872087002,
-0.038941532373428345,
-0.0010721608996391296,
-0.020596563816070557,
0.0033912351354956627,
0.014838384464383125,
-0.01184856053441763,
-0.01822500489652157,
-0.04366619139909744,
-0.0006805540178902447,
-0.0024015482049435377,
0.0020278203301131725,
0.023364918306469917,
0.03497355431318283,
0.04086092486977577,
0.022017652168869972,
0.028993908315896988,
-0.03687449172139168,
-0.05163905397057533,
-0.044662799686193466,
0.009846117347478867,
-0.049202900379896164,
0.028163401409983635,
0.025044387206435204,
-0.06507480144500732,
-0.008858736604452133,
-0.05274639651179314,
-0.025579603388905525,
0.03563795983791351,
-0.0003820907149929553,
-0.022940438240766525,
0.015475106425583363,
-0.03464135155081749,
0.027831198647618294,
0.06625597178936005,
-0.07057460397481918,
0.006907046306878328,
0.004844621755182743,
-0.01334347203373909,
0.030433451756834984,
-0.044478241354227066,
0.03827712684869766,
0.05695429444313049,
-0.02681613527238369,
0.0380556583404541,
-0.004816938191652298,
0.008318907581269741,
0.004890760872513056,
0.030064338818192482,
-0.0009020224097184837,
-0.06459495425224304,
-0.003974896855652332,
0.03246358036994934,
-0.0008235856657847762,
-0.007068533916026354,
-0.003654228989034891,
-0.07072225213050842,
0.030857933685183525,
0.04506882280111313,
-0.0032505104318261147,
0.0751885324716568,
-0.046766746789216995,
0.08843972533941269,
0.04846467450261116,
0.07958098500967026,
-0.009790750220417976,
-0.08799678832292557,
-0.01884327083826065,
0.04798482358455658,
-0.03923682123422623,
-0.07943334430456161,
0.06717875599861145,
-0.006247255019843578,
0.030710287392139435,
-0.004459358751773834,
-0.00045245306682772934,
0.028347957879304886,
-0.028458692133426666,
-0.018243461847305298,
0.07884275913238525,
-0.033441733568906784,
-0.025302767753601074,
-0.014478498138487339,
0.013195826672017574,
0.011128787882626057,
-0.010159864090383053,
-0.043961480259895325,
-0.007465331349521875,
-0.07504088431596756,
-0.025801071897149086,
0.004235583357512951,
0.05710194259881973,
0.030119705945253372,
-0.0011373326415196061,
0.02652084268629551,
0.012651383876800537,
0.006399514619261026,
0.06920888274908066,
0.03715132921934128,
-0.02425079233944416,
0.0106950793415308,
-0.00789904035627842,
0.007603749167174101,
-0.01836342364549637,
0.044478241354227066,
0.017938941717147827,
0.03150388225913048,
-0.06913506239652634,
-0.026262464001774788,
-0.010058357380330563,
-0.0473204180598259,
0.0027683551888912916,
-0.025321222841739655,
0.01906473934650421,
-0.014893751591444016,
-0.012835940346121788,
-0.05363227054476738,
0.0164348017424345,
0.06621906161308289,
0.06906123459339142,
-0.005112229380756617,
-0.05270948261022568,
0.02694532461464405,
0.01463537197560072,
0.03159616142511368,
-0.02105795592069626,
0.0032458966597914696,
0.04004887118935585,
-0.0023069626186043024,
-0.009200166910886765,
-0.004459358751773834,
0.035767149180173874,
-0.014986029826104641,
-0.036689937114715576,
-0.02366020902991295,
-0.0035273460671305656,
0.04119312763214111,
-0.003910301718860865,
0.009292446076869965,
0.006630210671573877,
0.049498192965984344,
0.03163307160139084,
0.01831728406250477,
0.0265762098133564,
-0.046508368104696274,
0.07921187579631805,
-0.019267752766609192,
-0.008512692525982857,
0.054702699184417725,
0.0680646300315857,
-0.033330999314785004,
-0.0431494303047657,
0.060017943382263184,
0.000258668209426105,
0.041968267410993576,
-0.054961081594228745,
0.03715132921934128,
0.005735109560191631,
-0.008683407679200172,
0.0271298810839653,
-0.007243862841278315,
0.0435185432434082,
-0.025431957095861435,
0.044182948768138885,
-0.02183309569954872,
0.012254586443305016,
0.054997991770505905,
0.07736629992723465,
0.03165153041481972,
-0.08866119384765625,
0.022239120677113533,
-0.015207498334348202,
0.02441689372062683,
-0.01233763713389635,
-0.046508368104696274,
-0.007285388186573982,
-0.01846493035554886,
0.027443628758192062,
-0.02716679312288761,
-0.04248502478003502,
-0.05905824527144432,
0.04052872210741043,
0.014616915956139565,
-0.011737826280295849,
-0.028661705553531647,
-0.05544092878699303,
0.00658868532627821,
0.01602877676486969,
-0.060350146144628525,
-0.06086690351366997,
-0.05012568458914757,
-0.011986978352069855,
-0.009633876383304596,
-0.0637090802192688,
0.07050078362226486,
-0.03967975825071335,
-0.019802968949079514,
0.06238027289509773,
0.017606738954782486,
0.11789502203464508,
0.09899638593196869,
0.054924167692661285,
0.05569930747151375,
0.08762767165899277,
-0.01840033382177353,
0.03233439102768898,
-0.01207925658673048,
-0.03512120246887207,
-0.05012568458914757,
0.08415800333023071,
0.06902432441711426,
-0.033700112253427505,
-0.010372104123234749,
0.0323159322142601,
-0.004367080517113209,
0.03377393260598183,
-0.028809349983930588,
-0.05385373905301094,
-0.08253389596939087,
-0.014792244881391525,
-0.05795090273022652,
0.0079867048189044,
0.0146999666467309,
-0.022774336859583855,
-0.041562240570783615,
-0.03949520364403725,
0.04484735429286957,
-0.0038503208197653294,
-0.06252791732549667,
0.007451489567756653,
-0.0037049821112304926,
0.0029090798925608397,
-0.019267752766609192,
0.02938147820532322,
-0.027720464393496513,
0.02415851317346096,
-0.0060257865116000175,
-0.023291096091270447,
0.013952510431408882,
-0.036080896854400635,
0.03480745479464531,
-0.004936900455504656,
0.0023369533009827137,
-0.0217592716217041,
0.020559651777148247,
0.029972059652209282,
-0.031245503574609756,
0.0007439954788424075,
-0.04492117837071419,
-0.0382402129471302,
-0.008078983053565025,
0.01615796610713005,
-0.08031921088695526,
-0.08999000489711761,
-0.03190990909934044,
-0.0323159322142601,
0.030821021646261215,
0.0024984406773000956,
-0.017865119501948357,
0.01900937221944332,
0.06736331433057785,
-0.000630377558991313,
0.039199911057949066,
0.013085092417895794,
-0.002842178102582693,
0.0018744071712717414,
0.04588087648153305,
0.03421686962246895,
0.03964284807443619,
-0.07223561406135559,
0.04004887118935585,
0.017938941717147827,
0.05134376138448715,
-0.044552065432071686,
-0.02906773053109646,
-0.014017105102539062,
0.0031259343959391117,
-0.04237429052591324,
-0.002906773006543517,
0.03680066764354706,
-0.02384476736187935,
-0.020116714760661125,
0.0010029519908130169,
-0.01464459951967001,
0.0007514930912293494,
-0.03155925124883652,
0.011147243902087212,
0.05344771221280098,
-0.004886147100478411,
0.07175576686859131,
0.00943086389452219,
-0.002235446823760867,
-0.06267556548118591,
-0.010122952051460743,
0.05138067528605461,
-0.014173978939652443,
-0.011101104319095612,
-0.0027729691937565804,
0.05138067528605461,
0.04097165912389755,
0.006939344108104706,
-0.01649939827620983,
-0.0034512162674218416,
0.03143006190657616,
0.06725257635116577,
-0.041894443333148956,
-0.04547484964132309,
-0.03816639259457588,
-0.03172535076737404,
0.023032715544104576,
-0.02897545136511326,
-0.03170689567923546,
0.019526133313775063,
0.03440142795443535,
-0.0032389757689088583,
0.0003515234566293657,
0.030802566558122635,
-0.007285388186573982,
-0.01650862582027912,
-0.0008195484988391399,
-0.030470363795757294,
-0.012835940346121788,
0.03480745479464531,
-0.025487324222922325,
-0.05658518150448799,
0.04274340718984604,
0.014995257370173931,
0.006897818762809038,
-0.06570229679346085,
0.008171262219548225,
0.000963156926445663,
-0.006694805808365345,
0.004496270325034857,
0.008194332011044025,
0.0026230167131870985,
-0.05366918072104454,
0.012697522528469563,
-0.005795090459287167,
0.0489814318716526,
0.04211591184139252,
-0.02956603467464447,
-0.0375942662358284,
-0.036523833870887756,
0.06728948652744293,
-0.0076222047209739685,
-0.017680563032627106,
0.01569657400250435,
-0.025598058477044106,
-0.003977203741669655,
0.025062842294573784,
-0.043813835829496384,
-0.03386621177196503,
-0.05300477519631386,
-0.03248203545808792,
-0.06396745890378952,
-0.027480540797114372,
-0.015309005044400692,
0.005624375306069851,
0.0212978795170784,
-0.008378888480365276,
-0.01053820550441742,
-0.004821551963686943,
0.028772439807653427,
-0.014912206679582596,
-0.025874894112348557,
0.08748002350330353,
0.02115023508667946,
0.008554217405617237,
0.006205729674547911,
-0.019766056910157204,
-0.018298828974366188,
0.05968574061989784,
-0.000889910850673914,
0.02415851317346096,
-0.03993813693523407,
-0.001634483109228313,
0.030064338818192482,
-0.010722762905061245,
-0.06193733587861061,
-0.03501046821475029,
-0.046545278280973434,
0.07995010167360306,
-0.026077907532453537,
-0.036210086196660995,
0.01649939827620983,
-0.016988473013043404,
0.04097165912389755,
-0.010510521940886974,
-0.013740270398557186,
-0.02380785532295704,
0.047135863453149796,
0.03299879655241966,
-0.001770593924447894,
0.03183608502149582,
-0.02399241179227829,
0.0001750407973304391,
-0.05119611695408821,
0.027591275051236153,
-0.01317737065255642,
-0.022349854931235313,
0.023106539621949196,
-0.007756008766591549,
0.06725257635116577,
0.04377692565321922,
-0.03469672054052353,
-0.04377692565321922,
-0.018160410225391388,
0.06204807013273239,
-0.01211616862565279,
-0.04554867371916771,
0.02170390449464321,
-0.015604295767843723,
-0.020578106865286827,
0.033330999314785004,
0.036689937114715576,
0.020448917523026466,
-0.0068332236260175705,
0.004849235527217388,
0.0266684889793396,
-0.011590180918574333,
0.007571451831609011,
0.04577014222741127,
-0.05123302713036537,
0.049498192965984344,
0.02971367910504341,
0.009689243510365486,
-0.02456454001367092,
-0.0013980193762108684,
0.0045654792338609695,
-0.011544041335582733,
0.027978843078017235,
-0.0313931480050087,
0.010104496963322163,
-0.028255678713321686,
-0.10689542442560196,
-0.02635474130511284,
0.07884275913238525,
0.03975358232855797,
-0.0000670100562274456,
0.008932559750974178,
-0.06636670231819153,
-0.02164853736758232,
-0.0030544186010956764,
0.022202208638191223,
0.028218768537044525,
-0.01343575119972229,
-0.0024038550909608603,
-0.016573220491409302,
-0.01891709491610527,
0.0052321916446089745,
0.041525330394506454,
-0.02639165334403515,
-0.0037211307790130377,
0.0026160958223044872,
-0.020153626799583435,
-0.006561002228409052,
0.033700112253427505,
0.001770593924447894,
-0.022848159074783325,
0.03508428856730461,
0.0007803301559761167,
0.017717473208904266,
0.009929168038070202,
0.017246853560209274,
-0.036431554704904556,
-0.0006246101693250239,
0.0030059723649173975,
0.019969068467617035,
0.03508428856730461,
-0.04075019061565399,
0.009993762709200382,
-0.007054692134261131,
-0.05366918072104454,
-0.013241966255009174,
-0.00680092629045248,
-0.055219460278749466,
-0.02927074395120144,
-0.02947375550866127,
-0.012365320697426796,
0.014718422666192055,
0.04108239337801933,
-0.022165298461914062,
-0.0021512426901608706,
-0.001439544721506536,
-0.0005934661603532732,
0.02705605886876583,
-0.0035688714124262333,
0.025524236261844635,
0.007552995812147856,
-0.004613925237208605,
0.013906371779739857,
0.030525730922818184,
-0.0699101984500885,
-0.013094320893287659,
-0.04853849485516548,
0.05001495033502579,
0.019267752766609192,
-0.02410314604640007,
0.02906773053109646,
-0.03453061729669571,
-0.05950118228793144,
0.02445380575954914,
0.01469073910266161,
-0.028384869918227196,
-0.0019009372917935252,
0.019969068467617035,
0.052229635417461395,
-0.044256772845983505,
0.05304168537259102,
0.010418243706226349,
-0.017062297090888023,
-0.011036509647965431,
0.10069430619478226,
-0.0330541618168354,
-0.01581653580069542,
-0.02962140180170536,
-0.00029730983078479767,
0.0020266666542738676,
0.057655613869428635,
-0.0059981029480695724,
-0.008434255607426167,
0.006131906993687153,
0.012503737583756447,
-0.06130984053015709,
0.03716978430747986,
-0.0063026221469044685,
-0.033718567341566086,
0.03417995944619179,
0.059870295226573944,
0.014524637721478939,
0.0538906492292881,
-0.06256482750177383,
0.03436451777815819,
0.027757376432418823,
0.02655775472521782,
-0.02133479155600071,
-0.054481230676174164,
-0.020891854539513588,
-0.01587190292775631,
-0.02456454001367092,
0.0424112044274807,
0.02635474130511284,
0.04093474522233009,
-0.028034210205078125,
-0.02665003389120102,
0.057766348123550415,
-0.028514059260487556,
-0.014044788666069508,
0.005255260970443487,
0.02703760378062725,
-0.02456454001367092,
0.06094072759151459,
-0.041894443333148956,
-0.007737553212791681,
0.0020382015500217676,
-0.01564120687544346,
0.04052872210741043,
0.00955082569271326,
-0.05123302713036537,
0.024546083062887192,
0.0420420877635479,
0.004337090067565441,
-0.008734161034226418,
0.018040448427200317,
0.01902782917022705,
0.022829703986644745,
-0.0013288105838000774,
-0.02456454001367092,
0.023512564599514008,
-0.016868511214852333,
-0.01913856342434883,
0.00786674302071333,
-0.029492212459445,
0.026299376040697098,
0.05149140954017639,
-0.022903526201844215,
0.026299376040697098,
-0.038941532373428345,
0.016988473013043404,
-0.006205729674547911,
0.06747404485940933,
0.01857566460967064,
-0.028514059260487556,
0.008434255607426167,
-0.07422883063554764,
-0.033404819667339325,
0.0015848834300413728,
0.02105795592069626,
-0.06441039592027664,
0.028846262022852898,
0.06190042570233345,
0.002018592320382595,
-0.04883378744125366,
-0.019932158291339874,
0.010381332598626614,
0.01857566460967064,
0.046840570867061615,
-0.004120235331356525,
0.004789254628121853,
0.010159864090383053,
0.0380556583404541,
-0.020670386031270027,
-0.016988473013043404,
0.004876919090747833,
0.009910712018609047,
-0.06094072759151459,
-0.023051172494888306,
0.009744610637426376,
-0.0005118573317304254,
0.023438740521669388,
0.02718524821102619,
0.05034715309739113,
0.009698471054434776,
0.04263267293572426,
0.011138016358017921,
0.006224185228347778
] |
725,430 | lotkavolterra_simulator.simulator | __init__ | null | def __init__(self, Xtrue, Ytrue, X0, Y0):
self.Xtrue=Xtrue
self.Ytrue=Ytrue
self.X0=X0
self.Y0=Y0
| (self, Xtrue, Ytrue, X0, Y0) | [
0.040873993188142776,
-0.045083723962306976,
0.05584193393588066,
0.01290804985910654,
-0.06217452138662338,
-0.03734789043664932,
-0.05933205410838127,
0.04188144952058792,
-0.004619013052433729,
0.016263242810964584,
-0.0033102177549153566,
0.02903636544942856,
-0.0012492024106904864,
0.05418682470917702,
-0.059368032962083817,
-0.004200738389045,
0.01897978037595749,
-0.024214962497353554,
-0.04641500860452652,
-0.006687899120151997,
0.023513339459896088,
0.00592331076040864,
-0.02597801201045513,
0.03294026479125023,
0.018871838226914406,
0.04260106384754181,
-0.006098716054111719,
0.017882371321320534,
0.01694687455892563,
-0.0436444990336895,
-0.05490643531084061,
0.020221112295985222,
0.02362128160893917,
0.02200215309858322,
0.026481742039322853,
-0.044903822243213654,
0.007245598826557398,
0.049869149923324585,
-0.03317413851618767,
0.04911355674266815,
0.04598324000835419,
-0.06678004562854767,
0.013105942867696285,
0.021732298657298088,
-0.008140617050230503,
0.005568001884967089,
-0.0018698681378737092,
-0.03214868903160095,
-0.011981548741459846,
-0.020832782611250877,
0.018961790949106216,
-0.04497578367590904,
0.026841547340154648,
0.0030223727226257324,
-0.05001307278871536,
0.05720919743180275,
0.03961466997861862,
0.12823495268821716,
-0.042061351239681244,
-0.008594872429966927,
-0.03936280682682991,
0.04328469559550285,
-0.010938110761344433,
-0.03803152218461037,
-0.007524448446929455,
-0.010668255388736725,
-0.04371646046638489,
0.03617852181196213,
0.02734527550637722,
0.080164834856987,
-0.005172214936465025,
0.07235704362392426,
-0.006917275488376617,
0.005801876075565815,
0.04562343284487724,
-0.023423388600349426,
-0.06433335691690445,
0.07055801153182983,
0.008968171663582325,
-0.024934574961662292,
-0.05371907725930214,
0.02709341235458851,
-0.027561159804463387,
0.017738448455929756,
-0.03034965880215168,
-0.017954332754015923,
0.013051972724497318,
0.017468594014644623,
0.03148304671049118,
0.019123703241348267,
-0.04162958636879921,
0.020922735333442688,
-0.022379949688911438,
0.01029945444315672,
0.028460675850510597,
0.02961205504834652,
0.038427308201789856,
-0.03698808327317238,
0.007699854206293821,
0.0073355501517653465,
-0.017549550160765648,
-0.03527900576591492,
-0.05926009267568588,
0.0017922850092872977,
-0.024143001064658165,
-0.003962366376072168,
-0.01655108854174614,
-0.0198792964220047,
-0.022901669144630432,
0.0189078189432621,
-0.008495925925672054,
0.0012694414472207427,
-0.0032472515013068914,
0.06731975078582764,
-0.042888905853033066,
-0.0691547617316246,
-0.046127162873744965,
0.014761052094399929,
-0.0010321942390874028,
0.005653455853462219,
0.009912662208080292,
-0.009345967322587967,
-0.02207411453127861,
0.0332820788025856,
0.02255985327064991,
0.05526624247431755,
0.030961329117417336,
0.03159099072217941,
-0.012575228698551655,
-0.07671069353818893,
0.05947597697377205,
-0.05979980155825615,
-0.023153534159064293,
0.03569278120994568,
-0.03657430782914162,
-0.05926009267568588,
0.02140847221016884,
0.0046459985896945,
0.0030021334532648325,
0.004538056440651417,
0.05242377147078514,
0.009013147093355656,
0.02750718966126442,
0.030529562383890152,
-0.028874453157186508,
0.081460140645504,
0.032418545335531235,
0.02709341235458851,
-0.012422311119735241,
0.012791112996637821,
0.008945683017373085,
-0.0060897208750247955,
0.0061346967704594135,
-0.06703190505504608,
-0.04090997204184532,
-0.052711617201566696,
-0.005356615874916315,
-0.08160406351089478,
0.05864842236042023,
0.02450280636548996,
-0.03571077063679695,
-0.02702145092189312,
-0.012557238340377808,
-0.0046459985896945,
0.019015761092305183,
0.03464934229850769,
-0.036484356969594955,
-0.033228110522031784,
0.018799876794219017,
0.004099542740732431,
0.03706004470586777,
-0.09318982064723969,
-0.02410702034831047,
0.041989389806985855,
0.005365611054003239,
-0.006818328984081745,
-0.007169140037149191,
-0.008612862788140774,
-0.009876682423055172,
0.037167988717556,
0.05451064929366112,
0.012026524171233177,
-0.016901899129152298,
-0.017459599301218987,
0.01881786808371544,
0.013852541334927082,
0.04562343284487724,
0.00945390947163105,
0.03227462247014046,
0.0037622242234647274,
0.010857153683900833,
0.047350503504276276,
-0.04026232287287712,
0.02919827774167061,
0.02784900553524494,
0.01851203292608261,
0.021300531923770905,
-0.014005458913743496,
0.004538056440651417,
0.05598585680127144,
-0.013186899945139885,
-0.008995156735181808,
0.0064585222862660885,
-0.02387314662337303,
0.01611032523214817,
0.025942031294107437,
-0.036070577800273895,
0.018925810232758522,
-0.005968286655843258,
-0.047602370381355286,
0.02232597954571247,
-0.023423388600349426,
-0.006714884657412767,
-0.005496040917932987,
0.030331667512655258,
-0.006157184951007366,
0.011693703942000866,
-0.002394960494711995,
-0.0481780581176281,
0.060411471873521805,
0.10247282683849335,
-0.025942031294107437,
-0.016650034114718437,
-0.02838871441781521,
0.01763950288295746,
0.03067348338663578,
0.004524563904851675,
-0.05231583118438721,
-0.055302225053310394,
-0.030205735936760902,
-0.003766721813008189,
-0.03374982625246048,
-0.029252249747514725,
-0.0013065465027466416,
0.004198489245027304,
0.016775967553257942,
0.02741723693907261,
-0.008905204944312572,
-0.08570585399866104,
-0.04270900413393974,
-0.010524333454668522,
0.03222065046429634,
0.011171984486281872,
-0.04440009221434593,
0.017576536163687706,
0.016443146392703056,
0.008810755796730518,
0.0417015478014946,
-0.05490643531084061,
-0.019447527825832367,
-0.06411747634410858,
0.008608364500105381,
-0.03993849456310272,
0.015777504071593285,
-0.011855616234242916,
-0.00340691558085382,
-0.021858230233192444,
-0.04681079462170601,
0.008801761083304882,
0.032508496195077896,
-0.006845314055681229,
-0.019537480548024178,
-0.005262166727334261,
0.044903822243213654,
0.05490643531084061,
0.03774367645382881,
-0.011810640804469585,
0.001909221988171339,
-0.05379103869199753,
-0.0009591085836291313,
0.14895980060100555,
0.019699392840266228,
-0.028460675850510597,
0.020401015877723694,
0.01530076190829277,
0.02011317014694214,
0.008172099478542805,
-0.06868701428174973,
-0.002822230337187648,
-0.010578304529190063,
0.06328992545604706,
-0.022847697138786316,
-0.01754055544734001,
0.05202798545360565,
-0.0012525755446404219,
-0.05512231960892677,
0.014824017882347107,
0.00573890982195735,
0.020508958026766777,
-0.03835534676909447,
-0.010002613998949528,
0.0808124840259552,
0.0426730215549469,
0.02457476779818535,
0.03130314499139786,
-0.008779273368418217,
-0.0007443492067977786,
0.009229030460119247,
-0.04976120591163635,
-0.02329745516180992,
0.0630740374326706,
-0.037203967571258545,
-0.00517671275883913,
0.009004151448607445,
0.0037329900078475475,
-0.008698316290974617,
0.0033147153444588184,
0.02847866527736187,
0.05069670453667641,
0.0022026889491826296,
0.06037549301981926,
0.03518905118107796,
-0.036880142986774445,
0.009274006821215153,
-0.0315370187163353,
0.004699969198554754,
0.07253694534301758,
-0.041665565222501755,
-0.0008016933570615947,
0.057173214852809906,
0.010371415875852108,
-0.07455185800790787,
-0.040730070322752,
-0.011414853855967522,
0.002723283600062132,
0.014545168727636337,
-0.00909410323947668,
-0.012278389185667038,
-0.03175290301442146,
0.05494241788983345,
-0.039398785680532455,
-0.0020767569076269865,
0.0029953871853649616,
0.01164872758090496,
-0.003969112876802683,
-0.04162958636879921,
-0.03774367645382881,
0.05105650797486305,
-0.013978473842144012,
-0.02304559201002121,
0.01802629418671131,
-0.007762819994240999,
-0.05641762167215347,
0.012773122638463974,
0.026553701609373093,
-0.02905435673892498,
-0.05778488516807556,
-0.05217190831899643,
0.052963484078645706,
0.016371184960007668,
-0.02792096696794033,
0.014590144157409668,
0.012683170847594738,
0.008702813647687435,
0.04486783966422081,
0.05371907725930214,
-0.01160375215113163,
-0.0027750057633966208,
0.015093873254954815,
-0.023009611293673515,
0.07156546413898468,
-0.03560283035039902,
-0.056345660239458084,
-0.020634889602661133,
-0.05350319296121597,
0.007214115466922522,
0.0033686861861497164,
-0.017351657152175903,
-0.03288629278540611,
0.024394864216446877,
-0.01521980483084917,
-0.042565081268548965,
-0.07570324093103409,
0.00657096179202199,
0.010740216821432114,
0.044184207916259766,
-0.02450280636548996,
0.03240055590867996,
0.026553701609373093,
-0.08318720757961273,
0.018601983785629272,
-0.02847866527736187,
0.02905435673892498,
0.030295686796307564,
-0.03806750476360321,
-0.002442185068503022,
-0.01123495027422905,
0.02678757719695568,
0.046379026025533676,
0.031105251982808113,
0.011378873139619827,
-0.0159304216504097,
0.025204429402947426,
-0.07750227302312851,
0.028514645993709564,
-0.000601551088038832,
0.09275805205106735,
0.0840507447719574,
-0.02563619613647461,
-0.04123379662632942,
-0.01756754145026207,
-0.016056355088949203,
-0.019285615533590317,
0.026679635047912598,
-0.011864611878991127,
-0.007421004120260477,
0.0332820788025856,
0.01756754145026207,
-0.010524333454668522,
0.052963484078645706,
-0.00592331076040864,
0.017135772854089737,
0.008410471491515636,
-0.03932682424783707,
-0.007992196828126907,
-0.0030201238114386797,
-0.03527900576591492,
0.046127162873744965,
0.03405566141009331,
-0.011055047623813152,
-0.06778749823570251,
0.036232490092515945,
-0.018044283613562584,
0.016775967553257942,
-0.042960867285728455,
0.0035823211073875427,
0.023153534159064293,
-0.029917890205979347,
0.03828338533639908,
0.05080464482307434,
-0.07548735290765762,
-0.00022965759853832424,
-0.04641500860452652,
-0.031932804733514786,
0.008729799650609493,
-0.025348352268338203,
0.006287614349275827,
-0.031285155564546585,
-0.02468270994722843,
0.04123379662632942,
0.02676958590745926,
-0.0231175534427166,
0.06472914665937424,
0.03706004470586777,
-0.07872561365365982,
-0.05371907725930214,
-0.07383224368095398,
-0.0034428962972015142,
0.00940893404185772,
-0.0035620820708572865,
0.04868178814649582,
0.0620306022465229,
0.019843315705657005,
-0.030493581667542458,
0.0400824174284935,
-0.017018835991621017,
-0.11125209927558899,
-0.03356992453336716,
0.007524448446929455,
-0.04033428430557251,
-0.02475467137992382,
-0.03232859447598457,
-0.07365234196186066,
-0.019987238571047783,
-0.05015699192881584,
-0.013474744744598866,
0.02597801201045513,
-0.00418949406594038,
-0.037599753588438034,
-0.041737526655197144,
-0.02937818132340908,
-0.044256169348955154,
-0.01687491312623024,
-0.021696317940950394,
0.019249634817242622,
-0.013474744744598866,
-0.012323364615440369,
0.0184220802038908,
-0.03738386929035187,
-0.056021835654973984,
-0.09743553400039673,
-0.04627108573913574,
-0.01733366772532463,
0.018943799659609795,
0.01978934556245804,
0.02928823046386242,
-0.030817406252026558,
-0.041845470666885376,
-0.06023157015442848,
0.006323595065623522,
-0.00568044139072299,
0.03616052865982056,
-0.04026232287287712,
-0.01851203292608261,
-0.041017916053533554,
0.04943738132715225,
0.004744945093989372,
-0.013429769314825535,
-0.02353133074939251,
0.019357576966285706,
-0.030043823644518852,
0.0023882139939814806,
-0.03950672969222069,
-0.04148566350340843,
0.019573461264371872,
0.008293534629046917,
-0.004423368256539106,
-0.04853786528110504,
-0.06275021284818649,
0.03108726069331169,
0.014922965317964554,
-0.06231844425201416,
0.011747675016522408,
0.02678757719695568,
0.043608520179986954,
0.019591450691223145,
-0.05087660625576973,
0.03204074874520302,
-0.04033428430557251,
-0.013177904300391674,
0.009363957680761814,
0.034541402012109756,
0.005082263611257076,
0.003179787890985608,
-0.02027508243918419,
0.049689244478940964,
-0.0017518067033961415,
-0.02660767361521721,
0.03792358189821243,
0.002810986479744315,
0.0039331321604549885,
-0.06613238900899887,
-0.0397585928440094,
0.09865888208150864,
-0.03495517745614052,
0.06904682517051697,
0.01786438189446926,
-0.02676958590745926,
-0.0365203358232975,
-0.003161797532811761,
0.034037671983242035,
0.018242178484797478,
0.024844622239470482,
-0.032976243644952774,
0.03236457332968712,
-0.02410702034831047,
-0.046702854335308075,
-0.027651112526655197,
-0.008410471491515636,
-0.004722457379102707,
0.028910433873534203,
-0.06192265823483467,
-0.029324211180210114,
0.005460060201585293,
0.04778227210044861,
0.01444622129201889,
0.024952564388513565,
0.0023882139939814806,
-0.018961790949106216,
0.06548473984003067,
-0.0065169911831617355,
-0.02255985327064991,
0.0423491969704628,
-0.00909410323947668,
-0.09095902740955353,
-0.00933697260916233,
0.008163104765117168,
0.005509533453732729,
0.03518905118107796,
0.0397585928440094,
0.031195202842354774,
0.022541861981153488,
-0.0004975445917807519,
0.003011128632351756,
-0.030331667512655258,
0.030493581667542458,
0.013816560618579388,
0.015309756621718407,
-0.07260890305042267,
-0.011028061620891094,
0.03126716613769531,
0.016533097252249718,
-0.06102314218878746,
-0.04357253760099411,
-0.005203698296099901,
0.042565081268548965,
-0.013303836807608604,
0.03222065046429634,
0.025204429402947426,
-0.07027016580104828,
0.020365035161376,
-0.009143576957285404,
-0.02531237155199051,
0.04414822906255722,
-0.03643038496375084,
-0.027309294790029526,
0.028856461867690086,
-0.03277835249900818,
0.03400169312953949,
0.00025537810870446265,
-0.011019066907465458,
0.010281464084982872,
-0.0018664950039237738,
0.038427308201789856,
-0.021318521350622177,
-0.0315370187163353,
-0.01565157249569893,
0.012773122638463974,
-0.08030875772237778,
0.01678496226668358,
0.06336188316345215,
-0.0316629521548748,
0.037779659032821655,
-0.023801185190677643,
-0.04051418602466583,
0.014482202008366585,
-0.01930360682308674,
0.06408149749040604,
-0.013033982366323471,
0.04400430619716644,
-0.02482663281261921,
0.00029796455055475235,
-0.05810871347784996,
0.028514645993709564,
-0.03169893100857735,
-0.03625047951936722,
0.051092490553855896,
-0.04706266149878502,
0.03644837439060211,
0.027039440348744392,
0.07462382316589355,
0.0006527110817842185,
0.00011623428872553632,
-0.07584716379642487,
-0.027219343930482864,
-0.010515337809920311,
-0.006431537214666605,
0.03365987539291382,
0.04245714098215103,
0.04357253760099411,
-0.014536173082888126,
0.04242115840315819,
0.04814207926392555,
0.017882371321320534,
-0.004092796240001917,
-0.03896701708436012,
-0.05001307278871536,
-0.00046943474444560707,
0.048321980983018875,
-0.014266318641602993,
-0.02223602682352066,
0.04245714098215103,
0.0067643579095602036,
0.04835796356201172,
-0.013780579902231693,
0.01932159624993801,
-0.07642284780740738,
-0.0005481423577293754,
0.057640962302684784,
-0.003816195297986269,
-0.09642808139324188,
0.056201737374067307,
0.033947721123695374,
0.018179211765527725,
0.01964542269706726,
0.028136849403381348,
0.017063811421394348,
-0.03734789043664932,
-0.03643038496375084,
-0.0013931249268352985,
-0.023027600720524788,
0.009247020818293095,
-0.018727915361523628,
0.017225725576281548,
0.02587006986141205,
-0.07113369554281235,
0.036394402384757996,
-0.034451451152563095,
0.00257486361078918,
0.02369324304163456,
0.02070685103535652,
0.03346198424696922,
0.006233643740415573,
-0.05638164281845093,
0.02410702034831047,
0.028136849403381348,
0.008846736513078213,
0.027525179088115692,
0.026085954159498215,
0.012710155919194221,
-0.021030675619840622,
-0.021030675619840622,
0.06382963061332703,
0.009130083955824375,
-0.003013377543538809,
-0.023387407884001732,
-0.03626847267150879,
-0.00562197295948863,
0.029162297025322914,
0.008086645975708961,
-0.0021993156988173723,
-0.0022004402708262205,
-0.09916260838508606,
0.08318720757961273,
-0.03698808327317238,
-0.010803183540701866,
-0.005221688654273748,
-0.021228570491075516,
0.04504774510860443,
-0.024934574961662292,
0.021966172382235527,
0.03018774650990963,
0.008801761083304882,
-0.04400430619716644,
0.005995271727442741,
0.042565081268548965,
-0.0013762590242549777,
0.027075421065092087,
-0.0006707013817504048,
-0.008860229514539242,
0.0166410394012928,
-0.008905204944312572,
0.005873837508261204,
0.033138155937194824,
-0.00993964821100235,
0.005630968138575554,
0.0006892538513056934,
-0.0762789249420166,
-0.010722226463258266,
-0.03034965880215168,
-0.012035519815981388,
0.05263965576887131,
-0.011819635517895222,
0.022361960262060165,
-0.026877528056502342,
-0.010254479013383389,
0.03472130373120308,
-0.013906512409448624,
0.0021633352153003216,
0.07325655221939087,
0.005806373432278633,
-0.037779659032821655,
0.01399646420031786,
-0.025582225993275642,
-0.030133774504065514,
0.027327286079525948,
0.008945683017373085,
0.016704006120562553,
-0.0226318147033453,
0.025060506537556648,
0.013015992008149624,
0.074335977435112,
0.04756638780236244,
0.009462905116379261,
0.07994895428419113,
-0.013717614114284515,
-0.025528253987431526,
0.031285155564546585,
0.021084647625684738,
-0.06109510362148285,
-0.07606304436922073,
-0.00744349230080843,
-0.02362128160893917,
0.030781425535678864,
0.01996924728155136,
0.07555931806564331,
0.04666687175631523,
0.051812101155519485
] |
725,431 | lotkavolterra_simulator.simulator | censor | Censor part of the data during periods
when preys are not observable.
Parameters
----------
mask : array, double, dimension=n
a mask containing zeros and ones
| def censor(self, **metaparams):
"""Censor part of the data during periods
when preys are not observable.
Parameters
----------
mask : array, double, dimension=n
a mask containing zeros and ones
"""
import numpy as np
mask=metaparams["mask"]
self.Xobs = self.Xobs[np.where(mask==1)]
self.Xdata = self.Xdata[np.where(mask==1)]
| (self, **metaparams) | [
0.010493135079741478,
0.008779344148933887,
0.05084392800927162,
0.029401816427707672,
-0.008113113231956959,
-0.030418694019317627,
-0.05245690792798996,
-0.043936166912317276,
0.06220491603016853,
0.05059847608208656,
-0.01733076572418213,
-0.009958396665751934,
0.01982913166284561,
-0.009660346433520317,
-0.05105431750416756,
-0.03769463673233986,
0.006763118784874678,
0.049651727080345154,
0.0006530814571306109,
-0.022353796288371086,
-0.003530584741383791,
-0.032855696976184845,
-0.055963385850191116,
0.04400629550218582,
0.004812640603631735,
0.016217458993196487,
-0.012246374040842056,
-0.007565225940197706,
-0.0338725745677948,
-0.05522702634334564,
0.004273519851267338,
0.01651551015675068,
0.03282063081860542,
-0.005483254790306091,
0.03453880548477173,
-0.03829073905944824,
0.05000237375497818,
0.018198620527982712,
-0.03569594398140907,
0.01304409746080637,
0.0027416273951530457,
-0.037098534405231476,
0.006649158429354429,
0.019460951909422874,
0.008288436569273472,
0.001480391132645309,
0.026859620586037636,
0.0666581392288208,
0.03909722715616226,
0.03499464690685272,
-0.0522114522755146,
-0.022862235084176064,
0.0322420634329319,
-0.029191426932811737,
-0.004729361739009619,
0.04604005441069603,
0.03730892390012741,
0.0901164785027504,
0.026000533252954483,
-0.04088553041219711,
0.0009894842514768243,
0.035310231149196625,
0.030541421845555305,
-0.013841820880770683,
0.029577139765024185,
-0.013552536256611347,
-0.02622845396399498,
0.02692974917590618,
-0.0024939822033047676,
0.0086040198802948,
-0.027508318424224854,
-0.02405443787574768,
-0.008196392096579075,
0.0198115985840559,
0.0062985108233988285,
-0.0784749761223793,
-0.05024782568216324,
0.014192468486726284,
-0.04369071125984192,
0.007709867786616087,
0.05536728352308273,
-0.008647850714623928,
0.007236493285745382,
0.0587335042655468,
-0.027157669886946678,
-0.0494062714278698,
-0.02088107541203499,
0.008643467910587788,
0.028244677931070328,
-0.008840707130730152,
-0.0011330306297168136,
0.042568638920784,
-0.011422351002693176,
-0.00019696542585734278,
0.017944399267435074,
0.08941518515348434,
-0.024159632623195648,
0.012719748541712761,
-0.0010124954860657454,
0.03786996006965637,
0.01832134649157524,
0.06690359860658646,
-0.007600290700793266,
0.0016359910368919373,
0.0020041712559759617,
0.02894597314298153,
-0.012176244519650936,
-0.010598328895866871,
-0.03765957057476044,
-0.008805641904473305,
-0.029699867591261864,
0.03779983147978783,
-0.05435040593147278,
-0.033539459109306335,
-0.020302506163716316,
-0.016892457380890846,
-0.023072624579072,
0.0259479358792305,
-0.07468798011541367,
0.0442868135869503,
0.017383363097906113,
0.019338224083185196,
0.00008136124233715236,
0.03129531443119049,
0.01571778580546379,
0.016147330403327942,
0.07135682553052902,
0.06735944002866745,
0.007096234243363142,
-0.07616069912910461,
-0.0806489884853363,
-0.031908947974443436,
0.041481632739305496,
-0.003925063647329807,
0.0012206925312057137,
-0.029717398807406425,
0.0300680473446846,
-0.04481278732419014,
-0.02856026217341423,
-0.03296089172363281,
0.009493788704276085,
0.07051526755094528,
-0.019706405699253082,
0.03688814491033554,
0.020565493032336235,
-0.006815716158598661,
0.04425175115466118,
-0.013307083398103714,
0.05582312494516373,
0.015305775217711926,
0.0011834362521767616,
0.032610245048999786,
0.020179780200123787,
-0.0010716672986745834,
-0.01454311702400446,
-0.006373023148626089,
0.0004251604259479791,
-0.060030899941921234,
-0.030681680887937546,
0.04779329150915146,
-0.03825567290186882,
-0.023020027205348015,
-0.00010800225572893396,
0.0031974695157259703,
-0.013938249088823795,
0.005373677238821983,
-0.032294660806655884,
-0.038466062396764755,
-0.0016436614096164703,
0.028192080557346344,
0.06301140785217285,
0.010843782685697079,
0.026035597547888756,
0.0084681436419487,
0.03569594398140907,
0.05613870918750763,
-0.07980743050575256,
0.012176244519650936,
0.0041201114654541016,
0.006649158429354429,
0.014429155737161636,
0.053614046424627304,
-0.01993432641029358,
0.0084681436419487,
-0.029191426932811737,
0.010072357021272182,
-0.0024895991664379835,
-0.013210655190050602,
0.0046241674572229385,
0.029138829559087753,
0.008722363039851189,
0.03204920515418053,
0.01638401672244072,
-0.03173362463712692,
0.010598328895866871,
-0.04737251624464989,
0.012202542275190353,
-0.046916671097278595,
0.009686645120382309,
-0.00017381719953846186,
-0.028788182884454727,
-0.010212616063654423,
0.011781765148043633,
0.015147984027862549,
0.003655503038316965,
0.02556222304701805,
0.04632057249546051,
0.08170092850923538,
-0.016717132180929184,
-0.0046373168006539345,
0.03469659760594368,
0.0063598742708563805,
0.008056133054196835,
0.02405443787574768,
0.02638624608516693,
0.007249642629176378,
0.02005705237388611,
-0.010694757103919983,
0.007289090659469366,
0.019636275246739388,
-0.03296089172363281,
-0.017786609008908272,
-0.01842654123902321,
0.04726732149720192,
0.017137909308075905,
0.03282063081860542,
0.048003681004047394,
0.016778497025370598,
0.02991025522351265,
-0.04852965101599693,
0.01572655327618122,
0.04134137183427811,
-0.0344160795211792,
-0.07160227745771408,
0.0196538083255291,
-0.029051167890429497,
0.03815047815442085,
-0.024212228134274483,
-0.010133720934391022,
0.00566734466701746,
0.007398668210953474,
-0.036151785403490067,
0.03730892390012741,
0.025492092594504356,
0.014797336421906948,
-0.0008837420027703047,
0.014464220963418484,
0.03688814491033554,
0.00853827316313982,
0.022073278203606606,
-0.046636153012514114,
-0.006390555761754513,
-0.036151785403490067,
0.032294660806655884,
0.02063562162220478,
-0.01078241877257824,
0.03466153144836426,
0.030769342556595802,
0.0007790955132804811,
-0.02622845396399498,
-0.07840484380722046,
0.014569414779543877,
-0.011229495517909527,
0.004429119639098644,
0.00805174931883812,
0.0075476933270692825,
0.012298970483243465,
0.025158977136015892,
0.023931710049510002,
0.0026473908219486475,
-0.05666467919945717,
0.06739450246095657,
-0.00590841518715024,
-0.043234869837760925,
-0.006916527636349201,
0.023142753168940544,
0.019969390705227852,
-0.021336916834115982,
0.03801021724939346,
0.018549267202615738,
0.04470759257674217,
-0.015025257132947445,
0.02033757045865059,
0.0059960768558084965,
-0.013920716941356659,
-0.07328538596630096,
0.027841433882713318,
0.02621092088520527,
-0.008205157704651356,
-0.018391475081443787,
-0.018216151744127274,
0.028735585510730743,
0.046145249158144,
-0.020442765206098557,
0.028034290298819542,
-0.03958813473582268,
-0.011772999539971352,
-0.031084924936294556,
-0.059610120952129364,
-0.00316240475513041,
0.03594139590859413,
-0.015191814862191677,
-0.07079578936100006,
-0.0034341567661613226,
0.06108284369111061,
0.004361181519925594,
-0.001971297897398472,
0.008831940591335297,
0.050353020429611206,
0.018268749117851257,
0.04607511684298515,
-0.035310231149196625,
-0.09095803648233414,
-0.014516818337142467,
-0.00996716320514679,
-0.015673955902457237,
0.053614046424627304,
0.049651727080345154,
0.036537498235702515,
0.07728277146816254,
0.03650243207812309,
-0.07693212479352951,
0.0018989768577739596,
-0.02184535562992096,
-0.05820753052830696,
-0.033662185072898865,
0.033539459109306335,
-0.004720595665276051,
-0.08801259100437164,
0.02130185253918171,
-0.003107615979388356,
0.039973847568035126,
-0.038185544312000275,
0.020109649747610092,
0.0004936463083140552,
-0.06648281961679459,
0.014288896694779396,
-0.060171157121658325,
0.02280963771045208,
0.00874427892267704,
-0.02652650512754917,
-0.023072624579072,
-0.006557113490998745,
0.0358186699450016,
-0.00930093228816986,
0.015595059841871262,
0.008875771425664425,
0.03588879853487015,
0.01749732345342636,
0.06778021901845932,
0.03161089867353439,
0.07188279181718826,
0.04575953632593155,
0.04088553041219711,
0.10168785601854324,
0.0210563987493515,
0.001968010561540723,
-0.007986003533005714,
-0.0254044309258461,
-0.03539789468050003,
0.07742302864789963,
0.014122338965535164,
0.026807023212313652,
-0.01993432641029358,
-0.0026517738588154316,
0.048985496163368225,
-0.01968887262046337,
0.01914536952972412,
-0.016866158694028854,
-0.047197189182043076,
-0.08106976747512817,
-0.029401816427707672,
-0.08429572731256485,
-0.0037782297004014254,
0.021091463044285774,
-0.02061808854341507,
-0.03741411864757538,
-0.05154522508382797,
-0.0023164667654782534,
0.06266076117753983,
-0.025229107588529587,
-0.060451675206422806,
-0.019460951909422874,
-0.0352751649916172,
-0.016489211469888687,
0.05978544428944588,
-0.04411149024963379,
-0.0016853008419275284,
0.008805641904473305,
-0.018409008160233498,
0.07679186016321182,
-0.06595684587955475,
0.008967816829681396,
-0.0734957754611969,
-0.06718411296606064,
0.05038808658719063,
-0.0004481716896407306,
0.039938781410455704,
-0.017584985122084618,
-0.030699212104082108,
-0.04730238392949104,
0.01804082840681076,
-0.006942825857549906,
0.01140481885522604,
0.01884731836616993,
-0.031172586604952812,
-0.01462201215326786,
-0.042007602751255035,
0.021792760118842125,
0.06606204062700272,
-0.015928175300359726,
0.04358552023768425,
0.09558658301830292,
-0.007372369524091482,
0.04274396225810051,
-0.026807023212313652,
0.0025882190093398094,
-0.07037501037120819,
0.022371327504515648,
0.04730238392949104,
0.02829727530479431,
-0.04232318699359894,
0.03965826332569122,
-0.00004229004116496071,
0.005619130562990904,
-0.032855696976184845,
0.0196538083255291,
-0.03211933746933937,
-0.006600944325327873,
0.05617377534508705,
-0.04874004051089287,
-0.030576486140489578,
-0.10070604085922241,
-0.036292046308517456,
-0.022301198914647102,
0.012141179293394089,
-0.0010590659221634269,
-0.010010994039475918,
-0.0026802639476954937,
0.017663881182670593,
-0.007666036952286959,
0.05792701244354248,
0.04109591990709305,
-0.062064655125141144,
-0.04684654250741005,
0.01353500410914421,
0.008437462151050568,
0.017584985122084618,
-0.043515387922525406,
-0.03567841276526451,
0.025334302335977554,
0.040920596569776535,
-0.005062477197498083,
-0.0017740585608407855,
0.0551568940281868,
-0.004117920063436031,
-0.09137880802154541,
-0.04176215082406998,
0.004711829591542482,
-0.014657077379524708,
-0.011001573875546455,
0.017584985122084618,
-0.11066444218158722,
-0.045443952083587646,
0.042814094573259354,
0.030278434976935387,
-0.00288626947440207,
-0.021073931828141212,
0.03769463673233986,
-0.00902041420340538,
0.010773653164505959,
-0.07896587997674942,
0.00888453796505928,
-0.02254665270447731,
-0.021652501076459885,
0.026456374675035477,
-0.020933672785758972,
0.0649399682879448,
0.06143349036574364,
0.028192080557346344,
-0.044742655009031296,
-0.017856737598776817,
-0.011308390647172928,
-0.01967133954167366,
-0.006035524886101484,
-0.03159336373209953,
-0.06858670711517334,
-0.037063468247652054,
0.015183048322796822,
-0.006430003792047501,
0.03674788773059845,
0.013657731004059315,
0.03185635060071945,
-0.01325448602437973,
-0.018917446956038475,
0.014043443836271763,
-0.025842741131782532,
0.027525849640369415,
0.07945678383111954,
-0.009669112041592598,
-0.03141804039478302,
-0.01003729272633791,
-0.12083322554826736,
-0.03779983147978783,
-0.00316240475513041,
-0.028437534347176552,
-0.04551408067345619,
-0.015919409692287445,
-0.013701561838388443,
-0.01954861357808113,
0.007617822848260403,
-0.04491798207163811,
-0.011150599457323551,
0.040780335664749146,
0.02761351317167282,
-0.0407102070748806,
-0.06508022546768188,
0.05712052434682846,
-0.016971351578831673,
0.00023559147666674107,
-0.01954861357808113,
-0.014578181318938732,
0.00437433086335659,
0.019723936915397644,
0.0012645235983654857,
-0.00048159281141124666,
0.0016042136121541262,
-0.0742672011256218,
-0.005895265843719244,
0.02910376526415348,
-0.03362712264060974,
-0.07728277146816254,
0.03415309265255928,
0.07079578936100006,
0.01734829880297184,
-0.02296742983162403,
0.009528852999210358,
-0.05613870918750763,
-0.003096658270806074,
0.03979852423071861,
-0.02417716383934021,
-0.012220075353980064,
0.09537619352340698,
-0.027666110545396805,
0.019706405699253082,
0.030295968055725098,
-0.040499817579984665,
0.014087274670600891,
-0.025229107588529587,
0.023879114538431168,
-0.030260903760790825,
-0.061678942292928696,
0.020320039242506027,
0.015656422823667526,
0.03895696625113487,
0.026193389669060707,
0.009660346433520317,
0.01202721893787384,
-0.023177817463874817,
0.025176510214805603,
-0.03536282852292061,
-0.048985496163368225,
0.11431117355823517,
-0.005101925227791071,
-0.1051943302154541,
-0.006526431534439325,
-0.02347586862742901,
-0.004415970295667648,
0.006543964147567749,
0.016471680253744125,
0.021652501076459885,
0.010572030209004879,
0.003708100179210305,
0.06409841030836105,
-0.00002782239425869193,
0.07146202027797699,
0.07037501037120819,
-0.06430879980325699,
-0.07889574766159058,
-0.02976999618113041,
0.015077854506671429,
-0.03646736964583397,
-0.014174936339259148,
-0.058523114770650864,
0.04362058266997337,
0.019513549283146858,
-0.039027098566293716,
0.030506357550621033,
0.04481278732419014,
0.017804140225052834,
0.024352489039301872,
0.05466599017381668,
-0.03308361768722534,
0.008029834367334843,
-0.0025991767179220915,
0.02678949013352394,
-0.017129143700003624,
-0.021126529201865196,
0.020828478038311005,
0.05834779143333435,
-0.008494442328810692,
-0.008796876296401024,
-0.014884998090565205,
-0.05094912275671959,
-0.06686852872371674,
-0.04207773506641388,
-0.04193747416138649,
0.017120378091931343,
0.042568638920784,
-0.053894564509391785,
-0.013955781236290932,
0.05175561085343361,
-0.02242392487823963,
0.046110183000564575,
0.020021988078951836,
0.03345179930329323,
-0.021634967997670174,
-0.005001113750040531,
0.03758944198489189,
-0.0006306181312538683,
0.01283370889723301,
-0.02663169801235199,
0.00825775507837534,
-0.045023173093795776,
-0.005154522135853767,
-0.04933614283800125,
0.05494650825858116,
-0.05522702634334564,
-0.04716212674975395,
-0.0196538083255291,
0.019601210951805115,
0.034503743052482605,
-0.023528466001152992,
-0.03239985555410385,
-0.02526417188346386,
0.05161535367369652,
-0.05890882760286331,
0.00440939562395215,
-0.02707000821828842,
0.037063468247652054,
0.008661000058054924,
0.015901876613497734,
0.05126470327377319,
-0.0169362872838974,
-0.024405084550380707,
-0.01496389415115118,
-0.03481932356953621,
-0.002255103550851345,
0.0007160885143093765,
0.002255103550851345,
-0.02948947809636593,
-0.004295435268431902,
-0.0076090567745268345,
0.05789194628596306,
0.04575953632593155,
0.024615474045276642,
-0.006890228949487209,
-0.0007807391812093556,
0.061152972280979156,
-0.07216331362724304,
-0.015446034260094166,
0.007731783669441938,
-0.00737675279378891,
-0.040640078485012054,
0.0232304148375988,
-0.036537498235702515,
-0.0075959074310958385,
-0.06799060106277466,
0.0038352101109921932,
0.02966480143368244,
-0.0038921902887523174,
0.01353500410914421,
-0.06280101835727692,
-0.0013467066455632448,
0.08885414898395538,
-0.06080232560634613,
0.017129143700003624,
-0.01928562857210636,
-0.03317128121852875,
0.009520087391138077,
0.04670628532767296,
-0.027543382719159126,
0.0770723819732666,
-0.0008141603320837021,
0.033662185072898865,
0.004142026882618666,
-0.018514202907681465,
-0.0012469911016523838,
-0.013841820880770683,
0.027543382719159126,
-0.012404165230691433,
0.0025137062184512615,
0.024352489039301872,
0.030839471146464348,
0.029156362637877464,
-0.00040214916225522757,
-0.047898486256599426,
0.05136989802122116,
-0.012684683315455914,
0.03131284564733505,
-0.0030594018753618,
-0.004773193039000034,
-0.03976345807313919,
-0.018093425780534744,
-0.05428027734160423,
0.023879114538431168,
-0.005614747758954763,
-0.01311422698199749,
-0.005172054748982191,
-0.007284707389771938,
-0.002127993619069457,
0.09572684019804001,
0.029577139765024185,
0.005579682532697916,
0.0008722363272681832,
0.004707446321845055,
-0.06848151236772537,
-0.026561569422483444,
0.054736118763685226,
0.026175856590270996,
0.02487845905125141,
0.016059668734669685,
-0.06066206470131874,
0.06434386968612671,
-0.04768809676170349,
-0.003138297703117132,
-0.013403511606156826,
-0.036292046308517456,
-0.0016809178050607443,
-0.04944133758544922,
0.05603351444005966,
0.012991500087082386,
-0.025877805426716805,
-0.02051289565861225,
0.03674788773059845,
0.005693643353879452,
0.015367139130830765,
-0.04975691810250282,
-0.011378520168364048,
0.05343872308731079,
-0.054455600678920746,
-0.045023173093795776,
-0.006868313532322645,
-0.02608819492161274,
0.003909722901880741,
-0.017970697954297066,
0.01654180884361267,
0.018268749117851257,
0.05449066311120987,
-0.018654461950063705,
0.02566741779446602,
0.05669974535703659,
-0.017023948952555656,
-0.03515243902802467,
0.07244382798671722,
0.019846664741635323,
-0.0006919814622960985,
0.025229107588529587,
0.012334035709500313,
0.017286935821175575,
-0.014096040278673172,
-0.005408741999417543,
-0.008919603191316128,
0.03892190381884575,
-0.012921370565891266,
-0.008792492561042309,
0.018882382661104202,
0.01679602824151516
] |
725,432 | lotkavolterra_simulator.simulator | make_demographic_noise | Simulate demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
XDnoise : array, double, dimension=n
demographic noise for preys
YDnoise : array, double, dimension=n
demographic noise for predators
| def make_demographic_noise(self, **metaparams):
"""Simulate demographic noise.
Demographic noise depends only on the observed population.
Parameters
----------
obsR : double
strength of demographic noise
Returns
-------
XDnoise : array, double, dimension=n
demographic noise for preys
YDnoise : array, double, dimension=n
demographic noise for predators
"""
import numpy as np
import scipy.stats as ss
Xtrue=self.Xtrue
Ytrue=self.Ytrue
obsR=metaparams["obsR"]
XDnoise = np.sqrt(obsR*Xtrue) * ss.multivariate_normal(mean=np.zeros_like(Xtrue)).rvs()
YDnoise = np.sqrt(obsR*Ytrue) * ss.multivariate_normal(mean=np.zeros_like(Xtrue)).rvs()
return XDnoise, YDnoise
| (self, **metaparams) | [
0.028677958995103836,
-0.039642516523599625,
0.10842523723840714,
-0.006624035071581602,
0.03215407580137253,
-0.004703388549387455,
-0.06393834948539734,
0.0028751918580383062,
0.035741131752729416,
0.1101263165473938,
-0.014967638999223709,
0.09614789485931396,
0.045707229524850845,
0.09244989603757858,
-0.03784898668527603,
-0.028918327763676643,
0.011417562142014503,
0.0427488312125206,
-0.045300450176000595,
-0.03474267199635506,
-0.006328195333480835,
0.054360538721084595,
-0.005662556272000074,
-0.025275802239775658,
-0.03916177526116371,
0.01919259876012802,
-0.014727268368005753,
-0.03812633827328682,
-0.05469335988163948,
0.04215715453028679,
-0.03350384160876274,
-0.06560245156288147,
0.04700152948498726,
0.017297375947237015,
0.04396917298436165,
-0.013229580596089363,
-0.0026787358801811934,
0.08497994393110275,
-0.11219719797372818,
0.003020800417289138,
-0.0034114012960344553,
-0.044486891478300095,
0.06608318537473679,
0.008865945041179657,
-0.0771401971578598,
-0.033799681812524796,
0.0066147902980446815,
0.013349764980375767,
-0.05754081532359123,
-0.045115549117326736,
0.048739586025476456,
0.011935281567275524,
0.031580884009599686,
0.018166404217481613,
0.029916787520051003,
0.057984575629234314,
0.009013865143060684,
0.09185821563005447,
0.03712787851691246,
-0.04422803223133087,
-0.012147916480898857,
-0.03344837203621864,
0.022465325891971588,
-0.020172568038105965,
-0.0028936818707734346,
0.01578119769692421,
-0.05728195607662201,
0.023426804691553116,
0.06815406680107117,
0.022169485688209534,
0.041084736585617065,
0.011177192442119122,
-0.01924806833267212,
0.047112468630075455,
0.038459159433841705,
0.037830498069524765,
-0.0887519046664238,
-0.029306618496775627,
0.02363019436597824,
-0.017399070784449577,
-0.016456082463264465,
-0.0035916785709559917,
-0.016428347676992416,
0.025922952219843864,
0.005824343767017126,
-0.03422495350241661,
-0.03065638616681099,
-0.01279506552964449,
0.05776269733905792,
-0.02272418513894081,
-0.009092447347939014,
0.04049305617809296,
0.014505389146506786,
-0.00433590030297637,
-0.028770407661795616,
0.04807394742965698,
-0.017796605825424194,
0.03716485947370529,
0.10620644688606262,
0.004146378021687269,
0.008810475468635559,
-0.013599379919469357,
-0.0016479194164276123,
0.08320491015911102,
-0.047556228935718536,
0.02965792827308178,
-0.0015023108571767807,
0.0795808732509613,
0.013867484405636787,
0.002956085605546832,
-0.06201539188623428,
0.02046840824186802,
-0.005306624341756105,
-0.05510013923048973,
-0.02856701798737049,
-0.07750999182462692,
-0.006776577327400446,
0.03566716983914375,
0.004687210079282522,
-0.026181811466813087,
-0.06068411469459534,
0.012369796633720398,
-0.06844990700483322,
0.024758081883192062,
0.0060554682277143,
-0.0623851902782917,
0.015892136842012405,
-0.02856701798737049,
-0.021392906084656715,
0.00795531366020441,
-0.03137749433517456,
-0.013627114705741405,
0.05391678214073181,
0.02381509356200695,
-0.012785821221768856,
-0.015642521902918816,
0.020634816959500313,
-0.015540827997028828,
0.0713343396782875,
0.033023104071617126,
-0.0032080113887786865,
-0.002997688017785549,
-0.03668411821126938,
0.06419721245765686,
-0.030767325311899185,
0.009180274792015553,
0.041232652962207794,
0.02037595771253109,
0.0600554533302784,
-0.006097070872783661,
0.0068551599979400635,
0.012684126384556293,
0.006369797978550196,
-0.02155931666493416,
0.013728809542953968,
-0.04053003713488579,
0.025368252769112587,
0.02449922263622284,
-0.013682585209608078,
-0.0040331268683075905,
-0.015439133159816265,
-0.030323566868901253,
0.03816331923007965,
0.006624035071581602,
0.006979967467486858,
0.03346686437726021,
0.0003149074618704617,
0.026699529960751534,
0.05890907347202301,
0.01548535842448473,
-0.012619411572813988,
-0.025867480784654617,
0.0023505387362092733,
-0.06338365375995636,
-0.0006760398973710835,
0.03145145624876022,
-0.027734968811273575,
0.004650230053812265,
-0.03498304262757301,
0.006360553205013275,
0.02984282746911049,
-0.025016942992806435,
-0.04456084966659546,
0.002406008541584015,
-0.0054175639525055885,
0.014385203830897808,
0.05421261861920357,
-0.047149449586868286,
-0.01068720780313015,
0.0071556223556399345,
0.04234205186367035,
0.026477651670575142,
-0.03901385888457298,
-0.00020512321498245,
0.0205608569085598,
-0.006013866048306227,
0.013959934934973717,
-0.06541755050420761,
0.0550631582736969,
-0.004627117421478033,
-0.008338981308043003,
0.021208006888628006,
-0.09503849595785141,
-0.005260399077087641,
0.022114016115665436,
-0.002791987033560872,
-0.061867471784353256,
-0.0020939901005476713,
-0.03794143721461296,
0.011583972722291946,
0.023704154416918755,
-0.014505389146506786,
0.08135590702295303,
0.008084743283689022,
0.08912169933319092,
0.001151579082943499,
0.0639013722538948,
0.038200296461582184,
-0.0639013722538948,
-0.0031363628804683685,
-0.00571802631020546,
-0.08771646022796631,
-0.028234198689460754,
0.0639013722538948,
0.024240363389253616,
0.040640976279973984,
0.015993831679224968,
0.003448381321504712,
-0.019858237355947495,
-0.03566716983914375,
-0.001844375510700047,
0.03498304262757301,
-0.02159629575908184,
-0.03609244152903557,
0.006869027391076088,
-0.029010778293013573,
0.03812633827328682,
-0.01634514145553112,
0.00015759818779770285,
0.022798145189881325,
-0.07543911784887314,
0.026200301945209503,
0.04552232846617699,
0.030416017398238182,
0.05728195607662201,
0.007488441653549671,
-0.0021552382968366146,
0.022261936217546463,
-0.03919875621795654,
0.021614786237478256,
0.056172557175159454,
-0.021355926990509033,
0.01134360209107399,
0.025571642443537712,
0.038865938782691956,
0.014394449070096016,
0.023833584040403366,
0.034428343176841736,
0.025608621537685394,
-0.05510013923048973,
0.006480738054960966,
-0.026958391070365906,
-0.0830569863319397,
0.03816331923007965,
0.012175651267170906,
0.01924806833267212,
-0.021023107692599297,
0.008380583487451077,
-0.020616326481103897,
-0.0168443713337183,
0.031580884009599686,
0.09311553835868835,
-0.023796603083610535,
-0.07610475271940231,
0.027679499238729477,
0.040271174162626266,
0.04138057306408882,
-0.05162402242422104,
-0.019118638709187508,
0.04171339422464371,
0.004442217759788036,
-0.033892132341861725,
-0.0018177961464971304,
0.06700768321752548,
0.017112476751208305,
-0.013100150972604752,
-0.0006702617392875254,
0.042305074632167816,
0.04322957247495651,
-0.021984586492180824,
0.02290908433496952,
0.03960553556680679,
0.026181811466813087,
0.009263480082154274,
-0.01584591343998909,
-0.009083202108740807,
-0.0525115430355072,
0.03134051710367203,
-0.03879197686910629,
-0.0011197994463145733,
0.054767318069934845,
-0.006587055046111345,
0.007058549672365189,
0.009919874370098114,
-0.029602456837892532,
0.0005486323498189449,
0.0008297378662973642,
-0.033614784479141235,
0.0271247997879982,
-0.00361016858369112,
-0.019858237355947495,
0.028141750022768974,
-0.006332817953079939,
0.045263469219207764,
-0.00861170794814825,
-0.029916787520051003,
-0.006651770323514938,
0.025793522596359253,
0.019765788689255714,
0.0798027515411377,
-0.013543910346925259,
-0.04067795351147652,
-0.025016942992806435,
-0.008986130356788635,
0.05036670342087746,
-0.03315253183245659,
-0.038422178477048874,
-0.024869022890925407,
-0.00044924873509444296,
0.0885300263762474,
-0.030046217143535614,
-0.034705691039562225,
-0.016234202310442924,
0.05058858543634415,
-0.009522339329123497,
-0.033799681812524796,
-0.005311246495693922,
-0.05140214413404465,
0.01408011931926012,
-0.002570107113569975,
-0.06216331198811531,
-0.053990740329027176,
-0.0608690120279789,
0.014237284660339355,
0.05162402242422104,
-0.03685053065419197,
0.06967024505138397,
-0.049738045781850815,
-0.004821262322366238,
0.036425258964300156,
0.007909088395535946,
0.1166347935795784,
0.04592910781502724,
0.07203695923089981,
0.06478888541460037,
0.06375344842672348,
-0.04970106482505798,
0.08179967105388641,
-0.01656702160835266,
-0.018240364268422127,
-0.05946377292275429,
0.06279197335243225,
0.038865938782691956,
0.0012538518058136106,
-0.030452996492385864,
-0.01950692944228649,
0.0008493834175169468,
0.016927575692534447,
0.01342372503131628,
-0.0460030697286129,
-0.07884127646684647,
-0.0312480665743351,
-0.07440368086099625,
-0.007516176905483007,
0.0159753430634737,
-0.0526224821805954,
-0.0213744156062603,
-0.043488431721925735,
0.05824343487620354,
0.01802773028612137,
-0.06560245156288147,
0.010289673693478107,
0.023889053612947464,
0.014274264685809612,
0.03161786496639252,
0.015818176791071892,
-0.023075494915246964,
0.04596608877182007,
-0.04278581216931343,
-0.05025576427578926,
-0.004261940252035856,
-0.02969490736722946,
0.03172880411148071,
0.022613245993852615,
-0.028400609269738197,
-0.03137749433517456,
0.018212629482150078,
0.02725422941148281,
-0.10465328395366669,
0.028770407661795616,
-0.017232660204172134,
-0.00798767153173685,
-0.051734961569309235,
-0.005824343767017126,
-0.05938981473445892,
-0.05665329843759537,
-0.015365173108875751,
-0.02956547774374485,
0.01847149059176445,
0.005972263403236866,
0.01406162977218628,
-0.001591293839737773,
-0.023944523185491562,
-0.021078577265143394,
0.04707548767328262,
0.01482896413654089,
-0.020135587081313133,
-0.004107086919248104,
0.019211089238524437,
0.030674876645207405,
0.046335890889167786,
-0.04467179253697395,
0.010372878983616829,
0.049775026738643646,
0.03816331923007965,
-0.015559317544102669,
-0.023741133511066437,
-0.018416019156575203,
-0.015217253006994724,
0.0005359204951673746,
-0.005024651996791363,
-0.013821260072290897,
-0.01919259876012802,
-0.02812325954437256,
0.05583973973989487,
-0.04988596588373184,
-0.023426804691553116,
-0.03718334808945656,
-0.009781199507415295,
-0.007123264484107494,
0.02087518759071827,
0.013137130998075008,
0.03344837203621864,
-0.003489983733743429,
-0.04615098983049393,
-0.011528502218425274,
0.06327270716428757,
-0.027180269360542297,
0.03428042307496071,
-0.03037903644144535,
0.06556546688079834,
0.04359937086701393,
0.04729736968874931,
-0.005463789217174053,
0.03548227250576019,
-0.0032426801044493914,
0.06079505383968353,
-0.029010778293013573,
-0.025109391659498215,
-0.021392906084656715,
0.017574725672602654,
0.007890598848462105,
-0.11315867304801941,
-0.0018513092072680593,
0.01965484768152237,
0.04115869477391243,
0.025701072067022324,
-0.002822033129632473,
-0.010668718256056309,
-0.018674880266189575,
0.03605546057224274,
-0.00924961268901825,
0.01965484768152237,
-0.014366714283823967,
-0.004830507095903158,
-0.019229579716920853,
-0.07140830159187317,
0.028363628312945366,
0.007215714547783136,
0.007830506190657616,
-0.05247456207871437,
-0.019488438963890076,
0.006337440572679043,
-0.003360553877428174,
-0.02350076474249363,
-0.0002490369079168886,
-0.024462243542075157,
-0.031858235597610474,
0.0038020021747797728,
0.0041694906540215015,
0.0401972159743309,
-0.025571642443537712,
-0.010714943520724773,
-0.031359005719423294,
-0.07521723955869675,
0.02897379733622074,
0.05428658053278923,
-0.01812942512333393,
0.04940522462129593,
-0.04822186753153801,
-0.012480736710131168,
-0.028862858191132545,
-0.005482278764247894,
-0.02875191904604435,
0.011944526806473732,
0.006836669985204935,
-0.010150998830795288,
-0.007308164611458778,
-0.04433897137641907,
0.04212017357349396,
0.036203380674123764,
-0.03784898668527603,
-0.00036633273703046143,
-0.01737133599817753,
0.05794759467244148,
-0.04089983552694321,
-0.020708777010440826,
0.04322957247495651,
-0.01853620447218418,
-0.0102804284542799,
0.027771949768066406,
0.02459167316555977,
-0.040419094264507294,
0.028918327763676643,
-0.01697380095720291,
0.014043139293789864,
-0.04907240718603134,
0.02640369161963463,
0.04504159092903137,
0.03956855833530426,
-0.012647146359086037,
-0.024147912859916687,
-0.025867480784654617,
0.0418243333697319,
-0.01872110366821289,
-0.03428042307496071,
0.007312786765396595,
-0.016511552035808563,
0.02512788213789463,
-0.0028728805482387543,
0.04278581216931343,
-0.030268097296357155,
0.006203388329595327,
-0.03418797254562378,
0.015272723510861397,
0.018637899309396744,
-0.01345145981758833,
0.014006159268319607,
0.007405236829072237,
-0.010150998830795288,
0.004583203699439764,
-0.048739586025476456,
-0.036610160022974014,
-0.000859206251334399,
0.06745144724845886,
0.053990740329027176,
-0.03513096272945404,
-0.015568562783300877,
-0.02399999275803566,
0.04803696647286415,
-0.01763019524514675,
-0.06711862981319427,
0.052548523992300034,
-0.009291214868426323,
-0.0361294187605381,
0.028197219595313072,
0.013821260072290897,
0.0035408311523497105,
-0.042637892067432404,
-0.021984586492180824,
-0.006989212241023779,
0.03435438126325607,
0.027882888913154602,
0.05968565493822098,
-0.04093681648373604,
0.028714938089251518,
0.04929428547620773,
-0.023149454966187477,
-0.0030485354363918304,
-0.006869027391076088,
-0.01075192354619503,
0.0008568949997425079,
0.008556238375604153,
-0.04907240718603134,
-0.0014260397292673588,
-0.024979962036013603,
-0.06467794626951218,
-0.008292756043374538,
0.04700152948498726,
0.027328189462423325,
0.00044491514563560486,
-0.00932819489389658,
-0.050329726189374924,
-0.037146370857954025,
-0.03505700081586838,
0.0071833571419119835,
0.03490908071398735,
-0.011500767432153225,
0.013137130998075008,
0.028770407661795616,
-0.03640677034854889,
0.0059861307963728905,
0.011121722869575024,
-0.05347302183508873,
0.03132202476263046,
-0.03394760191440582,
0.00253543839789927,
-0.02884436771273613,
-0.041269633919000626,
-0.018323570489883423,
-0.04093681648373604,
0.03269028291106224,
-0.0006627502152696252,
0.00875038281083107,
0.03481663018465042,
0.009993834421038628,
-0.01591062732040882,
-0.008667177520692348,
0.033799681812524796,
0.01675192080438137,
0.018767328932881355,
-0.04300769418478012,
-0.013802769593894482,
-0.017195681110024452,
-0.01432973425835371,
-0.05935283377766609,
0.040862854570150375,
-0.008223418146371841,
-0.006360553205013275,
-0.024055464193224907,
-0.004546223673969507,
0.013063170947134495,
0.02353774383664131,
-0.06941138207912445,
-0.020394448190927505,
0.03306008502840996,
0.0017900611273944378,
0.037793517112731934,
-0.005015407223254442,
0.038607075810432434,
0.02453620359301567,
-0.013007700443267822,
-0.032579343765974045,
-0.02100461721420288,
-0.04322957247495651,
0.010881353169679642,
-0.033929113298654556,
0.0451895110309124,
0.04245299473404884,
0.011325112544000149,
-0.02359321340918541,
-0.021522335708141327,
-0.03074883669614792,
0.024758081883192062,
0.014921413734555244,
-0.025959931313991547,
-0.027420639991760254,
0.006355930585414171,
0.01568874716758728,
-0.03849613666534424,
-0.007798148784786463,
0.02268720418214798,
-0.00012531294487416744,
-0.029103228822350502,
0.07414481788873672,
0.0021575496066361666,
-0.05299228057265282,
-0.0145793491974473,
-0.013765789568424225,
-0.0025100146885961294,
0.009836669079959393,
0.014385203830897808,
-0.0009325883584097028,
-0.006596300285309553,
0.011750382371246815,
-0.017214171588420868,
-0.000614791817497462,
-0.010946067981421947,
-0.0485546849668026,
0.014634818769991398,
0.036998450756073,
0.0032126340083777905,
0.0159753430634737,
-0.07344219833612442,
0.004527733661234379,
0.000818181608337909,
0.0061941430903971195,
-0.021171025931835175,
-0.037645597010850906,
0.041861314326524734,
-0.04940522462129593,
-0.02816023863852024,
0.04618797078728676,
-0.004333588760346174,
0.03204313665628433,
-0.05816947668790817,
-0.03960553556680679,
0.05650537833571434,
-0.035611700266599655,
-0.04289675131440163,
-0.022040056064724922,
0.05347302183508873,
-0.013331275433301926,
0.05609859898686409,
-0.03875499591231346,
-0.009947609156370163,
-0.01690908707678318,
0.02409244328737259,
0.03901385888457298,
-0.04016023501753807,
-0.04559629037976265,
0.042859774082899094,
0.056579336524009705,
0.011214172467589378,
-0.043266553431749344,
-0.05650537833571434,
0.04400615021586418,
0.03404005244374275,
0.010511553846299648,
-0.01690908707678318,
0.017916791141033173,
-0.02106008678674698,
-0.013543910346925259,
-0.00013874706928618252,
-0.09141445904970169,
-0.0005818565259687603,
-0.03335592523217201,
-0.0763266384601593,
0.055765777826309204,
-0.04781508818268776,
-0.02649614028632641,
0.013821260072290897,
0.03159937635064125,
-0.01681663654744625,
-0.0468166284263134,
0.008098610676825047,
-0.03672109916806221,
-0.033023104071617126,
-0.010862862691283226,
0.012480736710131168,
-0.05569181963801384,
0.024924492463469505,
0.040825873613357544,
-0.015189518220722675,
0.0014526189770549536,
-0.01181509718298912,
0.019211089238524437,
0.026366710662841797,
0.006771955173462629,
-0.035112470388412476,
0.059796594083309174,
0.0037395984400063753,
0.024351302534341812,
0.033799681812524796,
0.026884431019425392,
0.0213744156062603,
0.01856393925845623,
-0.03159937635064125,
0.008879812434315681,
-0.04089983552694321,
0.0017669487278908491,
0.024961473420262337,
0.008523880504071712,
0.021522335708141327,
-0.010345143266022205,
0.06367948651313782,
-0.0021090132649987936,
0.019488438963890076
] |
725,433 | lotkavolterra_simulator.simulator | make_observational_noise | Simulate observational noise.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
XOnoise : array, double, dimension=n
observational noise for preys
YOnoise : array, double, dimension=n
observational noise for predators
| def make_observational_noise(self, Xsignal, Ysignal, **metaparams):
"""Simulate observational noise.
Parameters
----------
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
Returns
-------
XOnoise : array, double, dimension=n
observational noise for preys
YOnoise : array, double, dimension=n
observational noise for predators
"""
import numpy as np
import scipy.stats as ss
from scipy.linalg import sqrtm
tmax=self.tmax
# Writing this in a single call to multivariate_normal causes numerical instabilities
XOnoise = np.zeros(tmax) # Pre-allocate the memory for XOnoise
YOnoise = np.zeros(tmax) # Pre-allocate the memory for YOnoise
for n in range(tmax-1):
O = self.Onoise_cov(np.array([Xsignal[n]]), np.array([Ysignal[n]]), **metaparams)
XOnoise[n], YOnoise[n] = ss.multivariate_normal(mean=[0,0], cov=O).rvs()
return XOnoise, YOnoise
| (self, Xsignal, Ysignal, **metaparams) | [
-0.004456489812582731,
-0.03045346774160862,
0.0905853658914566,
0.01867661438882351,
0.025273920968174934,
-0.05519809201359749,
-0.09187079966068268,
0.0035396721214056015,
0.06536815315485,
0.04986731708049774,
-0.03517933189868927,
0.07470645755529404,
-0.0006752078188583255,
0.036502573639154434,
-0.04117172956466675,
0.03958383575081825,
-0.009877055883407593,
-0.014858116395771503,
-0.004839284811168909,
-0.04816600680351257,
-0.01215492282062769,
0.036029987037181854,
-0.007079344242811203,
0.005519809201359749,
-0.02591663785278797,
0.012608605436980724,
-0.05334555357694626,
-0.033667054027318954,
-0.016653945669531822,
-0.024045197293162346,
-0.016408199444413185,
-0.04763671010732651,
0.040755853056907654,
-0.030793730169534683,
0.0689219981431961,
-0.0003325826837681234,
0.023723836988210678,
0.08211661130189896,
-0.05610545724630356,
0.001319697592407465,
-0.006205059587955475,
-0.09270255267620087,
0.021606650203466415,
0.0334780216217041,
-0.044385313987731934,
0.0013858596794307232,
-0.03442319482564926,
0.09035851806402206,
0.007230571936815977,
-0.015519737266004086,
-0.011124684475362301,
-0.03325118124485016,
0.02489585243165493,
-0.019432753324508667,
0.018931811675429344,
0.052022311836481094,
0.038468532264232635,
0.062230177223682404,
0.015945065766572952,
-0.0008583350572735071,
-0.027920404449105263,
-0.0004982833052054048,
0.018421418964862823,
-0.011616174131631851,
0.024479975923895836,
0.0036483670119196177,
-0.05916781723499298,
0.04117172956466675,
0.08952677249908447,
0.010056639090180397,
0.048430655151605606,
-0.02616238407790661,
-0.005548164248466492,
0.04585978388786316,
0.02595444582402706,
-0.00452028913423419,
-0.08378011733293533,
-0.006516966503113508,
-0.003310467815026641,
-0.006516966503113508,
-0.02453668601810932,
-0.009801441803574562,
-0.0618521086871624,
0.03166328743100166,
-0.0060727354139089584,
-0.01599232479929924,
-0.035633016377687454,
-0.03695625811815262,
0.035122621804475784,
0.002596862381324172,
-0.030283337458968163,
0.05190889164805412,
0.022343885153532028,
0.005274064373224974,
-0.022986602038145065,
0.022740857675671577,
-0.05924343317747116,
0.01886564865708351,
0.10464953631162643,
-0.004139856901019812,
-0.0004208972677588463,
-0.0165405236184597,
-0.045557331293821335,
0.08559484779834747,
-0.02311892621219158,
0.045519523322582245,
0.0010562306270003319,
0.05720185860991478,
0.02780698426067829,
-0.04219251498579979,
-0.030340047553181648,
0.007235297933220863,
-0.026616066694259644,
-0.07463084906339645,
-0.031058378517627716,
-0.061360619962215424,
-0.00848765205591917,
0.035311657935380936,
-0.012807091698050499,
-0.03440428897738457,
-0.06472543627023697,
0.012202180922031403,
-0.080377496778965,
0.04865749552845955,
0.019016876816749573,
-0.03262736648321152,
0.037598975002765656,
-0.0457085557281971,
-0.03154986724257469,
-0.012419571168720722,
-0.08672905713319778,
0.009636037051677704,
0.09973463416099548,
0.04015094041824341,
-0.044423121958971024,
-0.017589665949344635,
-0.02718316949903965,
-0.01721159741282463,
0.04990512505173683,
-0.028071632608771324,
0.01400746125727892,
0.02347809262573719,
-0.06831709295511246,
0.023572610691189766,
0.006805244367569685,
0.0543663389980793,
0.06563279777765274,
-0.03260846063494682,
0.05187108367681503,
-0.027447817847132683,
-0.03221148997545242,
0.015888355672359467,
-0.02427203767001629,
-0.03321337327361107,
-0.023893969133496284,
-0.01697530411183834,
0.0057750060223042965,
0.00624286662787199,
-0.041663218289613724,
-0.00028621015371754766,
-0.03582204878330231,
-0.0016965852119028568,
0.0026464839465916157,
-0.04207909479737282,
-0.0005671036778949201,
0.028544219210743904,
0.020359022542834282,
0.028619833290576935,
0.05625668540596962,
-0.022003622725605965,
-0.031190702691674232,
-0.006280673202127218,
-0.007835482247173786,
-0.0354628823697567,
0.0028993175365030766,
0.010472514666616917,
-0.041776638478040695,
-0.0048534623347222805,
-0.047296445816755295,
0.0007271923241205513,
0.01697530411183834,
-0.017381727695465088,
-0.06846831738948822,
0.007273104973137379,
-0.018137866631150246,
0.012759832665324211,
0.06525473296642303,
-0.058562908321619034,
-0.011805208399891853,
-0.0009688021382316947,
0.023969583213329315,
0.04037778079509735,
-0.009517890401184559,
0.011805208399891853,
0.029413778334856033,
-0.011890273541212082,
0.03714529052376747,
-0.029961979016661644,
0.019394945353269577,
0.0267861969769001,
0.001426029484719038,
0.0064980629831552505,
-0.0590922050178051,
-0.021096257492899895,
0.01769363507628441,
-0.013544326648116112,
-0.037636782974004745,
0.008846817538142204,
-0.055765196681022644,
0.0039035638328641653,
0.04710741341114044,
-0.00417530070990324,
0.04207909479737282,
0.0007626363076269627,
0.0638180673122406,
0.04226812720298767,
0.0905853658914566,
0.02667277678847313,
-0.05459318310022354,
-0.038544148206710815,
-0.004636072553694248,
-0.041814446449279785,
-0.057617735117673874,
0.02616238407790661,
0.01913974992930889,
0.04502803459763527,
0.01977301575243473,
0.029961979016661644,
0.02311892621219158,
-0.05274064466357231,
0.006171978544443846,
0.09519780427217484,
-0.012003694660961628,
-0.020869415253400803,
-0.02009437419474125,
-0.02024560235440731,
0.03440428897738457,
-0.05368581414222717,
-0.017041465267539024,
-0.029149129986763,
-0.06321315467357635,
-0.02797711454331875,
0.003067085752263665,
0.012712574563920498,
0.016332585364580154,
-0.002960753859952092,
0.00705098919570446,
0.03179561346769333,
-0.020037664100527763,
0.02667277678847313,
0.04854407534003258,
-0.019253170117735863,
0.003946096636354923,
0.007490494754165411,
0.017476245760917664,
0.008676686324179173,
0.04117172956466675,
0.01219272892922163,
0.0019919516053050756,
-0.053950462490320206,
-0.018270190805196762,
0.010604838840663433,
-0.08619976043701172,
0.0374288447201252,
-0.025670893490314484,
0.0057182954624295235,
-0.013705005869269371,
0.016559427604079247,
-0.014725792221724987,
0.016398748382925987,
0.024366555735468864,
0.03612450510263443,
-0.03722090646624565,
-0.07587847113609314,
0.02950829453766346,
0.034801263362169266,
0.04396943747997284,
-0.0496404767036438,
-0.003376629902049899,
0.03132302686572075,
-0.0007691343780606985,
0.005680488422513008,
0.032287102192640305,
0.01179575640708208,
0.0053638555109500885,
-0.01606793701648712,
-0.015566996298730373,
-0.005737198982387781,
0.027599046006798744,
-0.04793916642665863,
0.01504715159535408,
0.020075470209121704,
0.06279727816581726,
0.03943261131644249,
0.01702256314456463,
0.013506519608199596,
-0.07058550417423248,
0.03289201483130455,
0.004189478699117899,
-0.04911118000745773,
0.04525487497448921,
0.05058564990758896,
-0.025387341156601906,
-0.04003752022981644,
0.02493365854024887,
-0.026880715042352676,
0.006219237111508846,
-0.027239879593253136,
0.010151156224310398,
-0.0053591299802064896,
-0.021096257492899895,
0.01384678203612566,
0.015746578574180603,
0.03404512628912926,
-0.032287102192640305,
-0.0003473510150797665,
-0.010803325101733208,
0.012183277867734432,
0.01867661438882351,
0.09867604076862335,
0.03264626860618591,
-0.07164409756660461,
0.016058485954999924,
-0.034139640629291534,
0.04956486076116562,
-0.015529189258813858,
-0.05640791356563568,
-0.012636960484087467,
-0.07429058104753494,
0.035557400435209274,
-0.006309028714895248,
-0.017977187409996986,
-0.05156862735748291,
0.04790135845541954,
-0.02020779438316822,
-0.025746507570147514,
-0.018979070708155632,
-0.048241619020700455,
-0.009050029329955578,
-0.0129016088321805,
-0.07716390490531921,
-0.050131965428590775,
-0.04895995184779167,
0.025992251932621002,
-0.004631346557289362,
-0.08672905713319778,
0.05258941650390625,
-0.05326994135975838,
-0.004390327725559473,
0.030585791915655136,
0.010359094478189945,
0.14601029455661774,
0.06408271938562393,
0.08756081014871597,
0.05531151220202446,
0.0728917270898819,
-0.04185225069522858,
0.04540610313415527,
0.002256600186228752,
-0.021134063601493835,
-0.07334540784358978,
0.0764077678322792,
0.06688042730093002,
-0.026086769998073578,
0.022381693124771118,
0.010642645880579948,
0.01522673387080431,
0.04238154739141464,
-0.015973420813679695,
-0.07164409756660461,
-0.08657783269882202,
-0.019451657310128212,
-0.049224600195884705,
0.036067795008420944,
0.004019347485154867,
-0.01839306205511093,
-0.01922481507062912,
-0.06415832787752151,
0.03332679346203804,
0.01954617351293564,
-0.034290868788957596,
-0.0163514893501997,
0.011899725534021854,
0.013648295775055885,
0.028147246688604355,
0.03517933189868927,
-0.012561346404254436,
0.02103954739868641,
-0.006115267984569073,
-0.035992179065942764,
-0.0058364421129226685,
-0.03920576721429825,
0.018137866631150246,
0.02493365854024887,
0.0019553261809051037,
-0.015897806733846664,
0.03729651868343353,
0.01816622167825699,
-0.046540308743715286,
0.006682371720671654,
-0.042721811681985855,
-0.013251323252916336,
-0.045557331293821335,
0.02075599506497383,
-0.05822264403104782,
-0.06627551466226578,
0.005231531336903572,
-0.010122801177203655,
0.028033826500177383,
0.0020155811216682196,
-0.014820309355854988,
0.03361034393310547,
0.018222931772470474,
-0.05088810250163078,
0.06457420438528061,
0.010661548934876919,
-0.001319697592407465,
-0.0027268235571682453,
0.051039330661296844,
0.04200347885489464,
0.04665372893214226,
-0.05088810250163078,
0.030982764437794685,
0.020302312448620796,
0.03905453905463219,
0.001517002354376018,
-0.011843015439808369,
-0.036540381610393524,
-0.009782538749277592,
0.002445634687319398,
0.014224850572645664,
0.006635113153606653,
-0.062230177223682404,
-0.03920576721429825,
0.02856312319636345,
-0.010529224760830402,
0.011153039522469044,
-0.06442297995090485,
0.013308033347129822,
0.02340247854590416,
0.004558095708489418,
0.061587460339069366,
0.02257072739303112,
0.016928045079112053,
-0.017145434394478798,
-0.0022861368488520384,
0.07126603275537491,
-0.024083003401756287,
0.0386197604238987,
-0.007627544458955526,
0.04234374314546585,
0.02406409941613674,
0.004477756097912788,
-0.00019730482017621398,
0.02950829453766346,
0.02430984564125538,
0.066993847489357,
-0.028846673667430878,
-0.051114946603775024,
-0.01705091819167137,
-0.02446107193827629,
0.021493230015039444,
-0.028771059587597847,
-0.010132252238690853,
0.032513946294784546,
0.007377073634415865,
-0.0030812632758170366,
-0.00898386724293232,
0.029772942885756493,
0.018894003704190254,
-0.00214199791662395,
0.01057648379355669,
0.010671000927686691,
-0.010935649275779724,
0.03238162025809288,
-0.03640805557370186,
-0.05349678173661232,
0.04763671010732651,
0.009574600495398045,
-0.024177521467208862,
-0.032948724925518036,
0.003055271226912737,
-0.004858188331127167,
-0.0014331182464957237,
-0.017381727695465088,
0.027674660086631775,
0.0037428843788802624,
-0.05073687806725502,
0.0275801420211792,
-0.03037785366177559,
0.050094157457351685,
0.023761644959449768,
-0.00263939518481493,
-0.01353487465530634,
-0.06272166967391968,
0.05822264403104782,
-0.012939415872097015,
-0.006394093856215477,
0.03281639888882637,
-0.012712574563920498,
-0.01638929732143879,
-0.019602883607149124,
-0.05444195494055748,
-0.04434750974178314,
-0.021682264283299446,
0.02151213400065899,
-0.05459318310022354,
-0.02729659155011177,
-0.04888433963060379,
0.005831716116517782,
0.04521706700325012,
-0.018931811675429344,
-0.034328676760196686,
-0.02962171658873558,
0.03364815190434456,
-0.023270154371857643,
-0.00012220788630656898,
0.05602984502911568,
0.007443235721439123,
0.0001603840064490214,
-0.004454127047210932,
0.0031332478392869234,
-0.037050772458314896,
-0.0001615654764464125,
0.01344980951398611,
0.017504600808024406,
-0.07205997407436371,
0.015737127512693405,
0.05058564990758896,
0.0354628823697567,
-0.027863694354891777,
-0.03487687557935715,
-0.04517925903201103,
0.07292953133583069,
0.00003920990275219083,
-0.059621501713991165,
0.003714529098942876,
-0.06472543627023697,
0.07527356594800949,
-0.0007271923241205513,
-0.02612457610666752,
-0.011474397964775562,
0.03398841619491577,
0.014565113000571728,
0.0005883700796402991,
0.03582204878330231,
-0.022438403218984604,
0.01626642420887947,
-0.05901658907532692,
0.0179299283772707,
-0.017277758568525314,
-0.0386197604238987,
-0.00882318802177906,
-0.0018726236885413527,
0.04759890213608742,
0.019754111766815186,
-0.04589759185910225,
-0.011531108058989048,
-0.04249497130513191,
0.07689926028251648,
-0.004376150202006102,
-0.03442319482564926,
0.048430655151605606,
-0.03224929794669151,
-0.046389080584049225,
0.05901658907532692,
0.0433267205953598,
0.01722104847431183,
-0.0033199195750057697,
0.029886364936828613,
0.03355363383889198,
0.010387449525296688,
-0.0028284296859055758,
0.008355327881872654,
-0.03629463538527489,
0.038865506649017334,
0.01473524421453476,
-0.025425149127840996,
-0.028109438717365265,
0.009933765977621078,
0.020359022542834282,
0.007499946281313896,
-0.01619081012904644,
-0.051606435328722,
0.014309916645288467,
-0.03928138315677643,
-0.07349663972854614,
-0.004182389471679926,
0.04030216857790947,
0.02548185922205448,
-0.008511281572282314,
0.04877091571688652,
-0.07357224822044373,
-0.018884552642703056,
-0.028260666877031326,
0.02071818895637989,
0.013497067615389824,
-0.006965923588722944,
-0.0034758730325847864,
0.007636996451765299,
-0.024914754554629326,
0.016691751778125763,
-0.003010375425219536,
-0.049338020384311676,
0.016332585364580154,
-0.0002111870562657714,
-0.019357139244675636,
-0.04975389689207077,
0.01120974961668253,
-0.021285291761159897,
-0.013903492130339146,
0.06064228713512421,
0.011294814758002758,
0.034839071333408356,
0.026048962026834488,
0.044649962335824966,
-0.03368595987558365,
-0.0086672343313694,
0.05550054833292961,
-0.005321322940289974,
0.02725878357887268,
-0.04109611362218857,
-0.003376629902049899,
-0.010680452920496464,
-0.04219251498579979,
-0.04945144057273865,
0.032400522381067276,
-0.06120939180254936,
-0.018137866631150246,
-0.043704789131879807,
-0.024687914177775383,
-0.018270190805196762,
0.039886292070150375,
-0.03045346774160862,
-0.013128450140357018,
0.0413607619702816,
-0.016653945669531822,
0.027958212420344353,
-0.0020167625043541193,
0.02827957086265087,
0.01571822352707386,
0.00022876136063132435,
-0.004288721829652786,
-0.029961979016661644,
-0.026181286200881004,
0.0022282449062913656,
-0.03572753071784973,
0.054026078432798386,
0.006904487498104572,
0.007013182155787945,
-0.009829796850681305,
0.0005227986839599907,
-0.03776910528540611,
0.02958390861749649,
-0.008100130595266819,
-0.03430977463722229,
-0.011644529178738594,
0.019565077498555183,
0.07531137019395828,
-0.027958212420344353,
0.010396900586783886,
0.011644529178738594,
0.040869273245334625,
-0.007353444583714008,
0.06669139117002487,
-0.013648295775055885,
-0.02206033281981945,
-0.03867647051811218,
0.030755924060940742,
0.008284439332783222,
0.08211661130189896,
0.004092598333954811,
0.028960095718503,
0.008950786665081978,
0.058525100350379944,
-0.027636853978037834,
0.021360905840992928,
0.021436519920825958,
-0.03637025132775307,
-0.009943217970430851,
0.06306193023920059,
-0.017740894109010696,
0.03300543501973152,
-0.09202202409505844,
0.03916796296834946,
-0.017315566539764404,
0.022211560979485512,
-0.013714457862079144,
-0.056710369884967804,
0.0204913467168808,
-0.037485554814338684,
-0.02151213400065899,
0.04230593517422676,
0.03262736648321152,
0.039016734808683395,
-0.01603958196938038,
-0.0275801420211792,
0.05035880580544472,
-0.006512240506708622,
-0.049338020384311676,
0.030737020075321198,
0.032041359692811966,
-0.009229612536728382,
0.046389080584049225,
-0.029791846871376038,
0.00527879036962986,
0.0030481822323054075,
-0.03793923556804657,
0.05992395803332329,
-0.022551823407411575,
-0.04064243286848068,
0.03695625811815262,
0.044460929930210114,
0.014999892562627792,
0.009569874964654446,
-0.0036554557736963034,
0.010311835445463657,
0.03863866627216339,
-0.009177627973258495,
-0.0074810427613556385,
0.03812827169895172,
-0.03999971225857735,
0.007263652980327606,
0.017164338380098343,
-0.052097924053668976,
-0.016379844397306442,
0.05504686385393143,
-0.01459346804767847,
0.043666984885931015,
-0.03177671134471893,
0.005737198982387781,
0.006861954461783171,
0.028411895036697388,
-0.022268271073698997,
-0.029092419892549515,
0.00030422749114222825,
-0.04604882001876831,
-0.04790135845541954,
-0.005652133375406265,
0.04007532820105553,
-0.04684276506304741,
0.017353372648358345,
0.062381405383348465,
0.007433784194290638,
-0.03954603150486946,
-0.024839142337441444,
0.03315666317939758,
0.014725792221724987,
0.026805100962519646,
-0.025746507570147514,
0.022778665646910667,
-0.018062252551317215,
-0.008780655451118946,
-0.03415854647755623,
0.02871434949338436,
0.04313768818974495,
0.01748569682240486,
-0.023723836988210678,
-0.019999856129288673,
-0.011625625193119049,
0.005335500463843346,
0.0053024194203317165,
0.0488465316593647,
0.04033997654914856,
-0.0018726236885413527,
0.05996176227927208,
-0.01981082186102867,
0.018052801489830017
] |
725,434 | lotkavolterra_simulator.simulator | make_signal | Simulate the signal.
Parameters
----------
model : int, optional, default=0
0= correct data model; 1=misspecified data model
Xefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
Yefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
P : double
rate of prey misses due to correlation between preys and predators
Q : double
rate of predator misses due to correlation between preys and predators
Returns
-------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
| def make_signal(self, **metaparams):
"""Simulate the signal.
Parameters
----------
model : int, optional, default=0
0= correct data model; 1=misspecified data model
Xefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
Yefficiency : array, double, dimension=len(t)
detection efficiency of preys as a function of time
P : double
rate of prey misses due to correlation between preys and predators
Q : double
rate of predator misses due to correlation between preys and predators
Returns
-------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
"""
import numpy as np
t=self.t
X0=self.X0
Y0=self.Y0
Xtrue=self.Xtrue
Ytrue=self.Ytrue
Xsignal, Ysignal = self.Xtrue, self.Ytrue
if not "model" in metaparams or metaparams["model"] == 0:
# correct data model: The (unobserved) signal is a retarded and non-linear
# observation of the true underlying functions.
P=metaparams["obsP"]
Q=metaparams["obsQ"]
Xefficiency=metaparams["Xefficiency"]
Yefficiency=metaparams["Yefficiency"]
Xretard = np.roll(Xtrue,1)
Yretard = np.roll(Ytrue,1)
Xsignal = Xretard - P*Xretard*Yretard + Q*Xretard**2
Xsignal *= Xefficiency
Ysignal = Yretard + P*Xretard*Yretard - Q*Yretard**2
Ysignal *= Yefficiency
Xsignal[0] = X0
Ysignal[0] = Y0
elif "model" == 1:
# misspecified data model : consider that the measurement is a direct
# observation of the function.
pass
return Xsignal, Ysignal
| (self, **metaparams) | [
0.01743905618786812,
-0.027827279642224312,
0.024367673322558403,
0.015446021221578121,
0.011243725195527077,
-0.007417474407702684,
-0.10739826411008835,
0.004442023579031229,
0.01843557320535183,
0.023333551362156868,
-0.022393440827727318,
0.04264342784881592,
0.013782024383544922,
0.0076807052828371525,
-0.05023952201008797,
0.03222699835896492,
0.038845378905534744,
0.013565799221396446,
-0.039785489439964294,
-0.039785489439964294,
0.017354445531964302,
0.029387865215539932,
-0.050126709043979645,
0.056143417954444885,
0.029613491147756577,
0.05760999023914337,
-0.05975344404578209,
-0.04583980515599251,
-0.007831122726202011,
-0.007520886603742838,
-0.02613508142530918,
0.01636732928454876,
0.05964063107967377,
-0.03173813968896866,
0.03374997898936272,
-0.035705409944057465,
-0.005518450401723385,
0.017025407403707504,
-0.09476317465305328,
-0.0009888791246339679,
0.044222813099622726,
-0.10393865406513214,
0.05704592540860176,
0.03429524227976799,
-0.029575886204838753,
0.007455078884959221,
-0.039146214723587036,
0.07393031567335129,
0.051630888134241104,
-0.017824500799179077,
0.05625623092055321,
-0.024048034101724625,
0.004860372748225927,
-0.028485357761383057,
-0.0652436912059784,
0.08250412344932556,
0.028673380613327026,
0.0794205591082573,
-0.00014703921624459326,
0.010162598453462124,
-0.01100869756191969,
0.0982227772474289,
0.06076876446604729,
-0.008992159739136696,
0.003983719740062952,
0.0048932768404483795,
-0.008061449974775314,
-0.006773498374968767,
0.020550822839140892,
0.022863496094942093,
0.03029037080705166,
-0.030986052006483078,
-0.008691324852406979,
0.044486045837402344,
0.09393587708473206,
-0.05862531065940857,
-0.07032029330730438,
-0.02752644568681717,
-0.0051659089513123035,
-0.004392667673528194,
-0.02258146181702614,
0.012024017050862312,
0.002747474005445838,
-0.0023044466506689787,
-0.020287591964006424,
-0.01344358455389738,
-0.03134329617023468,
-0.0014771490823477507,
0.020231185480952263,
-0.024405276402831078,
-0.047306377440690994,
0.012240243144333363,
-0.006801701616495848,
0.045726992189884186,
0.007220051251351833,
-0.011102708987891674,
-0.03568660840392113,
-0.04820888489484787,
0.048622533679008484,
-0.019103052094578743,
-0.0027028187178075314,
0.024837728589773178,
-0.053511109203100204,
-0.004648847971111536,
0.014430700801312923,
0.014082860201597214,
-0.03888298198580742,
0.028240928426384926,
0.021735362708568573,
-0.05114202946424484,
-0.04189134016633034,
0.029425468295812607,
-0.03717198222875595,
-0.034201230853796005,
-0.043282702565193176,
-0.053699132055044174,
0.013546996749937534,
0.03510373830795288,
-0.00915667973458767,
-0.020663635805249214,
-0.0334867462515831,
0.02709399349987507,
-0.04117685556411743,
0.026097476482391357,
0.04433562606573105,
-0.016771577298641205,
0.08829520642757416,
-0.0018273404566571116,
-0.011300132609903812,
-0.04471167176961899,
-0.07994702458381653,
0.01420507486909628,
0.05486486852169037,
0.035084936767816544,
-0.06415316462516785,
0.00479456502944231,
0.0001380053290631622,
-0.017288638278841972,
0.008357585407793522,
0.008630217052996159,
0.021472131833434105,
0.05072838068008423,
0.006120121572166681,
0.05166849121451378,
-0.0053821345791220665,
0.018200546503067017,
0.03668312355875969,
-0.007896930910646915,
-0.024800123646855354,
0.032753460109233856,
-0.013086342252790928,
0.011873600073158741,
0.010839478112757206,
-0.007530287839472294,
0.040462370961904526,
-0.018642397597432137,
0.012691495940089226,
-0.006966221146285534,
-0.052646204829216,
-0.00725765572860837,
-0.05133005231618881,
-0.009241289459168911,
0.034445662051439285,
-0.015163987874984741,
-0.009692542254924774,
0.0357242114841938,
-0.006054313853383064,
0.06516848504543304,
0.02145332843065262,
0.02218661643564701,
-0.0030483093578368425,
-0.015850268304347992,
0.0027028187178075314,
0.0041975947096943855,
-0.06050553172826767,
0.04125206172466278,
-0.01962951384484768,
-0.026999982073903084,
-0.025495804846286774,
-0.006867509800940752,
0.07682585716247559,
-0.01344358455389738,
-0.07607376575469971,
-0.031869757920503616,
-0.0019260520348325372,
-0.02081405371427536,
0.006096618715673685,
-0.05298464745283127,
0.015116982161998749,
0.026868367567658424,
0.020400404930114746,
0.01742965541779995,
0.04520053043961525,
0.0178621057420969,
0.04933701455593109,
-0.019009040668606758,
0.06573254615068436,
0.0054573435336351395,
0.0688537135720253,
0.0004635921504814178,
0.0724637433886528,
-0.01837916672229767,
0.00463944673538208,
-0.006171827670186758,
-0.004202295560389757,
-0.02577783912420273,
0.0015535331331193447,
0.015126382932066917,
-0.04350832849740982,
-0.004496079869568348,
0.03361836448311806,
-0.06851527839899063,
0.014223876409232616,
0.004698203876614571,
0.03320471569895744,
0.029500678181648254,
0.042530614882707596,
0.02626669593155384,
-0.018952634185552597,
-0.02763925865292549,
0.03192616254091263,
-0.017269836738705635,
-0.06441639363765717,
-0.0014771490823477507,
0.00700382562354207,
0.034126024693250656,
0.006317544728517532,
0.030309172347187996,
0.0012538727605715394,
-0.030873239040374756,
0.03337393328547478,
0.04850971698760986,
-0.004096532706171274,
-0.04275624081492424,
0.006768797989934683,
-0.004449074622243643,
0.025853047147393227,
0.008489200845360756,
-0.029951930046081543,
-0.026341905817389488,
0.008315280079841614,
0.018463777378201485,
0.04756960645318031,
0.008235370740294456,
0.01930987648665905,
-0.00521761504933238,
0.06844006478786469,
0.016404934227466583,
-0.06426597386598587,
-0.006322245113551617,
0.010595048777759075,
-0.02927505038678646,
-0.005311626009643078,
0.018068930134177208,
0.03252783417701721,
0.015192191116511822,
0.10250968486070633,
-0.0028438351582735777,
0.03899579867720604,
-0.008738330565392971,
-0.024480486288666725,
0.013434183783829212,
0.01372561790049076,
0.031512513756752014,
-0.05918937921524048,
-0.012437665835022926,
-0.03397560492157936,
0.02626669593155384,
-0.03437045216560364,
0.036645520478487015,
0.003412602236494422,
0.015060575678944588,
-0.07588574290275574,
-0.08987459540367126,
-0.005363332107663155,
0.03209538385272026,
0.010360021144151688,
-0.045538969337940216,
-0.037717245519161224,
-0.026379508897662163,
-0.020738845691084862,
-0.0415152944624424,
0.09566567838191986,
0.01250347401946783,
-0.03203897550702095,
-0.0029049424920231104,
-0.002177531598135829,
-0.0029002418741583824,
0.09205564856529236,
-0.03598744422197342,
0.0029542981646955013,
0.029575886204838753,
0.015690449625253677,
-0.006106019951403141,
0.05847489461302757,
0.00037633811007253826,
-0.024424079805612564,
-0.035837024450302124,
0.03422003239393234,
-0.020099569112062454,
0.059715840965509415,
-0.004073030315339565,
0.0016193408519029617,
0.00592269841581583,
-0.04772002622485161,
-0.021415725350379944,
0.04764481633901596,
-0.0074080731719732285,
-0.01188300084322691,
-0.07592335343360901,
-0.02613508142530918,
0.05392475798726082,
0.01616990566253662,
-0.0081554614007473,
-0.019892744719982147,
0.027601653710007668,
0.03414482623338699,
0.019986756145954132,
0.05133005231618881,
0.0794205591082573,
0.03166293352842331,
-0.013565799221396446,
0.01899023912847042,
0.006218832917511463,
0.03971027955412865,
-0.013396578840911388,
-0.03423883765935898,
-0.055015284568071365,
-0.05873812362551689,
0.008832341060042381,
-0.005339829716831446,
0.030515996739268303,
-0.05377433821558952,
0.013904239051043987,
-0.023860013112425804,
-0.028541764244437218,
-0.02464970573782921,
-0.015342609025537968,
0.017589474096894264,
0.0003278636431787163,
0.008418692275881767,
-0.023991627618670464,
-0.058775730431079865,
0.028071708977222443,
0.008517404086887836,
-0.0442604161798954,
0.039484653621912,
-0.008470398373901844,
0.06058074161410332,
0.061784084886312485,
-0.010773669928312302,
0.08453476428985596,
0.03728479519486427,
0.08438434451818466,
0.06415316462516785,
0.036777134984731674,
-0.06776318699121475,
0.025965861976146698,
-0.008484500460326672,
-0.00756789231672883,
0.007252954877912998,
0.027507642284035683,
0.02594705857336521,
0.004888576455414295,
0.01285131461918354,
-0.020419206470251083,
-0.011262527666985989,
0.06599578261375427,
-0.059903860092163086,
-0.004014273174107075,
-0.061031993478536606,
-0.026981180533766747,
-0.05719634145498276,
0.038657356053590775,
0.02207380160689354,
0.011177917942404747,
0.015972482040524483,
-0.01250347401946783,
0.007436276413500309,
-0.00479456502944231,
-0.006261138245463371,
-0.011930006556212902,
-0.010341218672692776,
-0.016508346423506737,
0.04689272865653038,
0.0075490898452699184,
0.003076512599363923,
0.015116982161998749,
0.006359849590808153,
-0.02795889601111412,
0.031380899250507355,
-0.06129522621631622,
-0.007591394707560539,
-0.029989534988999367,
-0.018482578918337822,
-0.026943575590848923,
0.019328678026795387,
0.06287461519241333,
-0.03869496285915375,
-0.011854797601699829,
-0.054075174033641815,
-0.03766084089875221,
-0.05824926868081093,
0.01094289030879736,
0.017260434105992317,
-0.010557444766163826,
0.007657202892005444,
-0.019855139777064323,
-0.007215350400656462,
0.004340961575508118,
0.013264963403344154,
0.001715702237561345,
-0.0382625088095665,
-0.04621584713459015,
0.02150973491370678,
0.003617076436057687,
-0.044110000133514404,
-0.047607213258743286,
0.03123048134148121,
0.054940078407526016,
0.05272141471505165,
0.04305707663297653,
0.037397608160972595,
0.03224579989910126,
0.06877850741147995,
0.052006930112838745,
-0.011140312999486923,
0.027864884585142136,
-0.023220736533403397,
0.05975344404578209,
0.018134737387299538,
0.0016957249026745558,
-0.07957097887992859,
-0.033016692847013474,
-0.024931740015745163,
0.008996861055493355,
0.007017927244305611,
-0.043733954429626465,
0.019272271543741226,
0.026229092851281166,
-0.01936628296971321,
0.021359318867325783,
-0.006956819910556078,
0.00479691568762064,
-0.04192894324660301,
-0.06449159979820251,
0.01616990566253662,
-0.03617546334862709,
-0.023897618055343628,
-0.01567164808511734,
0.0020976222585886717,
0.0736294835805893,
0.04719356447458267,
-0.005833387840539217,
0.05964063107967377,
0.009424610994756222,
0.000020821986254304647,
-0.05185651406645775,
-0.045614175498485565,
-0.0382625088095665,
0.02288229763507843,
0.038582149893045425,
-0.06727433204650879,
-0.024480486288666725,
0.053586315363645554,
0.07223811745643616,
0.012400061823427677,
-0.03647629916667938,
-0.03668312355875969,
-0.013330771587789059,
-0.0025124461390078068,
-0.03854454308748245,
0.008334082551300526,
0.019084250554442406,
-0.046366266906261444,
-0.047306377440690994,
-0.05230776593089104,
0.027620455250144005,
0.02062603086233139,
-0.048434510827064514,
0.014280283823609352,
-0.06844006478786469,
-0.031080063432455063,
0.056519463658332825,
-0.009114374406635761,
0.02508215606212616,
-0.010895884595811367,
-0.05960302799940109,
-0.006237635388970375,
0.0003084738564211875,
-0.025288980454206467,
-0.016639960929751396,
0.05509049445390701,
0.017288638278841972,
-0.05114202946424484,
0.05309746041893959,
-0.0045759896747767925,
-0.018538985401391983,
0.012296649627387524,
-0.016066493466496468,
0.014346091076731682,
-0.02575903758406639,
-0.07573533058166504,
-0.02218661643564701,
0.006044912617653608,
0.03873256593942642,
-0.046366266906261444,
-0.010416427627205849,
-0.053586315363645554,
-0.011948809027671814,
-0.013255562633275986,
-0.006825204472988844,
0.001922526629641652,
0.01395124476402998,
-0.015775060281157494,
-0.0733286440372467,
-0.026285499334335327,
0.009974575601518154,
-0.014759739860892296,
-0.016320323571562767,
0.0145717179402709,
0.030045941472053528,
-0.039033401757478714,
-0.016574153676629066,
-0.0018625946249812841,
0.011958209797739983,
-0.05448882281780243,
-0.05185651406645775,
0.08423393219709396,
0.0226378683000803,
-0.0014759739860892296,
-0.018209947273135185,
0.011788989417254925,
0.11491914838552475,
0.02677435614168644,
0.004883875604718924,
0.011676176451146603,
-0.0556921660900116,
-0.014383696019649506,
-0.03751042112708092,
-0.01724163256585598,
0.026191487908363342,
-0.014693932607769966,
-0.014139266684651375,
0.04568938538432121,
0.018774013966321945,
-0.01397944800555706,
0.058963749557733536,
-0.04399718716740608,
-0.0014877254143357277,
-0.036889947950839996,
-0.04369635134935379,
0.05095400661230087,
0.006900413427501917,
0.08340663462877274,
0.027695665135979652,
0.07253894954919815,
0.029933128505945206,
0.01301113422960043,
0.024029232561588287,
-0.060655951499938965,
-0.01692199520766735,
0.005114202853292227,
-0.035649001598358154,
-0.10115592181682587,
0.05185651406645775,
0.02376600168645382,
0.006655984558165073,
-0.013782024383544922,
-0.011187318712472916,
0.01899963989853859,
0.00686280895024538,
0.011328335851430893,
0.001357284956611693,
-0.025909453630447388,
0.04098883271217346,
0.02564622275531292,
-0.04546375945210457,
-0.05870052054524422,
0.0012174434959888458,
0.032509032636880875,
0.012888919562101364,
-0.036006245762109756,
-0.07268936932086945,
0.026191487908363342,
-0.017523664981126785,
-0.015878472477197647,
0.029068225994706154,
-0.003908510785549879,
0.007817021571099758,
-0.03805568814277649,
0.028071708977222443,
-0.07731471210718155,
-0.004117685370147228,
0.0057205744087696075,
0.0015429569175466895,
0.0145717179402709,
-0.03497212380170822,
-0.014158069156110287,
0.03527295961976051,
-0.014816146343946457,
-0.02551460824906826,
-0.005118903238326311,
-0.043921977281570435,
-0.01668696664273739,
-0.04474927484989166,
-0.04659189283847809,
0.01624511554837227,
0.0207576472312212,
-0.04290665686130524,
0.009946372359991074,
0.03164413198828697,
0.006279940251260996,
0.009344701655209064,
0.023089122027158737,
-0.0074738808907568455,
-0.06535650789737701,
0.04001111537218094,
0.06298742443323135,
0.029632292687892914,
0.03585582599043846,
-0.029387865215539932,
-0.0024301863741129637,
-0.027488840743899345,
-0.036137860268354416,
-0.021603746339678764,
0.023728396743535995,
-0.0979219451546669,
-0.015446021221578121,
-0.08242891728878021,
0.0772395059466362,
-0.05121723935008049,
0.04076320677995682,
-0.05625623092055321,
0.016658764332532883,
0.0007638400420546532,
-0.015182789415121078,
0.06426597386598587,
0.0039508156478405,
0.043921977281570435,
0.006660685408860445,
0.011864198371767998,
-0.023540375754237175,
-0.05776041001081467,
0.018031325191259384,
0.013180353678762913,
-0.0432450994849205,
-0.011741984635591507,
0.025665026158094406,
0.0007720660069026053,
-0.0010758392745628953,
0.01250347401946783,
-0.034577276557683945,
0.0225626602768898,
0.005932099185883999,
0.006505567114800215,
-0.0013114545727148652,
-0.018003122881054878,
0.032565437257289886,
-0.012512874789536,
-0.02895541302859783,
0.051818907260894775,
0.029820315539836884,
-0.00670769065618515,
0.04095122590661049,
-0.002057667588815093,
0.016329724341630936,
-0.01993034966289997,
-0.03241502121090889,
-0.006444459781050682,
0.037961676716804504,
-0.0051753101870417595,
-0.028560567647218704,
0.017523664981126785,
0.0772395059466362,
-0.018068930134177208,
0.010209603235125542,
-0.012559880502521992,
-0.0033185912761837244,
-0.04772002622485161,
0.08603893965482712,
0.007943936623632908,
0.04907378554344177,
-0.05527851730585098,
0.02282589115202427,
-0.010190801694989204,
0.030798031017184258,
-0.012465870007872581,
-0.05392475798726082,
-0.03781125694513321,
-0.0090579679235816,
0.03636348620057106,
0.020137174054980278,
0.0027897788677364588,
0.012089825235307217,
-0.02983911707997322,
-0.06652224063873291,
0.0036758333444595337,
-0.028635775670409203,
-0.051066819578409195,
0.0387701690196991,
-0.014449503272771835,
0.004571288824081421,
0.02763925865292549,
-0.05324787646532059,
0.05986625701189041,
-0.018510783091187477,
-0.04576459527015686,
-0.0413648746907711,
-0.005715874023735523,
0.00962203461676836,
0.0413648746907711,
0.025665026158094406,
-0.02226182445883751,
0.03403201326727867,
-0.020926866680383682,
-0.01489135529845953,
0.025683827698230743,
0.008315280079841614,
0.04933701455593109,
-0.03183215111494064,
-0.022600265219807625,
-0.02406683750450611,
0.015032372437417507,
-0.05524091050028801,
-0.02978271059691906,
0.03053480014204979,
-0.007925134152173996,
0.019967954605817795,
-0.02350277081131935,
-0.046479079872369766,
0.015088778920471668,
0.026943575590848923,
-0.029763909056782722,
0.03617546334862709,
-0.04738158732652664,
-0.009908768348395824,
-0.027131598442792892,
0.06294982135295868,
0.043733954429626465,
-0.03136209771037102,
-0.002259791363030672,
-0.00981475692242384,
0.0136692114174366,
0.005038993898779154,
-0.012841913849115372,
-0.005880393087863922,
0.01768348552286625,
0.0202499870210886,
-0.04076320677995682,
0.05415038391947746,
0.004134137183427811,
-0.018078330904245377,
-0.052006930112838745,
0.05403757095336914,
-0.016188709065318108,
0.03429524227976799,
0.00032610094058327377,
0.007107237819582224,
0.0033773481845855713,
-0.03717198222875595,
0.010369422845542431,
0.06001667678356171,
0.08039827644824982,
-0.030459590256214142,
0.06498046219348907,
-0.024800123646855354,
0.029895523563027382
] |
725,435 | lotkavolterra_simulator.simulator | observe | Simulate the observation process using a given data model.
Parameters
----------
model : int, optional, default=0
0= correct data model; 1=misspecified data model
threshold : double
maximum number of individuals (preys or predators) that can be observed
mask : array, double, dimension=n
a mask containing zeros and ones
P : double
rate of prey misses due to correlation between preys and predators
Q : double
rate of predator misses due to correlation between preys and predators
R : double
strength of demographic noise
S : double
overall strength of observational noise
T : double
strength of non-diagonal term in observational noise
| def observe(self, **metaparams):
"""Simulate the observation process using a given data model.
Parameters
----------
model : int, optional, default=0
0= correct data model; 1=misspecified data model
threshold : double
maximum number of individuals (preys or predators) that can be observed
mask : array, double, dimension=n
a mask containing zeros and ones
P : double
rate of prey misses due to correlation between preys and predators
Q : double
rate of predator misses due to correlation between preys and predators
R : double
strength of demographic noise
S : double
overall strength of observational noise
T : double
strength of non-diagonal term in observational noise
"""
import numpy as np
# Simulate the observation process using a given data model
# signal
Xsignal, Ysignal = self.make_signal(**metaparams)
# simulate observation using correct data model
self.simulate_obs(Xsignal, Ysignal, **metaparams)
# censor and threshold data
self.censor(**metaparams)
self.threshold(**metaparams)
| (self, **metaparams) | [
0.050749555230140686,
-0.026080135256052017,
-0.025989703834056854,
0.0019951213616877794,
0.02859410084784031,
-0.0130762392655015,
-0.05548810958862305,
-0.03056548349559307,
0.028702616691589355,
0.0686909481883049,
-0.06283105909824371,
0.03754671290516853,
0.03590087965130806,
0.02049153484404087,
-0.06905267387628555,
-0.01210863422602415,
0.07049956172704697,
0.006578813306987286,
-0.014378437772393227,
-0.03676901012659073,
0.005073146894574165,
0.010110121220350266,
-0.031542133539915085,
0.05903298407793045,
-0.0007420947076752782,
0.009775528684258461,
-0.06525459885597229,
-0.04651741310954094,
0.014143318869173527,
0.007288692519068718,
-0.03604556620121002,
-0.036009397357702255,
0.03968087211251259,
-0.021685216575860977,
0.020202158018946648,
-0.03315179422497749,
0.036063652485609055,
0.06803984940052032,
-0.05552428215742111,
0.014215663075447083,
-0.017425943166017532,
-0.06970377266407013,
0.08840478211641312,
0.015355085954070091,
-0.03671475127339363,
0.013021981343626976,
0.013926285319030285,
0.10453757643699646,
0.07281457632780075,
-0.04192354530096054,
-0.02175755985081196,
0.01193681638687849,
0.008712971583008766,
-0.030438881367444992,
-0.02577267214655876,
0.03642537444829941,
0.012126720510423183,
0.061890583485364914,
0.06789516657590866,
-0.021016031503677368,
0.00003221583756385371,
0.0477110929787159,
0.06872712075710297,
-0.005593121983110905,
0.014957192353904247,
-0.001090817037038505,
-0.0020075554493814707,
0.022734209895133972,
-0.003158282721415162,
-0.012316623702645302,
-0.0015938362339511514,
-0.04836219176650047,
-0.006945056840777397,
0.05132830888032913,
0.0549093559384346,
-0.06456732749938965,
-0.07285074889659882,
-0.03772757202386856,
-0.01669345609843731,
0.04015110805630684,
0.05476466566324234,
-0.006768717430531979,
-0.00022056546004023403,
-0.017633933573961258,
-0.04626420512795448,
-0.05664562061429024,
-0.018556322902441025,
-0.020907513797283173,
0.057441405951976776,
-0.010842608287930489,
-0.03617217019200325,
0.04239378497004509,
0.007799624465405941,
0.024163009598851204,
0.0064567322842776775,
0.04713233932852745,
-0.05570514127612114,
-0.013085282407701015,
0.03396566957235336,
0.016015227884054184,
-0.008138738572597504,
0.045396074652671814,
-0.008414551615715027,
0.014731116592884064,
-0.03103572316467762,
0.03906594589352608,
-0.0632651224732399,
0.04832601919770241,
-0.027635538950562477,
-0.006058838684111834,
-0.048108987510204315,
0.08869416266679764,
-0.07281457632780075,
-0.02772596850991249,
0.011448492296040058,
-0.018312161788344383,
0.019424455240368843,
0.028105776757001877,
-0.03467102721333504,
-0.019858522340655327,
-0.04597482830286026,
0.022896984592080116,
-0.007257041521370411,
0.014658772386610508,
0.01799565553665161,
-0.014278964139521122,
0.03950000926852226,
0.030999550595879555,
-0.008839573711156845,
-0.057369060814380646,
-0.10837182402610779,
-0.05859891697764397,
0.07646796852350235,
0.0531369186937809,
0.0032441916409879923,
-0.00650646910071373,
-0.0006171876448206604,
-0.05917767062783241,
0.0022754555102437735,
0.04340660572052002,
-0.0006273610633797944,
0.02523008920252323,
-0.015563076362013817,
0.03159639239311218,
0.008410030044615269,
-0.052160270512104034,
0.013067197054624557,
-0.03584662079811096,
0.051075104624032974,
-0.0023003239184617996,
-0.011511793360114098,
0.022462917491793633,
0.01871909759938717,
0.011412319727241993,
0.012895379215478897,
0.008500459603965282,
0.04525138437747955,
-0.022661864757537842,
-0.042429957538843155,
-0.010779307223856449,
-0.02061813697218895,
0.02372894436120987,
0.034924231469631195,
0.0164945088326931,
-0.017462115734815598,
0.07314012944698334,
-0.048977117985486984,
0.04116392880678177,
0.009621797129511833,
0.022679951041936874,
-0.001625486882403493,
-0.00416658166795969,
0.008599933236837387,
-0.029299458488821983,
-0.006578813306987286,
0.049121808260679245,
-0.03313370794057846,
0.009486151859164238,
0.023584255948662758,
-0.02083517052233219,
0.020726652815937996,
-0.011231458745896816,
-0.07697437703609467,
0.012615044601261616,
-0.04318957030773163,
-0.00015203615475911647,
0.0018029565690085292,
-0.04434708133339882,
-0.006104053929448128,
0.026948267593979836,
0.00471594650298357,
0.018384505063295364,
0.01301293820142746,
0.02251717634499073,
0.007591634057462215,
-0.040187280625104904,
0.023421481251716614,
-0.023511910811066628,
0.04376832768321037,
0.03237409144639969,
0.038161639124155045,
-0.054185912013053894,
-0.01396245788782835,
0.010969210416078568,
0.01844780705869198,
-0.02913668379187584,
0.026948267593979836,
0.046481240540742874,
0.008287948556244373,
-0.0283951535820961,
0.02239057421684265,
-0.016575897112488747,
0.03524978086352348,
-0.009468065574765205,
0.05928618833422661,
0.020437275990843773,
0.02901007980108261,
0.013456047512590885,
-0.014658772386610508,
-0.04637272283434868,
0.022878898307681084,
0.011728825978934765,
-0.09151559323072433,
0.05881594866514206,
-0.023475738242268562,
0.041200101375579834,
0.040187280625104904,
0.028340894728899002,
0.04836219176650047,
-0.045468419790267944,
0.04076603800058365,
0.07827657461166382,
0.0028169078286737204,
-0.06995698064565659,
-0.013112411834299564,
-0.031053807586431503,
0.013826812617480755,
0.019044646993279457,
-0.037221163511276245,
0.00789005495607853,
0.0005877977819181979,
0.0006703155231662095,
0.06004580482840538,
0.021540528163313866,
0.017733406275510788,
-0.046625927090644836,
0.0458301417529583,
0.0028779483400285244,
-0.039789386093616486,
-0.003926941193640232,
0.004012850113213062,
-0.031325098127126694,
-0.019243594259023666,
0.03345925733447075,
0.024922626093029976,
0.05653710290789604,
0.06225230544805527,
0.0093685919418931,
0.03568384796380997,
-0.009386678226292133,
-0.017462115734815598,
0.024090666323900223,
0.010092035867273808,
0.0550178699195385,
-0.029643094167113304,
-0.014640686102211475,
-0.0347614549100399,
0.028286637738347054,
0.0123708825558424,
-0.011068684048950672,
-0.049664389342069626,
0.03845101594924927,
-0.04105541482567787,
-0.08652383089065552,
-0.02027450129389763,
0.021721389144659042,
0.010670790448784828,
-0.01605140045285225,
-0.04883243143558502,
-0.022227799519896507,
0.011077727191150188,
-0.026966353878378868,
0.05935853347182274,
-0.0009274770854972303,
-0.020328760147094727,
-0.050134629011154175,
0.001454799436032772,
0.10026925802230835,
0.0540773943066597,
-0.06648445129394531,
0.004313531331717968,
0.0036307815462350845,
0.05281136929988861,
-0.01644025184214115,
0.032627299427986145,
-0.035050831735134125,
-0.04210440814495087,
-0.009992562234401703,
0.016087573021650314,
0.007912661880254745,
0.03521360829472542,
-0.025845015421509743,
-0.005932236090302467,
-0.024759851396083832,
-0.005059582181274891,
0.014930062927305698,
0.02407258003950119,
-0.0049194153398275375,
-0.005733288824558258,
-0.03231983259320259,
0.040331970900297165,
0.014459825120866299,
-0.00943189300596714,
0.035466812551021576,
-0.017416900023818016,
-0.008608976379036903,
-0.022553348913788795,
0.00809804443269968,
0.01219906471669674,
0.05241347476840019,
0.0439491868019104,
-0.03617217019200325,
0.022155454382300377,
-0.01866484060883522,
0.004250229801982641,
-0.07480404525995255,
-0.0014559298288077116,
-0.004964630585163832,
-0.04543224722146988,
0.02298741415143013,
-0.002091203583404422,
0.029733523726463318,
-0.02204693853855133,
0.03459868207573891,
-0.027671709656715393,
-0.03960852697491646,
-0.022263970226049423,
-0.008893832564353943,
0.039789386093616486,
0.05266667902469635,
-0.012786862440407276,
-0.04460028558969498,
-0.016856230795383453,
0.028377067297697067,
0.030981464311480522,
0.0015836628153920174,
0.022951241582632065,
0.02698443830013275,
0.03624451532959938,
0.006411517038941383,
0.014288007281720638,
0.08659617602825165,
0.034327391535043716,
0.060877762734889984,
0.03280815854668617,
0.049917593598365784,
-0.012126720510423183,
0.002742302604019642,
-0.027201471850275993,
-0.0123708825558424,
0.012940593995153904,
0.044853489845991135,
0.03264538571238518,
-0.059937287122011185,
-0.0019012996926903725,
0.00866775680333376,
-0.009449979290366173,
0.05693499743938446,
-0.00007389861275441945,
-0.04340660572052002,
-0.06178206577897072,
0.0007336168200708926,
-0.0676419585943222,
0.060552213340997696,
0.036750923842191696,
-0.01058035995811224,
-0.004064847715198994,
-0.01728125475347042,
0.0009065649937838316,
0.050134629011154175,
-0.00939572136849165,
-0.016503551974892616,
0.014875805005431175,
-0.055126387625932693,
-0.005452954676002264,
0.0001969687727978453,
-0.04705999419093132,
0.04510669782757759,
-0.04051283001899719,
-0.006072402931749821,
0.045540761202573776,
-0.06724406778812408,
-0.02123306319117546,
-0.031216582283377647,
-0.04159799590706825,
0.015129010193049908,
0.018556322902441025,
0.028648359701037407,
-0.06395239382982254,
-0.029118597507476807,
-0.043044883757829666,
0.038306329399347305,
-0.08261723816394806,
-0.005263051018118858,
0.01683814451098442,
-0.0023263227194547653,
-0.028973909094929695,
-0.02211928181350231,
0.021214978769421577,
-0.017190823331475258,
0.01376351062208414,
0.011493707075715065,
-0.0036285207606852055,
-0.020925600081682205,
0.03125275671482086,
-0.021341580897569656,
-0.03743819519877434,
-0.08399178087711334,
0.000742659904062748,
0.03528595343232155,
0.036479633301496506,
0.03689561411738396,
0.039717044681310654,
0.03902977332472801,
0.05823719501495361,
0.010851651430130005,
0.0033662726636976004,
0.029715437442064285,
0.019786177203059196,
0.0338752381503582,
-0.008907397277653217,
0.01679293066263199,
-0.08854947239160538,
-0.027689795941114426,
0.007935269735753536,
0.01642216555774212,
-0.018275989219546318,
-0.07625093311071396,
0.05205175280570984,
0.007899098098278046,
-0.054330598562955856,
0.06022666394710541,
0.02765362523496151,
-0.03743819519877434,
-0.05085807293653488,
-0.02318636141717434,
0.04673444479703903,
-0.02231822907924652,
0.0028643838595598936,
-0.016783887520432472,
0.01927976682782173,
0.04832601919770241,
-0.003241930855438113,
0.004824463278055191,
0.057839300483465195,
-0.017118480056524277,
-0.022354401648044586,
-0.010896866209805012,
-0.019858522340655327,
-0.054728493094444275,
0.003705386770889163,
-0.007645892444998026,
-0.0758892148733139,
-0.06384388357400894,
0.03009524568915367,
0.0888388529419899,
0.005068625323474407,
-0.008265340700745583,
-0.01570776477456093,
0.0018379983957856894,
0.041019242256879807,
-0.032138973474502563,
0.009079215116798878,
-0.0010744264582172036,
-0.01839354820549488,
-0.01842067763209343,
-0.028485585004091263,
0.038306329399347305,
0.012416097335517406,
-0.011520836502313614,
0.02649611420929432,
-0.0028530799318104982,
0.0006946187349967659,
0.0037347765173763037,
-0.017543502151966095,
-0.0011654221452772617,
0.00010413628479000181,
-0.05632007122039795,
0.030927205458283424,
-0.03488805890083313,
-0.004630038049072027,
-0.010761220939457417,
0.03631686046719551,
-0.0224448312073946,
-0.0011032512411475182,
0.016205132007598877,
0.007587112952023745,
0.01477633137255907,
0.0712953507900238,
-0.040404316037893295,
0.019569143652915955,
-0.056428585201501846,
-0.00019484931544866413,
-0.02987821213901043,
-0.037365853786468506,
0.011122941970825195,
-0.02143201045691967,
-0.019514886662364006,
-0.027490848675370216,
-0.0061763981357216835,
0.054800838232040405,
-0.0035900878719985485,
-0.00872653629630804,
-0.008192996494472027,
0.025863101705908775,
-0.10243958979845047,
-0.028720702975988388,
0.013745424337685108,
-0.026948267593979836,
0.007614241912961006,
0.020563878118991852,
-0.021251149475574493,
-0.0055479067377746105,
-0.007980485446751118,
-0.005837284028530121,
-0.013474133796989918,
-0.022896984592080116,
-0.015418387949466705,
0.028883477672934532,
0.013736382126808167,
-0.0011326411040499806,
-0.04076603800058365,
-0.00939572136849165,
0.07371888309717178,
0.007144003640860319,
-0.008794358931481838,
0.02271612361073494,
-0.08051925152540207,
-0.0017328730318695307,
0.04369598254561424,
-0.028829220682382584,
-0.007772495038807392,
0.005751375108957291,
-0.009847873821854591,
0.025392863899469376,
0.03550298511981964,
-0.019569143652915955,
-0.0026970873586833477,
-0.029570749029517174,
0.005498169921338558,
-0.026152478531003,
-0.06937821954488754,
0.02204693853855133,
-0.01698283478617668,
0.020437275990843773,
0.025103487074375153,
0.05360715836286545,
-0.018375461921095848,
0.010670790448784828,
0.030909119173884392,
-0.03472528234124184,
-0.04065752029418945,
0.04767492040991783,
0.007731801364570856,
-0.04036814346909523,
0.03380289301276207,
0.030854862183332443,
0.01491197757422924,
-0.02143201045691967,
-0.02617056481540203,
0.07295926660299301,
0.03468910977244377,
0.01893613114953041,
0.012859206646680832,
-0.029914384707808495,
0.04098306968808174,
0.04633655026555061,
-0.019189337268471718,
-0.04232143983244896,
0.00468429597094655,
-0.02286081202328205,
0.007908140309154987,
0.03175916522741318,
-0.06923353672027588,
0.028919650241732597,
-0.015454559586942196,
-0.02360234037041664,
0.04054900258779526,
-0.020907513797283173,
0.03300710394978523,
-0.005299223121255636,
0.05078572779893875,
-0.10555039346218109,
-0.011439449153840542,
0.03163256123661995,
-0.011466577649116516,
0.021667130291461945,
-0.03732968121767044,
-0.03845101594924927,
0.01679293066263199,
-0.015572119504213333,
-0.010851651430130005,
-0.012054375372827053,
-0.06185441091656685,
-0.05335395038127899,
-0.05592217668890953,
-0.04351511970162392,
-0.005773982498794794,
0.046011000871658325,
0.004666210152208805,
-0.033224139362573624,
0.05024314299225807,
0.017272211611270905,
0.04774726554751396,
0.044310908764600754,
0.012669302523136139,
-0.03689561411738396,
0.05053252354264259,
0.04441942647099495,
0.033911410719156265,
0.0742252916097641,
-0.04590248316526413,
0.012877292931079865,
-0.04286402091383934,
-0.015391258522868156,
-0.05422208458185196,
-0.0155540332198143,
-0.09267310053110123,
-0.018574409186840057,
-0.04192354530096054,
0.04698764905333519,
0.0013892374699935317,
0.010978253558278084,
-0.05834571272134781,
0.02163095772266388,
0.001589314779266715,
-0.057766955345869064,
0.03953618183732033,
-0.03219323232769966,
0.021884163841605186,
0.008197518065571785,
-0.001831216155551374,
0.016702499240636826,
-0.02034684643149376,
0.03291667625308037,
0.03335073962807655,
-0.043298088014125824,
0.04416621848940849,
0.04579396918416023,
0.016060443595051765,
0.0015429691411554813,
-0.004955587442964315,
-0.02669506147503853,
0.06851009279489517,
-0.01913507841527462,
0.01314858440309763,
0.009648926556110382,
-0.003201237181201577,
0.04669827222824097,
-0.007238955702632666,
-0.04792812466621399,
0.03953618183732033,
0.0007319212891161442,
-0.05914149805903435,
0.07914470881223679,
-0.029426060616970062,
-0.01544551644474268,
-0.013808726333081722,
-0.01713656634092331,
0.03326031193137169,
0.044130049645900726,
0.003725733608007431,
0.013890113681554794,
0.020798997953534126,
0.06199910119175911,
-0.041272446513175964,
-0.004431090783327818,
-0.009875002317130566,
-0.028286637738347054,
-0.05158151686191559,
0.09151559323072433,
-0.04246612638235092,
0.02170330286026001,
-0.08572804182767868,
0.03400183841586113,
-0.0003540916368365288,
0.006872712168842554,
-0.014676857739686966,
-0.06384388357400894,
-0.005688073579221964,
-0.03089103288948536,
-0.004175624810159206,
0.01822173036634922,
0.007238955702632666,
0.0007228782051242888,
-0.009151559323072433,
-0.0633736401796341,
0.0034928752575069666,
0.00950423814356327,
-0.06272254139184952,
0.03787226229906082,
0.04941118508577347,
-0.000006230338385648793,
0.0009579973411746323,
-0.0595032200217247,
0.05027931556105614,
-0.08290661126375198,
-0.00956753920763731,
0.005841805599629879,
-0.05035166069865227,
-0.025465207174420357,
0.09636266529560089,
0.027816399931907654,
-0.04246612638235092,
0.033224139362573624,
-0.014613556675612926,
-0.014242792502045631,
-0.0018199123442173004,
0.0037370373029261827,
0.035394467413425446,
-0.027291903272271156,
-0.024723678827285767,
-0.0384148433804512,
-0.010182466357946396,
-0.051255963742733,
0.01413427572697401,
-0.003949549049139023,
-0.00662402855232358,
0.04698764905333519,
-0.026821663603186607,
0.006859147921204567,
0.01402575895190239,
-0.011412319727241993,
-0.014016715809702873,
-0.0060950107872486115,
-0.038921255618333817,
-0.0504240058362484,
-0.08522163331508636,
0.03150596097111702,
0.03642537444829941,
-0.004702382255345583,
-0.030438881367444992,
0.01639503613114357,
-0.001009994768537581,
-0.007302256766706705,
-0.04781961068511009,
-0.016178002581000328,
0.01433322299271822,
0.05686265230178833,
-0.03148787468671799,
0.047566402703523636,
0.003847814630717039,
0.00838290061801672,
-0.06789516657590866,
0.0926007553935051,
0.0657610073685646,
0.0192616805434227,
0.001967992167919874,
0.04915798082947731,
0.019315939396619797,
-0.016042357310652733,
0.009296247735619545,
0.03307944908738136,
0.03682326897978783,
-0.018899958580732346,
0.05049635097384453,
-0.021540528163313866,
0.03313370794057846
] |
725,436 | lotkavolterra_simulator.simulator | simulate_obs | Simulate the observational process, assuming additive noise, i.e.
data = signal + noise.
Parameters
----------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
model : int, optional, default=0
0= correct data model; 1=misspecified data model
obsR : double
strength of demographic noise
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
| def simulate_obs(self, Xsignal, Ysignal, **metaparams):
"""Simulate the observational process, assuming additive noise, i.e.
data = signal + noise.
Parameters
----------
Xsignal : array, double, dimension=n
unobserved signal for the number of preys
Ysignal : array, double, dimension=n
unobserved signal for the number of predators
model : int, optional, default=0
0= correct data model; 1=misspecified data model
obsR : double
strength of demographic noise
obsS : double
overall strength of observational noise
obsT : double
strength of non-diagonal term in observational noise
"""
import numpy as np
import scipy.stats as ss
tmax=self.tmax
# draw demographic noise
XDnoise, YDnoise = self.make_demographic_noise(**metaparams)
# observational noise
XOnoise, YOnoise = np.zeros_like(XDnoise), np.zeros_like(YDnoise)
if not "model" in metaparams or metaparams["model"] == 0:
# correct data model: draw observational noise
XOnoise, YOnoise = self.make_observational_noise(Xsignal, Ysignal, **metaparams)
elif "model" == 1:
# misspecified data model : only consider demographic noise
pass
# data = signal+noise
self.Xdata = Xsignal+XDnoise+XOnoise
self.Ydata = Ysignal+YDnoise+YOnoise
self.Xobs = np.arange(tmax)
self.Yobs = np.arange(tmax)
return Xsignal, XDnoise, XOnoise, self.Xdata, Ysignal, YDnoise, YOnoise, self.Ydata
| (self, Xsignal, Ysignal, **metaparams) | [
0.035291027277708054,
-0.013236476108431816,
0.01765487529337406,
0.00821429118514061,
0.05032481998205185,
-0.03502891957759857,
-0.10431915521621704,
-0.007222023326903582,
0.0415254645049572,
0.06706231832504272,
-0.05084903538227081,
0.05901184305548668,
0.02063167840242386,
0.04317300394177437,
-0.0650777816772461,
0.027165668085217476,
0.05189746990799904,
0.03343754634261131,
-0.0344485379755497,
-0.05084903538227081,
0.011120886541903019,
0.03886693716049194,
-0.04470821097493172,
0.02963697537779808,
-0.011064720340073109,
0.008312582038342953,
-0.06586410850286484,
-0.040888916701078415,
-0.011523410677909851,
-0.0386422723531723,
0.0030423300340771675,
-0.06354257464408875,
0.04126335680484772,
-0.030142471194267273,
0.04006514698266983,
-0.033849433064460754,
0.032239336520433426,
0.0687098577618599,
-0.08881731331348419,
0.0003715153143275529,
-0.000265326292719692,
-0.09226217120885849,
0.07720965892076492,
0.03171512112021446,
-0.04886450245976448,
-0.0032669943757355213,
-0.009024019353091717,
0.10806356370449066,
0.023346373811364174,
-0.024975189939141273,
0.01726171188056469,
-0.005803829524666071,
0.009941398166120052,
-0.025686627253890038,
0.005494916345924139,
0.05433133617043495,
0.02096867561340332,
0.05021248757839203,
0.061670370399951935,
0.0026047024875879288,
-0.012534399516880512,
0.02600490115582943,
0.02246643789112568,
-0.003016587346792221,
0.018385034054517746,
0.005237488076090813,
-0.02785838209092617,
0.010025647468864918,
0.0326324999332428,
0.002630445407703519,
0.04931383207440376,
-0.018328867852687836,
-0.0025719390250742435,
0.05953605845570564,
0.04163779690861702,
-0.02591129206120968,
-0.06440378725528717,
-0.058150630444288254,
0.019105833023786545,
-0.02433864027261734,
-0.00045868975576013327,
0.013283281587064266,
-0.023065542802214622,
0.006122104357928038,
-0.035628024488687515,
-0.02280343323945999,
-0.01937730237841606,
-0.018993500620126724,
0.03785594552755356,
-0.011897850781679153,
-0.016288166865706444,
0.04317300394177437,
0.009847788140177727,
0.011083442717790604,
-0.0032552932389080524,
0.0263044536113739,
-0.03323160484433174,
-0.014135133475065231,
0.05863740295171738,
-0.006674404256045818,
-0.014322353526949883,
0.011551492847502232,
-0.047890957444906235,
0.07447624206542969,
-0.023009376600384712,
0.032258059829473495,
-0.025256020948290825,
0.05575421079993248,
-0.004029917065054178,
-0.009492069482803345,
-0.04560686647891998,
0.07544978708028793,
-0.042499009519815445,
-0.056390758603811264,
-0.002670229645445943,
-0.07084416598081589,
0.01672813482582569,
0.07548722624778748,
-0.02783966064453125,
-0.02443225122988224,
-0.04976315796375275,
0.021193338558077812,
-0.059798166155815125,
0.028588540852069855,
0.037369173020124435,
-0.0310972947627306,
0.049650825560092926,
-0.03280099853873253,
-0.015604812651872635,
-0.025405796244740486,
-0.08125361800193787,
-0.02231666073203087,
0.08791866153478622,
0.04815306514501572,
-0.017327239736914635,
0.007994307205080986,
-0.00653866957873106,
-0.035796523094177246,
0.02585512585937977,
0.00610806280747056,
0.023065542802214622,
0.018253980204463005,
-0.01890925131738186,
0.023964200168848038,
0.015342704951763153,
0.030928796157240868,
0.028888093307614326,
-0.019583243876695633,
0.05403178185224533,
-0.010587308555841446,
-0.028195379301905632,
0.01475296076387167,
-0.008836798369884491,
0.007596464361995459,
-0.015642257407307625,
-0.02598617970943451,
0.022054553031921387,
-0.007086288649588823,
-0.04463332146406174,
-0.007530936971306801,
-0.05069926008582115,
-0.007530936971306801,
0.0591241754591465,
-0.015258455649018288,
-0.009155073203146458,
0.0698331743478775,
-0.03171512112021446,
0.051186032593250275,
0.04976315796375275,
-0.02057551220059395,
-0.029655696824193,
-0.007207982242107391,
0.009613762609660625,
-0.04051447659730911,
-0.01563289575278759,
0.061670370399951935,
-0.05433133617043495,
-0.0034822977613657713,
-0.024937745183706284,
-0.010746445506811142,
0.031958505511283875,
-0.00973545666784048,
-0.08814332634210587,
-0.0039456682279706,
-0.04399677366018295,
0.025499407202005386,
0.03130323439836502,
-0.0652649998664856,
-0.010606030933558941,
0.017233630642294884,
0.011617020703852177,
0.04687996581196785,
0.004111825954169035,
0.020144905894994736,
0.04395933076739311,
0.007376480381935835,
0.03139684721827507,
-0.027521386742591858,
0.044371213763952255,
0.017364684492349625,
0.035983745008707047,
-0.020013852044939995,
-0.031995952129364014,
-0.006622918415814638,
0.013517306186258793,
-0.02413269877433777,
-0.02109972946345806,
0.02269110269844532,
-0.042611341923475266,
-0.010016286745667458,
0.03130323439836502,
-0.035347193479537964,
0.05361989885568619,
-0.00519068306311965,
0.08222716301679611,
0.0522344671189785,
0.025068799033761024,
0.028831928968429565,
-0.009819705039262772,
-0.054743219166994095,
-0.0038660995196551085,
-0.021286949515342712,
-0.06047216057777405,
0.027296721935272217,
0.04321044683456421,
0.026622727513313293,
0.0364517942070961,
0.001975174294784665,
0.014069606550037861,
-0.03182745352387428,
0.03358732536435127,
0.056278426200151443,
-0.010184785351157188,
-0.06972084194421768,
0.009169114753603935,
-0.022129440680146217,
0.028663430362939835,
-0.01933985762298107,
-0.011504688300192356,
-0.00944526493549347,
-0.06286858022212982,
-0.002962761325761676,
0.030442023649811745,
-0.01896541751921177,
0.012085070833563805,
0.016980882734060287,
0.03188361972570419,
0.02615467831492424,
-0.04463332146406174,
-0.015436314977705479,
0.03987792506814003,
0.01125194039195776,
0.005958286579698324,
0.029037870466709137,
0.02628573216497898,
-0.005040906835347414,
0.06683765351772308,
0.00946398638188839,
0.018768835812807083,
-0.02950592152774334,
-0.02403908781707287,
-0.00939845945686102,
-0.04886450245976448,
0.060284942388534546,
-0.04807817563414574,
0.0018043357413262129,
-0.02986164018511772,
0.03364349156618118,
0.0009700352675281465,
0.015005707740783691,
0.030198635533452034,
0.039166487753391266,
-0.06421656906604767,
-0.09548235684633255,
0.03677006810903549,
0.05669030919671059,
0.0263044536113739,
-0.05215957760810852,
-0.021511614322662354,
0.0072173429653048515,
-0.012028904631733894,
-0.023645926266908646,
0.05560443177819252,
0.008321942761540413,
-0.025330908596515656,
-0.03126579150557518,
-0.0131990322843194,
0.035740356892347336,
0.04197479411959648,
-0.05433133617043495,
0.008710425347089767,
0.037537671625614166,
0.05717708170413971,
0.01137363351881504,
-0.0006921300664544106,
0.002107398584485054,
-0.052983347326517105,
0.008265776559710503,
-0.006332727149128914,
0.0011619360884651542,
0.04388444125652313,
0.03308182954788208,
-0.02789582684636116,
-0.008953811600804329,
0.012927562929689884,
-0.008874243125319481,
0.03530975058674812,
-0.025555573403835297,
0.003131259698420763,
-0.03703217953443527,
0.0031453012488782406,
0.035609304904937744,
0.035777803510427475,
0.035628024488687515,
-0.0008746698731556535,
0.00388950202614069,
-0.019658133387565613,
0.015155483968555927,
0.030685409903526306,
0.07780876010656357,
0.016962159425020218,
-0.03160278871655464,
0.014659350737929344,
-0.013404974713921547,
0.04365977644920349,
-0.0015539285959675908,
-0.013479862362146378,
0.008022390305995941,
-0.06635087728500366,
0.025593016296625137,
-0.0167843010276556,
-0.030310967937111855,
-0.05238424241542816,
0.044258881360292435,
0.01488401461392641,
-0.04541964828968048,
-0.02778349444270134,
-0.03471064567565918,
0.053282901644706726,
0.033718377351760864,
-0.030442023649811745,
-0.047703735530376434,
-0.04650552570819855,
0.02976802922785282,
0.0489768348634243,
-0.06122104078531265,
0.07593655586242676,
-0.004287345334887505,
0.015192928723990917,
0.049650825560092926,
0.018637781962752342,
0.14700539410114288,
0.05635331571102142,
0.06668787449598312,
0.061595480889081955,
0.090315081179142,
-0.044221438467502594,
0.056465644389390945,
0.008804035373032093,
-0.026604006066918373,
-0.06316813081502914,
0.030891351401805878,
0.03946604207158089,
-0.01378877554088831,
-0.012337818741798401,
-0.007881974801421165,
-0.020219793543219566,
0.05848762392997742,
-0.0018242278601974249,
-0.04815306514501572,
-0.08619622886180878,
-0.015361426398158073,
-0.047666292637586594,
0.02963697537779808,
0.03343754634261131,
0.002515773056074977,
-0.0022010088432580233,
-0.0585625134408474,
0.051597919315099716,
-0.008237693458795547,
0.00324359186924994,
-0.016980882734060287,
0.0310972947627306,
-0.004242880269885063,
0.03353115916252136,
0.02787710539996624,
0.013311363756656647,
0.037387896329164505,
-0.03628329560160637,
-0.05796340852975845,
0.025724070146679878,
-0.035422082990407944,
-0.0038403565995395184,
0.02622956596314907,
-0.03602118790149689,
-0.019583243876695633,
0.021436726674437523,
0.03285716474056244,
-0.08657067269086838,
-0.0017481696559116244,
-0.026472952216863632,
0.00518132233992219,
-0.06867241114377975,
0.025798959657549858,
-0.018843725323677063,
-0.04365977644920349,
-0.023739535361528397,
-0.05043715238571167,
0.010231589898467064,
0.014518935233354568,
-0.02094995230436325,
0.02083761990070343,
0.0038380164187401533,
-0.05006271228194237,
0.04204968363046646,
0.006243797484785318,
-0.03821166604757309,
-0.010091174393892288,
0.03856738284230232,
0.04160035401582718,
0.03946604207158089,
0.007807087153196335,
0.02094995230436325,
0.06399190425872803,
0.04863983765244484,
0.013695165514945984,
-0.006585474591702223,
-0.011748074553906918,
-0.02615467831492424,
0.003561866469681263,
0.0037373853847384453,
0.011205135844647884,
-0.09712989628314972,
-0.04122591391205788,
0.04178757220506668,
-0.03965326398611069,
-0.006894387770444155,
-0.08672045171260834,
0.005532360170036554,
0.027203110978007317,
-0.046093642711639404,
0.053020793944597244,
0.02293448895215988,
0.0156890619546175,
-0.037238121032714844,
-0.01919008232653141,
0.07548722624778748,
-0.02611723355948925,
0.0008366407710127532,
-0.0009600891498848796,
0.04976315796375275,
0.035796523094177246,
0.027446497231721878,
-0.004060340579599142,
0.03504764288663864,
-0.02270982414484024,
0.04395933076739311,
-0.015642257407307625,
-0.05500532686710358,
-0.039353709667921066,
-0.02256004698574543,
0.008378108963370323,
-0.053058236837387085,
-0.03783722594380379,
0.026510396972298622,
0.07380224764347076,
0.01763615384697914,
-0.010465615428984165,
-0.004661785904318094,
0.017701679840683937,
0.005700858309864998,
-0.018104204908013344,
0.028981704264879227,
-0.015829477459192276,
-0.022185606881976128,
-0.05732686072587967,
-0.0418999046087265,
0.040739141404628754,
0.015539285726845264,
-0.042424123734235764,
0.0005695592844858766,
-0.037088342010974884,
-0.003702281741425395,
0.021212061867117882,
-0.021848609670996666,
0.03939115256071091,
0.028869371861219406,
-0.05785107612609863,
0.0276524405926466,
-0.03684495761990547,
0.001386600430123508,
-0.007605825085192919,
-0.0032599736005067825,
-0.01377941481769085,
-0.06533988565206528,
0.03456087037920952,
0.00259300135076046,
0.007807087153196335,
0.04493287578225136,
-0.05051204189658165,
0.005827232263982296,
-0.014144494198262691,
-0.02787710539996624,
-0.03334393724799156,
-0.020257238298654556,
0.024937745183706284,
-0.054930441081523895,
-0.03508508577942848,
-0.05560443177819252,
-0.016157113015651703,
0.016793662682175636,
-0.0018382694106549025,
-0.01911519467830658,
-0.030030138790607452,
0.039203934371471405,
-0.06627599149942398,
0.005742982961237431,
0.030030138790607452,
-0.01728043518960476,
-0.009047421626746655,
0.018478645011782646,
-0.02424503117799759,
-0.0138262202963233,
0.02986164018511772,
-0.010465615428984165,
0.021829888224601746,
-0.05773874372243881,
0.020275959745049477,
0.0554920993745327,
0.03152789920568466,
-0.009716734290122986,
-0.0208563432097435,
-0.023608481511473656,
0.09495814144611359,
0.03107857145369053,
-0.04875217005610466,
0.023589760065078735,
-0.09727967530488968,
0.013601555489003658,
0.0045962585136294365,
-0.025106243789196014,
-0.022091995924711227,
0.0155486473813653,
-0.01852544955909252,
0.004128207918256521,
0.02261621318757534,
0.005143878050148487,
0.032089561223983765,
-0.05324545502662659,
0.008116000331938267,
-0.017832735553383827,
-0.061445705592632294,
0.017907623201608658,
0.002768520265817642,
0.042798563838005066,
0.0033255007583647966,
-0.016138391569256783,
-0.007207982242107391,
-0.014069606550037861,
0.04201223701238632,
-0.03165895491838455,
-0.019639410078525543,
0.0388294942677021,
-0.02282215654850006,
-0.03336266055703163,
0.060284942388534546,
0.010746445506811142,
-0.00604721624404192,
-0.021324394270777702,
-0.002848088974133134,
0.026978446170687675,
0.014069606550037861,
-0.008457677438855171,
0.006646321155130863,
-0.05361989885568619,
0.049351274967193604,
0.03120962530374527,
0.004118846729397774,
-0.025761514902114868,
0.0025391755625605583,
-0.004643063526600599,
0.013545389287173748,
0.011382995173335075,
-0.06683765351772308,
0.015258455649018288,
-0.051260922104120255,
-0.07398946583271027,
0.006065938156098127,
0.023458704352378845,
0.004488606937229633,
-0.012422068044543266,
0.045906420797109604,
-0.07705987989902496,
-0.02100611850619316,
-0.017851456999778748,
0.00924400333315134,
-0.006552711129188538,
-0.02407653257250786,
-0.018974779173731804,
0.0010121598606929183,
-0.010606030933558941,
0.014575101435184479,
0.025031356140971184,
-0.03984048217535019,
0.004933255258947611,
-0.03188361972570419,
-0.056465644389390945,
-0.02072528935968876,
0.01384494174271822,
-0.012262930162250996,
-0.025368351489305496,
0.02935614436864853,
0.01752382144331932,
0.010886861011385918,
0.02417014166712761,
0.007264147978276014,
-0.027409054338932037,
0.00561660947278142,
0.07380224764347076,
-0.019826631993055344,
0.06316813081502914,
-0.058337848633527756,
-0.016325611621141434,
-0.025162409991025925,
-0.03354987874627113,
-0.047666292637586594,
0.02263493649661541,
-0.06459100544452667,
0.001909647136926651,
-0.04122591391205788,
0.019601967185735703,
-0.021249504759907722,
0.02428247407078743,
-0.07140582799911499,
0.01943346858024597,
0.026529118418693542,
-0.04358488693833351,
0.04710463061928749,
-0.012880757451057434,
0.021286949515342712,
0.035927578806877136,
0.004439461510628462,
-0.02093123085796833,
-0.007498173508793116,
-0.02418886497616768,
0.02768988348543644,
-0.04556942358613014,
0.05358245223760605,
0.03699473291635513,
0.021399281919002533,
-0.017608070746064186,
-0.021848609670996666,
-0.03253889083862305,
0.033980485051870346,
0.01223484706133604,
-0.03965326398611069,
0.009220600128173828,
-0.002508752280846238,
0.05024993047118187,
-0.007357758469879627,
-0.030516911298036575,
0.025218576192855835,
0.028251545503735542,
-0.04717952013015747,
0.06515266746282578,
-0.02598617970943451,
-0.013442418538033962,
-0.018235258758068085,
-0.0008717445889487863,
0.005274932365864515,
0.06279369443655014,
-0.001942410715855658,
0.004497968126088381,
0.02254132553935051,
0.05590398609638214,
-0.0275588296353817,
0.003065732540562749,
-0.003339542308822274,
-0.03158406540751457,
-0.013919830322265625,
0.09480836242437363,
-0.027277998626232147,
0.025012632831931114,
-0.1270851492881775,
0.021399281919002533,
-0.027221834287047386,
0.037425339221954346,
-0.02415142022073269,
-0.060060277581214905,
-0.02604234591126442,
-0.04062680900096893,
0.003498679492622614,
0.03806189075112343,
0.02231666073203087,
-0.0027802216354757547,
-0.03765000402927399,
-0.029075315222144127,
0.013367529958486557,
-0.004533072002232075,
-0.044258881360292435,
0.02452586032450199,
0.04706718772649765,
0.012599927373230457,
0.04014003649353981,
-0.024001644924283028,
0.04886450245976448,
-0.05908672884106636,
0.004919213708490133,
0.011401716619729996,
-0.04122591391205788,
-0.015071235597133636,
0.06998295336961746,
0.013610917143523693,
-0.012599927373230457,
0.008443635888397694,
-0.008729146793484688,
0.013592194765806198,
0.037200674414634705,
-0.02808304689824581,
0.02581768110394478,
-0.01889052987098694,
-0.016587719321250916,
-0.021249504759907722,
-0.00038204644806683064,
-0.05792596563696861,
-0.013994717970490456,
-0.02602362260222435,
-0.0047975205816328526,
0.04006514698266983,
-0.004048639442771673,
-0.01922752521932125,
0.025424517691135406,
0.027296721935272217,
0.009211239404976368,
-0.021249504759907722,
-0.029168924316763878,
-0.04055191949009895,
-0.05039970949292183,
0.012665454298257828,
0.03772489354014397,
-0.04890194535255432,
-0.025274742394685745,
0.03611479699611664,
-0.004776458255946636,
-0.01835695095360279,
-0.004909852519631386,
0.016026059165596962,
0.01555800810456276,
0.03791211172938347,
-0.007708796299993992,
0.05343267694115639,
-0.0353846400976181,
0.012721620500087738,
-0.029168924316763878,
0.05051204189658165,
0.0335686020553112,
-0.005869356915354729,
-0.00833598431199789,
0.02250388078391552,
-0.011963377706706524,
-0.023234041407704353,
-0.004942616447806358,
0.05500532686710358,
0.04706718772649765,
-0.000533285376150161,
0.051597919315099716,
-0.032164450734853745,
0.020369570702314377
] |
725,437 | lotkavolterra_simulator.simulator | threshold | Threshold the data, excluding negative measurements
and measurements above a detection maximum.
Parameters
----------
threshold : double
maximum number of individuals (preys or predators) that can be observed
| def threshold(self, **metaparams):
"""Threshold the data, excluding negative measurements
and measurements above a detection maximum.
Parameters
----------
threshold : double
maximum number of individuals (preys or predators) that can be observed
"""
import numpy as np
if not "model" in metaparams or metaparams["model"] == 0:
# correct data model: threshold data
threshold=metaparams["threshold"]
self.Xdata[np.where(self.Xdata>threshold)]=threshold
self.Ydata[np.where(self.Ydata>threshold)]=threshold
self.Xdata[np.where(self.Xdata<0)]=0
self.Ydata[np.where(self.Ydata<0)]=0
elif "model" == 1:
# misspecified data model : do not threshold data
pass
| (self, **metaparams) | [
0.06576302647590637,
-0.004439095966517925,
0.03681919723749161,
0.051447514444589615,
-0.005556920543313026,
-0.01128864474594593,
-0.01635795459151268,
-0.023791715502738953,
-0.022282883524894714,
0.03082066774368286,
-0.040922485291957855,
-0.0077189672738313675,
0.007590164430439472,
-0.064695805311203,
-0.0488346591591835,
-0.0016606359276920557,
-0.008477983996272087,
0.0023966520093381405,
0.049865081906318665,
0.00012398706167005002,
0.027655798941850662,
-0.00006156227027531713,
-0.03989206627011299,
0.0013696796959266067,
0.018041590228676796,
0.024306926876306534,
-0.045485787093639374,
-0.02237488515675068,
0.027821402996778488,
0.01277907658368349,
-0.1096663773059845,
-0.02574215829372406,
0.03380153328180313,
-0.026735778898000717,
0.016376355662941933,
-0.030103052034974098,
0.03759201616048813,
0.02511654421687126,
-0.08589306473731995,
0.003765181638300419,
-0.019062813371419907,
-0.0722767636179924,
-0.01818879321217537,
0.06929589807987213,
-0.037132006138563156,
-0.007065752986818552,
-0.012898679822683334,
0.01255827210843563,
0.07194555550813675,
-0.028520617634058,
-0.03012145310640335,
-0.017599981278181076,
0.04651620611548424,
0.03126227855682373,
-0.04268892481923103,
0.0494602732360363,
0.017296375706791878,
0.04489697143435478,
-0.0023311004042625427,
-0.010451426729559898,
0.037757616490125656,
0.04272572696208954,
0.06421738862991333,
-0.04452896490693092,
0.0019021412590518594,
0.01346909161657095,
-0.054869990795850754,
0.06311336904764175,
-0.011389846913516521,
0.047767434269189835,
-0.05177872255444527,
-0.04552258551120758,
0.034776754677295685,
0.07301278412342072,
0.04335134103894234,
-0.036046382039785385,
-0.0545019805431366,
0.0016157850623130798,
-0.0014421312371268868,
0.035991180688142776,
0.031593482941389084,
-0.019946033135056496,
0.03974486142396927,
0.020571645349264145,
-0.034463945776224136,
-0.038015224039554596,
-0.011573851108551025,
0.010037417523562908,
0.06620463728904724,
-0.022430086508393288,
-0.04305693134665489,
0.09472525119781494,
0.03812562674283981,
0.037316009402275085,
0.061788540333509445,
0.05910208076238632,
-0.04905546456575394,
0.05840286612510681,
0.016330353915691376,
0.0171123705804348,
0.015336732380092144,
0.030599862337112427,
0.04386654868721962,
-0.01362549513578415,
0.0025070542469620705,
-0.03405913710594177,
-0.015180328860878944,
0.0003248820430599153,
0.003155668266117573,
0.024122923612594604,
-0.0761040523648262,
-0.032108694314956665,
-0.05159471929073334,
0.017075570300221443,
-0.024803737178444862,
-0.04684741422533989,
0.016514357179403305,
0.005612121429294348,
-0.04382975026965141,
-0.014913523569703102,
0.006352737545967102,
-0.010377825237810612,
0.0009217449696734548,
-0.0139475017786026,
0.009908614680171013,
-0.03056306205689907,
0.08074095100164413,
0.0180783923715353,
-0.004949707072228193,
-0.06837587803602219,
-0.05218353122472763,
-0.038199227303266525,
0.02795020490884781,
-0.005970929283648729,
-0.03538396582007408,
-0.10466146469116211,
0.01420510746538639,
-0.017139971256256104,
0.030066251754760742,
-0.02809740975499153,
-0.0071301544085145,
0.0155299361795187,
-0.029183031991124153,
-0.00008589248318457976,
0.013211485929787159,
-0.028244612738490105,
-0.0012224764795973897,
-0.010939037427306175,
0.017535580322146416,
-0.007590164430439472,
-0.03012145310640335,
-0.00292566348798573,
-0.02333170548081398,
-0.07496322691440582,
0.024546131491661072,
0.012125862762331963,
0.012788277119398117,
-0.03878803923726082,
-0.02885182574391365,
-0.031427882611751556,
-0.017958790063858032,
-0.016017546877264977,
-0.0114082470536232,
0.009476205334067345,
0.007061153184622526,
0.014619116671383381,
-0.04452896490693092,
0.046700213104486465,
-0.0038295830599963665,
0.07073113322257996,
0.025410950183868408,
-0.010745832696557045,
-0.032734308391809464,
0.025392550975084305,
0.0024104523472487926,
0.03196149319410324,
0.0053637162782251835,
0.009075996465981007,
0.030195053666830063,
0.04497057572007179,
0.04762023314833641,
0.039082445204257965,
-0.014389111660420895,
-0.008068574592471123,
0.0003056191198993474,
-0.04905546456575394,
0.03277111053466797,
-0.015226329676806927,
-0.07558883726596832,
0.03967126086354256,
0.01616474986076355,
-0.05078510195016861,
0.05612121522426605,
0.010322623886168003,
0.03304711729288101,
-0.008275579661130905,
0.02841021493077278,
-0.0016974367899820209,
0.04791463911533356,
0.041437696665525436,
0.010258221998810768,
-0.10318943858146667,
0.017599981278181076,
-0.033433523029088974,
-0.0030475659295916557,
-0.004719702061265707,
0.0019584924448281527,
0.03963445872068405,
-0.044344961643218994,
-0.032973513007164,
0.00805477425456047,
-0.01578754186630249,
0.00010256785026285797,
0.04721542447805405,
0.061346929520368576,
-0.005685723386704922,
0.04379294812679291,
-0.011675053276121616,
-0.04570658877491951,
-0.012815877795219421,
-0.008362981490790844,
-0.008261779323220253,
-0.06543181836605072,
0.03150148317217827,
0.025723757222294807,
0.03519996255636215,
0.05177872255444527,
-0.0030383658595383167,
0.06395978480577469,
0.009407203644514084,
0.06009570136666298,
0.0114082470536232,
-0.024380527436733246,
-0.052772343158721924,
-0.03637758642435074,
-0.025815758854150772,
0.03203509375452995,
-0.0030383658595383167,
-0.03790482133626938,
-0.022227682173252106,
0.05729884281754494,
-0.0022885496728122234,
0.015143528580665588,
0.06167813763022423,
0.025466151535511017,
-0.06311336904764175,
0.010663030669093132,
-0.038015224039554596,
0.007010552100837231,
0.013441490940749645,
-0.013239086605608463,
-0.04279932752251625,
-0.03398553654551506,
0.018740806728601456,
0.022908495739102364,
-0.041805706918239594,
0.01293548010289669,
-0.01334948930889368,
0.01277907658368349,
-0.012475470080971718,
-0.016440756618976593,
0.009816613048315048,
0.015631139278411865,
0.029716644436120987,
-0.03593597933650017,
0.02859422005712986,
-0.0006946150679141283,
-0.003052166197448969,
-0.0036547791678458452,
0.015005525201559067,
-0.06270855665206909,
0.0006336637306958437,
-0.00814217608422041,
-0.053287554532289505,
-0.011261044070124626,
0.056268420070409775,
0.007452161516994238,
-0.07338079065084457,
0.003270670771598816,
0.018621204420924187,
0.02763739973306656,
-0.054943591356277466,
0.005929528269916773,
-0.01630275323987007,
-0.030967870727181435,
-0.02325810305774212,
-0.02688298188149929,
0.018335998058319092,
0.00960500817745924,
-0.036745596677064896,
-0.05015948787331581,
0.01362549513578415,
0.006237735040485859,
-0.017296375706791878,
0.018860409036278725,
-0.057924456894397736,
0.0015697840135544538,
-0.026459774002432823,
0.0253557488322258,
-0.038972046226263046,
0.058108460158109665,
-0.07028952240943909,
-0.00495890760794282,
-0.016256751492619514,
-0.03258710727095604,
0.0294774379581213,
0.0016859365860000253,
-0.005911128129810095,
-0.020829251036047935,
-0.05122670903801918,
0.04335134103894234,
0.03396713733673096,
0.01239266898483038,
-0.023865317925810814,
-0.029403837397694588,
0.021528465673327446,
0.06373897939920425,
0.016689160838723183,
-0.009770611301064491,
0.04684741422533989,
0.02099485509097576,
-0.04382975026965141,
-0.013064282946288586,
-0.027674200013279915,
0.04824584722518921,
-0.024582931771874428,
0.06638863682746887,
-0.045301780104637146,
-0.03387513384222984,
0.03126227855682373,
-0.004452896304428577,
0.05439157783985138,
0.03860403597354889,
-0.016909966245293617,
-0.024766936898231506,
0.00532691553235054,
-0.027655798941850662,
-0.0023805515374988317,
-0.004935906734317541,
0.064695805311203,
-0.046000998467206955,
-0.029256634414196014,
0.006145732942968607,
0.0373896099627018,
0.07242397218942642,
-0.012033861130475998,
0.012999881990253925,
-0.0008107675821520388,
0.01844639889895916,
0.053250752389431,
-0.007410760503262281,
0.08545145392417908,
0.01008341833949089,
0.06112612411379814,
0.05439157783985138,
-0.03352552652359009,
0.03183269128203392,
0.00045972247608006,
-0.0034040736500173807,
-0.003631778759881854,
0.04699461907148361,
0.0237733144313097,
-0.019559623673558235,
-0.011113841086626053,
0.006642543710768223,
0.006026130635291338,
0.011803856119513512,
0.04728902503848076,
-0.02047964371740818,
-0.016514357179403305,
-0.034206341952085495,
-0.02726939134299755,
-0.05637882277369499,
0.016127949580550194,
0.04044407606124878,
-0.014665117487311363,
-0.04493377357721329,
0.00543731776997447,
-0.014333910308778286,
0.0799313336610794,
-0.013239086605608463,
-0.008358380757272243,
-0.013045882806181908,
-0.03284471109509468,
0.026386171579360962,
0.0026151565834879875,
-0.03531036525964737,
-0.030268656089901924,
0.03645119071006775,
-0.004857705440372229,
0.07212956249713898,
-0.04603779688477516,
-0.06042690947651863,
-0.0186948049813509,
0.025631755590438843,
0.01705716922879219,
0.013487492688000202,
0.012549071572721004,
-0.0024840538389980793,
-0.023423707112669945,
-0.058034855872392654,
-0.01493192370980978,
-0.061494130641222,
-0.0027669600676745176,
-0.04044407606124878,
0.0028359615243971348,
-0.013938302174210548,
-0.0028313612565398216,
-0.018032390624284744,
0.03245830163359642,
0.0051705120131373405,
0.04202651232481003,
0.03554956987500191,
-0.0008688438101671636,
0.031611885875463486,
0.0012420269194990396,
0.02942223846912384,
0.013441490940749645,
-0.027729401364922523,
-0.01118744257837534,
0.0564156211912632,
-0.0013328788336366415,
-0.00506930984556675,
-0.024490930140018463,
0.00044505964615382254,
-0.012475470080971718,
-0.058108460158109665,
-0.039340052753686905,
-0.035034358501434326,
0.01621995121240616,
-0.035218361765146255,
-0.027342991903424263,
-0.06760306656360626,
-0.029974250122904778,
-0.0026910582091659307,
0.046369004994630814,
-0.039597656577825546,
-0.024950940161943436,
0.024582931771874428,
0.009020795114338398,
0.013892301358282566,
0.011564650572836399,
0.05045389384031296,
-0.005676522850990295,
-0.040407273918390274,
-0.06922230124473572,
-0.01366229634732008,
-0.039708059281110764,
-0.029201433062553406,
-0.016762763261795044,
-0.005147511605173349,
0.014545515179634094,
0.05218353122472763,
0.03043426014482975,
0.03582557663321495,
0.007484361995011568,
-0.04861385375261307,
-0.033764731138944626,
0.06300296634435654,
-0.004793304018676281,
0.016974367201328278,
0.02587096020579338,
-0.09501966089010239,
-0.017195172607898712,
0.015805942937731743,
0.053287554532289505,
-0.014757120050489902,
-0.0031188675202429295,
0.009356603026390076,
-0.012466270476579666,
0.024251725524663925,
-0.056967634707689285,
0.0075165629386901855,
0.0030728664714843035,
-0.016146350651979446,
0.05295634642243385,
-0.012383468449115753,
0.015612738206982613,
0.03643278777599335,
0.013938302174210548,
0.02473013661801815,
-0.027858203276991844,
0.031979892402887344,
-0.005336115602403879,
-0.011399047449231148,
0.008914993144571781,
-0.06473260372877121,
-0.05693083256483078,
-0.034647949039936066,
-0.03251350298523903,
-0.015483935363590717,
0.011123040691018105,
0.05464918538928032,
0.027030184864997864,
0.008105375804007053,
0.04217371344566345,
0.038640838116407394,
0.02099485509097576,
0.07301278412342072,
-0.0007503912784159184,
-0.020019633695483208,
-0.012981480918824673,
-0.06035330891609192,
-0.07378559559583664,
-0.0056811231188476086,
0.02739819325506687,
0.017195172607898712,
0.005119910929352045,
-0.01242026872932911,
0.0545387826859951,
0.03284471109509468,
-0.03823602944612503,
-0.04198971018195152,
0.08309619873762131,
0.016532758250832558,
-0.0386776365339756,
-0.013542693108320236,
0.008974794298410416,
-0.0013294287491589785,
0.011196642182767391,
-0.007452161516994238,
0.005533920135349035,
-0.009798211976885796,
-0.09833172708749771,
0.027618998661637306,
0.011647452600300312,
-0.02966144308447838,
-0.06289256364107132,
0.03704000264406204,
0.04357214272022247,
0.027821402996778488,
-0.042836129665374756,
0.0167995635420084,
0.058807674795389175,
0.01293548010289669,
0.006771346554160118,
0.002344900742173195,
-0.029514240100979805,
-0.003134967992082238,
-0.01794958859682083,
-0.009250800125300884,
-0.030894270166754723,
0.044860173016786575,
0.004747302737087011,
0.04533858224749565,
0.01983563043177128,
-0.07720807194709778,
0.032752711325883865,
-0.04695781692862511,
0.018612002953886986,
-0.0007250907365232706,
-0.01621995121240616,
-0.05141071230173111,
-0.02213568054139614,
0.0551643967628479,
0.06543181836605072,
0.03266070783138275,
-0.014444313012063503,
0.04695781692862511,
0.025245346128940582,
-0.010092618875205517,
-0.056010812520980835,
0.07363839447498322,
-0.01312868483364582,
-0.09796372056007385,
-0.03523676469922066,
-0.022871695458889008,
0.03715040534734726,
-0.06436459720134735,
0.0053729163482785225,
0.05251473933458328,
0.017673583701252937,
-0.05685723200440407,
-0.009485405869781971,
0.00919099897146225,
0.05067469924688339,
0.040039267390966415,
-0.011675053276121616,
-0.0653214156627655,
-0.021951675415039062,
0.0013225286966189742,
0.03214549645781517,
0.025318948552012444,
-0.04703141748905182,
-0.002055094577372074,
-0.02649657428264618,
-0.008818390779197216,
0.04780423641204834,
-0.010065018199384212,
0.05420757457613945,
-0.015493135899305344,
0.042504921555519104,
-0.05141071230173111,
-0.014563915319740772,
-0.035972777754068375,
0.015419534407556057,
0.025190146639943123,
-0.03442714735865593,
0.021013256162405014,
0.03025025501847267,
0.0098258126527071,
-0.022742893546819687,
-0.04239451885223389,
-0.0012523771729320288,
-0.0386776365339756,
-0.02105005644261837,
-0.0361567847430706,
-0.010341024026274681,
-0.018354397267103195,
-0.039340052753686905,
0.0013524292735382915,
0.0500858835875988,
0.029624642804265022,
0.04699461907148361,
-0.001541033387184143,
0.04335134103894234,
-0.014011903665959835,
0.031115073710680008,
0.0659838318824768,
0.042578522115945816,
0.037941623479127884,
-0.0430937334895134,
0.026018163189291954,
-0.0068955495953559875,
0.012733075767755508,
-0.04938666895031929,
0.015750741586089134,
-0.04938666895031929,
-0.012061461806297302,
-0.010709032416343689,
0.009908614680171013,
-0.0323479026556015,
0.04515457898378372,
-0.04463936761021614,
-0.04787783697247505,
0.005276314448565245,
-0.02055324614048004,
-0.009154198691248894,
0.010249022394418716,
-0.005980129353702068,
-0.0196516253054142,
0.005524719599634409,
0.025245346128940582,
-0.016192350536584854,
0.016265952959656715,
-0.047399427741765976,
-0.03659839183092117,
0.07131994515657425,
0.03670879453420639,
0.002201147610321641,
-0.005796125624328852,
0.0026450573932379484,
-0.02395731955766678,
0.004365494474768639,
-0.016955967992544174,
-0.006007730029523373,
-0.005478718783706427,
0.06425419449806213,
0.02047964371740818,
-0.0437561497092247,
-0.08412662148475647,
0.04114329069852829,
0.02841021493077278,
-0.01718597300350666,
0.08022573590278625,
-0.017599981278181076,
0.011307044886052608,
-0.052146729081869125,
-0.030029451474547386,
0.009356603026390076,
0.009306001476943493,
0.03945045545697212,
-0.01381869986653328,
0.023754915222525597,
0.06543181836605072,
-0.06359177827835083,
-0.0011534750228747725,
-0.028815023601055145,
-0.028318213298916817,
-0.007295757997781038,
0.0836850106716156,
0.026478173211216927,
0.0037927820812910795,
0.03313911706209183,
0.006334337405860424,
0.06395978480577469,
-0.03289991244673729,
0.013137884438037872,
-0.03575197607278824,
0.04382975026965141,
-0.016781164333224297,
-0.01706637069582939,
0.04728902503848076,
0.004471296910196543,
-0.035273563116788864,
-0.0023828516714274883,
-0.0817713737487793,
0.060132503509521484,
0.02592616155743599,
-0.025337349623441696,
0.0031395680271089077,
0.0005054359789937735,
-0.10444066673517227,
0.009135797619819641,
-0.03849363327026367,
-0.03507116064429283,
-0.006214734632521868,
0.005441918037831783,
0.009779811836779118,
-0.07187195867300034,
0.0027002585120499134,
0.07912171632051468,
0.049607474356889725,
-0.03304711729288101,
0.0021620469633489847,
0.028741423040628433,
-0.061972543597221375,
0.0036961801815778017,
0.02980864606797695,
-0.0015548337250947952,
0.01990923099219799,
0.006499940995126963,
-0.00076879165135324,
0.03387513384222984,
-0.09627088904380798,
0.021142058074474335,
0.05685723200440407,
-0.04842985048890114,
0.04452896490693092,
-0.04265212267637253,
0.008344580419361591,
0.020902853459119797,
-0.0020332441199570894,
0.018418798223137856,
0.008293979801237583,
0.017673583701252937,
-0.026036564260721207,
-0.08390581607818604,
0.042578522115945816,
0.08802750706672668,
0.023294905200600624,
0.0026611576322466135,
-0.014177506789565086,
0.0008377931662835181,
-0.00026623078156262636,
-0.06506381183862686,
0.02890702709555626,
0.05884447693824768,
0.005722524132579565,
-0.030507860705256462,
0.02509814314544201,
0.015493135899305344,
0.004158490337431431,
-0.03685599938035011,
0.05623161792755127,
0.08905792981386185,
0.05192592367529869,
-0.013137884438037872,
0.054869990795850754,
0.0038916843477636576,
-0.0037536814343184233,
-0.010166220366954803,
-0.029183031991124153,
0.03181428834795952,
-0.02338690683245659,
0.07536803185939789,
-0.008514784276485443,
0.05991169810295105
] |
725,438 | lotkavolterra_simulator.simulator | LVsimulator | This class contains a basic Lotka-Volterra simulator
and the observational simulator.
X0 and Y0 are inputs and are the initial populations of each species
alpha, beta, gamma, delta are inputs and problem parameters
Attributes
----------
X0 : double
initial condition: number of preys
Y0 : double
initial condition: number of predators
alpha : double
intrinsic reproduction rate of preys (independent of the number of predators)
beta : double
prey mortality rate due to predators encountered
gamma : double
predator reproduction rate according to preys encountered and eaten
delta : double
intrinsic predator mortality rate (independent of the number of prey)
| class LVsimulator(object):
"""This class contains a basic Lotka-Volterra simulator
and the observational simulator.
X0 and Y0 are inputs and are the initial populations of each species
alpha, beta, gamma, delta are inputs and problem parameters
Attributes
----------
X0 : double
initial condition: number of preys
Y0 : double
initial condition: number of predators
alpha : double
intrinsic reproduction rate of preys (independent of the number of predators)
beta : double
prey mortality rate due to predators encountered
gamma : double
predator reproduction rate according to preys encountered and eaten
delta : double
intrinsic predator mortality rate (independent of the number of prey)
"""
def __init__(self, X0, Y0, alpha, beta, gamma, delta):
self.X0=X0
self.Y0=Y0
self.alpha=alpha
self.beta=beta
self.gamma=gamma
self.delta=delta
def EEuler(self, t):
"""Solves Lotka-Volterra equations for one prey and one predator species using
the explicit Euler method.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
Returns
-------
X : array, double, dimension=n
number of preys
Y : array, double, dimension=n
number of predators
"""
import numpy as np
X = np.zeros(len(t)) # Pre-allocate the memory for X
Y = np.zeros(len(t)) # Pre-allocate the memory for Y
X[0] = self.X0
Y[0] = self.Y0
for n in range(len(t)-1):
dt = t[n+1] - t[n]
X[n+1] = X[n]*(1 + self.alpha*dt - self.beta*dt*Y[n])
Y[n+1] = Y[n]*(1 - self.gamma*dt + self.delta*dt*X[n])
return X, Y
@property
def omega(self):
"""array, double, dimension=4 : vector of parameters
"""
import numpy as np
return np.array((self.alpha, self.beta, self.gamma, self.delta))
@staticmethod
def get_XY(t_s, tres, Xth, Yth):
"""two array, double, dimension=2*n: subsamples in time to get X and Y.
"""
import numpy as np
X=np.array([Xth[tres*n] for n in range(len(t_s))])
Y=np.array([Yth[tres*n] for n in range(len(t_s))])
return X, Y
@staticmethod
def get_theta(X, Y):
"""array, double, dimension=2*n: concatenates X and Y.
"""
import numpy as np
return np.concatenate((X, Y))
def compute_theta(self, omega, t, t_s, tres):
"""Solves the Lotka-Volterra system of equations and
returns theta, the latent function that is the next layer
of the Bayesian hierarchical model.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Returns
-------
theta : array, double, dimension=S
vector of values of the latent function at t_s
"""
LV = LVsimulator(self.X0, self.Y0, omega[0], omega[1], omega[2], omega[3])
Xtheory, Ytheory = LV.EEuler(t)
X, Y = LV.get_XY(t_s, tres, Xtheory, Ytheory)
theta = LV.get_theta(X, Y)
return theta
def compute_dtheta_domega(self, t, t_s, tres, Delta_omega):
"""Computes the gradient of the latent function theta with respect to
the parameters omega, using finite differences.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Delta_omega : double
step size for finite differences
Returns
-------
grad_theta : array, double, dimension=(2*S, 4)
gradient of theta with respect to omega
"""
import numpy as np
omega0 = self.omega
tmax = len(t_s)
grad_theta = np.zeros((2*tmax,4))
theta_0 = self.compute_theta(omega0, t, t_s, tres)
for n in range(4):
omega_p1, omega_p2, omega_p3, omega_m1, omega_m2, omega_m3 = np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0)
omega_p1[n] += 1*Delta_omega
omega_p2[n] += 2*Delta_omega
omega_p3[n] += 3*Delta_omega
omega_m1[n] -= 1*Delta_omega
omega_m2[n] -= 2*Delta_omega
omega_m3[n] -= 3*Delta_omega
theta_p1 = self.compute_theta(omega_p1, t, t_s, tres)
theta_p2 = self.compute_theta(omega_p2, t, t_s, tres)
theta_p3 = self.compute_theta(omega_p3, t, t_s, tres)
theta_m1 = self.compute_theta(omega_m1, t, t_s, tres)
theta_m2 = self.compute_theta(omega_m2, t, t_s, tres)
theta_m3 = self.compute_theta(omega_m3, t, t_s, tres)
#grad_theta[:,n]=(theta_p1 - theta_0)/Delta_omega
#grad_theta[:,n]=(-1/2.*theta_m1 + 1/2.*theta_p1)/Delta_omega
#grad_theta[:,n]=(1/12.*theta_m2 - 2/3.*theta_m1 + 2/3.*theta_p1 - 1/12.*theta_p2)/Delta_omega
grad_theta[:,n]=(-1/60.*theta_m3 + 3/20.*theta_m2 - 3/4.*theta_m1 + 3/4.*theta_p1 - 3/20.*theta_p2 + 1/60.*theta_p3)/Delta_omega
return grad_theta
| (X0, Y0, alpha, beta, gamma, delta) | [
0.018159471452236176,
-0.021443743258714676,
-0.01895921304821968,
0.06449118256568909,
-0.021774303168058395,
-0.021742314100265503,
-0.10270817577838898,
-0.016879884526133537,
-0.06338220834732056,
0.008701191283762455,
0.008466600440442562,
-0.03431425616145134,
0.03738526254892349,
0.0190871711820364,
-0.04900817945599556,
0.02930253930389881,
-0.00498772319406271,
0.02676469273865223,
-0.02245675027370453,
-0.038600873202085495,
-0.04380452632904053,
-0.03843025863170624,
-0.008578564040362835,
0.05770936980843544,
-0.046321045607328415,
0.005057034082710743,
0.012742552906274796,
-0.0024245507083833218,
-0.036382921040058136,
-0.014789892360568047,
-0.02129445970058441,
0.010604576207697392,
0.005800793878734112,
-0.025996940210461617,
-0.00035921737435273826,
-0.033183954656124115,
0.03439956158399582,
0.022051548585295677,
-0.06585606932640076,
0.03329058736562729,
-0.0019833596888929605,
-0.07003605365753174,
0.04986123740673065,
-0.02844948135316372,
-0.022392770275473595,
-0.012124085798859596,
-0.04674757644534111,
0.05587529391050339,
0.0067498208954930305,
0.0005694827996194363,
0.05037306994199753,
-0.08871802687644958,
0.03480476513504982,
-0.026700712740421295,
-0.019140487536787987,
0.09119189530611038,
0.07967561483383179,
0.0357218012213707,
0.04542533680796623,
-0.05954344570636749,
0.022136854007840157,
-0.01258260477334261,
0.016016162931919098,
0.02684999816119671,
-0.017423707991838455,
-0.004641168285161257,
-0.007661526557058096,
-0.012753216549754143,
0.04199177771806717,
0.040776170790195465,
0.03373844176530838,
-0.009703533723950386,
0.071400947868824,
-0.050501029938459396,
0.03668149188160896,
0.007053722627460957,
-0.05805059149861336,
-0.05630182474851608,
-0.02200889401137829,
-0.055064890533685684,
-0.06419260799884796,
0.03885678946971893,
0.004990389104932547,
0.01453397423028946,
0.027639077976346016,
-0.0071070389822125435,
-0.01411810889840126,
0.0026431467849761248,
0.0019287107279524207,
-0.025805002078413963,
-0.03329058736562729,
-0.018767274916172028,
0.03147783875465393,
0.013254387304186821,
-0.015728255733847618,
-0.0004611844487953931,
-0.006611199118196964,
-0.04585186392068863,
-0.0002630817471072078,
-0.03834495320916176,
0.04000841826200485,
0.0035935065243393183,
-0.023587051779031754,
0.06683708727359772,
-0.0032309568487107754,
-0.011207048781216145,
-0.07523971050977707,
0.008269330486655235,
0.06385138630867004,
-0.022648688405752182,
-0.0628277137875557,
0.08099785447120667,
-0.0013189075980335474,
-0.0025058577302843332,
-0.033759769052267075,
-0.03945393115282059,
-0.041970450431108475,
0.029409172013401985,
-0.06274241209030151,
-0.029195908457040787,
0.04084014892578125,
0.04052025079727173,
-0.045212071388959885,
0.04811246693134308,
0.00794410239905119,
-0.028833357617259026,
0.04116004705429077,
0.04380452632904053,
-0.019556352868676186,
-0.06107894703745842,
0.004009372089058161,
0.0270845890045166,
0.020633338019251823,
0.03292803466320038,
0.03796107694506645,
-0.014032803475856781,
-0.014971166849136353,
-0.04559594765305519,
-0.023181850090622902,
-0.04113871976733208,
0.017103811725974083,
0.008983766660094261,
-0.010188710875809193,
-0.005267632659524679,
0.010274016298353672,
0.03759852796792984,
0.032693445682525635,
-0.01169755682349205,
-0.05344408005475998,
-0.004403911530971527,
-0.033717114478349686,
-0.013318367302417755,
0.03346119821071625,
-0.03565782308578491,
0.004158657509833574,
-0.019119160249829292,
0.010972457937896252,
-0.012262707576155663,
0.0002059335238300264,
-0.00939963199198246,
-0.0714436024427414,
-0.017988858744502068,
-0.041565246880054474,
0.016080142930150032,
-0.014971166849136353,
0.013179745525121689,
-0.010199373587965965,
0.0013522300869226456,
-0.041970450431108475,
0.018991202116012573,
-0.019652321934700012,
-0.04444431886076927,
-0.035359252244234085,
0.009319658391177654,
-0.035273946821689606,
0.03689475730061531,
0.03198967128992081,
-0.04401778802275658,
0.0014515314251184464,
-0.0004495215544011444,
0.017956869676709175,
-0.010961794294416904,
-0.027404487133026123,
-0.018991202116012573,
0.00046185089740902185,
0.056003253906965256,
0.037363938987255096,
-0.023778989911079407,
0.01196413766592741,
0.017541004344820976,
-0.021688997745513916,
-0.007816143333911896,
0.01504580955952406,
0.04644900560379028,
0.04900817945599556,
0.04060555621981621,
0.06832993775606155,
0.041309330612421036,
0.03248018026351929,
0.010849830694496632,
0.031541816890239716,
0.025719696655869484,
-0.007874791510403156,
-0.041799839586019516,
-0.024610720574855804,
-0.028172237798571587,
-0.012571941129863262,
0.014565964229404926,
-0.015578970313072205,
0.022307464852929115,
0.012422656640410423,
-0.010855162516236305,
-0.036425575613975525,
0.002283262787386775,
0.031136615201830864,
-0.05647243559360504,
0.08871802687644958,
0.012134749442338943,
0.05041572451591492,
-0.008514584973454475,
0.011025774292647839,
0.005710156634449959,
-0.055107541382312775,
-0.047259408980607986,
0.003249617526307702,
-0.030838044360280037,
0.0026271517854183912,
0.044060442596673965,
-0.011580261401832104,
-0.05327346920967102,
0.03190436586737633,
-0.010002104565501213,
0.0030016975942999125,
-0.012774542905390263,
0.049264095723629,
0.011175058782100677,
-0.01986558735370636,
-0.005683498457074165,
-0.04109606519341469,
-0.014576627872884274,
-0.03627628833055496,
-0.03849424049258232,
0.009308994747698307,
0.034868743270635605,
-0.04084014892578125,
0.042503610253334045,
0.05920222029089928,
0.03631894290447235,
-0.02335246093571186,
-0.002964376239106059,
-0.040904127061367035,
-0.05114082247018814,
0.006621862296015024,
0.018522020429372787,
-0.055064890533685684,
-0.03915536031126976,
0.10390245914459229,
0.07123033702373505,
0.0619746595621109,
-0.027553770691156387,
0.027361832559108734,
-0.016261417418718338,
-0.0017607648624107242,
0.05028776451945305,
-0.050543684512376785,
0.019918903708457947,
0.02241409756243229,
-0.024077560752630234,
-0.01702916994690895,
0.014853871427476406,
0.105096735060215,
0.10006369650363922,
-0.07289379835128784,
-0.029110603034496307,
0.04248228669166565,
0.008663869462907314,
0.0293451938778162,
-0.0027617751620709896,
-0.015898866578936577,
0.01678391546010971,
-0.010359322652220726,
-0.059159569442272186,
0.019012529402971268,
0.02885468490421772,
-0.06589872390031815,
-0.04708879813551903,
-0.03523129224777222,
-0.023992255330085754,
0.06858585774898529,
-0.014107445254921913,
0.0033669129479676485,
-0.03896342217922211,
0.05736814811825752,
0.012081433087587357,
0.13947497308254242,
0.02716989442706108,
-0.06095099076628685,
-0.00011271361290710047,
-0.003745457623153925,
-0.048496343195438385,
0.034868743270635605,
0.026338163763284683,
0.0660693347454071,
-0.05694161728024483,
-0.046150434762239456,
-0.013478315435349941,
0.05967140197753906,
0.0035935065243393183,
0.060481809079647064,
-0.02823621779680252,
0.017903553321957588,
0.008210682310163975,
0.039261993020772934,
0.03557251766324043,
-0.014896524138748646,
-0.04811246693134308,
-0.0018234113231301308,
-0.04896552488207817,
0.06261445581912994,
0.05476631969213486,
0.009778176434338093,
0.021731650456786156,
0.0007864127983339131,
-0.01789288967847824,
0.04585186392068863,
-0.04499880596995354,
0.049605317413806915,
0.010194042697548866,
-0.008359967730939388,
-0.0015541649190708995,
-0.029131928458809853,
-0.027447139844298363,
-0.028022952377796173,
0.013958160765469074,
0.019300436601042747,
-0.03668149188160896,
-0.0025285170413553715,
-0.011420313268899918,
0.029451824724674225,
-0.03329058736562729,
0.04589451849460602,
0.00706971762701869,
-0.06474709510803223,
0.0422690212726593,
0.019513700157403946,
-0.06137751787900925,
0.03759852796792984,
-0.026658060029149055,
0.010577918030321598,
0.05011715367436409,
0.016229426488280296,
0.1017698124051094,
-0.021603692322969437,
0.07558093219995499,
0.012753216549754143,
0.031008655205368996,
-0.013179745525121689,
-0.03267211839556694,
0.012902501039206982,
-0.0014355365419760346,
-0.04568125307559967,
0.05685631185770035,
-0.034698132425546646,
0.025506433099508286,
0.030283557251095772,
-0.07084646075963974,
-0.03461282700300217,
-0.01781824789941311,
0.0340583398938179,
-0.03311997279524803,
0.021657008677721024,
-0.031541816890239716,
0.010705877095460892,
0.03689475730061531,
-0.006589872762560844,
0.03623363748192787,
0.015035145916044712,
-0.0019806940108537674,
-0.01925778202712536,
-0.03459149971604347,
0.04824042692780495,
-0.005078360438346863,
-0.003969385288655758,
0.024568067863583565,
0.025677043944597244,
-0.053998567163944244,
0.024887965992093086,
-0.04007239639759064,
0.052889592945575714,
-0.010705877095460892,
0.01933242566883564,
-0.028662746772170067,
0.046363700181245804,
0.01284918561577797,
-0.0039320639334619045,
0.01973762735724449,
-0.0138515280559659,
0.04888021945953369,
-0.0541691780090332,
0.008589226752519608,
-0.004046693444252014,
-0.07080380618572235,
-0.0020859932992607355,
0.02188093587756157,
-0.013382346369326115,
-0.050586335361003876,
0.09033883363008499,
-0.005200987681746483,
-0.017626309767365456,
0.09417759627103806,
-0.021518386900424957,
0.03418629616498947,
0.012390666641294956,
-0.013659589923918247,
-0.0244187843054533,
0.008834481239318848,
-0.03493272140622139,
-0.018490031361579895,
0.06274241209030151,
0.031712427735328674,
-0.00702706491574645,
0.00010638232197379693,
0.023459093645215034,
0.04781389608979225,
0.06551484763622284,
0.03085937164723873,
-0.01699717901647091,
0.021230479702353477,
-0.03943260386586189,
0.017519677057862282,
0.009650218300521374,
0.005678167100995779,
-0.035764455795288086,
-0.026252858340740204,
-0.026423469185829163,
0.03723597899079323,
-0.007896117866039276,
-0.007426935713738203,
0.02868407405912876,
-0.004425237886607647,
0.037129346281290054,
0.008306651376187801,
0.011590925045311451,
-0.008770502172410488,
-0.0340583398938179,
-0.028172237798571587,
-0.032778751105070114,
-0.05259102210402489,
-0.05126878246665001,
0.008301320485770702,
0.012721226550638676,
0.07639133930206299,
0.04222636669874191,
-0.016559986397624016,
0.014683259651064873,
0.00960756465792656,
0.007219002582132816,
-0.061462823301553726,
-0.03849424049258232,
-0.03565782308578491,
0.016986515372991562,
0.04220504313707352,
0.058391816914081573,
0.00921302568167448,
0.014288720674812794,
-0.004838437773287296,
0.021230479702353477,
-0.003748123301193118,
-0.016101468354463577,
-0.04568125307559967,
0.012348013930022717,
-0.008439942263066769,
-0.026444796472787857,
-0.021603692322969437,
-0.022925931960344315,
-0.03169110417366028,
-0.04546798765659332,
0.0281082596629858,
-0.025996940210461617,
-0.07204074412584305,
-0.04619308561086655,
-0.024845313280820847,
0.02930253930389881,
0.03497537598013878,
0.01966298557817936,
0.033887725323438644,
0.02397092804312706,
-0.02384296990931034,
0.010465954430401325,
-0.03245885297656059,
-0.06214527040719986,
-0.012241381220519543,
0.021603692322969437,
0.04371922090649605,
-0.08193621784448624,
0.009847487322986126,
0.021774303168058395,
-0.03032620996236801,
0.033802419900894165,
0.00692576402798295,
0.03141385689377785,
0.022158179432153702,
-0.020089514553546906,
-0.02761775068938732,
0.0188739076256752,
-0.037982404232025146,
-0.03853689134120941,
0.003097666660323739,
-0.06065241992473602,
0.03280007839202881,
-0.03887811675667763,
-0.02836417593061924,
0.02458939515054226,
-0.011313680559396744,
-0.01679457724094391,
0.020697318017482758,
-0.06205996498465538,
0.018500693142414093,
0.00784280151128769,
-0.01937507838010788,
-0.04482819512486458,
0.053742650896310806,
0.012443982996046543,
0.0013349023647606373,
0.022840626537799835,
0.0841541662812233,
-0.02992100641131401,
-0.03358915448188782,
0.01407545618712902,
0.02868407405912876,
-0.022925931960344315,
-0.03410099074244499,
0.0055395448580384254,
0.045126765966415405,
-0.020260125398635864,
-0.015216421335935593,
0.005736814811825752,
-0.09741921722888947,
0.00016061481437645853,
-0.01895921304821968,
0.010940467938780785,
-0.005435578525066376,
0.027489792555570602,
-0.06372343003749847,
-0.02110252156853676,
-0.012742552906274796,
0.016101468354463577,
0.00917037297040224,
-0.003985379822552204,
0.02881203219294548,
0.04892287403345108,
-0.016591977328062057,
0.02659408189356327,
0.020345432683825493,
0.02610357291996479,
0.0194923747330904,
0.0022099532652646303,
-0.0011442973045632243,
0.018788600340485573,
0.014128772541880608,
-0.03102998249232769,
-0.05536346137523651,
-0.033887725323438644,
-0.030240904539823532,
-0.05404122173786163,
0.038067709654569626,
0.040904127061367035,
0.012977143749594688,
-0.022563382983207703,
-0.003622830379754305,
0.020388085395097733,
-0.020793287083506584,
-0.010556591674685478,
-0.036596186459064484,
-0.0508849062025547,
0.01859666220843792,
0.00947960652410984,
-0.022158179432153702,
-0.06184669956564903,
-0.04013637453317642,
0.06274241209030151,
-0.023053890094161034,
-0.015792235732078552,
-0.07255257666110992,
0.020995888859033585,
0.0328214056789875,
-0.00997544638812542,
0.03139253333210945,
-0.012348013930022717,
-0.01629340648651123,
-0.03915536031126976,
0.05578998848795891,
-0.04717410355806351,
-0.04005106911063194,
-0.042503610253334045,
0.047216758131980896,
-0.010743197984993458,
0.015088462270796299,
0.046491656452417374,
0.016559986397624016,
-0.058434467762708664,
-0.005512887146323919,
-0.028513461351394653,
-0.005576866213232279,
-0.01838339865207672,
-0.030176924541592598,
0.02503724955022335,
-0.018010186031460762,
0.015333716757595539,
-0.0734909400343895,
0.035401903092861176,
-0.03717200085520744,
0.028428155928850174,
-0.04998919367790222,
0.009703533723950386,
-0.029409172013401985,
-0.02269134111702442,
0.027404487133026123,
0.06095099076628685,
0.057325493544340134,
-0.027489792555570602,
0.0348900705575943,
-0.0035082008689641953,
0.003684144001454115,
-0.04811246693134308,
-0.052932243794202805,
0.042055755853652954,
-0.09673677384853363,
0.02085726708173752,
-0.04704614356160164,
0.022030221298336983,
-0.016101468354463577,
-0.02783101610839367,
-0.006184670142829418,
0.008434610441327095,
-0.020089514553546906,
0.017541004344820976,
-0.006755152717232704,
0.006829794961959124,
-0.006472576875239611,
-0.034292928874492645,
0.01995089277625084,
0.0021219816990196705,
0.03258681297302246,
0.00719234487041831,
0.006755152717232704,
-0.0002419218944851309,
0.03177640959620476,
0.05263367295265198,
0.029174581170082092,
-0.03390905261039734,
0.034783437848091125,
-0.04150126874446869,
-0.019140487536787987,
-0.08227743953466415,
-0.00896777119487524,
0.0005151670193299651,
0.031008655205368996,
0.04211973398923874,
0.005246306303888559,
0.013734232634305954,
0.03474078327417374,
-0.022883279249072075,
-0.03085937164723873,
0.04781389608979225,
-0.03751322254538536,
-0.0057847993448376656,
0.03418629616498947,
0.03454884514212608,
0.026167552918195724,
-0.010540597140789032,
-0.04798451066017151,
0.017679626122117043,
0.024034908041357994,
0.03493272140622139,
-0.004337266553193331,
0.029409172013401985,
-0.03706536814570427,
0.04981858283281326,
0.014352699741721153,
0.025591738522052765,
0.1026228666305542,
-0.010396643541753292,
-0.026786020025610924,
0.007938770577311516,
0.017018506303429604,
0.033311910927295685,
0.005208984948694706,
0.05553407222032547,
-0.019897576421499252,
-0.03305599465966225,
0.039624541997909546,
0.04499880596995354,
0.04009372368454933,
0.05596059933304787,
0.016858557239174843,
-0.0537853017449379,
-0.006616530474275351,
-0.012838521972298622,
-0.03111528791487217,
0.019524363800883293,
-0.043122079223394394,
-0.053827956318855286,
0.08065662533044815,
-0.02655142918229103,
0.020548032596707344,
-0.0018633984727784991,
-0.02200889401137829,
-0.03303466737270355,
-0.046363700181245804,
0.015994835644960403,
0.025421125814318657,
0.047259408980607986,
-0.04039229452610016,
0.024823985993862152,
0.007325634825974703,
-0.0008890462922863662,
-0.03608435019850731,
0.022670013830065727,
0.04435901343822479,
-0.009074403904378414,
-0.01642136462032795,
0.05566203221678734,
0.03346119821071625,
-0.03964586928486824,
0.006243317853659391,
0.012859848327934742,
-0.05348673090338707,
-0.025634391233325005,
-0.0060193901881575584,
-0.007981423288583755,
0.06342485547065735,
0.030688758939504623,
-0.0026124899741262197,
-0.038558218628168106,
-0.05361469089984894,
0.005667503457516432,
0.00039853801717981696,
-0.04116004705429077,
0.08027274906635284,
-0.02593296207487583,
0.014192751608788967,
-0.06176139414310455,
-0.013222398236393929,
0.009394300170242786,
0.03009161911904812,
-0.0324375294148922,
0.011782863177359104,
0.03875015676021576,
-0.01163357775658369,
0.07187013328075409,
-0.024760005995631218,
-0.007155023515224457,
0.028065606951713562,
0.03964586928486824,
0.00501971272751689,
0.040413618087768555,
-0.05886099860072136,
-0.024226846173405647,
-0.036063022911548615,
-0.022925931960344315,
-0.003804105333983898,
0.024653375148773193,
0.08581762760877609,
-0.0332479327917099,
0.03143518418073654,
-0.060567114502191544,
0.0014821881195530295
] |
725,439 | lotkavolterra_simulator.simulator | EEuler | Solves Lotka-Volterra equations for one prey and one predator species using
the explicit Euler method.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
Returns
-------
X : array, double, dimension=n
number of preys
Y : array, double, dimension=n
number of predators
| def EEuler(self, t):
"""Solves Lotka-Volterra equations for one prey and one predator species using
the explicit Euler method.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
Returns
-------
X : array, double, dimension=n
number of preys
Y : array, double, dimension=n
number of predators
"""
import numpy as np
X = np.zeros(len(t)) # Pre-allocate the memory for X
Y = np.zeros(len(t)) # Pre-allocate the memory for Y
X[0] = self.X0
Y[0] = self.Y0
for n in range(len(t)-1):
dt = t[n+1] - t[n]
X[n+1] = X[n]*(1 + self.alpha*dt - self.beta*dt*Y[n])
Y[n+1] = Y[n]*(1 - self.gamma*dt + self.delta*dt*X[n])
return X, Y
| (self, t) | [
0.026558775454759598,
-0.007292855530977249,
-0.030581124126911163,
0.05371902510523796,
-0.02005535364151001,
-0.009971288032829762,
-0.07574795931577682,
-0.05518511310219765,
-0.07495852559804916,
0.033513303846120834,
0.006320161744952202,
-0.0655229240655899,
0.002254347549751401,
0.0315961092710495,
-0.013514338061213493,
0.026765530928969383,
-0.030637511983513832,
0.012969253584742546,
-0.05323032662272453,
-0.050222963094711304,
-0.004612073302268982,
-0.06837991625070572,
-0.03783638775348663,
0.06725215911865234,
-0.036858994513750076,
0.012546342797577381,
0.027423392981290817,
-0.03717852756381035,
-0.046275798231363297,
-0.013185407966375351,
-0.008444111794233322,
0.043306030333042145,
-0.036520667374134064,
-0.04744115471839905,
-0.00040470180101692677,
-0.0285323578864336,
0.014388352632522583,
0.019435083493590355,
0.020750805735588074,
0.03804314509034157,
0.03375764936208725,
-0.03287423774600029,
0.05518511310219765,
0.014360158704221249,
-0.036069560796022415,
-0.02556258626282215,
0.0004484612727537751,
0.004938654135912657,
-0.01129640731960535,
-0.0023189589846879244,
0.0003856120747514069,
-0.04939593747258186,
0.07289096713066101,
-0.04003551974892616,
-0.004877567291259766,
0.07176320254802704,
0.039960335940122604,
0.05432049557566643,
-0.005507233552634716,
-0.0200741495937109,
0.016540497541427612,
-0.0003154207079205662,
0.04853132367134094,
0.06815436482429504,
-0.015224776230752468,
-0.0070438082329928875,
0.01342975627630949,
-0.007363340817391872,
0.033908020704984665,
0.05390698462724686,
0.031032228842377663,
-0.012856476940214634,
-0.008580382913351059,
-0.05195219814777374,
0.08225138485431671,
0.0252054613083601,
-0.02225448749959469,
-0.004069338086992502,
-0.044997669756412506,
-0.018617456778883934,
-0.033043403178453445,
0.018936989828944206,
0.007565397769212723,
0.0442834235727787,
0.032667480409145355,
-0.033494506031274796,
0.03187805041670799,
-0.01540333777666092,
-0.021070338785648346,
0.030092427507042885,
-0.010967477224767208,
-0.03721611946821213,
0.00983031839132309,
-0.042403820902109146,
-0.019792208448052406,
0.003768601920455694,
-0.019961372017860413,
-0.008721353486180305,
-0.008697858080267906,
-0.07217671722173691,
0.09179975837469101,
0.008035298436880112,
0.0040364451706409454,
0.022761980071663857,
-0.0017421561060473323,
0.0017421561060473323,
-0.03706575185060501,
0.0022672698833048344,
0.04875687509775162,
-0.013363969512283802,
-0.03407718241214752,
0.09232604503631592,
-0.05465882644057274,
0.022705592215061188,
-0.111272431910038,
-0.02437843754887581,
-0.01517778541892767,
0.025506198406219482,
-0.03422755002975464,
-0.03334413841366768,
0.0057656788267195225,
0.041614387184381485,
-0.09428083151578903,
0.0426669642329216,
-0.03969719260931015,
-0.05980893224477768,
0.03883257508277893,
0.028062457218766212,
-0.015638288110494614,
-0.05627528205513954,
0.0031929737888276577,
0.0630042552947998,
0.002464628079906106,
0.040373850613832474,
0.0028194028418511152,
-0.012950457632541656,
0.014773671515285969,
-0.02127709425985813,
0.004771839361637831,
-0.04041144251823425,
-0.007283457554876804,
0.030543532222509384,
-0.01390905398875475,
0.02684071660041809,
-0.007010915316641331,
0.0008328986004926264,
-0.007057905197143555,
0.014886447228491306,
-0.006536315660923719,
0.06010967120528221,
-0.027179043740034103,
-0.0011007419088855386,
0.07743959873914719,
-0.042403820902109146,
0.06488385796546936,
-0.007748659234493971,
0.02732941322028637,
-0.015892034396529198,
0.024566397070884705,
-0.035674843937158585,
-0.037347689270973206,
0.024622784927487373,
-0.03441551327705383,
0.022442447021603584,
-0.0021509695798158646,
-0.0039612608961761,
-0.015318755991756916,
0.05026055499911308,
-0.018260333687067032,
0.06180131062865257,
0.0147172836586833,
-0.012320790439844131,
-0.053117550909519196,
0.020186925306916237,
-0.006794760935008526,
-0.04044903442263603,
0.03700936213135719,
-0.015685278922319412,
0.05029814690351486,
0.020299701020121574,
-0.041163284331560135,
0.015619492158293724,
-0.0068135568872094154,
-0.03447189927101135,
-0.00047606794396415353,
-0.014378954656422138,
0.027930885553359985,
-0.018156955018639565,
-0.06368091702461243,
-0.0018455341923981905,
-0.05932023748755455,
-0.009275835938751698,
-0.008326636627316475,
0.06251556426286697,
-0.004489899147301912,
0.0775899663567543,
0.012649721466004848,
0.062477968633174896,
0.020374884828925133,
-0.02435964159667492,
-0.022480038926005363,
0.04736597090959549,
-0.019867392256855965,
-0.02355141192674637,
-0.030092427507042885,
-0.016813039779663086,
-0.012311392463743687,
-0.030073631554841995,
-0.025299442932009697,
0.02896466664969921,
0.04988463595509529,
0.017320532351732254,
-0.07108654826879501,
0.030900655314326286,
0.007161283399909735,
0.006057017482817173,
0.05338069424033165,
-0.005873756017535925,
0.030975840985774994,
0.014397750608623028,
-0.005056129302829504,
-0.020186925306916237,
0.010112258605659008,
-0.013420358300209045,
0.03808073699474335,
-0.03787397965788841,
0.037347689270973206,
0.07443223893642426,
-0.02390853688120842,
-0.04225345328450203,
0.023250676691532135,
0.006282569374889135,
-0.02856994979083538,
-0.0009309903252869844,
0.050486110150814056,
0.013082029297947884,
-0.06191409006714821,
-0.021634219214320183,
-0.05334310233592987,
-0.004586228635162115,
0.011634736321866512,
-0.024115292355418205,
0.016033004969358444,
-0.012085840106010437,
-0.025712953880429268,
0.03428393974900246,
0.06477108597755432,
0.05029814690351486,
-0.06909416615962982,
-0.0017116125673055649,
0.0020240964367985725,
-0.07665016502141953,
0.03935886546969414,
0.0115219596773386,
0.015892034396529198,
-0.03383283689618111,
0.09653635323047638,
0.04661412909626961,
0.06251556426286697,
-0.023570207878947258,
0.022104118019342422,
0.0005597689305432141,
-0.019998963922262192,
0.03714093565940857,
-0.03920849785208702,
-0.013166612014174461,
-0.004715451505035162,
-0.026220446452498436,
-0.01669086515903473,
0.031784068793058395,
0.09706264734268188,
0.020788397639989853,
-0.04567432776093483,
-0.02990446612238884,
0.02939697541296482,
0.05943301320075989,
0.02729181945323944,
0.01586383953690529,
-0.004515743814408779,
0.005361564457416534,
-0.021465053781867027,
-0.0745450109243393,
0.010140452533960342,
0.015657084062695503,
-0.06007207930088043,
-0.04868169128894806,
-0.06691382825374603,
-0.038155920803546906,
0.05834284424781799,
-0.03443430736660957,
0.00629196735098958,
-0.026671551167964935,
0.00619328860193491,
-0.029772894456982613,
0.07649979740381241,
0.020262109115719795,
-0.043230846524238586,
-0.002095756120979786,
0.03554327413439751,
-0.0332125648856163,
0.0053380695171654224,
-0.05138831585645676,
0.0066161989234387875,
-0.05074925348162651,
-0.07315410673618317,
-0.005939542315900326,
0.027141451835632324,
0.031746476888656616,
0.06792881339788437,
-0.0673273429274559,
0.021145522594451904,
0.033908020704984665,
-0.03375764936208725,
-0.010760720819234848,
-0.045448776334524155,
0.0030379067175090313,
-0.004304288420826197,
-0.039434049278497696,
0.010262626223266125,
0.03035557083785534,
0.021126726642251015,
0.04011070728302002,
0.025261851027607918,
-0.03127657622098923,
0.024885930120944977,
-0.04199030622839928,
0.025393422693014145,
-0.0419527143239975,
0.005807970184832811,
0.0029674216639250517,
-0.004642616957426071,
-0.05593695491552353,
-0.02347622811794281,
0.03595678508281708,
-0.020186925306916237,
0.0007859085453674197,
-0.007931919768452644,
0.0050138384103775024,
0.03661464527249336,
-0.030487144365906715,
0.01794080063700676,
-0.013721094466745853,
-0.09894225001335144,
0.015187183395028114,
0.012151626870036125,
0.004135124385356903,
0.00662089791148901,
-0.03067510388791561,
0.0718383863568306,
0.08022141456604004,
-0.003965959884226322,
0.03595678508281708,
0.008636770769953728,
0.03595678508281708,
-0.0007136613712646067,
0.025750547647476196,
-0.01828852668404579,
-0.037385281175374985,
0.0031906242948025465,
-0.010676139034330845,
-0.048080217093229294,
0.04011070728302002,
-0.033118586987257004,
0.02095756120979786,
-0.018260333687067032,
-0.08751426637172699,
0.025938507169485092,
-0.016747253015637398,
0.026201650500297546,
-0.0005254074931144714,
-0.013551929965615273,
-0.00427139550447464,
0.02046886458992958,
0.05420771986246109,
-0.004447608254849911,
0.02560017816722393,
-0.002066387329250574,
0.015130795538425446,
-0.011493765749037266,
-0.00977393053472042,
0.047178007662296295,
0.002398842014372349,
-0.012461761012673378,
0.0025962002109736204,
0.034791432321071625,
-0.04529840871691704,
-0.0025233656633645296,
-0.016766048967838287,
0.09240122884511948,
0.00459562661126256,
0.034340329468250275,
-0.05360624939203262,
0.045110445469617844,
0.005704591982066631,
0.014040626585483551,
0.022837163880467415,
0.014942835085093975,
0.009468494914472103,
-0.03984756022691727,
0.006099308375269175,
0.018222741782665253,
-0.003615884343162179,
0.019359899684786797,
0.03460347279906273,
-0.0038226405158638954,
-0.02646479569375515,
0.055673811584711075,
-0.031238984316587448,
-0.03450949117541313,
0.08089806884527206,
-0.017348725348711014,
0.04142642766237259,
0.04924556985497475,
-0.0702219307422638,
-0.02687830850481987,
0.009990083985030651,
-0.07097376883029938,
-0.04744115471839905,
0.03875739127397537,
0.027573760598897934,
0.028344396501779556,
0.009252340532839298,
-0.016719060018658638,
0.05721508339047432,
0.05217774957418442,
0.036069560796022415,
-0.0033268954139202833,
-0.034321531653404236,
-0.02689710445702076,
0.012414771132171154,
0.004395918920636177,
-0.05135072395205498,
-0.0004722499870695174,
-0.04995981976389885,
-0.02680312469601631,
0.04439619928598404,
-0.019359899684786797,
-0.0015483221504837275,
0.021502645686268806,
0.006794760935008526,
0.024434825405478477,
0.004825877957046032,
0.03838147222995758,
0.0007888454711064696,
0.04259178042411804,
-0.03028038702905178,
-0.03193443641066551,
-0.029321789741516113,
-0.0513131320476532,
-0.003937765955924988,
0.014811263419687748,
0.02601369097828865,
0.014087616465985775,
0.004280793480575085,
0.03710334375500679,
-0.0038978245574980974,
-0.006531616672873497,
-0.05556103214621544,
-0.028269212692975998,
0.0554482564330101,
-0.004435860551893711,
0.016568690538406372,
0.035242535173892975,
-0.0035407000686973333,
-0.01195426844060421,
-0.05089962109923363,
-0.0028475970029830933,
-0.007490213960409164,
0.0032023717649281025,
-0.054470863193273544,
-0.027009880170226097,
-0.0285323578864336,
-0.02174699492752552,
0.023682985454797745,
-0.0770636796951294,
-0.0015483221504837275,
0.0007876706658862531,
0.025355830788612366,
0.017809228971600533,
-0.06003448739647865,
-0.04168957099318504,
-0.05326791852712631,
0.023570207878947258,
0.014689088799059391,
0.01621156744658947,
0.03507337346673012,
-0.005370962433516979,
-0.0022907648235559464,
-0.005089022219181061,
-0.014162800274789333,
-0.05150109529495239,
0.00019486185919959098,
0.017743442207574844,
0.06334258615970612,
-0.05578658729791641,
-0.02050645649433136,
0.052704039961099625,
0.013561327941715717,
0.00025330574135296047,
0.0010232082568109035,
0.05604973062872887,
0.028494765982031822,
0.04123846814036369,
-0.04552396014332771,
0.017790433019399643,
0.012630925513803959,
-0.002943926490843296,
-0.008425315842032433,
-0.05499715358018875,
0.05514752119779587,
-0.023194288834929466,
-0.08751426637172699,
0.05338069424033165,
-0.004825877957046032,
-0.006526917684823275,
0.016333740204572678,
-0.03116380050778389,
0.002316609490662813,
0.01585444249212742,
0.019059164449572563,
-0.026577571406960487,
0.06646272540092468,
0.02170940302312374,
-0.019867392256855965,
-0.006710179150104523,
0.06274111568927765,
-0.047253191471099854,
-0.00811048224568367,
0.017837421968579292,
0.03167129307985306,
-0.019453879445791245,
-0.06401924043893814,
0.02685951255261898,
-0.018062975257635117,
-0.05345587804913521,
0.005385059397667646,
-0.031821660697460175,
-0.057027123868465424,
-0.002993266098201275,
-0.01703859120607376,
0.00447345245629549,
-0.00106784887611866,
0.06916934996843338,
-0.04123846814036369,
-0.02903985045850277,
-0.025092685595154762,
-0.024904726073145866,
0.07413150370121002,
-0.01914374530315399,
0.024416029453277588,
0.024622784927487373,
0.006672586780041456,
0.06646272540092468,
0.019923780113458633,
-0.04980945214629173,
0.008716654032468796,
0.021634219214320183,
0.008289044722914696,
0.011108447797596455,
0.010027676820755005,
-0.052328117191791534,
-0.03242313489317894,
0.014632700942456722,
0.03723491355776787,
-0.02343863621354103,
0.029697710648179054,
0.05676398053765297,
-0.019735820591449738,
0.004929256159812212,
0.00979272648692131,
0.01958545297384262,
-0.009679949842393398,
-0.0392460897564888,
-0.03278025984764099,
-0.01000887993723154,
0.018965182825922966,
-0.019829800352454185,
-0.09661153703927994,
-0.05285440757870674,
-0.024171680212020874,
0.012950457632541656,
-0.042065490037202835,
-0.021671811118721962,
-0.08826610445976257,
0.012546342797577381,
0.03678381070494652,
-0.0025562585797160864,
0.04605024680495262,
-0.030468348413705826,
0.04191512241959572,
-0.027066268026828766,
-0.00619328860193491,
-0.06687624007463455,
0.006301365327090025,
-0.01667206920683384,
-0.02306271530687809,
0.016540497541427612,
0.00201939744874835,
-0.00011931067274417728,
0.03428393974900246,
-0.030073631554841995,
0.002591501222923398,
-0.03661464527249336,
0.005930144339799881,
-0.011493765749037266,
-0.0657108873128891,
-0.008918710984289646,
0.01620216853916645,
-0.00512661412358284,
-0.07691331207752228,
0.06236519291996956,
-0.05029814690351486,
0.04262937232851982,
0.01920953206717968,
0.020318496972322464,
-0.011512561701238155,
0.014886447228491306,
0.015704074874520302,
0.04924556985497475,
0.034716248512268066,
-0.030430754646658897,
0.0487944670021534,
0.014388352632522583,
0.025487402454018593,
-0.030599920079112053,
-0.06950768083333969,
0.08886758238077164,
-0.08247693628072739,
0.06916934996843338,
-0.048080217093229294,
0.02306271530687809,
0.027047472074627876,
-0.019867392256855965,
-0.006536315660923719,
0.01387146208435297,
0.009111370891332626,
0.039020538330078125,
0.010563363321125507,
-0.010948681272566319,
-0.025863323360681534,
-0.04856891557574272,
0.0392460897564888,
0.015318755991756916,
0.005554223898798227,
0.028833093121647835,
0.04480971023440361,
0.015440929681062698,
0.014360158704221249,
0.09277715533971786,
0.07123691588640213,
-0.0017832723679021,
0.002392968162894249,
0.013129019178450108,
-0.024491213262081146,
-0.09195012599229813,
0.022949939593672752,
-0.00012261465599294752,
0.029810486361384392,
0.017226552590727806,
-0.013251193799078465,
-0.009952492080628872,
0.007570096757262945,
-0.05037333071231842,
0.008143375627696514,
0.08187545835971832,
0.025806935504078865,
-0.020694417878985405,
0.043343622237443924,
-0.015581900253891945,
0.04480971023440361,
-0.015450327657163143,
-0.0196230448782444,
0.015967218205332756,
0.004572131671011448,
0.05507233738899231,
-0.05514752119779587,
-0.010619751177728176,
-0.013815074227750301,
0.008820031769573689,
-0.012283198535442352,
-0.024961113929748535,
0.04345639795064926,
-0.05206497386097908,
0.007222370710223913,
-0.011982462368905544,
0.011211825534701347,
0.008072890341281891,
0.036483075469732285,
0.02001775987446308,
-0.05503474548459053,
-0.014980427920818329,
0.040298666805028915,
-0.0045039961114525795,
0.039020538330078125,
0.031032228842377663,
0.0015753413317725062,
-0.030543532222509384,
-0.028814297169446945,
0.003437322098761797,
-0.023776965215802193,
0.027179043740034103,
-0.0333065465092659,
-0.0367274209856987,
0.06650031358003616,
-0.03028038702905178,
0.04687727242708206,
-0.003676971420645714,
-0.032197579741477966,
-0.0784921795129776,
-0.042930107563734055,
0.0013004495995119214,
0.016399526968598366,
0.05360624939203262,
-0.054470863193273544,
0.05417012795805931,
0.03073149174451828,
0.023382248356938362,
-0.04792984947562218,
-0.00298386812210083,
0.0727405920624733,
0.01280948705971241,
-0.012875273823738098,
0.047516338527202606,
0.03460347279906273,
-0.02392733283340931,
0.0037474564742296934,
0.002474026056006551,
-0.053531061857938766,
-0.033438120037317276,
0.0046073743142187595,
-0.006385947577655315,
0.02949095517396927,
0.05026055499911308,
-0.0392460897564888,
-0.013580123893916607,
-0.08488282561302185,
-0.004682558588683605,
-0.015920229256153107,
-0.012706109322607517,
0.015910830348730087,
-0.02131468616425991,
-0.029678914695978165,
-0.07172560691833496,
-0.0008411218877881765,
0.01428497489541769,
-0.0004005901573691517,
-0.005582417827099562,
0.024867134168744087,
0.001775049138814211,
-0.0171513669192791,
0.02691590040922165,
-0.014153402298688889,
-0.0243972335010767,
0.04710282385349274,
0.05123794823884964,
-0.036934178322553635,
0.08548429608345032,
-0.041125692427158356,
-0.03678381070494652,
-0.0030026640743017197,
-0.006484626792371273,
-0.023363452404737473,
0.044997669756412506,
0.03984756022691727,
-0.030205203220248222,
-0.010779516771435738,
0.01385266613215208,
0.022404855117201805
] |
725,440 | lotkavolterra_simulator.simulator | __init__ | null | def __init__(self, X0, Y0, alpha, beta, gamma, delta):
self.X0=X0
self.Y0=Y0
self.alpha=alpha
self.beta=beta
self.gamma=gamma
self.delta=delta
| (self, X0, Y0, alpha, beta, gamma, delta) | [
0.039760518819093704,
-0.0541616789996624,
-0.030468257144093513,
0.003908026032149792,
-0.06278756260871887,
-0.029801879078149796,
-0.059122487902641296,
0.0244708601385355,
-0.016724223271012306,
0.04035285487771034,
-0.0010984815889969468,
0.01952856034040451,
-0.009708749130368233,
0.06819262355566025,
-0.07633724063634872,
-0.008505567908287048,
0.03398524969816208,
0.005326392129063606,
-0.03957541659474373,
-0.009162689559161663,
0.00030195227009244263,
0.0005946492892690003,
-0.030098047107458115,
0.06426840275526047,
-0.007094142958521843,
0.04457324743270874,
0.010162255726754665,
0.027043817564845085,
0.02424873411655426,
-0.04931193217635155,
-0.04072306677699089,
-0.010069703683257103,
-0.0020523499697446823,
0.027414027601480484,
0.00233232113532722,
-0.059714823961257935,
0.03768734633922577,
0.008898915722966194,
-0.04583195969462395,
0.02926507592201233,
0.05038553848862648,
-0.041278380900621414,
0.029561243951320648,
0.0005081706331111491,
0.014280838891863823,
-0.00019479393085930496,
0.008524077944457531,
-0.0006692697061225772,
-0.020861316472291946,
-0.02780274674296379,
-0.01303138118237257,
-0.041056253015995026,
0.05901142582297325,
-0.016576139256358147,
-0.008288069628179073,
0.06689689308404922,
0.05871525779366493,
0.10217787325382233,
-0.011624583974480629,
0.010773101821541786,
-0.03056081011891365,
0.0164002887904644,
0.005057990085333586,
-0.03694692626595497,
-0.02417469210922718,
-0.04409197345376015,
-0.03500332683324814,
0.01685379631817341,
0.022767895832657814,
0.08655502647161484,
0.01989877037703991,
0.06045524403452873,
0.019398987293243408,
-0.005946493241935968,
0.018704844638705254,
-0.004171800334006548,
-0.04849746823310852,
0.07000665366649628,
-0.022397685796022415,
-0.010708315297961235,
-0.024433840066194534,
0.02184237167239189,
-0.026618076488375664,
0.015067534521222115,
0.014049457386136055,
-0.028765292838215828,
-0.015807954594492912,
-0.005488358438014984,
0.023175125941634178,
0.036262039095163345,
-0.039538394659757614,
-0.005025596357882023,
-0.031393781304359436,
-0.019139841198921204,
0.04179667308926582,
0.016307737678289413,
0.025748083367943764,
-0.011365437880158424,
0.03233781456947327,
0.01331829372793436,
-0.012327983044087887,
-0.004653072915971279,
-0.05908546596765518,
0.036632247269153595,
-0.05456890910863876,
-0.024526391178369522,
-0.021472161635756493,
-0.03696543723344803,
-0.008075199089944363,
0.018528994172811508,
0.006839624140411615,
0.056012727320194244,
0.018417932093143463,
0.054346781224012375,
-0.051570210605859756,
-0.04964511841535568,
-0.0559016615152359,
0.023563846945762634,
0.010439912788569927,
-0.010532465763390064,
0.007783658802509308,
0.004407809115946293,
-0.04220390319824219,
0.08263080567121506,
0.0176404919475317,
0.03259696438908577,
0.03233781456947327,
0.028580188751220703,
-0.03581778705120087,
-0.07692957669496536,
0.04016775265336037,
-0.034744180738925934,
-0.03396673873066902,
0.02715488150715828,
0.024878090247511864,
-0.05882631987333298,
0.05667910352349281,
-0.011263629421591759,
-0.014040202833712101,
0.000704555306583643,
0.05671612545847893,
0.007598553784191608,
0.029524222016334534,
0.003618799615651369,
-0.0405009388923645,
0.09351496398448944,
0.04605408385396004,
0.008787852711975574,
-0.03093102015554905,
0.013086912222206593,
0.0015386840095743537,
0.00208705710247159,
0.0368913970887661,
-0.03890903666615486,
0.002498915418982506,
-0.06426840275526047,
-0.012263195589184761,
-0.06049226224422455,
0.03650267422199249,
0.033429935574531555,
-0.03318930044770241,
0.011957773007452488,
-0.020287491381168365,
-0.017881127074360847,
0.031912073493003845,
0.048608534038066864,
-0.0437217652797699,
-0.036206506192684174,
-0.015567317605018616,
-0.0057937814854085445,
0.03250440955162048,
-0.053310196846723557,
-0.025155749171972275,
0.04938597232103348,
0.009819812141358852,
0.011078525334596634,
-0.004393926355987787,
-0.004622993525117636,
0.014715835452079773,
0.027025306597352028,
0.024655966088175774,
0.012439045123755932,
-0.009287635795772076,
0.005659580696374178,
0.004504989366978407,
-0.018186550587415695,
0.02213853970170021,
0.027691684663295746,
0.003431380959227681,
-0.025655532255768776,
0.024878090247511864,
0.04116731882095337,
-0.010338105261325836,
0.014632537961006165,
0.015881994739174843,
0.02839508280158043,
0.028709761798381805,
-0.011235863901674747,
0.029154013842344284,
0.07119132578372955,
-0.003741431748494506,
-0.01193926203995943,
0.0001402024645358324,
-0.04076008498668671,
0.017085177823901176,
-0.005192190874367952,
-0.012550108134746552,
-0.007996529340744019,
-0.022915979847311974,
-0.032356325536966324,
0.00310281990095973,
0.009810556657612324,
0.006927548907697201,
-0.027117859572172165,
0.009121040813624859,
-0.027710195630788803,
0.015234128572046757,
-0.0021495299879461527,
0.01771453395485878,
0.06349096447229385,
0.09070137143135071,
-0.03291163966059685,
-0.014299348928034306,
-0.042944323271512985,
0.016724223271012306,
-0.003732176497578621,
0.046572379767894745,
-0.03085697814822197,
-0.07241301238536835,
-0.06793347746133804,
-0.000017642805687501095,
-0.05219956487417221,
-0.038946058601140976,
-0.012568619102239609,
0.031042082235217094,
0.03420737385749817,
0.0016092552104964852,
-0.011272884905338287,
-0.08899840712547302,
-0.0601220540702343,
0.013272017240524292,
0.028191467747092247,
0.03607693314552307,
0.021472161635756493,
-0.005835430230945349,
0.028783803805708885,
0.019861750304698944,
0.054198697209358215,
-0.048386406153440475,
-0.01655762828886509,
-0.06556413322687149,
0.00673318887129426,
-0.03485524281859398,
0.04986724629998207,
-0.036983948200941086,
-0.02250874973833561,
0.008630513213574886,
-0.013586695306003094,
0.036854375153779984,
0.011967028491199017,
-0.022675342857837677,
-0.0551612451672554,
0.019121330231428146,
0.07326449453830719,
0.06045524403452873,
0.048164281994104385,
0.006561966612935066,
-0.007890094071626663,
-0.010199276730418205,
0.01237425860017538,
0.16363267600536346,
0.01851974055171013,
-0.015169342048466206,
0.01328127272427082,
0.01864931359887123,
-0.01786261796951294,
0.0275806225836277,
-0.04109327495098114,
0.0128555316478014,
0.009417208842933178,
0.05582762137055397,
-0.05086681246757507,
-0.03435545787215233,
0.061750974506139755,
-0.020306002348661423,
-0.04553579166531563,
0.002397107658907771,
0.025896167382597923,
0.04779407009482384,
-0.04042689874768257,
-0.009046999737620354,
0.04579493775963783,
0.021361099556088448,
0.02845061384141445,
0.07722574472427368,
0.02352682501077652,
-0.0014519161777570844,
0.016724223271012306,
-0.0024966015480458736,
0.020750252529978752,
0.045498769730329514,
-0.03731713816523552,
0.007570788264274597,
-0.00319537241011858,
-0.02969081699848175,
0.014447432942688465,
0.025248300284147263,
0.01242053508758545,
0.04749790206551552,
-0.003572523593902588,
0.058271005749702454,
0.04857151210308075,
-0.03478119894862175,
0.03298568353056908,
-0.03726160526275635,
-0.04938597232103348,
0.048460450023412704,
-0.05360636115074158,
-0.007630947045981884,
0.060862474143505096,
0.005303253885358572,
-0.04157454892992973,
-0.05519826337695122,
-0.0262108463793993,
0.0071219089441001415,
0.0014449746813625097,
0.001232104143127799,
0.025859147310256958,
0.00019869848620146513,
0.018334634602069855,
-0.07848445326089859,
-0.009093275293707848,
0.02273087576031685,
0.039316270500421524,
-0.015363702550530434,
-0.07574490457773209,
-0.06019609421491623,
0.037502240389585495,
-0.0034568330738693476,
-0.0316714383661747,
0.025377873331308365,
-0.012513087131083012,
-0.05538336932659149,
0.013697758316993713,
0.045054517686367035,
-0.04349963739514351,
-0.014678814448416233,
-0.06815560162067413,
0.037705857306718826,
0.012716703116893768,
-0.009495878592133522,
0.016937093809247017,
-0.008473174646496773,
0.02730296365916729,
0.045350685715675354,
0.036558207124471664,
-0.004546637646853924,
-0.0336705707013607,
0.0019412870751693845,
-0.018177295103669167,
0.05282892286777496,
-0.004493420012295246,
-0.06515690684318542,
-0.011337671428918839,
-0.041426464915275574,
-0.02176832966506481,
-0.018168039619922638,
-0.03246739134192467,
0.008764714002609253,
0.0258406363427639,
0.024378307163715363,
-0.006085321772843599,
-0.06863687932491302,
0.031541865319013596,
-0.02954273298382759,
0.04464728757739067,
-0.014040202833712101,
0.030893998220562935,
0.036206506192684174,
-0.04690556600689888,
0.01227245107293129,
-0.028987418860197067,
0.0367618203163147,
0.022619811818003654,
0.0008300795452669263,
0.0064647868275642395,
-0.0071404194459319115,
-0.0038964569102972746,
0.08203846961259842,
0.03839074447751045,
-0.014799132011830807,
-0.03170846030116081,
0.044388141483068466,
-0.04209284111857414,
0.030098047107458115,
0.0037622558884322643,
0.07459725439548492,
0.04523962363600731,
-0.05127404257655144,
-0.008922053501009941,
-0.014160520397126675,
-0.0029755604919046164,
-0.0164002887904644,
0.029820390045642853,
0.0004433839349076152,
-0.0402417927980423,
0.044166017323732376,
0.040463920682668686,
0.0002509038313291967,
0.07059898972511292,
-0.012966594658792019,
-0.007552277762442827,
-0.01676124334335327,
-0.03500332683324814,
0.026469992473721504,
-0.02933911792933941,
0.004236587323248386,
-0.036928415298461914,
0.011652350425720215,
-0.02012089639902115,
-0.07211684435606003,
0.02062067948281765,
-0.017372090369462967,
0.037853941321372986,
-0.020509617403149605,
0.012022559531033039,
0.018991757184267044,
-0.025859147310256958,
0.04912682622671127,
0.03165292739868164,
-0.07415299862623215,
-0.008505567908287048,
-0.035743746906518936,
-0.0362805500626564,
0.018538249656558037,
-0.0014727404341101646,
-0.011143311858177185,
-0.00678872037678957,
0.0003363701980561018,
0.04683152586221695,
-0.0012668112758547068,
-0.014539985917508602,
0.07474533468484879,
0.015558062121272087,
-0.06356500089168549,
-0.04553579166531563,
-0.0380205363035202,
-0.019565582275390625,
-0.0025451916735619307,
0.001165582099929452,
0.07341258227825165,
0.06604541093111038,
0.005057990085333586,
-0.0457208976149559,
0.06078843027353287,
-0.03544757887721062,
-0.11942964792251587,
-0.01618741825222969,
0.03107910417020321,
-0.04157454892992973,
-0.0028344178572297096,
-0.004139407072216272,
-0.04660940170288086,
-0.024785539135336876,
-0.07570788264274597,
-0.006238033063709736,
0.06019609421491623,
-0.010643528774380684,
-0.04005668684840202,
-0.0472017340362072,
0.009315401315689087,
-0.020139407366514206,
-0.012550108134746552,
-0.03868691250681877,
-0.009380187839269638,
-0.020787274464964867,
-0.014021691866219044,
-0.004872885067015886,
-0.03529949486255646,
-0.06393521279096603,
-0.07270918041467667,
-0.06845176964998245,
0.011060014367103577,
0.04161157086491585,
-0.0018221258651465178,
0.05612378939986229,
-0.019343456253409386,
-0.02076876349747181,
-0.014456688426434994,
0.014604772441089153,
-0.05823398381471634,
0.027488069608807564,
-0.055790599435567856,
0.00965321809053421,
-0.037502240389585495,
0.01320723071694374,
0.027562111616134644,
0.003533188719302416,
-0.0464613176882267,
0.018973246216773987,
-0.0037807663902640343,
-0.02663658745586872,
-0.00298712938092649,
-0.08137208968400955,
-0.008537961170077324,
-0.03868691250681877,
-0.007297758478671312,
-0.03468864783644676,
-0.0472017340362072,
0.010254808701574802,
0.0065665943548083305,
-0.06323181837797165,
0.010023427195847034,
-0.01172639150172472,
0.018621547147631645,
0.033355891704559326,
-0.07119132578372955,
0.037057988345623016,
-0.052310630679130554,
-0.0020627621561288834,
0.0026169198099523783,
0.037280116230249405,
0.04564685374498367,
-0.014882429502904415,
-0.012540853582322598,
0.05319913104176521,
-0.012762978672981262,
-0.037705857306718826,
0.017677512019872665,
0.028765292838215828,
-0.020009834319353104,
-0.05679016560316086,
-0.020454084500670433,
0.07367172837257385,
-0.035466089844703674,
0.04253709316253662,
0.03572523593902588,
-0.06926622986793518,
-0.029172522947192192,
-0.013160954229533672,
0.02765466459095478,
-0.00588170625269413,
0.007195950951427221,
-0.06500881910324097,
-0.011865220963954926,
-0.041426464915275574,
-0.03613246604800224,
-0.009088647551834583,
-0.015789443626999855,
-0.011263629421591759,
0.048312366008758545,
-0.056086767464876175,
-0.048090238124132156,
0.006594359874725342,
0.021231526508927345,
0.031042082235217094,
0.007862328551709652,
-0.02474851720035076,
-0.004067678935825825,
0.03194909542798996,
-0.02295299991965294,
-0.02628488838672638,
0.03392971679568291,
0.03483673185110092,
-0.07648532092571259,
-0.008056688122451305,
0.010995227843523026,
0.010671294294297695,
-0.008723066188395023,
0.025896167382597923,
0.03972350060939789,
-0.002612292068079114,
0.004444830119609833,
-0.014502964913845062,
-0.04261113703250885,
0.008139985613524914,
-0.012004049494862556,
-0.009718004614114761,
-0.039908602833747864,
-0.008778597228229046,
0.04653535783290863,
0.0019331887597218156,
-0.07541171461343765,
-0.07459725439548492,
0.008940563537180424,
0.05867823585867882,
-0.029061460867524147,
0.03041272610425949,
0.02380448393523693,
-0.05282892286777496,
0.006821113638579845,
0.005048734601587057,
-0.044166017323732376,
-0.025359364226460457,
-0.06163991242647171,
-0.023563846945762634,
0.019510051235556602,
-0.029135502874851227,
0.013336803764104843,
-0.01350339874625206,
-0.011189587414264679,
0.007353289984166622,
0.003496167715638876,
0.0683407112956047,
-0.020083876326680183,
-0.02258279174566269,
0.006524945609271526,
0.02236066572368145,
-0.036484163254499435,
-0.005224584136158228,
0.04275921732187271,
-0.020491106435656548,
0.01596529223024845,
-0.014021691866219044,
-0.03433694690465927,
0.000978741911239922,
0.0023612435907125473,
0.028413593769073486,
-0.003857122268527746,
0.07411597669124603,
-0.029376138001680374,
-0.009801301173865795,
-0.0551612451672554,
0.033726103603839874,
-0.01670571230351925,
-0.054346781224012375,
0.04327751323580742,
-0.09003499895334244,
0.03224526345729828,
0.014549240469932556,
0.059492696076631546,
0.031986117362976074,
-0.019935792312026024,
-0.07618915289640427,
-0.02606276236474514,
0.0026840202044695616,
0.002781200222671032,
0.01879739761352539,
0.03326334059238434,
0.02685871347784996,
0.002281417138874531,
0.054124657064676285,
0.045054517686367035,
0.027562111616134644,
-0.005960376001894474,
-0.007418076507747173,
-0.04038987681269646,
0.004562834277749062,
0.05453188717365265,
-0.0017561821732670069,
0.002556760562583804,
-0.001993347890675068,
0.00332957343198359,
0.04946001619100571,
-0.03724309429526329,
0.020157918334007263,
-0.04509153962135315,
0.02345278300344944,
0.07515256851911545,
-0.015946783125400543,
-0.06615646928548813,
0.0378909632563591,
0.018251337110996246,
0.02112046256661415,
0.02454490214586258,
-0.0030866232700645924,
0.0003780187980737537,
-0.030024005100131035,
-0.028061894699931145,
0.028358062729239464,
-0.03646565601229668,
-0.016863051801919937,
-0.010125234723091125,
0.0014276211149990559,
0.0028251626063138247,
-0.0628616064786911,
0.05641995742917061,
0.01975068636238575,
0.03842776641249657,
0.04464728757739067,
0.013669992797076702,
0.0633428767323494,
0.0067054228857159615,
-0.055790599435567856,
0.03839074447751045,
0.06382414698600769,
-0.009125668555498123,
0.052680838853120804,
0.04623918980360031,
0.014928705990314484,
-0.02722892351448536,
-0.035910338163375854,
0.045202601701021194,
-0.001053940737619996,
-0.027765726670622826,
-0.010615763254463673,
-0.05227360874414444,
-0.030579321086406708,
0.032856110483407974,
-0.02859869785606861,
0.009301518090069294,
0.0244708601385355,
-0.09388517588376999,
0.0914417952299118,
0.005539262667298317,
-0.027062328532338142,
0.007172812707722187,
-0.017464641481637955,
0.014206796884536743,
-0.049941286444664,
0.01785336248576641,
0.04101923480629921,
0.0028598697390407324,
-0.05075574666261673,
0.03798351436853409,
0.06049226224422455,
-0.0231010839343071,
0.007524511776864529,
-0.02687722258269787,
0.021287057548761368,
-0.001963268266990781,
-0.02861720882356167,
0.04190773516893387,
0.031264208257198334,
-0.028154447674751282,
-0.017668256536126137,
-0.011300650425255299,
-0.046498335897922516,
-0.017696022987365723,
-0.04864555224776268,
-0.007265365216881037,
0.058345045894384384,
-0.0025359364226460457,
0.022619811818003654,
-0.01654837280511856,
-0.05701229348778725,
-0.008885032497346401,
-0.023711930960416794,
0.026821691542863846,
0.07245003432035446,
-0.017696022987365723,
-0.021138973534107208,
-0.016872307285666466,
-0.010356616228818893,
-0.0009891539812088013,
0.02163875661790371,
0.00597425876185298,
0.011717136949300766,
-0.005650325212627649,
-0.0024850324261933565,
0.010208532214164734,
0.05549443140625954,
0.03752075135707855,
0.03846478834748268,
0.07356066256761551,
-0.04575791582465172,
-0.0006316702929325402,
0.021731309592723846,
0.006404627580195665,
-0.07152450829744339,
-0.05445784702897072,
-0.0270808394998312,
0.020380042493343353,
0.015428489074110985,
0.011448734439909458,
0.061158642172813416,
0.06748922914266586,
0.023415762931108475
] |
725,441 | lotkavolterra_simulator.simulator | compute_dtheta_domega | Computes the gradient of the latent function theta with respect to
the parameters omega, using finite differences.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Delta_omega : double
step size for finite differences
Returns
-------
grad_theta : array, double, dimension=(2*S, 4)
gradient of theta with respect to omega
| def compute_dtheta_domega(self, t, t_s, tres, Delta_omega):
"""Computes the gradient of the latent function theta with respect to
the parameters omega, using finite differences.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Delta_omega : double
step size for finite differences
Returns
-------
grad_theta : array, double, dimension=(2*S, 4)
gradient of theta with respect to omega
"""
import numpy as np
omega0 = self.omega
tmax = len(t_s)
grad_theta = np.zeros((2*tmax,4))
theta_0 = self.compute_theta(omega0, t, t_s, tres)
for n in range(4):
omega_p1, omega_p2, omega_p3, omega_m1, omega_m2, omega_m3 = np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0), np.copy(omega0)
omega_p1[n] += 1*Delta_omega
omega_p2[n] += 2*Delta_omega
omega_p3[n] += 3*Delta_omega
omega_m1[n] -= 1*Delta_omega
omega_m2[n] -= 2*Delta_omega
omega_m3[n] -= 3*Delta_omega
theta_p1 = self.compute_theta(omega_p1, t, t_s, tres)
theta_p2 = self.compute_theta(omega_p2, t, t_s, tres)
theta_p3 = self.compute_theta(omega_p3, t, t_s, tres)
theta_m1 = self.compute_theta(omega_m1, t, t_s, tres)
theta_m2 = self.compute_theta(omega_m2, t, t_s, tres)
theta_m3 = self.compute_theta(omega_m3, t, t_s, tres)
#grad_theta[:,n]=(theta_p1 - theta_0)/Delta_omega
#grad_theta[:,n]=(-1/2.*theta_m1 + 1/2.*theta_p1)/Delta_omega
#grad_theta[:,n]=(1/12.*theta_m2 - 2/3.*theta_m1 + 2/3.*theta_p1 - 1/12.*theta_p2)/Delta_omega
grad_theta[:,n]=(-1/60.*theta_m3 + 3/20.*theta_m2 - 3/4.*theta_m1 + 3/4.*theta_p1 - 3/20.*theta_p2 + 1/60.*theta_p3)/Delta_omega
return grad_theta
| (self, t, t_s, tres, Delta_omega) | [
-0.008200181648135185,
0.00281835300847888,
0.011391048319637775,
0.05924913287162781,
-0.010577402077615261,
0.0002389473229413852,
-0.0569356344640255,
-0.02793845720589161,
-0.06109209358692169,
-0.016880709677934647,
0.04383886978030205,
-0.015067161060869694,
0.030016684904694557,
-0.03252624347805977,
-0.02433096431195736,
0.016468985006213188,
-0.026938553899526596,
0.06897367537021637,
-0.00668072234839201,
-0.024781901389360428,
-0.00037557617179118097,
-0.03848645091056824,
-0.013283020816743374,
-0.0011009958107024431,
-0.05517109856009483,
0.008504074066877365,
-0.007180673535913229,
0.021429287269711494,
-0.04183906316757202,
-0.011165579780936241,
0.004239783156663179,
-0.006950303912162781,
-0.01567494496703148,
-0.022978154942393303,
0.013596715405583382,
-0.035663194954395294,
0.02721303701400757,
0.03956477716565132,
-0.11551816761493683,
0.02376239188015461,
-0.021056773141026497,
-0.06854234635829926,
0.017625734210014343,
-0.013939819298684597,
0.003347713267430663,
-0.049563802778720856,
-0.02911481261253357,
0.07646314799785614,
-0.02838939242064953,
0.021821405738592148,
0.06438589096069336,
-0.11794929951429367,
-0.010822475887835026,
-0.0455641932785511,
-0.012214496731758118,
0.09324582666158676,
0.05481819435954094,
0.029624566435813904,
0.024742688983678818,
-0.034075114876031876,
0.029173631221055984,
-0.015567111782729626,
0.04034901410341263,
0.028938358649611473,
-0.02870308794081211,
0.03803551197052002,
-0.006656214594841003,
-0.03883935511112213,
0.012459571473300457,
0.04313305765390396,
0.002970298985019326,
-0.01216548215597868,
0.06305268406867981,
-0.04540734365582466,
0.005602395627647638,
-0.0006463831523433328,
-0.020703867077827454,
-0.06105288118124008,
-0.02646801248192787,
-0.024879930540919304,
-0.08508975803852081,
0.0034677996300160885,
0.015184796415269375,
0.028918754309415817,
0.02668367698788643,
0.0077100335620343685,
-0.03838841989636421,
0.005376927554607391,
-0.049367744475603104,
-0.05815120041370392,
-0.025958256796002388,
-0.04881877824664116,
0.012096861377358437,
-0.0027129712980240583,
-0.01773356832563877,
-0.00932262185961008,
-0.02388002909719944,
-0.005617100279778242,
-0.02335066720843315,
0.004460350144654512,
0.07034609466791153,
-0.01716499589383602,
-0.012038043700158596,
0.01864524371922016,
0.04297620803117752,
-0.03515344113111496,
-0.04411335289478302,
-0.020586231723427773,
0.038584478199481964,
-0.06391534954309464,
-0.07011082023382187,
0.08610926568508148,
0.051838092505931854,
-0.03166358545422554,
-0.009131464175879955,
-0.046073947101831436,
-0.006631707306951284,
0.032663486897945404,
-0.0451720729470253,
-0.013714350759983063,
0.04415256530046463,
0.027801215648651123,
-0.016714058816432953,
0.042270395904779434,
0.021468497812747955,
-0.027644367888569832,
0.03932950645685196,
0.02452702447772026,
-0.008597202599048615,
-0.036506250500679016,
-0.00842565018683672,
0.019027559086680412,
0.04787769168615341,
0.016086669638752937,
0.04752478376030922,
-0.004558379761874676,
-0.009239296428859234,
-0.015047554858028889,
-0.01552790030837059,
-0.058896228671073914,
-0.013341838493943214,
-0.01269484218209982,
-0.026173923164606094,
0.0031026392243802547,
0.02342909201979637,
0.061876330524683,
0.027173824608325958,
0.010312721133232117,
-0.04560340195894241,
0.01575336791574955,
-0.031153829768300056,
0.0019752979278564453,
0.03883935511112213,
-0.01374376006424427,
-0.0222135242074728,
0.024076087400317192,
-0.0027889441698789597,
0.01970396377146244,
-0.05117148905992508,
0.008072743192315102,
-0.04270172491669655,
0.00022715312661603093,
-0.03952556475996971,
0.026664070785045624,
-0.012959523126482964,
-0.0014569660415872931,
0.002556123770773411,
0.01336144469678402,
-0.01768455281853676,
0.02842860482633114,
0.0029531437903642654,
0.016331743448972702,
0.016351349651813507,
0.012302723713219166,
-0.008984419517219067,
0.033388905227184296,
0.0031516540329903364,
-0.06540539860725403,
-0.027134614065289497,
0.01567494496703148,
0.022684065625071526,
-0.01133222971111536,
0.012930113822221756,
-0.023174215108156204,
0.0008093575015664101,
0.05379868298768997,
0.029526537284255028,
-0.02923244796693325,
0.009753952734172344,
0.0005875653587281704,
-0.003864819882437587,
-0.014233908616006374,
0.02380160428583622,
0.035584770143032074,
0.07018924504518509,
0.0261935293674469,
0.06273899227380753,
0.010312721133232117,
0.05383789539337158,
0.009695135056972504,
0.024213328957557678,
0.02448781207203865,
-0.0019691709894686937,
-0.04627000540494919,
0.007562989369034767,
-0.021350862458348274,
0.02346830442547798,
0.019949037581682205,
-0.023546727374196053,
0.04423098638653755,
0.010714643634855747,
-0.006420943420380354,
-0.057837508618831635,
0.000977845978923142,
0.01863544061779976,
-0.02915402501821518,
0.09473587572574615,
0.01686110347509384,
0.03750615194439888,
-0.008205083198845387,
-0.00004005431037512608,
-0.016292531043291092,
0.0017155192326754332,
-0.04685818403959274,
0.042427241802215576,
-0.039388321340084076,
0.01772376522421837,
0.027781609445810318,
0.007116954308003187,
-0.06195475161075592,
0.005073035601526499,
0.023664362728595734,
-0.009219691157341003,
-0.0034972084686160088,
0.08289389312267303,
0.004411335103213787,
0.00990589801222086,
-0.05254390463232994,
0.029487324878573418,
-0.006072938442230225,
-0.0527791753411293,
-0.009312818758189678,
-0.012626221403479576,
0.05344577878713608,
-0.03689836710691452,
-0.001589306048117578,
0.033879056572914124,
0.01802765764296055,
-0.010636219754815102,
0.01000392809510231,
-0.06046470254659653,
-0.04889719933271408,
0.009847080335021019,
0.0012560051400214434,
-0.06391534954309464,
-0.0012308850418776274,
0.1097148060798645,
0.07226747274398804,
0.03174200654029846,
-0.035212259739637375,
0.044740743935108185,
-0.06285662949085236,
-0.022899731993675232,
0.02699737250804901,
-0.053210508078336716,
0.00911185797303915,
-0.0030193140264600515,
-0.050583310425281525,
-0.02842860482633114,
0.03560437634587288,
0.14453494548797607,
0.08752088993787766,
-0.054347649216651917,
-0.06469958275556564,
0.037486545741558075,
0.007876683957874775,
0.0857955664396286,
-0.0030021588318049908,
-0.02027253620326519,
0.00481325713917613,
-0.04313305765390396,
-0.11457708477973938,
0.0356828011572361,
0.013930016197264194,
-0.06999318301677704,
-0.004350066650658846,
-0.015302431769669056,
-0.006367027293890715,
0.07775713503360748,
0.011890999041497707,
-0.004886779002845287,
-0.0261935293674469,
0.035663194954395294,
0.02335066720843315,
0.11434181034564972,
0.04199591279029846,
-0.03240860998630524,
-0.00878836028277874,
-0.016047457233071327,
-0.015302431769669056,
0.03532989323139191,
0.030663682147860527,
0.008347226306796074,
-0.05121070146560669,
-0.043603599071502686,
-0.02805609256029129,
0.09771597385406494,
-0.0023735433351248503,
0.07360067963600159,
-0.026173923164606094,
-0.010812672786414623,
-0.028859935700893402,
0.003928539343178272,
0.0394863523542881,
-0.02638958767056465,
-0.04019216448068619,
-0.012998734600841999,
-0.04427019879221916,
0.041015613824129105,
0.03729048743844032,
-0.0033256567548960447,
0.038133542984724045,
0.018321745097637177,
-0.028997177258133888,
0.044740743935108185,
-0.023409485816955566,
0.020743079483509064,
-0.00973434653133154,
0.013234006240963936,
0.038702115416526794,
-0.008175674825906754,
-0.030016684904694557,
-0.03478092700242996,
0.018625637516379356,
0.03176161274313927,
-0.055249523371458054,
0.033349692821502686,
-0.01844918355345726,
0.004291248973459005,
-0.038055118173360825,
0.010616613551974297,
0.01978238858282566,
-0.04795611649751663,
0.025409290567040443,
0.007646314334124327,
-0.05956282839179039,
0.03483974561095238,
-0.01616509258747101,
0.03772181645035744,
0.06328795850276947,
0.03727088123559952,
0.06920894980430603,
-0.03917265683412552,
0.057602234184741974,
0.03184003755450249,
0.055563218891620636,
-0.00655818497762084,
-0.0134790800511837,
0.01332223229110241,
0.01032252423465252,
-0.0512499138712883,
0.07109111547470093,
0.015802383422851562,
0.04148615896701813,
0.042309608310461044,
-0.03893738612532616,
-0.0368199460208416,
0.02850702963769436,
0.016331743448972702,
-0.020331354811787605,
0.022527217864990234,
0.005146557930856943,
0.036270979791879654,
0.02521323226392269,
0.005347518716007471,
0.03195767477154732,
-0.007136560045182705,
-0.029624566435813904,
-0.03864329680800438,
-0.02862466499209404,
-0.0029825528617948294,
-0.014890707097947598,
0.009092251770198345,
0.01951770856976509,
0.03772181645035744,
-0.027624761685729027,
0.04925010725855827,
-0.055249523371458054,
0.05622981861233711,
-0.02342909201979637,
0.0014974032528698444,
-0.057680658996105194,
0.037564970552921295,
0.042348816990852356,
-0.026252346113324165,
0.016331743448972702,
-0.004913737531751394,
0.03997649997472763,
-0.07034609466791153,
0.02452702447772026,
0.010616613551974297,
-0.07089506089687347,
0.017184602096676826,
0.02813451550900936,
-0.02338987961411476,
-0.06273899227380753,
0.05034803971648216,
-0.014351543970406055,
0.010979323647916317,
0.12547798454761505,
-0.005798455327749252,
0.049328532069921494,
0.014890707097947598,
0.025291655212640762,
-0.029467718675732613,
0.006607200019061565,
-0.09842178970575333,
-0.013861395418643951,
0.020527413114905357,
0.038623690605163574,
0.0026345474179834127,
-0.05803356692194939,
-0.008945208042860031,
0.03819236159324646,
0.06791495531797409,
0.0015010794159024954,
0.0042838966473937035,
0.019086377695202827,
-0.027879638597369194,
0.022331159561872482,
0.023585939779877663,
0.029859839007258415,
-0.01586120016872883,
-0.020743079483509064,
0.012116467580199242,
0.029526537284255028,
0.014626027084887028,
0.006857175379991531,
0.04791690409183502,
-0.00700422003865242,
-0.0027374785859137774,
0.012136073783040047,
0.01735125295817852,
-0.055406369268894196,
-0.006411140784621239,
-0.027801215648651123,
-0.012116467580199242,
-0.051994938403367996,
-0.035820040851831436,
-0.0027276757173240185,
0.0012455895775929093,
0.07979615032672882,
0.05956282839179039,
-0.019115786999464035,
0.020037265494465828,
-0.034526050090789795,
0.0330360010266304,
-0.04085876792669296,
-0.03629058599472046,
-0.026605254039168358,
0.0008203858160413802,
0.0508577935397625,
0.03944713994860649,
0.008945208042860031,
0.02680131234228611,
-0.04521128535270691,
0.022978154942393303,
0.005195572506636381,
-0.006719933822751045,
-0.07183614373207092,
0.01875307597219944,
0.006984614301472902,
-0.0267620999366045,
-0.01711598038673401,
0.004350066650658846,
-0.03470250591635704,
-0.05246547982096672,
0.03542792424559593,
0.0220174640417099,
-0.07042451947927475,
-0.0172728281468153,
-0.029526537284255028,
0.044740743935108185,
0.004122147802263498,
0.04768163338303566,
0.034604474902153015,
0.00185521156527102,
-0.029173631221055984,
0.025350473821163177,
-0.013890804722905159,
-0.01121459435671568,
-0.027644367888569832,
-0.01342026237398386,
0.025232838466763496,
-0.07167929410934448,
-0.013390853069722652,
0.007445353548973799,
-0.026487616822123528,
0.037447333335876465,
0.045721039175987244,
0.03272230550646782,
0.0016983640380203724,
-0.020174507051706314,
-0.019272632896900177,
-0.01594942808151245,
-0.051602818071842194,
-0.03309481590986252,
0.021017562597990036,
-0.05121070146560669,
0.011155776679515839,
-0.05803356692194939,
-0.019370663911104202,
-0.002027988899499178,
0.035055410116910934,
0.006131756119430065,
-0.02578180469572544,
-0.06466037034988403,
0.013635927811264992,
0.03856487199664116,
-0.042505666613578796,
-0.07611023634672165,
0.07469861209392548,
-0.017792385071516037,
0.057719871401786804,
-0.0025291654746979475,
0.06273899227380753,
-0.029467718675732613,
-0.04132930934429169,
0.01970396377146244,
0.00931772030889988,
-0.011096959002315998,
-0.0383296012878418,
0.034526050090789795,
0.016998345032334328,
-0.021919434890151024,
-0.04677975922822952,
-0.026860130950808525,
-0.09583380818367004,
-0.048152174800634384,
-0.03583964705467224,
0.016410166397690773,
-0.022605642676353455,
0.032055702060461044,
-0.07540442049503326,
-0.044740743935108185,
-0.0005848082364536822,
0.024193722754716873,
0.03182043135166168,
0.04874035343527794,
0.02501717209815979,
0.017929626628756523,
-0.024056481197476387,
0.015155387111008167,
0.02395845204591751,
-0.030604863539338112,
0.00858249794691801,
-0.018135489895939827,
0.00007329249638132751,
-0.006190573796629906,
0.0030536241829395294,
-0.04172142967581749,
-0.06830707937479019,
0.00005387802593759261,
-0.0009735571802593768,
-0.0721498355269432,
0.044701531529426575,
0.05109306424856186,
-0.0005979809793643653,
-0.06685623526573181,
0.031526342034339905,
-0.029546143487095833,
0.008126660250127316,
-0.009303015656769276,
-0.02976180799305439,
-0.00608274107798934,
0.01867465302348137,
0.002254682360216975,
-0.04423098638653755,
-0.03280072659254074,
-0.05254390463232994,
0.02631116472184658,
-0.02907560020685196,
-0.022409582510590553,
-0.013283020816743374,
0.01867465302348137,
0.04901483654975891,
-0.025958256796002388,
0.03085974045097828,
-0.004962752107530832,
-0.0003336072259116918,
-0.0390942320227623,
0.02991865575313568,
-0.03158516064286232,
-0.025801409035921097,
-0.04391729459166527,
0.05936677008867264,
-0.021625345572829247,
0.008175674825906754,
0.03401629626750946,
0.02262524887919426,
-0.0755612701177597,
0.002197090070694685,
-0.010293115861713886,
-0.013871198520064354,
-0.035212259739637375,
-0.019498102366924286,
0.045956309884786606,
-0.024801507592201233,
0.010023534297943115,
-0.11755718290805817,
0.028036486357450485,
-0.01982159912586212,
0.018155096098780632,
-0.01368494238704443,
-0.024683872237801552,
-0.008700133301317692,
-0.015498491004109383,
0.023605545982718468,
0.02489953674376011,
0.021233227103948593,
-0.02160573936998844,
0.04266251251101494,
0.01311636995524168,
-0.011057746596634388,
-0.03713364154100418,
-0.04152536764740944,
0.0203117486089468,
-0.06744441390037537,
-0.022958548739552498,
-0.04791690409183502,
-0.02517401985824108,
0.0016419970197603106,
-0.032781124114990234,
0.011381245218217373,
-0.014322135597467422,
0.0021443990990519524,
0.0025830818340182304,
0.010557795874774456,
-0.006582692731171846,
-0.026624858379364014,
-0.028350181877613068,
0.05246547982096672,
-0.001463092863559723,
0.012302723713219166,
-0.015233810991048813,
0.007616905495524406,
-0.005896484944969416,
-0.0003185964305885136,
0.014773071743547916,
0.026036681607365608,
-0.02740909717977047,
0.044583894312381744,
-0.014400558546185493,
-0.024683872237801552,
-0.051955725997686386,
-0.02091953158378601,
-0.012861493043601513,
-0.00673954002559185,
0.030055897310376167,
-0.021742980927228928,
0.06709150969982147,
0.028918754309415817,
-0.034643687307834625,
-0.05234784632921219,
0.0170865710824728,
-0.04497601464390755,
-0.009940208867192268,
0.035212259739637375,
0.03811393678188324,
-0.008812867105007172,
0.001269484288059175,
-0.02364475652575493,
-0.02729145996272564,
0.022527217864990234,
0.038584478199481964,
-0.00027417673845775425,
0.04674054682254791,
0.004766692873090506,
0.04160379245877266,
0.018174700438976288,
0.04050586000084877,
0.042309608310461044,
0.01802765764296055,
0.01285168994218111,
-0.010969520546495914,
0.00436722207814455,
0.049642227590084076,
-0.004766692873090506,
0.016125882044434547,
0.011263608932495117,
-0.017302237451076508,
0.02736988477408886,
0.023487908765673637,
0.039309900254011154,
0.09277528524398804,
0.01875307597219944,
-0.051955725997686386,
0.01682189106941223,
-0.01431233249604702,
-0.012626221403479576,
-0.008744246326386929,
-0.03372220695018768,
-0.014988737180829048,
0.051681242883205414,
-0.008459961041808128,
0.012116467580199242,
0.043682023882865906,
-0.04619158059358597,
-0.05293602496385574,
-0.00795020628720522,
0.00006471489905379713,
0.013949622400105,
0.02209588885307312,
0.006435648072510958,
-0.027644367888569832,
-0.034526050090789795,
0.001959368120878935,
-0.05117148905992508,
0.02752673253417015,
0.03366338834166527,
-0.007861979305744171,
-0.02331145666539669,
0.03136949613690376,
0.06211160123348236,
-0.04532891884446144,
-0.00326438806951046,
0.021997857838869095,
-0.007430649362504482,
-0.02968338504433632,
-0.02858545258641243,
-0.0023024720139801502,
0.051602818071842194,
0.06473879516124725,
-0.0008320268243551254,
-0.028938358649611473,
-0.0172728281468153,
0.03438881039619446,
0.023781998082995415,
-0.0698363408446312,
0.05709248036146164,
-0.039153050631284714,
0.032585062086582184,
-0.028408998623490334,
0.013283020816743374,
-0.00991079956293106,
0.010626416653394699,
-0.037035610526800156,
-0.0059602041728794575,
0.01735125295817852,
-0.001693462603725493,
0.056661151349544525,
-0.02862466499209404,
-0.01731204055249691,
-0.002451967215165496,
0.027115007862448692,
0.014018243178725243,
0.01133222971111536,
-0.06571909040212631,
-0.021762587130069733,
-0.003894228721037507,
0.0016787581844255328,
0.012998734600841999,
0.012636024504899979,
0.05873937904834747,
-0.020096082240343094,
0.021154804155230522,
-0.05587691441178322,
0.005656312219798565
] |
725,442 | lotkavolterra_simulator.simulator | compute_theta | Solves the Lotka-Volterra system of equations and
returns theta, the latent function that is the next layer
of the Bayesian hierarchical model.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Returns
-------
theta : array, double, dimension=S
vector of values of the latent function at t_s
| def compute_theta(self, omega, t, t_s, tres):
"""Solves the Lotka-Volterra system of equations and
returns theta, the latent function that is the next layer
of the Bayesian hierarchical model.
Parameters
----------
t : array, double, dimension=n
array of time values where we approximate X and Y values
timestep at each iteration is given by t[n+1] - t[n].
t_s : array, double, dimension=S
array of the support time vales where theta is defined
tres : double
time resolution, defined such that:
t = np.linspace(0,tmax-1,tmax*tres+1)
t_s = np.arange(tmax)
Returns
-------
theta : array, double, dimension=S
vector of values of the latent function at t_s
"""
LV = LVsimulator(self.X0, self.Y0, omega[0], omega[1], omega[2], omega[3])
Xtheory, Ytheory = LV.EEuler(t)
X, Y = LV.get_XY(t_s, tres, Xtheory, Ytheory)
theta = LV.get_theta(X, Y)
return theta
| (self, omega, t, t_s, tres) | [
0.011234435252845287,
-0.024316878989338875,
0.015259802341461182,
0.08855808526277542,
0.006275914143770933,
0.0005120335845276713,
-0.09309577196836472,
-0.06107580289244652,
-0.028323950245976448,
-0.0004665766900870949,
0.024938981980085373,
-0.05836782976984978,
-0.0023923490662127733,
-0.021517418324947357,
-0.08226387202739716,
0.010136607103049755,
-0.03791164234280586,
0.014655997045338154,
-0.03304460644721985,
-0.021736985072493553,
-0.008961017243564129,
0.001104117138311267,
0.007350869942456484,
0.061002615839242935,
-0.03750910609960556,
-0.02327394299209118,
0.03234931826591492,
-0.0020218323916196823,
-0.07091965526342392,
-0.028744783252477646,
-0.0025250031612813473,
-0.013430089689791203,
0.010777006857097149,
-0.025963621214032173,
-0.007913506589829922,
-0.009180582128465176,
0.04585259407758713,
0.01621125265955925,
-0.08321532607078552,
-0.014491323381662369,
-0.024225393310189247,
-0.05463521555066109,
0.04252251982688904,
-0.007945526391267776,
-0.009670030325651169,
-0.041680850088596344,
-0.019468141719698906,
0.05917290225625038,
0.009130265563726425,
0.02109658531844616,
0.036667440086603165,
-0.05167108029127121,
0.020254917442798615,
-0.07582328468561172,
-0.033758196979761124,
0.09463272988796234,
0.05598920211195946,
0.03503899648785591,
0.04329099878668785,
-0.014299203641712666,
0.05068303644657135,
-0.012716501951217651,
0.008837511762976646,
0.03220294043421745,
0.0030945013277232647,
0.028378840535879135,
-0.011847388930618763,
0.011948022991418839,
0.007886060513556004,
0.04124172031879425,
-0.004521677270531654,
-0.030885547399520874,
0.028909457847476006,
-0.03697849065065384,
0.011883982457220554,
0.0076847923919558525,
-0.053171444684267044,
-0.017546942457556725,
-0.030922140926122665,
-0.002183075761422515,
-0.10356172919273376,
-0.017675023525953293,
0.024261988699436188,
0.01789458841085434,
-0.01590934954583645,
-0.028214167803525925,
-0.00863624271005392,
-0.026073403656482697,
0.0020618573762476444,
0.0013471258571371436,
-0.05781891569495201,
-0.020584266632795334,
0.01796777732670307,
0.022139521315693855,
-0.02942177653312683,
0.022871406748890877,
0.026238078251481056,
-0.022267600521445274,
-0.00636282516643405,
-0.02962304651737213,
0.04665767028927803,
0.020090242847800255,
-0.024115610867738724,
0.050829414278268814,
0.01666868105530739,
-0.027390796691179276,
-0.05576963722705841,
-0.025176843628287315,
0.07318849861621857,
0.0031836996786296368,
-0.06901675462722778,
0.08460590988397598,
-0.0015232356963679194,
0.0099536357447505,
-0.05855080112814903,
-0.030171958729624748,
-0.009189731441438198,
0.00024343753466382623,
-0.05463521555066109,
-0.018068410456180573,
0.03503899648785591,
0.030391525477170944,
-0.019596220925450325,
0.027646956965327263,
0.004757252521812916,
0.003085352713242173,
0.04607216268777847,
0.0038950005546212196,
-0.06118558719754219,
-0.03889968991279602,
0.05229318514466286,
0.02261524647474289,
0.04727977141737938,
0.03028174303472042,
0.052549343556165695,
-0.014967048540711403,
0.010127458721399307,
-0.024481553584337234,
-0.011774200014770031,
-0.00035936696804128587,
-0.009624287486076355,
0.012185885570943356,
-0.014216866344213486,
-0.024316878989338875,
0.0346730537712574,
0.02733590453863144,
0.0209319107234478,
-0.049438830465078354,
-0.03886309266090393,
-0.016119766980409622,
-0.021407635882496834,
-0.02466452494263649,
0.03849714994430542,
-0.008741451427340508,
-0.03249569609761238,
-0.005855080205947161,
0.04091237112879753,
-0.03470964729785919,
0.020382996648550034,
-0.03642957657575607,
-0.07655517011880875,
0.014674294739961624,
-0.0574529729783535,
-0.004023080226033926,
-0.01756523922085762,
-0.038643527776002884,
-0.021572310477495193,
0.02310926839709282,
-0.04899970069527626,
0.008896976709365845,
-0.015671487897634506,
-0.000346215907484293,
-0.05309825763106346,
-0.0061661312356591225,
-0.0005860797828063369,
0.002292858436703682,
0.030062176287174225,
-0.01565319113433361,
0.02843373268842697,
-0.010017676278948784,
-0.008215408772230148,
0.017857994884252548,
-0.0076847923919558525,
-0.014802373945713043,
0.007963824085891247,
0.03421562537550926,
0.024554742500185966,
-0.0005652096588164568,
-0.036008741706609726,
-0.0005992308724671602,
-0.016229549422860146,
-0.00041139943641610444,
0.04201019927859306,
0.017857994884252548,
0.027116339653730392,
0.0595022514462471,
0.05635514482855797,
0.04402288421988487,
-0.026622317731380463,
0.02942177653312683,
0.04892651364207268,
-0.0036136822309345007,
-0.002973282942548394,
-0.015863606706261635,
-0.01618380658328533,
0.002208234276622534,
0.007666495628654957,
0.020748939365148544,
-0.03567939251661301,
0.004702361300587654,
0.023987531661987305,
-0.0006552658160217106,
-0.05686746537685394,
-0.0005051721818745136,
-0.008032438345253468,
-0.049804773181676865,
0.06466203927993774,
0.03555131331086159,
0.057599350810050964,
-0.014747482724487782,
0.014967048540711403,
-0.022377384826540947,
0.027098042890429497,
-0.03298971801996231,
0.03143446147441864,
-0.039046064019203186,
0.003654850646853447,
0.03399605676531792,
-0.018040966242551804,
-0.04091237112879753,
0.014747482724487782,
0.00007840603939257562,
0.022542057558894157,
-0.04314462095499039,
0.01627529226243496,
0.008293172344565392,
-0.002030981006100774,
-0.012679907493293285,
-0.022633543238043785,
-0.025103656575083733,
-0.015497664920985699,
-0.013283712789416313,
-0.011271028779447079,
0.04288846254348755,
-0.0775798112154007,
0.0015872756484895945,
0.034325405955314636,
0.02962304651737213,
-0.013302009552717209,
-0.022725028917193413,
-0.04464498534798622,
-0.060014571994543076,
0.027299311012029648,
0.031178301200270653,
0.0045697069726884365,
-0.05986819416284561,
0.08021459728479385,
0.08189792931079865,
0.04468157887458801,
-0.011216137558221817,
0.010841046459972858,
0.002067575231194496,
-0.04098556190729141,
0.048121437430381775,
-0.0775798112154007,
0.011664417572319508,
-0.023859450593590736,
-0.00929493922740221,
0.015369584783911705,
0.04325440526008606,
0.09690157324075699,
0.0824834406375885,
-0.04270549118518829,
-0.043034836649894714,
0.047499336302280426,
0.012094399891793728,
0.05734318867325783,
0.005512008909136057,
-0.03492921218276024,
0.03500239923596382,
-0.0484141930937767,
-0.04695042222738266,
-0.008764322847127914,
0.03944860026240349,
-0.09097330272197723,
-0.02175528183579445,
-0.04091237112879753,
-0.05331782251596451,
0.05306166410446167,
-0.027061447501182556,
-0.017190149053931236,
-0.020456185564398766,
0.041022155433893204,
0.02918391488492489,
0.1301291584968567,
0.0001801123289624229,
-0.06751639395952225,
-0.023164160549640656,
0.04468157887458801,
-0.037692077457904816,
0.04193701222538948,
0.0053519089706242085,
0.038716718554496765,
-0.05536710098385811,
-0.014043043367564678,
-0.016915692016482353,
0.06510116904973984,
0.015259802341461182,
0.02224930375814438,
-0.0018537275027483702,
-0.033227577805519104,
0.012341410852968693,
0.05039028450846672,
0.009615139104425907,
-0.05683087185025215,
-0.021883361041545868,
-0.017482902854681015,
-0.04398629069328308,
0.036173418164253235,
0.032568883150815964,
0.01766587421298027,
0.04457179829478264,
-0.0026485088746994734,
-0.033666711300611496,
0.04255911335349083,
-0.0521102137863636,
0.05057325214147568,
0.002973282942548394,
0.013960706070065498,
0.00009119973401539028,
-0.011454000137746334,
-0.009779813699424267,
-0.05602579563856125,
-0.006449736654758453,
-0.05273231491446495,
-0.008604222908616066,
0.016385074704885483,
0.022706732153892517,
0.010026824660599232,
-0.043473970144987106,
0.028470326215028763,
-0.023603292182087898,
-0.06016094610095024,
0.04566962271928787,
0.017857994884252548,
-0.003302631201222539,
0.014820671640336514,
-0.036960192024707794,
0.04135150462388992,
0.03952179104089737,
-0.005818485748022795,
0.07242002338171005,
-0.033264175057411194,
0.025615975260734558,
-0.005621791817247868,
0.06458885222673416,
0.019797489047050476,
0.017309080809354782,
-0.023219052702188492,
0.015662338584661484,
-0.029000943526625633,
0.02149912156164646,
-0.04394969344139099,
0.007337147369980812,
0.057270001620054245,
-0.05445224419236183,
0.006088368594646454,
0.0025615976192057133,
0.04790187254548073,
-0.02753717266023159,
0.004626885522156954,
-0.04621853679418564,
0.039009470492601395,
0.05463521555066109,
-0.0011092631611973047,
0.07582328468561172,
0.007812872529029846,
-0.03889968991279602,
-0.04201019927859306,
-0.04120512679219246,
0.03405094891786575,
-0.015232356265187263,
0.043766722083091736,
-0.001941782422363758,
0.044462013989686966,
-0.033465441316366196,
0.020291510969400406,
-0.03955838456749916,
0.050536658614873886,
-0.006879718974232674,
0.01895582117140293,
-0.06843125075101852,
0.051195356994867325,
0.04325440526008606,
-0.02268843539059162,
-0.01023724116384983,
0.0009228612761944532,
-0.014848116785287857,
-0.044096071273088455,
0.004903629422187805,
0.022432275116443634,
-0.043400779366493225,
-0.008197112008929253,
-0.0029641343280673027,
-0.027317607775330544,
-0.026201482862234116,
0.04402288421988487,
-0.0036136822309345007,
-0.02905583567917347,
0.06210044398903847,
0.0010497975163161755,
0.04797506332397461,
0.008425826206803322,
-0.015168316662311554,
-0.021736985072493553,
0.02523173578083515,
-0.04157106950879097,
0.006678450852632523,
0.012670759111642838,
0.0135398730635643,
0.021810173988342285,
-0.019870677962899208,
-0.004876183811575174,
0.05093919485807419,
0.10517187416553497,
0.03626490384340286,
0.025433003902435303,
-0.023566696792840958,
-0.040400050580501556,
-0.0026942517142742872,
0.004427904263138771,
-0.02934858947992325,
0.004889906849712133,
-0.021279556676745415,
-0.0024083591997623444,
0.04014389216899872,
-0.002589043229818344,
-0.01504023652523756,
-0.015580002218484879,
0.015424476936459541,
0.03791164234280586,
0.04329099878668785,
-0.00821998342871666,
-0.015003642998635769,
-0.005699554458260536,
-0.05445224419236183,
-0.02614659257233143,
-0.0455598421394825,
-0.015799567103385925,
-0.008320617489516735,
0.017080366611480713,
0.056647900491952896,
0.06268595159053802,
0.016366777941584587,
-0.002936688484624028,
0.032074861228466034,
0.0032980567775666714,
-0.07560372352600098,
-0.051524706184864044,
-0.006696747615933418,
-0.013942409306764603,
0.026658911257982254,
0.1141008734703064,
0.020126838237047195,
0.06224681809544563,
-0.03697849065065384,
0.004958521109074354,
-0.007067264523357153,
-0.015827013179659843,
-0.09858491271734238,
0.010731264017522335,
-0.006330805364996195,
-0.017309080809354782,
0.0004565704439301044,
0.01921198144555092,
-0.041022155433893204,
-0.051817458122968674,
0.029787719249725342,
-0.002245972165837884,
-0.09448635578155518,
-0.06908994168043137,
-0.005978585686534643,
0.031178301200270653,
0.04874354228377342,
0.03156254068017006,
0.04936564341187477,
0.018736256286501884,
-0.019632814452052116,
0.004967669490724802,
-0.04354715719819069,
-0.05342760682106018,
0.06469863653182983,
0.0064222910441458225,
0.04804825037717819,
-0.07135878503322601,
0.009697476401925087,
0.010411064140498638,
-0.0114905945956707,
0.00026702365721575916,
0.0402170829474926,
0.015698933973908424,
0.010639778338372707,
-0.0019772329833358526,
-0.054562028497457504,
0.02958645112812519,
-0.007332572713494301,
-0.032770149409770966,
-0.02056596800684929,
-0.03483772650361061,
0.04080259054899216,
-0.05606239289045334,
-0.04157106950879097,
0.00945961382240057,
0.018278827890753746,
-0.0007250235648825765,
0.041680850088596344,
-0.05902652442455292,
-0.004880758002400398,
0.04457179829478264,
-0.012972661294043064,
-0.04973158612847328,
0.04157106950879097,
0.03668573498725891,
-0.019724300131201744,
0.04014389216899872,
0.05057325214147568,
-0.04190041497349739,
-0.017190149053931236,
0.0016078598564490676,
0.051927242428064346,
-0.011033166199922562,
-0.04658447951078415,
-0.013814329169690609,
0.04497433453798294,
-0.04098556190729141,
0.02466452494263649,
-0.0648084208369255,
-0.06012435257434845,
-0.02664061449468136,
-0.027226122096180916,
-0.017254188656806946,
-0.01826053112745285,
0.050207313150167465,
-0.04201019927859306,
0.011152097955346107,
-0.023749668151140213,
0.00909824576228857,
0.02318245731294155,
0.01048425305634737,
0.03714316338300705,
0.020181728526949883,
-0.014939602464437485,
-0.002481547649949789,
0.018507542088627815,
-0.01155463419854641,
-0.03183699771761894,
-0.02466452494263649,
-0.011234435252845287,
-0.02089531719684601,
-0.010594035498797894,
-0.008114774711430073,
-0.03189188987016678,
0.003069342812523246,
0.008407529443502426,
-0.04629172757267952,
0.03225783258676529,
0.05511094257235527,
0.03275185450911522,
0.022395681589841843,
0.03011706843972206,
0.04910948500037193,
-0.04135150462388992,
-0.02076723612844944,
-0.04153447225689888,
-0.030995329841971397,
0.04427904263138771,
0.013302009552717209,
-0.041022155433893204,
-0.07110262662172318,
-0.01091423537582159,
0.05035368725657463,
-0.035844068974256516,
-0.0163118876516819,
-0.008617945946753025,
0.0026004789397120476,
0.043034836649894714,
0.020126838237047195,
0.03878990560770035,
-0.040436647832393646,
0.029476668685674667,
-0.04775549843907356,
0.05024390667676926,
-0.016037430614233017,
0.01352157536894083,
-0.030226850882172585,
-0.019504735246300697,
-0.01686994917690754,
0.01855328492820263,
0.06012435257434845,
0.004091694485396147,
-0.05518412962555885,
-0.012112696655094624,
-0.04201019927859306,
0.020456185564398766,
-0.03287993371486664,
-0.017876291647553444,
0.012405450455844402,
-0.014372391626238823,
-0.005374780390411615,
-0.06506457924842834,
0.031251490116119385,
-0.05028050020337105,
0.03271526098251343,
-0.009752367623150349,
0.02208462916314602,
-0.01063062995672226,
0.001771390438079834,
0.003588523715734482,
0.07066349685192108,
0.026786990463733673,
-0.04201019927859306,
0.044096071273088455,
-0.00406882306560874,
-0.0069071645848453045,
-0.06751639395952225,
-0.049548614770174026,
0.05269572138786316,
-0.06645515561103821,
0.03503899648785591,
-0.03747251257300377,
-0.005521157290786505,
-0.011005721054971218,
-0.042742084711790085,
0.024682821705937386,
-0.00007261671271407977,
-0.02664061449468136,
-0.003538206685334444,
-0.007117581553757191,
0.007849466986954212,
-0.005951140075922012,
-0.06890697032213211,
0.05536710098385811,
-0.01614721305668354,
0.02056596800684929,
0.053573980927467346,
0.03878990560770035,
-0.03562450408935547,
0.04160766303539276,
0.02925710380077362,
0.0344717837870121,
-0.030647683888673782,
0.015689784660935402,
0.010777006857097149,
-0.0077030896209180355,
-0.07392038404941559,
0.0017976925009861588,
0.03170891851186752,
0.025250032544136047,
0.05137832835316658,
-0.007259384263306856,
-0.01737312041223049,
-0.0016250134212896228,
-0.039046064019203186,
0.005342760588973761,
0.05708703026175499,
-0.059282686561346054,
-0.051854051649570465,
0.012259073555469513,
0.01727248542010784,
-0.028214167803525925,
0.03126978874206543,
-0.044791363179683685,
0.007730535231530666,
0.0309770330786705,
0.018461799249053,
-0.010045121423900127,
0.015515961684286594,
-0.007982120849192142,
0.06451566517353058,
0.009130265563726425,
0.0064268652349710464,
0.04859716445207596,
-0.0050911749713122845,
-0.011774200014770031,
-0.040034111589193344,
-0.013613061048090458,
0.03545982763171196,
0.035350047051906586,
0.03070257604122162,
-0.03747251257300377,
-0.036466170102357864,
0.020620860159397125,
0.01099657267332077,
0.06747979670763016,
0.08299575746059418,
0.032074861228466034,
-0.043364185839891434,
-0.003435285296291113,
0.011106355115771294,
-0.005324463360011578,
0.054598622024059296,
-0.015644041821360588,
-0.05346420034766197,
0.06367399543523788,
-0.020748939365148544,
-0.02142593264579773,
0.04365694150328636,
-0.053171444684267044,
-0.08006822317838669,
-0.01789458841085434,
0.031489353626966476,
-0.004816718399524689,
0.052951879799366,
-0.021700389683246613,
0.022139521315693855,
0.04764571413397789,
-0.010795303620398045,
-0.02433517575263977,
0.01512257382273674,
0.048450786620378494,
-0.04607216268777847,
-0.056245364248752594,
0.06151493638753891,
0.03350203484296799,
0.011014869436621666,
0.01555255614221096,
0.0338679775595665,
0.0023694776464253664,
-0.018507542088627815,
0.011399108916521072,
-0.03353863209486008,
0.016686977818608284,
0.04116853326559067,
-0.033758196979761124,
-0.036667440086603165,
0.0015072256792336702,
-0.03730783984065056,
0.022011442109942436,
-0.034160733222961426,
0.060307323932647705,
0.022633543238043785,
0.043437376618385315,
-0.039009470492601395,
-0.034453485161066055,
0.037655483931303024,
-0.01686994917690754,
-0.0517076775431633,
0.04402288421988487,
0.036502763628959656,
0.00003702308822539635,
0.07157835364341736,
-0.0017153554363176227,
0.014893859624862671,
0.006655579432845116,
0.04394969344139099,
0.0016318748239427805,
0.05822145193815231,
-0.03622830659151077,
-0.024408364668488503,
-0.0043135471642017365,
-0.013100741431117058,
-0.022999485954642296,
0.02565256878733635,
0.07157835364341736,
-0.0627957358956337,
-0.009189731441438198,
-0.05686746537685394,
0.02453644573688507
] |
725,443 | lotkavolterra_simulator.simulator | get_XY | two array, double, dimension=2*n: subsamples in time to get X and Y.
| @staticmethod
def get_XY(t_s, tres, Xth, Yth):
"""two array, double, dimension=2*n: subsamples in time to get X and Y.
"""
import numpy as np
X=np.array([Xth[tres*n] for n in range(len(t_s))])
Y=np.array([Yth[tres*n] for n in range(len(t_s))])
return X, Y
| (t_s, tres, Xth, Yth) | [
-0.02896062470972538,
-0.027852840721607208,
-0.005103716626763344,
0.027712170034646988,
-0.006506029982119799,
-0.0006022473680786788,
-0.042341943830251694,
0.026832977309823036,
0.01812896504998207,
-0.00838750321418047,
0.02361512929201126,
0.011438303627073765,
0.02889028936624527,
-0.02310519851744175,
-0.01644091308116913,
0.021399563178420067,
-0.009890923276543617,
0.00866005290299654,
-0.07539960741996765,
0.008708409033715725,
-0.003872846020385623,
-0.015456216409802437,
-0.012449376285076141,
0.025760361924767494,
-0.04476851969957352,
0.06393492966890335,
0.00862928107380867,
-0.04093523696064949,
-0.004314640536904335,
-0.04582355171442032,
-0.03550182282924652,
0.013231857679784298,
-0.014656150713562965,
0.00910844188183546,
-0.021047886461019516,
0.007139049004763365,
-0.003888231934979558,
0.012950516305863857,
-0.0652713030576706,
0.08046376705169678,
0.002672747476026416,
-0.12118799239397049,
0.043572816997766495,
0.021487481892108917,
-0.0038047085981816053,
-0.03847349435091019,
-0.0016572792083024979,
-0.01476165372878313,
-0.02975189872086048,
-0.008919415064156055,
0.06453277915716171,
-0.06382942944765091,
-0.030156327411532402,
-0.004406956024467945,
-0.01467373501509428,
0.05292743071913719,
0.025232845917344093,
0.09185810387134552,
0.026024119928479195,
0.015825478360056877,
0.030384916812181473,
0.014902325347065926,
0.03318075090646744,
0.06636150181293488,
-0.021909495815634727,
-0.010690989904105663,
-0.04606972634792328,
0.0049674417823553085,
-0.0011374562745913863,
0.037629470229148865,
0.01707393303513527,
0.03476329892873764,
0.01128004863858223,
-0.018955405801534653,
0.006308211479336023,
0.04733576253056526,
-0.04698408395051956,
0.0026749453973025084,
-0.012677966617047787,
0.009143609553575516,
-0.07694698870182037,
0.05781574547290802,
-0.0017748712562024593,
0.06534163653850555,
0.003114541992545128,
-0.01783883012831211,
0.019940102472901344,
-0.003402477828785777,
-0.02841552533209324,
0.008172101341187954,
-0.04635106772184372,
0.02864411473274231,
-0.026885729283094406,
0.0298925694078207,
-0.019289499148726463,
-0.02210291661322117,
-0.03991537168622017,
0.0016737640835344791,
-0.054334141314029694,
-0.02836277335882187,
0.0009149104589596391,
-0.0597851388156414,
-0.005209219641983509,
0.05327910929918289,
0.024705329909920692,
-0.0011715249856933951,
0.009512870572507381,
0.008066597394645214,
-0.0015100144082680345,
0.026639554649591446,
-0.01745198480784893,
0.08749730885028839,
-0.03910651430487633,
0.004486083518713713,
-0.07406323403120041,
-0.04125174507498741,
0.0066642845049500465,
0.03822731971740723,
-0.11302907764911652,
-0.011948236264288425,
0.021663321182131767,
0.01499903667718172,
-0.0242481492459774,
0.05869494006037712,
-0.03414786607027054,
0.0066862646490335464,
0.04153308644890785,
0.02366788126528263,
-0.019746679812669754,
-0.04860180243849754,
0.019852183759212494,
-0.01830480247735977,
0.013214274309575558,
0.044100333005189896,
0.0026551634073257446,
-0.02922438271343708,
0.07364122569561005,
-0.0003948126977775246,
0.027413245290517807,
-0.08144845813512802,
-0.0280462633818388,
0.055354006588459015,
0.030156327411532402,
0.031897131353616714,
0.005543313454836607,
0.009609581902623177,
0.05619803071022034,
0.020889630541205406,
-0.002855180064216256,
0.031774044036865234,
-0.06484929472208023,
0.032248806208372116,
0.013741790316998959,
-0.08869301527738571,
-0.009090857580304146,
-0.07511826604604721,
0.005072944797575474,
-0.007147840689867735,
0.024933919310569763,
-0.0010704176966100931,
-0.08172979950904846,
-0.001908948295749724,
-0.06745170056819916,
-0.050571195781230927,
-0.0175486970692873,
0.05700688809156418,
-0.01120971329510212,
0.005002609454095364,
-0.01746957004070282,
-0.006778579670935869,
0.019113659858703613,
0.02324586920440197,
-0.0004159683012403548,
-0.01180756464600563,
0.013820917345583439,
-0.05380662530660629,
0.0007940213545225561,
0.008114953525364399,
0.031809210777282715,
0.027483580633997917,
0.02927713468670845,
-0.035536989569664,
-0.026182373985648155,
-0.04033738374710083,
-0.003622276009991765,
0.03400719538331032,
0.043818991631269455,
-0.013328569009900093,
0.0004827320226468146,
0.019852183759212494,
0.024634994566440582,
0.01707393303513527,
-0.02860894799232483,
0.0006665383698418736,
0.03984503820538521,
0.031879547983407974,
-0.03362035006284714,
0.042482614517211914,
0.014928700402379036,
0.055776018649339676,
-0.011842732317745686,
0.015500176697969437,
-0.001623210497200489,
-0.031369615346193314,
0.02961122803390026,
0.02285902388393879,
0.012862596660852432,
0.032723572105169296,
-0.12175067514181137,
0.018550977110862732,
0.022050166502594948,
-0.05285709723830223,
0.006563177332282066,
-0.018586143851280212,
0.049586497247219086,
0.005569688975811005,
-0.037277791649103165,
-0.02839794009923935,
-0.011895484291017056,
-0.03400719538331032,
0.0781426951289177,
-0.054263804107904434,
-0.021680904552340508,
0.014260513707995415,
0.021223723888397217,
0.006255459971725941,
0.04666757583618164,
0.01193065196275711,
-0.04772260785102844,
-0.06221171095967293,
0.03275873884558678,
0.00596093013882637,
0.037207458168268204,
-0.05229441449046135,
-0.012739509344100952,
0.01631782576441765,
0.025883449241518974,
-0.030930018052458763,
0.04037255421280861,
-0.021680904552340508,
-0.071249820291996,
0.009811796247959137,
0.02321070060133934,
-0.031668540090322495,
-0.038790006190538406,
0.01154380664229393,
-0.0011869109002873302,
0.0456828810274601,
-0.021768823266029358,
0.024388819932937622,
-0.038649335503578186,
-0.0016517842886969447,
0.02896062470972538,
0.01733769103884697,
-0.0008160012075677514,
-0.010822868905961514,
0.049621663987636566,
0.004831166937947273,
0.018638895824551582,
-0.025303181260824203,
0.015438633039593697,
0.0175047367811203,
-0.011965819634497166,
0.021012717857956886,
-0.07715799659490585,
0.01114816963672638,
-0.01200098730623722,
0.013179106637835503,
-0.06143802031874657,
0.03522048145532608,
0.0455070398747921,
0.07539960741996765,
-0.060699500143527985,
-0.060805004090070724,
0.015939773991703987,
0.026024119928479195,
0.05862460285425186,
-0.049340322613716125,
0.0293650534003973,
0.009284280240535736,
-0.000318982289172709,
-0.031510286033153534,
0.013741790316998959,
0.010963539592921734,
-0.008646865375339985,
-0.09769595414400101,
0.037312958389520645,
-0.015429841354489326,
0.04125174507498741,
-0.006835727486759424,
-0.02818693406879902,
-0.009310656227171421,
-0.0058422391302883625,
-0.006545593496412039,
0.02387888729572296,
0.012888972647488117,
-0.056022193282842636,
-0.01692446880042553,
0.012757093645632267,
0.02238425984978676,
0.01805862784385681,
0.01790037378668785,
-0.032371893525123596,
0.01768936775624752,
-0.00455422094091773,
0.002441959222778678,
0.021487481892108917,
-0.019412586465477943,
0.026991231366991997,
-0.02850344404578209,
-0.021100636571645737,
-0.005081736948341131,
-0.005037777125835419,
-0.02377338521182537,
-0.0585542693734169,
0.0001011072235996835,
-0.01713547669351101,
0.05598702281713486,
0.019043324515223503,
0.07406323403120041,
0.002101271878927946,
-0.02259526588022709,
0.02336895652115345,
0.015702391043305397,
0.09284280240535736,
0.06224688142538071,
-0.021294059231877327,
-0.032231222838163376,
0.003813500516116619,
0.018832318484783173,
0.0036948095075786114,
-0.025215260684490204,
-0.0358886681497097,
0.043607983738183975,
0.0353611521422863,
0.011025083251297474,
-0.015588095411658287,
0.021030301228165627,
0.020098356530070305,
-0.04561254382133484,
-0.011772396974265575,
-0.04606972634792328,
-0.05792124941945076,
0.025901032611727715,
0.07149599492549896,
-0.03367310017347336,
-0.015174875035881996,
-0.03537873551249504,
0.06393492966890335,
0.02864411473274231,
-0.01657279208302498,
0.01707393303513527,
0.006470862310379744,
0.06952659785747528,
0.03502705693244934,
0.12990958988666534,
-0.0003255762276239693,
-0.021047886461019516,
0.010436023585498333,
-0.013258233666419983,
0.013820917345583439,
0.06418110430240631,
0.015192458406090736,
-0.04469818249344826,
0.021083053201436996,
-0.013179106637835503,
-0.008211664855480194,
0.03288182616233826,
-0.0564442053437233,
0.025162510573863983,
-0.044803686439991,
-0.008932603523135185,
-0.0030222267378121614,
0.06242271885275841,
0.0183399710804224,
-0.01494628470391035,
-0.049269989132881165,
-0.0009374397923238575,
-0.029962904751300812,
-0.04209577292203903,
0.01193065196275711,
-0.03428853675723076,
-0.0015341921243816614,
0.010225017555058002,
0.010620653629302979,
-0.0035761184990406036,
-0.0444520078599453,
0.0021935871336609125,
0.005508145317435265,
-0.0020364313386380672,
0.015394673682749271,
-0.012880180962383747,
-0.013073603622615337,
-0.06956176459789276,
-0.02234909124672413,
-0.03560732677578926,
0.01154380664229393,
0.05985547602176666,
-0.008282000198960304,
0.01676621474325657,
-0.05349011719226837,
-0.038438327610492706,
-0.05176689848303795,
0.025602106004953384,
-0.04220127314329147,
-0.024265732616186142,
0.016141988337039948,
-0.05401763319969177,
-0.025725193321704865,
-0.007701732683926821,
-0.03576558083295822,
0.02999807335436344,
0.01474407035857439,
-0.015922188758850098,
0.01783003844320774,
0.012651590630412102,
-0.05834326148033142,
0.06456795334815979,
0.02285902388393879,
0.07406323403120041,
0.010321727953851223,
-0.0022573284804821014,
0.00744676636531949,
0.012493335641920567,
0.048847977072000504,
-0.025426268577575684,
-0.0444520078599453,
0.0021639142651110888,
0.015113331377506256,
0.036504101008176804,
-0.025127341970801353,
-0.02210291661322117,
-0.11267740279436111,
-0.024916335940361023,
0.007846799679100513,
0.010875619947910309,
0.018656479194760323,
0.01211528293788433,
0.03321592137217522,
0.026182373985648155,
-0.00360689009539783,
0.06379426270723343,
0.055811185389757156,
-0.00839629489928484,
-0.01758386380970478,
-0.08039342612028122,
-0.05904661491513252,
-0.02992773801088333,
-0.030261831358075142,
-0.07068713754415512,
0.019729096442461014,
0.06899908185005188,
0.07645463943481445,
-0.020309362560510635,
0.021874327212572098,
-0.054967161267995834,
-0.02834518998861313,
-0.055565010756254196,
-0.01681896671652794,
0.0040113190189003944,
0.0006104898056946695,
0.044487178325653076,
0.00374975916929543,
-0.04058355838060379,
0.043185971677303314,
-0.07483692467212677,
0.02359754592180252,
-0.009829380549490452,
-0.014172594994306564,
-0.04188476502895355,
0.014462728053331375,
0.012370248325169086,
-0.04061872512102127,
-0.03462262824177742,
0.07997141778469086,
0.0006637908518314362,
-0.0560925267636776,
0.06309090554714203,
0.03275873884558678,
-0.060699500143527985,
-0.05405279994010925,
-0.022120501846075058,
-0.0004838310123886913,
0.008932603523135185,
-0.009363408200442791,
0.0180762130767107,
-0.015895813703536987,
-0.010400855913758278,
-0.04082973301410675,
-0.04557737708091736,
0.002214467851445079,
0.021768823266029358,
-0.0012572463601827621,
-0.030560756102204323,
-0.07835370302200317,
0.00836991984397173,
0.030244246125221252,
0.013354944996535778,
0.0083787115290761,
0.0806044340133667,
0.011025083251297474,
-0.001638596411794424,
0.021891910582780838,
-0.03311041742563248,
-0.0008572133956477046,
0.036890946328639984,
-0.027008816599845886,
0.01749594509601593,
-0.04490919038653374,
0.014963869005441666,
-0.0343061201274395,
-0.021891910582780838,
-0.03339175879955292,
0.0003849217901006341,
0.06804955750703812,
-0.012669174000620842,
-0.07659531384706497,
0.05327910929918289,
0.02354479394853115,
0.0040772585198283195,
-0.01787399873137474,
0.068260557949543,
0.03464021161198616,
0.0652713030576706,
0.03479846939444542,
0.0342181995511055,
-0.05584635213017464,
0.015992524102330208,
0.010831660591065884,
0.05560017749667168,
-0.03534356877207756,
-0.05046569183468819,
0.020274195820093155,
0.03541390225291252,
0.0055301254615187645,
-0.010550318285822868,
-0.02349204197525978,
-0.05377145856618881,
0.04181442782282829,
-0.007965490221977234,
0.02277110517024994,
-0.009934883564710617,
0.060418158769607544,
-0.012335080653429031,
-0.049867838621139526,
0.02375579997897148,
-0.032354310154914856,
0.08405087143182755,
0.02899579145014286,
0.025057006627321243,
0.054931990802288055,
-0.037805307656526566,
0.06470862030982971,
0.003951973747462034,
0.000048596029955660924,
-0.007670960854738951,
-0.06404043734073639,
0.005292742978781462,
-0.03998570889234543,
0.00721378019079566,
-0.01645849645137787,
-0.031369615346193314,
0.03405994549393654,
0.05809708684682846,
-0.11753054708242416,
0.043959662318229675,
0.021909495815634727,
0.043924491852521896,
-0.05735856667160988,
-0.01429568137973547,
-0.01732010580599308,
0.01489353273063898,
-0.021979831159114838,
-0.006198312155902386,
0.0006220291834324598,
0.03486880287528038,
0.027958344668149948,
-0.08749730885028839,
-0.05918728932738304,
0.018761983141303062,
0.025707609951496124,
0.009556829929351807,
0.0012572463601827621,
-0.018656479194760323,
0.03599417209625244,
0.049867838621139526,
-0.0058158631436526775,
-0.03337417542934418,
0.020555537194013596,
0.002406791551038623,
0.02277110517024994,
0.04104074090719223,
-0.009759044274687767,
0.022014997899532318,
0.010497567243874073,
-0.012458167970180511,
-0.027061566710472107,
-0.020678624510765076,
-0.004141000099480152,
-0.027782505378127098,
-0.020537953823804855,
0.02952330745756626,
-0.0012693351600319147,
-0.038156986236572266,
-0.015640847384929657,
-0.04758193716406822,
-0.0003849217901006341,
-0.042869459837675095,
-0.019535673782229424,
-0.018586143851280212,
0.031897131353616714,
-0.01804104447364807,
0.032283976674079895,
-0.0034244575072079897,
0.0291012953966856,
0.018955405801534653,
-0.02252493053674698,
0.02261284925043583,
0.012018571607768536,
-0.0075346860103309155,
-0.016361786052584648,
0.08369919657707214,
0.01755748875439167,
0.021997414529323578,
-0.043783821165561676,
-0.03300491347908974,
0.06727586686611176,
-0.06270406395196915,
0.019869767129421234,
-0.04241228103637695,
0.03682061284780502,
-0.012695549987256527,
0.03347967937588692,
-0.049797505140304565,
0.009301864542067051,
-0.049410659819841385,
-0.005701567977666855,
0.021733656525611877,
-0.0066906604915857315,
0.06425143778324127,
-0.0113328006118536,
0.06636150181293488,
0.01475286204367876,
0.004571804776787758,
0.010268976911902428,
-0.038192152976989746,
-0.02874961867928505,
-0.001959501998499036,
0.043185971677303314,
0.01692446880042553,
-0.012088906951248646,
0.032213639467954636,
-0.015526552684605122,
0.04547187313437462,
-0.043818991631269455,
0.006615928839892149,
-0.015315545722842216,
-0.01792674884200096,
0.024617409333586693,
-0.019500505179166794,
0.01726735569536686,
0.05261092260479927,
-0.025707609951496124,
-0.026059286668896675,
0.0010105227120220661,
-0.0011220703599974513,
-0.026832977309823036,
0.0338665209710598,
-0.01415501069277525,
0.024283315986394882,
0.01739923469722271,
-0.009609581902623177,
-0.021276475861668587,
0.019236747175455093,
0.042728789150714874,
-0.02365029789507389,
0.001783663290552795,
-0.0813077911734581,
0.004549825098365545,
0.012836220674216747,
0.043291475623846054,
0.03277632221579552,
0.019482921808958054,
-0.03398960828781128,
-0.00443333201110363,
-0.00849740207195282,
0.03590625151991844,
-0.0026353816501796246,
-0.0032178470864892006,
-0.04121657833456993,
0.013398904353380203,
0.038508664816617966,
-0.009090857580304146,
0.0242481492459774,
0.03488638624548912,
0.031650956720113754,
-0.02308761328458786,
0.01474407035857439,
0.031088272109627724,
-0.007688544690608978,
-0.044487178325653076,
-0.03822731971740723,
-0.030965184792876244,
0.05725306272506714,
-0.016062859445810318,
0.00037200862425379455,
-0.03472813218832016,
-0.05306810140609741,
0.02983981743454933,
0.003609088249504566,
0.005771903321146965,
-0.04082973301410675,
0.02263043262064457,
0.007776463869959116,
-0.043185971677303314,
-0.013530783355236053,
-0.026393380016088486,
0.02848586067557335,
0.011306424625217915,
0.09685192257165909,
-0.003951973747462034,
0.002305684145539999,
0.024529490619897842,
0.049199651926755905,
-0.07392256706953049,
0.05953896418213844,
0.07835370302200317,
-0.014708902686834335,
-0.025057006627321243,
-0.02305244654417038,
-0.043748654425144196,
-0.008334752172231674,
0.0590817853808403,
0.025725193321704865,
-0.03279390558600426,
-0.0057850913144648075,
-0.04170892760157585,
-0.030842097476124763,
0.049832671880722046,
0.0006555484724231064,
-0.0072269681841135025,
-0.01467373501509428,
0.0333390086889267,
0.001105036004446447,
-0.054580315947532654,
-0.009011730551719666,
0.012695549987256527,
0.0004360248858574778,
0.0008132537477649748,
-0.06509546935558319,
0.044100333005189896,
0.025408683344721794,
-0.032354310154914856,
-0.010014010593295097,
0.024476738646626472,
0.0022683185525238514,
0.011183337308466434,
-0.061754532158374786,
-0.02811659872531891,
-0.004945461638271809,
-0.03346209228038788,
0.04255295172333717,
0.020467618480324745,
0.08813032507896423,
-0.04406516253948212,
0.02983981743454933,
0.008910623379051685,
0.03970436751842499
] |
725,444 | lotkavolterra_simulator.simulator | get_theta | array, double, dimension=2*n: concatenates X and Y.
| @staticmethod
def get_theta(X, Y):
"""array, double, dimension=2*n: concatenates X and Y.
"""
import numpy as np
return np.concatenate((X, Y))
| (X, Y) | [
-0.07487742602825165,
-0.02460605651140213,
0.003390495665371418,
0.03325377404689789,
-0.012971576303243637,
-0.031881947070360184,
-0.05362279713153839,
0.016349049285054207,
0.06581295281648636,
-0.03141309320926666,
0.07550255954265594,
-0.043377507477998734,
0.04087696224451065,
0.011434783227741718,
-0.04434994235634804,
-0.01600174978375435,
0.035042356699705124,
-0.002064251806586981,
-0.05462995916604996,
0.02731497958302498,
-0.007762107998132706,
-0.0044020009227097034,
0.006394622381776571,
-0.004137186333537102,
-0.053344957530498505,
0.027280250564217567,
0.04796183854341507,
-0.016479285433888435,
-0.009611469693481922,
-0.0030583920888602734,
-0.012372487224638462,
-0.03247235342860222,
0.007128289435058832,
-0.0009963108459487557,
0.03844587877392769,
0.00381376501172781,
0.021723482757806778,
0.03176039084792137,
-0.034278303384780884,
0.01030606497079134,
-0.02064686082303524,
-0.10787072777748108,
0.04549602419137955,
-0.02733234502375126,
0.00023266245261766016,
-0.03365316614508629,
-0.048170220106840134,
0.022018685936927795,
-0.059769969433546066,
-0.0033644484356045723,
0.0691470131278038,
-0.01470806635916233,
0.014412863180041313,
-0.007740401662886143,
-0.006867815740406513,
0.07946176081895828,
0.04712832346558571,
0.023095309734344482,
-0.010948565788567066,
0.03287174552679062,
0.026325181126594543,
-0.02495335415005684,
0.055394016206264496,
0.025196462869644165,
0.012016506865620613,
0.014673336409032345,
-0.06102024018764496,
0.04125899076461792,
0.05640117824077606,
0.07147390395402908,
0.007888003252446651,
0.05765145272016525,
0.005022795870900154,
-0.0475798100233078,
0.00068320007994771,
0.01600174978375435,
-0.026759302243590355,
0.03096160665154457,
0.0030931218061596155,
-0.01212069671601057,
-0.08689393103122711,
0.008934237994253635,
0.0038094238843768835,
0.0625830814242363,
0.02451923117041588,
-0.0128934346139431,
-0.044176291674375534,
-0.005656614433974028,
-0.05320603772997856,
-0.011026708409190178,
-0.05872807279229164,
0.010896471329033375,
-0.015715230256319046,
0.02651619352400303,
0.013561982661485672,
-0.004749298561364412,
-0.010792282409965992,
0.010210557840764523,
-0.024467136710882187,
0.010887788608670235,
-0.029051469638943672,
-0.026672478765249252,
0.012250932864844799,
0.04681575670838356,
0.02380727045238018,
-0.02465815097093582,
0.0045235552825033665,
-0.024276122450828552,
0.026811398565769196,
0.04087696224451065,
-0.029242482036352158,
-0.00032396381720900536,
0.04844805598258972,
-0.058866992592811584,
-0.0445583201944828,
-0.017547225579619408,
-0.05153900757431984,
0.042300883680582047,
-0.040599122643470764,
-0.005348387639969587,
0.07425229251384735,
0.047406163066625595,
-0.004267422948032618,
0.035910602658987045,
0.005179079715162516,
0.005061866715550423,
0.01790320686995983,
0.015107458457350731,
-0.044627778232097626,
-0.06761889904737473,
-0.010280017741024494,
-0.0011797274928539991,
-0.008899508975446224,
0.006811379920691252,
0.013041036203503609,
-0.02214024029672146,
0.028669441118836403,
-0.03604952245950699,
0.04007817804813385,
-0.013483840972185135,
0.021949227899312973,
0.03165620192885399,
0.0427871011197567,
0.023859364911913872,
0.023859364911913872,
0.06147172674536705,
0.04209250584244728,
0.017781652510166168,
-0.015124822966754436,
-0.026307815685868263,
-0.02422402799129486,
0.012823974713683128,
0.04448886215686798,
-0.0675494372844696,
0.014378133229911327,
-0.04174520820379257,
0.0011797274928539991,
-0.01226829830557108,
0.018458882346749306,
-0.04292602092027664,
-0.05754726007580757,
0.006181902717798948,
-0.08612988144159317,
-0.014586511999368668,
0.012841340154409409,
0.03170829638838768,
0.023911459371447563,
0.03528546541929245,
-0.046781025826931,
-0.044211022555828094,
-0.018128950148820877,
-0.0664033591747284,
0.0150466812774539,
-0.005174738820642233,
0.008504456840455532,
-0.01786847598850727,
-0.023147404193878174,
0.03243762254714966,
0.006420670077204704,
0.024015650153160095,
0.01149556040763855,
-0.016731075942516327,
0.005513354204595089,
-0.06108969822525978,
0.057373613119125366,
-0.0027393121272325516,
0.03302802890539169,
-0.0075537292286753654,
0.04994143918156624,
0.022834837436676025,
-0.003290647640824318,
0.03222924470901489,
-0.0030627332162111998,
0.04139791056513786,
0.02064686082303524,
-0.023512067273259163,
-0.009715658612549305,
0.04803130030632019,
-0.03533755987882614,
0.04799656942486763,
-0.0007054488523863256,
0.01010636892169714,
0.015176918357610703,
-0.021289361640810966,
0.03459087014198303,
-0.0034534435253590345,
-0.0405643954873085,
0.01790320686995983,
-0.05195576697587967,
0.0011818981729447842,
0.10009125620126724,
-0.0028586958069354296,
-0.02615153230726719,
-0.0198828037828207,
-0.0032494058832526207,
0.016557427123188972,
0.07786418497562408,
-0.008209253661334515,
-0.006520518101751804,
-0.0004989693989045918,
0.06859133392572403,
-0.05601914972066879,
0.016826583072543144,
-0.033514246344566345,
0.0011439124355092645,
-0.041085340082645416,
-0.024310853332281113,
0.0010435216827318072,
-0.054560501128435135,
-0.09300637990236282,
0.025491666048765182,
-0.03372262418270111,
0.0035207325126975775,
-0.011426100507378578,
0.01621881127357483,
0.000248263735556975,
0.0341741144657135,
-0.030701134353876114,
0.03806385025382042,
0.019118748605251312,
-0.08369879424571991,
0.015776006504893303,
-0.0038267886266112328,
0.07182120531797409,
-0.018545707687735558,
0.04112007096409798,
0.01712178625166416,
0.04879535362124443,
0.004035167396068573,
0.016027797013521194,
-0.0791839212179184,
0.04962886869907379,
0.017547225579619408,
-0.011964412406086922,
-0.03127417713403702,
0.012702420353889465,
0.06459740549325943,
0.02776646614074707,
0.04035601392388344,
-0.000560017884708941,
0.04445413127541542,
-0.03754290193319321,
0.004291299730539322,
-0.027245519682765007,
-0.07668337225914001,
0.013483840972185135,
0.007432174868881702,
0.0011308888206258416,
-0.04632953926920891,
0.029589781537652016,
0.025873692706227303,
0.07008471339941025,
-0.03848060593008995,
-0.041849397122859955,
0.08126770704984665,
0.03514654561877251,
0.07654445618391037,
0.0371956042945385,
0.020056454464793205,
0.004675497766584158,
-0.01692209020256996,
-0.049351032823324203,
-0.008339490741491318,
0.012042555026710033,
-0.08592149615287781,
-0.021133076399564743,
0.014534416608512402,
-0.0018200580962002277,
0.03215978667140007,
-0.0009094863780774176,
0.02542220614850521,
0.029103564098477364,
-0.0049489950761199,
0.029242482036352158,
0.06154118850827217,
-0.01365748979151249,
-0.05702631548047066,
0.02224443107843399,
0.04608643054962158,
0.03016282245516777,
-0.001645323820412159,
0.0887693390250206,
-0.015862831845879555,
-0.05025400593876839,
-0.004697204101830721,
-0.05403955280780792,
0.054942525923252106,
-0.02340787835419178,
-0.018945099785923958,
0.023980919271707535,
-0.05185157433152199,
-0.0045235552825033665,
-0.008682447485625744,
0.01630563661456108,
-0.008395927026867867,
-0.01469938363879919,
0.010905154049396515,
0.011556337587535381,
0.0577903687953949,
0.01705232635140419,
0.02214024029672146,
-0.04018236696720123,
-0.00516171520575881,
-0.01910138502717018,
0.0162882711738348,
0.02932930737733841,
-0.01783374696969986,
0.012494041584432125,
0.00011653472756734118,
0.03453877568244934,
0.002472326857969165,
-0.020195372402668,
-0.03993925824761391,
0.06501416862010956,
0.007041465025395155,
0.01685263030230999,
0.0077968379482626915,
-0.026585653424263,
0.00018409501353744417,
0.0026698526926338673,
-0.07126552611589432,
-0.03170829638838768,
-0.04480142891407013,
0.03677884861826897,
0.05080968141555786,
-0.05983942747116089,
-0.0007575435447506607,
0.004553943872451782,
0.038306958973407745,
0.0008828963618725538,
-0.005087914410978556,
0.04125899076461792,
-0.005834604613482952,
0.015993067994713783,
0.019136114045977592,
0.06796620041131973,
-0.036709386855363846,
0.0229911208152771,
0.008777954615652561,
0.04247453436255455,
0.007336668204516172,
0.03238552808761597,
0.018337329849600792,
0.004514872562140226,
0.018545707687735558,
0.024293487891554832,
-0.02979815937578678,
-0.006411987356841564,
-0.021549833938479424,
0.004332541488111019,
-0.00911656953394413,
0.007718695793300867,
0.010861741378903389,
0.04237034171819687,
-0.0009176261373795569,
0.07081404328346252,
-0.005222491919994354,
-0.014378133229911327,
-0.05761672183871269,
-0.0699457973241806,
-0.024276122450828552,
-0.0321771502494812,
0.005040160845965147,
0.02462342008948326,
0.0013761678710579872,
0.032802287489175797,
0.03492080420255661,
-0.026741938665509224,
-0.030805323272943497,
0.01386586856096983,
-0.008291737176477909,
-0.048621706664562225,
0.0048491470515728,
-0.018545707687735558,
-0.06563930213451385,
-0.046642106026411057,
-0.009307583793997765,
0.024276122450828552,
-0.040251825004816055,
0.01525506004691124,
-0.0034382492303848267,
-0.03618844226002693,
0.008977650664746761,
0.025647949427366257,
-0.08856096118688583,
-0.046260081231594086,
0.0034838321153074503,
-0.019535506144165993,
0.0012448459165170789,
-0.0035576329100877047,
-0.06352078169584274,
0.009212076663970947,
0.05643590912222862,
0.015697864815592766,
0.06692430377006531,
0.025543760508298874,
-0.032698098570108414,
-0.0029932737816125154,
0.04084223136305809,
0.062478892505168915,
0.0062470207922160625,
-0.05588022992014885,
-0.03691776469349861,
0.043064940720796585,
0.024015650153160095,
0.008760589174926281,
-0.004043850116431713,
0.007948780432343483,
0.0038246181793510914,
0.0023312370758503675,
0.004810075741261244,
0.0237899050116539,
-0.05289347097277641,
-0.021636659279465675,
-0.024310853332281113,
-0.004779687151312828,
0.035111818462610245,
-0.02821795456111431,
0.027558088302612305,
0.06383335590362549,
-0.0020219250582158566,
0.03886263445019722,
0.0012763197300955653,
0.036292631179094315,
-0.05483833700418472,
-0.07904499769210815,
-0.05761672183871269,
-0.03136099874973297,
0.003831129986792803,
-0.06598660349845886,
0.06692430377006531,
0.04789238050580025,
0.06386808305978775,
-0.024328216910362244,
0.023876730352640152,
-0.00816150102764368,
0.02941613271832466,
-0.09606260061264038,
-0.01407424733042717,
-0.017008913680911064,
0.010991978459060192,
0.059665780514478683,
0.041050612926483154,
0.004445413127541542,
0.00974170584231615,
-0.07244633883237839,
0.02976343035697937,
-0.04122425988316536,
-0.017477767542004585,
-0.005713050253689289,
0.05522036552429199,
-0.029589781537652016,
-0.05324076861143112,
-0.062131594866514206,
0.07932283729314804,
0.0193965882062912,
-0.01904929056763649,
0.06459740549325943,
-0.008669423870742321,
-0.07161282747983932,
-0.1280139982700348,
-0.015749959275126457,
-0.018910370767116547,
0.019535506144165993,
0.00624267989769578,
0.048552244901657104,
0.006372916512191296,
-0.017564591020345688,
0.034677695482969284,
0.0062730684876441956,
-0.0028239660896360874,
0.0881442055106163,
-0.010071638971567154,
-0.041085340082645416,
-0.046989403665065765,
0.04247453436255455,
0.009507279843091965,
-0.012954211793839931,
-0.0445583201944828,
0.09863260388374329,
0.010766235180199146,
-0.0028934255242347717,
0.00932494830340147,
-0.02347733825445175,
-0.011669209226965904,
-0.01950077712535858,
-0.02894727885723114,
0.007258526049554348,
-0.08786636590957642,
0.02703714184463024,
-0.043759535998106,
0.009090522304177284,
-0.029659239575266838,
-0.006576953921467066,
0.03768182173371315,
0.04084223136305809,
-0.06449321657419205,
0.027558088302612305,
0.044627778232097626,
-0.005730415228754282,
-0.031100526452064514,
0.060916051268577576,
-0.003679187037050724,
-0.012233568355441093,
-0.00805297028273344,
0.034764520823955536,
-0.018719356507062912,
-0.027210790663957596,
-0.06161064654588699,
0.05469941720366478,
-0.0571652352809906,
-0.012033872306346893,
-0.01053180918097496,
0.03834168612957001,
-0.0371956042945385,
0.053796444088220596,
-0.02380727045238018,
-0.007449539843946695,
0.06702849268913269,
-0.009628834202885628,
0.020195372402668,
-0.040703315287828445,
0.02573477476835251,
-0.014239213429391384,
-0.05146954953670502,
0.037855472415685654,
-0.014569146558642387,
0.02502281405031681,
0.014881715178489685,
0.009385725483298302,
-0.018545707687735558,
-0.005270245485007763,
-0.0018862617434933782,
0.053692255169153214,
0.03415674716234207,
-0.03170829638838768,
-0.05271982029080391,
-0.016375096514821053,
-0.03969614952802658,
0.037959661334753036,
-0.000887237605638802,
-0.0699457973241806,
-0.049385759979486465,
-0.002001304179430008,
-0.0861993357539177,
0.058936454355716705,
0.002472326857969165,
0.07022363692522049,
-0.020056454464793205,
-0.024432407692074776,
-0.013483840972185135,
-0.02347733825445175,
-0.06306929886341095,
-0.06001307815313339,
-0.024085110053420067,
0.030284376814961433,
0.008634693920612335,
-0.04247453436255455,
-0.05702631548047066,
0.003592362627387047,
0.013752996921539307,
0.024085110053420067,
-0.012815291993319988,
-0.037473443895578384,
0.03169093281030655,
0.020907333120703697,
0.0021239437628537416,
-0.008226619102060795,
0.03222924470901489,
-0.028252683579921722,
-0.016479285433888435,
0.039071012288331985,
0.027123965322971344,
-0.010861741378903389,
0.019205573946237564,
0.01050576101988554,
-0.05664428696036339,
0.010227923281490803,
0.025630583986639977,
-0.0715433657169342,
0.04924684017896652,
0.003475149627774954,
0.012363805435597897,
0.01725202240049839,
-0.003327548038214445,
0.00012542067270260304,
-0.047718729823827744,
-0.053310226649045944,
-0.05188630521297455,
-0.04914265125989914,
0.006945957895368338,
-0.028009574860334396,
-0.01547212153673172,
-0.03450404480099678,
-0.005747780203819275,
0.022122876718640327,
-0.054977256804704666,
0.001237248769029975,
-0.030614309012889862,
0.07772526890039444,
-0.040703315287828445,
0.025474300608038902,
-0.02655092440545559,
0.011625797487795353,
-0.05723469331860542,
-0.04139791056513786,
0.03802911937236786,
-0.0233905129134655,
0.03302802890539169,
-0.009047110565006733,
-0.010418936610221863,
-0.012077284045517445,
0.048552244901657104,
-0.03215978667140007,
-0.0198828037828207,
-0.042682912200689316,
-0.021584564819931984,
0.023998284712433815,
0.006060348358005285,
0.003594533307477832,
-0.02542220614850521,
0.05501198768615723,
-0.059700507670640945,
0.009055792354047298,
0.003101804293692112,
-0.04448886215686798,
-0.0625830814242363,
-0.00535706989467144,
-0.007540705613791943,
-0.050566572695970535,
-0.012033872306346893,
0.016383778303861618,
-0.011677891947329044,
0.041085340082645416,
-0.0021912327501922846,
-0.016140669584274292,
-0.03184721618890762,
0.048552244901657104,
0.03698722645640373,
-0.02307794615626335,
0.02585632912814617,
0.029034104198217392,
-0.02491862326860428,
0.01469938363879919,
-0.010123733431100845,
0.01407424733042717,
-0.053692255169153214,
-0.02580423466861248,
0.04240507259964943,
-0.03636208921670914,
0.012433264404535294,
0.01663556881248951,
0.028061669319868088,
0.010453666560351849,
0.030353836715221405,
0.001774475211277604,
0.03321904316544533,
-0.022852201014757156,
0.04077277332544327,
0.034747153520584106,
0.02651619352400303,
0.0016203616978600621,
0.0419883169233799,
-0.016739757731556892,
-0.011608432047069073,
0.028287414461374283,
0.061228618025779724,
0.03778601065278053,
0.002224877243861556,
-0.01469938363879919,
0.006924252025783062,
-0.0036184098571538925,
0.018823545426130295,
0.025873692706227303,
0.08071202784776688,
0.03499026224017143,
-0.03598006069660187,
0.036709386855363846,
-0.021723482757806778,
0.0028869137167930603,
0.0033188655506819487,
-0.009767753072082996,
-0.08008689433336258,
0.037091415375471115,
-0.0007173872436396778,
-0.022522268816828728,
0.037369254976511,
-0.030701134353876114,
-0.009715658612549305,
-0.007892345078289509,
-0.0010239861439913511,
-0.0030779275111854076,
0.043759535998106,
-0.008118088357150555,
-0.005005430895835161,
0.020369021221995354,
-0.018337329849600792,
-0.0065031531266868114,
0.006737579125910997,
0.03677884861826897,
-0.014621241018176079,
-0.0004843177739530802,
0.06598660349845886,
0.00040861769230104983,
-0.048934273421764374,
0.027697008103132248,
0.05945739895105362,
-0.049385759979486465,
-0.033878911286592484,
-0.04414156451821327,
-0.04806602746248245,
0.032281339168548584,
0.08008689433336258,
0.0843239277601242,
-0.005700026638805866,
0.010627315379679203,
-0.0699457973241806,
-0.005665297154337168,
-0.027089236304163933,
0.02533538080751896,
-0.009915354661643505,
0.009064475074410439,
0.05897118151187897,
-0.007193407509475946,
0.028304778039455414,
-0.049003731459379196,
0.019986994564533234,
-0.030683768913149834,
-0.006433693692088127,
-0.021098347380757332,
0.02931194193661213,
0.03716087341308594,
0.01489907968789339,
-0.015107458457350731,
0.06056875362992287,
-0.010566538199782372,
0.01093120127916336,
-0.022331254556775093,
-0.03136099874973297,
-0.0325765423476696,
-0.06855660676956177,
0.02146301046013832,
-0.013370969332754612,
0.04907319322228432,
-0.011625797487795353,
0.02894727885723114,
0.03518127650022507,
0.0289820097386837
] |
725,446 | splitutils.core.splitutils | binning |
bins numeric data.
If X is one-dimensional:
binning is done either intrinsically into nbins classes
based on an equidistant percentile split, or extrinsically
by using the lower_boundaries values.
If X is two-dimensional
binning is done by kmeans clustering into nbins clusters
Args:
x: (list, np.array) with numeric data.
nbins: (int) number of bins
lower_boundaries: (list) of lower bin boundaries.
If y is 1-dim and lower_boundaries is provided, nbins will be ignored
and y is binned extrinsically. The first value of lower_boundaries
is always corrected not to be higher than min(y).
seed: (int) random seed for kmeans
Returns:
c: (np.array) integers as bin IDs
| def binning(x: Union[list, np.array],
nbins: int = 2,
lower_boundaries: Union[list, np.array, dict] = None,
seed: int = 42) -> np.array:
'''
bins numeric data.
If X is one-dimensional:
binning is done either intrinsically into nbins classes
based on an equidistant percentile split, or extrinsically
by using the lower_boundaries values.
If X is two-dimensional
binning is done by kmeans clustering into nbins clusters
Args:
x: (list, np.array) with numeric data.
nbins: (int) number of bins
lower_boundaries: (list) of lower bin boundaries.
If y is 1-dim and lower_boundaries is provided, nbins will be ignored
and y is binned extrinsically. The first value of lower_boundaries
is always corrected not to be higher than min(y).
seed: (int) random seed for kmeans
Returns:
c: (np.array) integers as bin IDs
'''
assert ((nbins is not None) or (lower_boundaries is not None)), \
"One of nbins or lower_boundaries must be set."
x = np.array(x, dtype=float)
assert ((nbins is not None) or x.ndim == 1), \
"For 2-dimensional data input nbins must be set for KMeans clustering."
if x.ndim == 1:
# 1-dim array
if lower_boundaries is None:
# intrinsic binning by equidistant percentiles
prct = np.linspace(0, 100, nbins+1)
lower_boundaries = np.percentile(x, prct)
lower_boundaries = lower_boundaries[0:nbins]
else:
# extrinsic binning
# make sure that entire range of x is covered
lower_boundaries[0] = min(lower_boundaries[0], np.min(x))
# binned array
c = np.zeros(len(x), dtype=int)
for i in range(1, len(lower_boundaries)):
c[x >= lower_boundaries[i]] = i
else:
# 2-dim array
# centering+scaling
sca = StandardScaler()
xs = sca.fit_transform(x)
# clustering
mod = KMeans(n_clusters=nbins, init='k-means++', max_iter=300, tol=0.0001,
random_state=seed, algorithm='lloyd', n_init=1)
mod.fit(xs)
c = mod.predict(xs)
return c
| (x: Union[list, <built-in function array>], nbins: int = 2, lower_boundaries: Union[list, <built-in function array>, dict, NoneType] = None, seed: int = 42) -> <built-in function array> | [
-0.01255092490464449,
-0.04329634830355644,
-0.026143738999962807,
-0.04545730724930763,
0.04348929226398468,
0.022709358483552933,
-0.022227002307772636,
0.03955325856804848,
0.0023020480293780565,
-0.022111237049102783,
-0.024986082687973976,
0.023674072697758675,
0.0008983895531855524,
-0.06741418689489365,
-0.04653778672218323,
-0.0067337010987102985,
0.004671625792980194,
-0.022381355985999107,
-0.009145485237240791,
0.027050569653511047,
-0.025371968746185303,
0.0037310300394892693,
0.0379711277782917,
0.04734814539551735,
0.026703273877501488,
0.06004377827048302,
0.021030757576227188,
-0.01795332133769989,
0.001875162124633789,
-0.013525284826755524,
-0.0519401840865612,
-0.024291489273309708,
0.012010685168206692,
-0.018319912254810333,
0.0759422555565834,
-0.0296167079359293,
0.06930502504110336,
0.05587621405720711,
-0.010727616026997566,
0.02936588227748871,
0.019757336005568504,
-0.08736446499824524,
-0.014046230353415012,
0.057072460651397705,
0.029636003077030182,
0.053445134311914444,
-0.00023529968166258186,
-0.008986307308077812,
-0.012261509895324707,
-0.007375235669314861,
-0.03565581515431404,
-0.06745278090238571,
0.04437682777643204,
0.0021597526501864195,
-0.016438720747828484,
0.03245296701788902,
0.036736294627189636,
0.0007410206599161029,
-0.011364326812326908,
-0.0018944564508274198,
0.0011823771055787802,
0.053599487990140915,
0.06475158035755157,
-0.04862156882882118,
-0.025179026648402214,
0.019815217703580856,
-0.13235871493816376,
0.031565431505441666,
-0.01936180330812931,
0.05911765247583389,
0.03816407173871994,
-0.003067789366468787,
0.0428718738257885,
0.03829913213849068,
0.00027645076625049114,
0.06664241850376129,
-0.03364920988678932,
0.04337352514266968,
0.03986196592450142,
0.03509628400206566,
0.0706942155957222,
0.025275496765971184,
0.008233831264078617,
-0.02957811951637268,
0.061432965099811554,
-0.023172421380877495,
-0.016930723562836647,
0.06845608353614807,
0.018155910074710846,
-0.02857481874525547,
0.020972874015569687,
0.054101139307022095,
0.04545730724930763,
0.049740634858608246,
0.019670510664582253,
0.011402915231883526,
-0.018995212391018867,
0.015686243772506714,
0.024291489273309708,
-0.004690920002758503,
0.030755070969462395,
-0.016081776469945908,
0.03247226029634476,
0.036678411066532135,
-0.0073366472497582436,
0.013120105490088463,
0.012666690163314342,
0.0028724349103868008,
-0.07671403139829636,
0.0011112295323982835,
-0.025680677965283394,
-0.013901523314416409,
-0.017528846859931946,
-0.025449145585298538,
-0.06834031641483307,
-0.010254905559122562,
-0.010988088324666023,
0.01016808208078146,
-0.027552220970392227,
-0.03727653622627258,
-0.017278021201491356,
-0.039784789085388184,
-0.008764423429965973,
0.025082554668188095,
0.0353471077978611,
-0.013737522065639496,
0.03872360661625862,
0.029346588999032974,
-0.036736294627189636,
-0.017663907259702682,
0.06976809352636337,
-0.02074134349822998,
-0.04553448408842087,
0.009401134215295315,
0.013534932397305965,
-0.014953061006963253,
-0.02610515058040619,
0.008137359283864498,
0.04086526855826378,
-0.033726390451192856,
0.055606093257665634,
0.002097046235576272,
0.000042959905840689316,
0.01651589758694172,
-0.006188638042658567,
0.012386922724545002,
0.08751881867647171,
-0.0020765461958944798,
0.0543326735496521,
-0.03862713277339935,
-0.056609395891427994,
0.0038250896614044905,
-0.009671254083514214,
-0.022612888365983963,
-0.01855144277215004,
-0.021416643634438515,
-0.014258467592298985,
-0.037527360022068024,
-0.013293754309415817,
0.019390743225812912,
-0.030620010569691658,
0.0556446835398674,
-0.0170175489038229,
-0.06089272350072861,
-0.056416451930999756,
0.04503283277153969,
-0.045727428048849106,
0.00716782221570611,
-0.009854549542069435,
-0.06918926537036896,
-0.023963486775755882,
0.009434899315237999,
-0.04989498853683472,
0.0442996509373188,
0.018667208030819893,
-0.02450372651219368,
0.013795404694974422,
-0.0022694887593388557,
-0.00868242233991623,
0.04198433831334114,
0.02751363255083561,
-0.007597120013087988,
-0.009174427017569542,
-0.04947051405906677,
-0.045573070645332336,
0.0101198460906744,
0.04514859989285469,
-0.00795888714492321,
-0.005204630084335804,
-0.00047602588892914355,
-0.018416384235024452,
-0.03198990598320961,
-0.011017030104994774,
0.021763939410448074,
-0.02184111624956131,
0.010891617275774479,
-0.06247485429048538,
0.03478757292032242,
-0.056223511695861816,
-0.00612593162804842,
0.04711661487817764,
-0.0057593402452766895,
0.04630625620484352,
-0.0004229666374158114,
0.0730867087841034,
0.028883526101708412,
0.005026157945394516,
-0.017712142318487167,
0.045727428048849106,
-0.014277761802077293,
-0.007264293730258942,
-0.06502170115709305,
-0.03390003740787506,
0.05101405829191208,
0.028613407164812088,
0.05514303222298622,
0.010930205695331097,
-0.05112982168793678,
-0.032221436500549316,
-0.048737332224845886,
0.028304697945713997,
0.023712661117315292,
0.04761826619505882,
0.0506281703710556,
-0.003009906504303217,
0.02027828060090542,
0.034826163202524185,
-0.016872841864824295,
0.05788281932473183,
-0.019795924425125122,
0.015097768045961857,
-0.0302727147936821,
-0.01722978614270687,
-0.041945748031139374,
-0.05572186037898064,
-0.022284885868430138,
0.04445400461554527,
-0.031507547944784164,
-0.004876627586781979,
0.03299320489168167,
-0.02766798809170723,
0.022555004805326462,
0.023635484278202057,
-0.044222474098205566,
-0.025275496765971184,
-0.013988347724080086,
-0.011190677992999554,
0.008894659578800201,
-0.02440725453197956,
0.012888574041426182,
-0.03117954544723034,
-0.03515416383743286,
0.01632295548915863,
-0.03575228899717331,
0.04827427119016647,
0.002145281992852688,
-0.03901302069425583,
0.006695112679153681,
-0.016303660348057747,
0.020008161664009094,
-0.023712661117315292,
0.006232050247490406,
0.014287409372627735,
0.020471222698688507,
-0.01032243575900793,
0.002122370060533285,
-0.0007669473416171968,
0.04815850406885147,
0.023365363478660583,
0.027378572151064873,
-0.03418945148587227,
-0.007351118139922619,
0.03588734567165375,
-0.04271752014756203,
-0.017972614616155624,
0.026394564658403397,
0.0453801304101944,
-0.07088715583086014,
-0.0008127712644636631,
0.010804792866110802,
0.037334416061639786,
0.009647136554121971,
-0.04715520143508911,
-0.014846943318843842,
0.056107744574546814,
-0.044222474098205566,
-0.031218133866786957,
-0.03640829399228096,
-0.014017289504408836,
-0.023037360981106758,
-0.05163147300481796,
-0.019670510664582253,
-0.029462354257702827,
-0.015049532987177372,
0.005156394559890032,
-0.013071869499981403,
0.0001789242378436029,
-0.06482875347137451,
0.0006584170623682439,
-0.017741084098815918,
0.01300434023141861,
-0.02541055716574192,
-0.00857148040086031,
0.005305924918502569,
0.016805311664938927,
-0.018696149811148643,
-0.006902526132762432,
-0.05973506718873978,
-0.053252194076776505,
0.02556491084396839,
0.017663907259702682,
-0.023712661117315292,
0.06749136745929718,
-0.08396867662668228,
0.0028627878054976463,
-0.06918926537036896,
0.0220919419080019,
0.044608358293771744,
-0.013969053514301777,
0.05363807827234268,
0.025526322424411774,
-0.004169974476099014,
-0.006318874191492796,
0.034884046763181686,
0.020374752581119537,
0.08643834292888641,
0.021667467430233955,
0.03154613450169563,
-0.05136135593056679,
-0.0010563614778220654,
-0.03137248754501343,
-0.002113928785547614,
0.022014765068888664,
0.04152127355337143,
-0.00941560510545969,
0.019101329147815704,
0.02290230244398117,
-0.01820414699614048,
-0.032009199261665344,
-0.06189602613449097,
-0.0630536824464798,
0.011991390958428383,
-0.004476271104067564,
0.03258802741765976,
-0.026896215975284576,
-0.009111720137298107,
0.035424284636974335,
0.00589922396466136,
0.013197282329201698,
0.09060590714216232,
0.00957478303462267,
0.025371968746185303,
0.05105264484882355,
0.006685465574264526,
0.004271269775927067,
-0.053406547755002975,
0.04399094358086586,
-0.05336795747280121,
0.054062552750110626,
-0.006724053993821144,
0.03762383013963699,
-0.04148268699645996,
0.02168676257133484,
-0.03102518990635872,
-0.01585989259183407,
0.04499424248933792,
-0.018368147313594818,
0.030755070969462395,
-0.0004766288329847157,
0.0040421499870717525,
0.0015568066155537963,
-0.033861447125673294,
-0.09678006917238235,
0.04020926356315613,
0.040942445397377014,
-0.02977106347680092,
-0.04835144802927971,
-0.054448436945676804,
-0.04078809171915054,
0.029346588999032974,
-0.01695001870393753,
0.0020910168532282114,
0.032105669379234314,
0.02801528386771679,
-0.04811991751194,
0.020104631781578064,
0.01204927358776331,
0.0034850279334932566,
0.008204889483749866,
-0.014277761802077293,
0.02616303414106369,
-0.008952542208135128,
0.011451151221990585,
-0.007452412974089384,
-0.06232050061225891,
-0.023326775059103966,
0.1213223859667778,
-0.037739597260951996,
0.056107744574546814,
0.000454621302196756,
-0.02419501729309559,
0.029809651896357536,
0.0029086116701364517,
0.01433564443141222,
-0.011287149973213673,
-0.01594671607017517,
0.006275462452322245,
-0.037836067378520966,
0.0195547454059124,
-0.03588734567165375,
-0.06012095510959625,
0.042447399348020554,
0.042756106704473495,
-0.011412562802433968,
0.02049051783978939,
0.04630625620484352,
-0.04769544303417206,
-0.0051419236697256565,
-0.0340350978076458,
-0.06139437481760979,
0.03812548145651817,
-0.05379243195056915,
0.05248042196035385,
-0.013853288255631924,
-0.021513113752007484,
-0.020972874015569687,
0.04082668200135231,
-0.09886385500431061,
-0.012695631943643093,
0.008938072249293327,
-0.051091235131025314,
-0.042601753026247025,
-0.09778337180614471,
-0.005416866857558489,
-0.03293532505631447,
0.0088223060593009,
-0.02992541715502739,
0.04684649407863617,
0.018416384235024452,
-0.029037879779934883,
-0.03770101070404053,
0.056416451930999756,
0.033359795808792114,
0.0034247334115207195,
-0.02635597623884678,
-0.0038853841833770275,
-0.012029979377985,
-0.01685354672372341,
-0.011412562802433968,
-0.050589583814144135,
0.023924898356199265,
-0.09392452239990234,
0.036736294627189636,
0.02168676257133484,
-0.03588734567165375,
-0.03704500198364258,
-0.030118359252810478,
0.01810767501592636,
0.028111755847930908,
0.00177024956792593,
0.026240210980176926,
-0.01732625626027584,
-0.014846943318843842,
-0.01513635739684105,
-0.02786093018949032,
-0.017133314162492752,
-0.005677339620888233,
0.00508404104039073,
0.037237945944070816,
0.02506325952708721,
0.04055656120181084,
0.037739597260951996,
-0.004102444741874933,
0.03204778581857681,
0.05838447064161301,
0.0846632719039917,
-0.008672775700688362,
0.024330077692866325,
0.00986902043223381,
-0.030755070969462395,
-0.010389965958893299,
0.027745164930820465,
0.022265590727329254,
0.0015375124057754874,
-0.02957811951637268,
-0.05085970461368561,
-0.0314689576625824,
0.009719490073621273,
-0.018918033689260483,
-0.0365433543920517,
0.03123742714524269,
0.04055656120181084,
0.01129679661244154,
-0.004876627586781979,
0.02575785480439663,
-0.010881969705224037,
0.039186667650938034,
0.053560901433229446,
0.0872872918844223,
0.006801231298595667,
-0.005402396433055401,
0.017837556079030037,
-0.010881969705224037,
-0.03835701569914818,
-0.008860894478857517,
0.026452448219060898,
-0.0031136132311075926,
0.01845497265458107,
-0.04881450906395912,
0.016776369884610176,
-0.007148528005927801,
-0.026433153077960014,
0.0004739155701827258,
0.010197022929787636,
0.0003397600958123803,
0.027050569653511047,
0.01848391257226467,
0.01736484467983246,
-0.05965789034962654,
-0.018155910074710846,
0.046769317239522934,
-0.010486437007784843,
0.01032243575900793,
0.0007542854873463511,
0.04217727854847908,
0.04202292487025261,
0.02701198123395443,
-0.027706576511263847,
-0.04329634830355644,
0.09608548134565353,
-0.03565581515431404,
-0.007235352415591478,
-0.007428294979035854,
0.028034579008817673,
-0.02315312810242176,
0.0580371730029583,
-0.005127452779561281,
0.02681903913617134,
0.10334012657403946,
0.04013208672404289,
-0.014480351470410824,
0.04113538935780525,
0.07030832767486572,
0.01914956606924534,
0.04464694857597351,
0.05205594748258591,
-0.03042706847190857,
0.04283328726887703,
-0.011364326812326908,
-0.0053348662331700325,
0.05637786537408829,
0.010968794114887714,
0.04565025120973587,
0.01927497796714306,
0.01669919304549694,
-0.06972949951887131,
-0.03355273976922035,
-0.05950353667140007,
-0.030793659389019012,
0.04754108935594559,
-0.03229861333966255,
0.0379711277782917,
0.038086894899606705,
-0.012936810031533241,
-0.060429662466049194,
0.04113538935780525,
0.011518680490553379,
-0.0442996509373188,
-0.01852250099182129,
0.014171643182635307,
-0.023481130599975586,
0.05618492141366005,
-0.07111869007349014,
-0.002734963083639741,
-0.030793659389019012,
0.027899518609046936,
-0.003858854528516531,
-0.05730399116873741,
-0.047772619873285294,
-0.08057288080453873,
-0.03816407173871994,
-0.03986196592450142,
0.022786535322666168,
-0.08458609133958817,
0.010177728720009327,
-0.0003699073859024793,
-0.11275573074817657,
-0.018946975469589233,
-0.023731956258416176,
0.05518161877989769,
0.008499126881361008,
0.036832768470048904,
-0.04101962223649025,
0.005383102223277092,
0.04020926356315613,
-0.0009846108732745051,
-0.04198433831334114,
-0.01795332133769989,
0.03451745584607124,
-0.06015954166650772,
0.03590664267539978,
0.017432374879717827,
-0.042910464107990265,
0.07111869007349014,
0.03440168872475624,
0.022921595722436905,
-0.009145485237240791,
-0.11136654019355774,
-0.01084338128566742,
-0.0366012342274189,
-0.03565581515431404,
0.017596377059817314,
0.0022526064421981573,
0.03640829399228096,
-0.021011462435126305,
0.03189343214035034,
0.04584319144487381,
-0.03073577582836151,
0.06560052931308746,
0.0009791842894628644,
0.0377974808216095,
-0.052248891443014145,
0.0618574395775795,
0.001024405239149928,
0.019950278103351593,
-0.05155429616570473,
0.02786093018949032,
0.02450372651219368,
0.027031276375055313,
-0.002884493675082922,
0.007737003266811371,
0.028651995584368706,
0.057111047208309174,
-0.03405439108610153,
0.016911430284380913,
0.020799225196242332,
0.032819557934999466,
-0.010312789119780064,
-0.01607212983071804,
-0.02184111624956131,
0.026934804394841194,
-0.0015893657691776752,
0.03690994530916214,
0.003253496717661619,
-0.011730917729437351,
-0.10241399705410004,
0.02797669544816017,
0.02074134349822998,
0.023037360981106758,
-0.009159956127405167,
-0.008339948952198029,
0.000004324253495724406,
-0.055606093257665634,
0.015232828445732594,
0.006468405015766621,
-0.0017039254307746887,
0.003996326122432947,
0.03440168872475624,
-0.00957478303462267,
-0.04449259117245674,
-0.027147041633725166,
0.046422019600868225,
-0.022728653624653816,
-0.012261509895324707,
-0.028092460706830025,
0.031661901623010635,
0.00455103674903512,
-0.009449370205402374,
-0.05919482931494713,
0.03581016883254051,
0.026278799399733543,
-0.016506250947713852,
-0.058152936398983,
-0.050898291170597076,
-0.006907349452376366,
-0.0366012342274189,
-0.05915623903274536,
-0.02324959821999073,
-0.043064817786216736,
-0.02159029059112072,
0.019323214888572693,
-0.04665355011820793,
-0.0007048439001664519,
0.04294905066490173,
0.07030832767486572,
0.01557047851383686,
0.0009411987266503274,
-0.05838447064161301,
-0.04781120643019676,
0.07111869007349014,
0.03330191597342491,
0.02380913309752941,
0.04352787882089615,
-0.035327814519405365,
-0.022516416385769844,
0.011566916480660439,
-0.023365363478660583,
0.03339838609099388,
0.015107415616512299,
-0.039148081094026566,
0.04264034330844879,
-0.016458014026284218,
-0.0580371730029583,
0.011354679241776466,
-0.041752807796001434,
-0.028555523604154587,
-0.002657786011695862,
-0.018869798630475998,
0.07432153820991516,
0.03579087555408478,
0.004500389099121094,
0.02681903913617134,
-0.00258543249219656,
-0.03876219317317009,
-0.010650438256561756,
0.037739597260951996,
-0.03650476410984993,
0.032761674374341965,
-0.015628360211849213,
0.007327000144869089,
0.03762383013963699,
0.03816407173871994,
0.030620010569691658,
-0.031063778325915337,
-0.01883121021091938,
-0.03687135502696037,
0.10874252021312714,
-0.01657378114759922,
-0.022574299946427345,
0.0004190474865026772,
0.05251901224255562,
0.008696893230080605,
-0.030716482549905777,
0.03579087555408478,
0.015387182123959064,
0.016708839684724808,
-0.010756556876003742,
-0.050898291170597076,
0.012917515821754932,
0.005556750576943159,
0.0032269670628011227,
-0.02826610952615738,
0.017413081601262093,
-0.031256720423698425,
0.00795888714492321,
0.029095763340592384,
0.054101139307022095,
-0.025680677965283394,
0.04345070198178291,
-0.021706057712435722,
-0.025892913341522217,
0.05186300352215767,
-0.044724125415086746,
-0.039090197533369064,
-0.009854549542069435,
-0.01952580362558365,
-0.023481130599975586,
-0.020953580737113953,
0.0049103922210633755,
-0.003511557588353753,
0.010833733715116978,
0.029693886637687683,
-0.005190159194171429,
-0.022612888365983963,
-0.006902526132762432,
0.028401169925928116,
0.036639824509620667,
0.0353471077978611
] |
725,448 | splitutils.core.splitutils | optimize_traindevtest_split | optimize group-disjunct split into training, dev, and test set, which is guided by:
- disjunct split of values in SPLIT_ON
- stratification by all keys in STRATIFY_ON (targets and groupings)
- test set proportion in X should be close to test_size (which is the test
proportion in set(split_on))
Score to be minimized: (sum_v[w(v) * max_irad(v)] + w(d) * max_d) / (sum_v[w(v)] + w(d))
(v: variables to be stratified on
w(v): their weight
max_irad(v): maximum information radius of reference distribution of classes in v and
- dev set distribution,
- test set distribution
N(v): number of stratification variables
max_d: maximum of absolute difference between dev and test sizes of X and set(split_on)
w(d): its weight
Args:
X: (np.array or pd.DataFrame) of features
y: (np.array) of targets of length N
if type(y[0]) in ["str", "int"]: y is assumed to be categorical, so that it is additionally
tested that all partitions cover all classes. Else y is assumed to be numeric and no
coverage test is done.
split_on: (np.array) list of length N with grouping variable (e.g. speaker IDs),
on which the group-disjunct split is to be performed. Must be categorical.
stratify_on: (dict) Dict-keys are variable names (targets and/or further groupings)
the split should be stratified on (groupings could e.g. be sex, age class, etc).
Dict-Values are np.array-s of length N that contain the variable values. All
variables must be categorical.
weight: (dict) weight for each variable in stratify_on. Defines their amount of
contribution to the optimization score. Uniform weighting by default. Additional
key: "size_diff" defines how the corresponding size differences should be weighted.
dev_size: (float) proportion in set(split_on) for dev set, e.g. 10% of speakers
to be held-out
test_size: (float) test proportion in set(split_on) for test set
k: (int) number of different splits to be tried out
seed: (int) random seed
Returns:
train_i: (np.array) train set indices in X
dev_i: (np.array) dev set indices in X
test_i: (np.array) test set indices in X
info: (dict) detail information about reference and achieved prob distributions
"dev_size_in_spliton": intended grouping dev_size
"dev_size_in_X": optimized dev proportion of observations in X
"test_size_in_spliton": intended grouping test_size
"test_size_in_X": optimized test proportion of observations in X
"p_ref_{c}": reference class distribution calculated from stratify_on[c]
"p_dev_{c}": dev set class distribution calculated from stratify_on[c][dev_i]
"p_test_{c}": test set class distribution calculated from stratify_on[c][test_i]
| def optimize_traindevtest_split(
X: Union[np.array, pd.DataFrame],
y: Union[np.array, list],
split_on: Union[np.array, list],
stratify_on: dict,
weight: dict = None,
dev_size: float = .1,
test_size: float = .1,
k: int = 30,
seed: int = 42) -> Tuple[np.array, np.array, np.array, dict]:
''' optimize group-disjunct split into training, dev, and test set, which is guided by:
- disjunct split of values in SPLIT_ON
- stratification by all keys in STRATIFY_ON (targets and groupings)
- test set proportion in X should be close to test_size (which is the test
proportion in set(split_on))
Score to be minimized: (sum_v[w(v) * max_irad(v)] + w(d) * max_d) / (sum_v[w(v)] + w(d))
(v: variables to be stratified on
w(v): their weight
max_irad(v): maximum information radius of reference distribution of classes in v and
- dev set distribution,
- test set distribution
N(v): number of stratification variables
max_d: maximum of absolute difference between dev and test sizes of X and set(split_on)
w(d): its weight
Args:
X: (np.array or pd.DataFrame) of features
y: (np.array) of targets of length N
if type(y[0]) in ["str", "int"]: y is assumed to be categorical, so that it is additionally
tested that all partitions cover all classes. Else y is assumed to be numeric and no
coverage test is done.
split_on: (np.array) list of length N with grouping variable (e.g. speaker IDs),
on which the group-disjunct split is to be performed. Must be categorical.
stratify_on: (dict) Dict-keys are variable names (targets and/or further groupings)
the split should be stratified on (groupings could e.g. be sex, age class, etc).
Dict-Values are np.array-s of length N that contain the variable values. All
variables must be categorical.
weight: (dict) weight for each variable in stratify_on. Defines their amount of
contribution to the optimization score. Uniform weighting by default. Additional
key: "size_diff" defines how the corresponding size differences should be weighted.
dev_size: (float) proportion in set(split_on) for dev set, e.g. 10% of speakers
to be held-out
test_size: (float) test proportion in set(split_on) for test set
k: (int) number of different splits to be tried out
seed: (int) random seed
Returns:
train_i: (np.array) train set indices in X
dev_i: (np.array) dev set indices in X
test_i: (np.array) test set indices in X
info: (dict) detail information about reference and achieved prob distributions
"dev_size_in_spliton": intended grouping dev_size
"dev_size_in_X": optimized dev proportion of observations in X
"test_size_in_spliton": intended grouping test_size
"test_size_in_X": optimized test proportion of observations in X
"p_ref_{c}": reference class distribution calculated from stratify_on[c]
"p_dev_{c}": dev set class distribution calculated from stratify_on[c][dev_i]
"p_test_{c}": test set class distribution calculated from stratify_on[c][test_i]
'''
# data size
N = len(y)
# size checks
assert size_check(stratify_on, N), \
f"all stratify_on arrays must have length {N}"
assert size_check(split_on, N), \
f"split_on array must have length {N}"
# categorical target: get number of classes for coverage test
if is_categorical(y[0]):
nc = len(set(y))
else:
nc = None
# adjusted dev_size after having split off the test set
dev_size_adj = (dev_size * N) / (N - test_size * N)
# split all into train/dev vs test
gss_o = GroupShuffleSplit(n_splits=k, test_size=test_size,
random_state=seed)
# split train/dev into train vs dev
gss_i = GroupShuffleSplit(n_splits=k, test_size=dev_size_adj,
random_state=seed)
# set weight defaults
if weight is None:
weight = {}
for c in stratify_on.keys():
if c not in weight:
weight[c] = 1
if "size_diff" not in weight:
weight["size_diff"] = 1
# stratification reference distributions calculated on stratify_on
p_ref = {}
for c in stratify_on:
p_ref[c] = class_prob(stratify_on[c])
# best train/dev/test indices in X; best associated score
train_i, dev_i, test_i, best_sco = None, None, None, np.inf
# full target coverage in all partitions
full_target_coverage = False
# for appropriate subsetting
xtype = type(X)
# brute-force optimization of SPLIT_ON split
# outer loop *_o: splitting into train/dev and test
# inner loop *_i: spltting into train and dev
for tri_o, tei_o in gss_o.split(X, y, split_on):
# current train/dev partition
if xtype == pd.DataFrame:
X_i = X.iloc[tri_o]
else:
X_i = X[tri_o]
y_i = y[tri_o]
split_on_i = split_on[tri_o]
for tri_i, tei_i in gss_i.split(X_i, y_i, split_on_i):
# all classes maintained in all partitions?
if nc:
nc_train = len(set(y[tri_o[tri_i]]))
nc_dev = len(set(y[tri_o[tei_i]]))
nc_test = len(set(y[tei_o]))
if min(nc_train, nc_dev, nc_test) < nc:
continue
full_target_coverage = True
sco = calc_split_score(test_i=tei_o,
stratify_on=stratify_on,
weight=weight, p_ref=p_ref,
N=N, test_size=test_size,
dev_i=tri_o[tei_i],
dev_size=dev_size_adj)
if sco < best_sco:
best_sco = sco
test_i = tei_o
train_i = tri_o[tri_i]
dev_i = tri_o[tei_i]
if test_i is None:
sys.exit(exit_message(full_target_coverage, "dev and test"))
# matching info
info = {"score": best_sco,
"size_devset_in_spliton": dev_size,
"size_devset_in_X": np.round(len(dev_i) / N, 2),
"size_testset_in_spliton": test_size,
"size_testset_in_X": np.round(len(test_i) / N, 2)}
for c in p_ref:
info[f"p_{c}_ref"] = p_ref[c]
info[f"p_{c}_dev"] = class_prob(stratify_on[c][dev_i])
info[f"p_{c}_test"] = class_prob(stratify_on[c][test_i])
return train_i, dev_i, test_i, info
| (X: Union[<built-in function array>, pandas.core.frame.DataFrame], y: Union[<built-in function array>, list], split_on: Union[<built-in function array>, list], stratify_on: dict, weight: Optional[dict] = None, dev_size: float = 0.1, test_size: float = 0.1, k: int = 30, seed: int = 42) -> Tuple[<built-in function array>, <built-in function array>, <built-in function array>, dict] | [
0.012551795691251755,
0.021613581106066704,
-0.04502318799495697,
-0.020062463358044624,
0.03400209918618202,
-0.026450613513588905,
-0.01144968718290329,
-0.02826705202460289,
-0.00843929685652256,
0.002135335933417082,
-0.03983919695019722,
-0.002097068354487419,
0.04155358672142029,
0.0006400267593562603,
0.03189992904663086,
0.006719802971929312,
0.002824153983965516,
-0.057228025048971176,
0.0665755420923233,
0.024593356996774673,
-0.0410841703414917,
-0.020654337480664253,
0.014153935946524143,
-0.00441353814676404,
0.0006189795676618814,
0.006296307314187288,
0.031818293035030365,
-0.0037553340662270784,
0.03453274443745613,
-0.033185724169015884,
-0.015256044454872608,
-0.0065871416591107845,
-0.00004169581734458916,
0.01849093846976757,
0.026613889262080193,
-0.039206504821777344,
0.03381841629743576,
0.03657368943095207,
-0.0060769058763980865,
-0.015092769637703896,
-0.048288699239492416,
-0.043798625469207764,
-0.02789968252182007,
-0.010510853491723537,
-0.016552042216062546,
0.082780621945858,
-0.02379738911986351,
0.06416723132133484,
-0.022858554497361183,
0.008704619482159615,
0.007127991411834955,
-0.07739253342151642,
-0.05747293680906296,
0.045594654977321625,
-0.019960416480898857,
0.016715317964553833,
0.0375533401966095,
0.00023199775023385882,
0.04232914745807648,
-0.09404662996530533,
0.02683839201927185,
0.023634113371372223,
0.004683963023126125,
0.04388026148080826,
-0.04428844898939133,
-0.02606283500790596,
-0.0750250443816185,
0.025062773376703262,
0.0016914310399442911,
0.006163646001368761,
0.01706227846443653,
-0.019011378288269043,
0.029920216649770737,
0.027511904016137123,
-0.04812542349100113,
0.050492916256189346,
-0.021123753860592842,
-0.041247446089982986,
0.03698187693953514,
-0.09151586145162582,
-0.014011070132255554,
0.050003089010715485,
0.008026005700230598,
-0.112578384578228,
-0.02475663088262081,
0.02230750024318695,
0.030675364658236504,
0.050370458513498306,
-0.014511100947856903,
-0.050125546753406525,
-0.019970621913671494,
0.09233223646879196,
0.047023314982652664,
0.028369098901748657,
-0.006311614532023668,
0.06812665611505508,
-0.0459212027490139,
-0.028614012524485588,
-0.028532374650239944,
-0.004130357410758734,
0.036655325442552567,
0.02653225138783455,
-0.0028139492496848106,
0.06257529556751251,
-0.04979899525642395,
-0.04343125596642494,
-0.027348628267645836,
0.05694229528307915,
-0.03918609395623207,
-0.05845259130001068,
-0.06894303858280182,
-0.004257916007190943,
-0.012480363249778748,
0.004372719209641218,
0.003898200113326311,
-0.05041127651929855,
-0.046778399497270584,
0.024899497628211975,
-0.06179973483085632,
-0.01591935008764267,
0.023756569251418114,
-0.0016161713283509016,
-0.09788359701633453,
0.0074035185389220715,
0.0022297296673059464,
-0.03859421983361244,
0.046778399497270584,
0.10139402002096176,
0.036696143448352814,
-0.06118745356798172,
0.001968233846127987,
0.002011603908613324,
-0.04539056122303009,
0.06845320761203766,
-0.0011110380291938782,
-0.013276330195367336,
-0.07314737886190414,
0.05151338502764702,
0.01880728453397751,
-0.08037231117486954,
0.05028882250189781,
-0.037961527705192566,
-0.014745809137821198,
-0.02432803437113762,
0.04145153984427452,
0.004502829164266586,
0.005684024654328823,
-0.02928752452135086,
-0.013623290695250034,
0.045880384743213654,
0.008475013077259064,
0.003926263190805912,
0.05208485201001167,
-0.11723173409700394,
-0.028226234018802643,
-0.040104519575834274,
-0.037961527705192566,
-0.018797079101204872,
0.06771846860647202,
-0.03310408443212509,
-0.009194445796310902,
-0.08955655246973038,
0.0016404074849560857,
0.02916506677865982,
-0.009245469234883785,
0.03308367729187012,
-0.02851196564733982,
0.02587915025651455,
-0.02612406387925148,
-0.015317273326218128,
0.023042239248752594,
-0.012378315441310406,
-0.0406963936984539,
0.003987491130828857,
-0.0555952712893486,
0.017113301903009415,
-0.007388211786746979,
-0.046002842485904694,
-0.021613581106066704,
0.020715566352009773,
-0.020144101232290268,
-0.012388520874083042,
0.0019860921893268824,
-0.010755766183137894,
-0.02194013074040413,
0.043023064732551575,
0.008122950792312622,
-0.0012838803231716156,
0.004482419695705175,
0.009296492673456669,
-0.01303141750395298,
-0.05188075453042984,
-0.03792070969939232,
0.0020626273471862078,
0.043921079486608505,
0.01955222897231579,
0.005714638624340296,
-0.0031507047824561596,
-0.02994062565267086,
0.0242668054997921,
-0.02892015501856804,
0.026858802884817123,
0.014551919884979725,
-0.038553401827812195,
-0.014704990200698376,
0.026613889262080193,
-0.04710495099425316,
0.026552660390734673,
0.05355433002114296,
0.012061969377100468,
-0.014470282010734081,
-0.00736269960179925,
-0.012929370626807213,
0.0691879466176033,
0.08751560747623444,
-0.00859746988862753,
0.041124988347291946,
0.024715812876820564,
0.04049229621887207,
-0.04424763098359108,
-0.02385861612856388,
-0.06759601086378098,
0.01753169484436512,
0.03371636942028999,
-0.028940564021468163,
-0.025001544505357742,
0.04098212346434593,
0.005150828510522842,
0.030920278280973434,
-0.08653596043586731,
-0.0002463481214363128,
-0.07588224112987518,
0.05416661128401756,
-0.014194754883646965,
-0.005398292560130358,
-0.001711840508505702,
-0.013082440942525864,
0.008985249325633049,
-0.019184859469532967,
-0.00969447661191225,
-0.04063516482710838,
-0.029654894024133682,
-0.03967592120170593,
-0.04294142872095108,
-0.03204279765486717,
0.02218504436314106,
0.037594158202409744,
-0.0062861028127372265,
0.009796523489058018,
0.009827137924730778,
0.028165005147457123,
-0.0381656214594841,
-0.02016451023519039,
-0.041349492967128754,
-0.012378315441310406,
-0.025062773376703262,
0.009505689144134521,
-0.021838083863258362,
0.02140948548913002,
-0.06445296108722687,
-0.06894303858280182,
-0.02007266879081726,
-0.04849279299378395,
0.07163707911968231,
-0.048982616513967514,
0.01613364927470684,
0.047023314982652664,
0.01607242226600647,
-0.03255303204059601,
-0.03392046317458153,
0.03147133067250252,
0.07449439913034439,
-0.062412019819021225,
0.042369965463876724,
-0.07314737886190414,
0.04294142872095108,
-0.040084108710289,
-0.04510482773184776,
0.0595138818025589,
0.009908775798976421,
0.04641102999448776,
-0.017827631905674934,
-0.016684703528881073,
-0.027634359896183014,
0.036941058933734894,
0.013939636759459972,
-0.01422536838799715,
-0.039512645453214645,
0.011531325057148933,
-0.0032221379224210978,
-0.05914651229977608,
-0.016960231587290764,
0.028899744153022766,
-0.004099742975085974,
0.03787989169359207,
0.030614135786890984,
0.025899559259414673,
-0.004865096416324377,
-0.012959984131157398,
-0.02630774863064289,
-0.012939575128257275,
0.0007079518982209265,
0.021144162863492966,
0.013439605943858624,
-0.0025294930674135685,
-0.021919721737504005,
0.05253385752439499,
-0.07461685687303543,
-0.004306388553231955,
-0.019684890285134315,
-0.007056558504700661,
0.027818044647574425,
0.014817241579294205,
-0.006786133628338575,
-0.004712025634944439,
-0.06820829212665558,
-0.012949779629707336,
0.025450551882386208,
0.05730966478586197,
0.06037107855081558,
0.008362761698663235,
-0.020460447296500206,
0.03912486508488655,
0.0051227654330432415,
0.030246766284108162,
-0.004676309414207935,
0.03596140444278717,
-0.011500710621476173,
-0.048288699239492416,
-0.0008788808481767774,
-0.01625610701739788,
-0.050533734261989594,
0.021450305357575417,
0.004678860306739807,
0.003622672753408551,
0.04579874873161316,
0.026287337765097618,
-0.026348566636443138,
0.024287214502692223,
-0.01544993370771408,
0.0007864006329327822,
0.021552352234721184,
-0.06367740035057068,
0.037532929331064224,
-0.014521305449306965,
-0.017215348780155182,
0.004252813756465912,
-0.0006556527805514634,
0.001992470119148493,
0.05216648802161217,
-0.006418764125555754,
0.005561568308621645,
0.027695588767528534,
0.04024738445878029,
0.06494278460741043,
0.002016706159338355,
-0.010388396680355072,
-0.004530892241746187,
0.047676414251327515,
0.012725275941193104,
-0.015745870769023895,
-0.012664048001170158,
0.026144472882151604,
0.012908960692584515,
0.01839909516274929,
-0.030757002532482147,
0.00013816222781315446,
-0.048288699239492416,
0.02540973387658596,
-0.06567752361297607,
-0.04620693624019623,
-0.03839012607932091,
0.005326859652996063,
0.010413908399641514,
0.024103529751300812,
0.035634852945804596,
-0.041471950709819794,
-0.02057269960641861,
0.0056330012157559395,
0.05571772903203964,
-0.028430327773094177,
0.055962640792131424,
0.05886077880859375,
0.06714700907468796,
-0.005505442153662443,
-0.02875687927007675,
-0.0038191135972738266,
-0.03949223458766937,
0.02100129798054695,
-0.03871667757630348,
0.056085098534822464,
0.0031353977974504232,
0.010500648990273476,
0.029614074155688286,
0.009714885614812374,
0.005643205717206001,
0.0018955252598971128,
-0.007781093008816242,
-0.03192033991217613,
0.03112437203526497,
-0.01335796806961298,
-0.04408435523509979,
-0.018205206841230392,
0.022450366988778114,
-0.0031226419378072023,
-0.0255730077624321,
0.04698249325156212,
0.00812805350869894,
-0.044165994971990585,
0.037185970693826675,
-0.04926835000514984,
0.01234770193696022,
-0.021817674860358238,
-0.004002798348665237,
-0.046492669731378555,
0.002819051733240485,
-0.020113486796617508,
0.10245531052350998,
0.08571957796812057,
0.02041962929069996,
0.04347207397222519,
-0.041410721838474274,
0.026613889262080193,
-0.04375780373811722,
-0.015286658890545368,
-0.01610303483903408,
-0.038083985447883606,
-0.023634113371372223,
0.03028758615255356,
-0.023225924000144005,
-0.017541900277137756,
0.024001482874155045,
-0.053105320781469345,
-0.003066516015678644,
-0.022797327488660812,
-0.041778091341257095,
-0.023756569251418114,
0.05241139978170395,
0.016062216833233833,
-0.02647102251648903,
-0.0018483285093680024,
-0.006648370064795017,
0.05359514802694321,
0.028144596144557,
0.015572390519082546,
0.01833786815404892,
-0.034798067063093185,
0.03000185266137123,
-0.07029005885124207,
-0.028307871893048286,
0.029716121032834053,
-0.01690920814871788,
0.014735604636371136,
0.052697133272886276,
-0.014153935946524143,
0.02212381549179554,
0.036349184811115265,
0.020440038293600082,
-0.019521614536643028,
0.025981197133660316,
-0.0034951139241456985,
-0.010725152678787708,
-0.027511904016137123,
0.06122827157378197,
-0.011970127001404762,
0.07535159587860107,
0.010112869553267956,
0.018725646659731865,
0.021919721737504005,
-0.0026557762175798416,
0.005069190636277199,
-0.028307871893048286,
-0.0019988480489701033,
0.01478662807494402,
0.012990598566830158,
0.05028882250189781,
-0.015388705767691135,
0.04322716221213341,
0.041961777955293655,
-0.007684148382395506,
0.0329408124089241,
-0.0016034153522923589,
-0.013337559066712856,
-0.014888674952089787,
-0.009500587359070778,
-0.04032902047038078,
-0.01917465403676033,
-0.017939884215593338,
-0.008372966200113297,
0.01923588290810585,
-0.01815418340265751,
-0.027450675144791603,
0.03512461856007576,
-0.020766589790582657,
-0.02165439911186695,
0.07445357739925385,
0.023062650114297867,
0.018113363534212112,
0.05547281354665756,
-0.0517583005130291,
0.008500524796545506,
0.050003089010715485,
-0.06257529556751251,
-0.034675613045692444,
0.03549198806285858,
0.001172266318462789,
-0.013266125693917274,
0.0406963936984539,
-0.0717187151312828,
-0.018041931092739105,
-0.01958284340798855,
-0.027818044647574425,
0.05539117753505707,
0.012510976754128933,
0.01712350733578205,
-0.008117848075926304,
0.010311861522495747,
0.0067606219090521336,
0.008546446450054646,
0.011582348495721817,
0.021368667483329773,
0.015470343641936779,
0.01562341395765543,
0.019460385665297508,
0.024532128125429153,
0.015337682329118252,
0.03751252219080925,
0.04216587170958519,
0.028430327773094177,
0.017878655344247818,
0.002121304627507925,
-0.01861339434981346,
0.02892015501856804,
0.06853484362363815,
0.04526810348033905,
0.019746117293834686,
0.031410105526447296,
-0.0226136427372694,
0.07437194138765335,
0.010419011116027832,
0.008291328325867653,
-0.004528340883553028,
0.01839909516274929,
-0.025613827630877495,
0.01192930806428194,
0.04539056122303009,
0.03657368943095207,
0.03516543656587601,
-0.03138969466090202,
-0.0021480917930603027,
0.014602943323552608,
0.024185167625546455,
0.038083985447883606,
0.013419196009635925,
0.08645432442426682,
-0.04173727333545685,
0.012572205625474453,
0.024307623505592346,
0.00879646185785532,
0.04473745822906494,
-0.041961777955293655,
0.011010884307324886,
0.06579998135566711,
-0.056289192289114,
0.045594654977321625,
0.019164448603987694,
-0.018623599782586098,
0.022103406488895416,
-0.03732883557677269,
-0.050901103764772415,
-0.014490691013634205,
0.022756507620215416,
0.003826766973361373,
0.06208546832203865,
-0.05575854703783989,
0.023062650114297867,
-0.043390434235334396,
0.012174221687018871,
-0.03147133067250252,
-0.043676167726516724,
0.0004588931333273649,
0.05861586704850197,
0.044819094240665436,
0.01805213652551174,
0.0245729461312294,
-0.011980332434177399,
-0.036655325442552567,
-0.003785948269069195,
-0.04192095622420311,
-0.0326346680521965,
-0.001432486460544169,
0.02475663088262081,
-0.0006062236498109996,
0.0061279297806322575,
0.005561568308621645,
-0.018756261095404625,
-0.025001544505357742,
-0.02481785975396633,
0.04073721170425415,
-0.026920029893517494,
0.014562124386429787,
0.006296307314187288,
0.022103406488895416,
-0.010541467927396297,
0.05004390701651573,
-0.020797202363610268,
0.01511317864060402,
0.009827137924730778,
0.016715317964553833,
-0.014317210763692856,
0.0236137043684721,
0.055023808032274246,
-0.013776361010968685,
-0.07657615840435028,
-0.019572637975215912,
-0.013133464381098747,
-0.006326921284198761,
-0.003015492344275117,
0.039390187710523605,
-0.08506648242473602,
0.06449378281831741,
0.04043107107281685,
0.05726884305477142,
0.025205638259649277,
-0.023409608751535416,
-0.0008705895161256194,
-0.0073831090703606606,
-0.06694290786981583,
-0.012735480442643166,
-0.07339228689670563,
-0.013490629382431507,
-0.024103529751300812,
0.062003832310438156,
-0.01392943225800991,
0.018848102539777756,
-0.02373616024851799,
0.07094316184520721,
0.005357473623007536,
-0.01657245308160782,
-0.014735604636371136,
-0.013623290695250034,
-0.008179076947271824,
0.07400457561016083,
0.021552352234721184,
-0.03708392381668091,
-0.06845320761203766,
0.035042982548475266,
0.012653842568397522,
0.042125049978494644,
0.038614630699157715,
-0.01929710991680622,
0.03469602018594742,
-0.05612591654062271,
-0.06090172007679939,
0.011898694559931755,
0.017919475212693214,
-0.013419196009635925,
0.0024248945992439985,
-0.006648370064795017,
-0.02612406387925148,
-0.0002803106908686459,
0.04759477823972702,
0.03514502942562103,
0.012929370626807213,
-0.028532374650239944,
0.03112437203526497,
0.07902529090642929,
-0.023532066494226456,
-0.012031355872750282,
0.001594486297108233,
-0.04620693624019623,
0.012000741437077522,
-0.009056681767106056,
-0.04620693624019623,
-0.010128176771104336,
-0.05057455226778984,
0.0072249360382556915,
0.021980950608849525,
-0.019654275849461555,
-0.07976002991199493,
0.07812727242708206,
0.03534912317991257,
0.05408497527241707,
-0.05935060605406761,
0.08029067516326904,
0.009332208894193172,
-0.04575793072581291,
-0.1008225530385971,
0.028001729398965836,
0.006265693344175816,
0.015062155202031136,
0.014082502573728561,
0.0032399960327893496,
-0.023470837622880936,
-0.03471643105149269,
-0.011072112247347832,
0.011021088808774948,
0.0027858864050358534,
-0.02826705202460289,
-0.01529686339199543,
-0.011735418811440468,
-0.04179850220680237,
-0.019868575036525726,
-0.010592491365969181,
-0.00718411710113287,
0.06906548887491226,
-0.0536767840385437,
0.0036583892069756985,
-0.011766033247113228,
-0.09886325150728226,
0.030103901401162148,
-0.032655078917741776,
-0.05318696051836014,
-0.034859295934438705,
-0.024185167625546455,
0.0026200597640126944,
-0.016654090955853462,
0.0021519185975193977,
-0.03428783267736435,
0.031410105526447296,
0.06045271456241608,
0.009434256702661514,
0.03961469233036041,
-0.01641938090324402,
-0.04641102999448776,
-0.006556527689099312,
0.10180220752954483,
-0.002146816346794367,
0.05294204503297806,
-0.03553280606865883,
0.002065178705379367,
0.06147318705916405,
-0.04063516482710838,
0.0038318694569170475,
-0.021082935854792595,
-0.021817674860358238,
-0.005719741340726614,
-0.056738197803497314,
0.015092769637703896,
0.042369965463876724,
-0.0021557454019784927,
-0.008403580635786057,
-0.04073721170425415,
-0.039043229073286057,
-0.07731089740991592,
0.08588285744190216,
0.010857813991606236,
-0.021307438611984253,
0.0023113673087209463,
-0.03996165096759796,
0.03981878608465195,
-0.03183870017528534,
-0.017429647967219353,
-0.022674869745969772,
0.046492669731378555,
0.02963448315858841,
0.03145092353224754,
-0.02255241386592388,
-0.00788313988596201,
-0.040410660207271576,
0.00882707629352808,
-0.023532066494226456,
0.0049339784309268,
0.027164943516254425,
0.006418764125555754,
0.03602263331413269,
0.027266990393400192,
0.0026481228414922953
] |
725,449 | splitutils.core.splitutils | optimize_traintest_split | optimize group-disjunct split which is guided by:
- disjunct split of values in SPLIT_ON
- stratification by all keys in STRATIFY_ON (targets and groupings)
- test set proportion in X should be close to test_size (which is the test
proportion in set(split_on))
Score to be minimized: (sum_v[w(v) * irad(v)] + w(d) * d) / (sum_v[w(v)] + w(d))
(v: variables to be stratified on
w(v): their weight
irad(v): information radius between reference distribution of classes in v
and test set distribution
N(v): number of stratification variables
d: absolute difference between test sizes of X and set(split_on)
w(d): its weight
Args:
X: (np.array or pd.DataFrame) of features
y: (np.array) of targets of length N
if type(y[0]) in ["str", "int"]: y is assumed to be categorical, so that it is additionally
tested that all partitions cover all classes. Else y is assumed to be numeric and no
coverage test is done.
split_on: (np.array) list of length N with grouping variable (e.g. speaker IDs),
on which the group-disjunct split is to be performed. Must be categorical.
stratify_on: (dict) Dict-keys are variable names (targets and/or further groupings)
the split should be stratified on (groupings could e.g. be sex, age class, etc).
Dict-Values are np.array-s of length N that contain the variable values. All
variables must be categorical.
weight: (dict) weight for each variable in stratify_on. Defines their amount of
contribution to the optimization score. Uniform weighting by default. Additional
key: "size_diff" defines how test size diff should be weighted.
test_size: (float) test proportion in set(split_on), e.g. 10% of speakers to be held-out
k: (int) number of different splits to be tried out
seed: (int) random seed
Returns:
train_i: (np.array) train set indices in X
test_i: (np.array) test set indices in X
info: (dict) detail information about reference and achieved prob distributions
"size_testset_in_spliton": intended test_size
"size_testset_in_X": optimized test proportion in X
"p_ref_{c}": reference class distribution calculated from stratify_on[c]
"p_test_{c}": test set class distribution calculated from stratify_on[c][test_i]
| def optimize_traintest_split(
X: Union[np.array, pd.DataFrame],
y: Union[np.array, list],
split_on: Union[np.array, list],
stratify_on: dict,
weight: dict = None,
test_size: float = .1,
k: int = 30,
seed: int = 42) -> Tuple[np.array, np.array, dict]:
''' optimize group-disjunct split which is guided by:
- disjunct split of values in SPLIT_ON
- stratification by all keys in STRATIFY_ON (targets and groupings)
- test set proportion in X should be close to test_size (which is the test
proportion in set(split_on))
Score to be minimized: (sum_v[w(v) * irad(v)] + w(d) * d) / (sum_v[w(v)] + w(d))
(v: variables to be stratified on
w(v): their weight
irad(v): information radius between reference distribution of classes in v
and test set distribution
N(v): number of stratification variables
d: absolute difference between test sizes of X and set(split_on)
w(d): its weight
Args:
X: (np.array or pd.DataFrame) of features
y: (np.array) of targets of length N
if type(y[0]) in ["str", "int"]: y is assumed to be categorical, so that it is additionally
tested that all partitions cover all classes. Else y is assumed to be numeric and no
coverage test is done.
split_on: (np.array) list of length N with grouping variable (e.g. speaker IDs),
on which the group-disjunct split is to be performed. Must be categorical.
stratify_on: (dict) Dict-keys are variable names (targets and/or further groupings)
the split should be stratified on (groupings could e.g. be sex, age class, etc).
Dict-Values are np.array-s of length N that contain the variable values. All
variables must be categorical.
weight: (dict) weight for each variable in stratify_on. Defines their amount of
contribution to the optimization score. Uniform weighting by default. Additional
key: "size_diff" defines how test size diff should be weighted.
test_size: (float) test proportion in set(split_on), e.g. 10% of speakers to be held-out
k: (int) number of different splits to be tried out
seed: (int) random seed
Returns:
train_i: (np.array) train set indices in X
test_i: (np.array) test set indices in X
info: (dict) detail information about reference and achieved prob distributions
"size_testset_in_spliton": intended test_size
"size_testset_in_X": optimized test proportion in X
"p_ref_{c}": reference class distribution calculated from stratify_on[c]
"p_test_{c}": test set class distribution calculated from stratify_on[c][test_i]
'''
gss = GroupShuffleSplit(n_splits=k, test_size=test_size,
random_state=seed)
# data size
N = len(y)
# size checks
assert size_check(stratify_on, N), \
f"all stratify_on arrays must have length {N}"
assert size_check(split_on, N), \
f"split_on array must have length {N}"
# set weight defaults
if weight is None:
weight = {}
for c in stratify_on.keys():
if c not in weight:
weight[c] = 1
if "size_diff" not in weight:
weight["size_diff"] = 1
# stratification reference distributions calculated on stratify_on
p_ref = {}
for c in stratify_on:
p_ref[c] = class_prob(stratify_on[c])
# best train and test indices in X; best associated score
train_i, test_i, best_sco = None, None, np.inf
# full target coverage in all partitions
full_target_coverage = False
# categorical target: number of classes for coverage test
if is_categorical(y[0]):
nc = len(set(y))
else:
nc = None
# brute-force optimization of SPLIT_ON split
for tri, tei in gss.split(X, y, split_on):
# all classes maintained in all partitions?
if nc:
nc_train = len(set(y[tri]))
nc_test = len(set(y[tei]))
if min(nc_train, nc_test) < nc:
continue
full_target_coverage = True
sco = calc_split_score(tei, stratify_on, weight, p_ref, N, test_size)
if sco < best_sco:
train_i, test_i, best_sco = tri, tei, sco
if test_i is None:
sys.exit(exit_message(full_target_coverage))
# matching info
info = {"score": best_sco,
"size_testset_in_spliton": test_size,
"size_testset_in_X": np.round(len(test_i) / N, 2)}
for c in p_ref:
info[f"p_{c}_ref"] = p_ref[c]
info[f"p_{c}_test"] = class_prob(stratify_on[c][test_i])
return train_i, test_i, info
| (X: Union[<built-in function array>, pandas.core.frame.DataFrame], y: Union[<built-in function array>, list], split_on: Union[<built-in function array>, list], stratify_on: dict, weight: Optional[dict] = None, test_size: float = 0.1, k: int = 30, seed: int = 42) -> Tuple[<built-in function array>, <built-in function array>, dict] | [
-0.0012091627577319741,
0.020687459036707878,
-0.04070952907204628,
-0.03046661801636219,
0.0328458771109581,
-0.01928611472249031,
0.0026212178636342287,
-0.007546083070337772,
0.004254438448697329,
-0.011291400529444218,
-0.037120480090379715,
0.02776474691927433,
0.04560919106006622,
-0.02326834946870804,
0.009138977155089378,
-0.0031908287201076746,
0.011442624032497406,
-0.040850672870874405,
0.04657702520489693,
0.029559273272752762,
-0.02776474691927433,
-0.023812755942344666,
0.03738259896636009,
0.004178826231509447,
-0.00048171181697398424,
-0.017783954739570618,
0.013963025994598866,
-0.0005009298911318183,
0.038511741906404495,
-0.023409493267536163,
-0.02768409438431263,
0.002498978516086936,
-0.035688892006874084,
0.03744309023022652,
0.008912141434848309,
-0.04079018533229828,
0.021877087652683258,
0.048956286162137985,
0.024357164278626442,
-0.019548237323760986,
-0.036051828414201736,
-0.04030626639723778,
-0.008720590732991695,
-0.013751312159001827,
-0.019759951159358025,
0.08613725751638412,
-0.020626969635486603,
0.06492555141448975,
-0.01891309581696987,
0.0045316824689507484,
0.018973585218191147,
-0.08823423087596893,
-0.05561014637351036,
0.03661639988422394,
-0.01584828644990921,
0.028026869520545006,
0.051658157259225845,
0.010615932755172253,
0.03197886049747467,
-0.08508876711130142,
0.03611231967806816,
0.03611231967806816,
-0.001458052429370582,
0.06238498538732529,
-0.06234465911984444,
-0.04206046462059021,
-0.06956309080123901,
0.012914539314806461,
-0.0013131293235346675,
-0.013872291892766953,
0.03238212317228317,
-0.016604406759142876,
0.03760439530014992,
0.04032643139362335,
-0.041011977940797806,
0.04048773646354675,
-0.007273879833519459,
-0.04119344800710678,
0.040931325405836105,
-0.06048964336514473,
-0.023147370666265488,
0.030950535088777542,
-0.0009363293065689504,
-0.11775317788124084,
-0.028853559866547585,
0.007152900565415621,
0.03627362474799156,
0.04177818074822426,
0.008115693926811218,
-0.05609406530857086,
-0.028107522055506706,
0.08855684101581573,
0.037120480090379715,
0.023147370666265488,
-0.01122082956135273,
0.05460198596119881,
-0.028530949726700783,
-0.03246277570724487,
-0.03657607361674309,
0.0019117248011752963,
0.023691777139902115,
0.017219385132193565,
0.010807483457028866,
0.06036866456270218,
-0.027159851044416428,
-0.040023982524871826,
-0.026554953306913376,
0.05230338126420975,
-0.05605373904109001,
-0.06500620394945145,
-0.043673522770404816,
0.001892821746878326,
-0.028510786592960358,
0.018449341878294945,
-0.0032966856379061937,
-0.0529082752764225,
-0.04738355427980423,
0.005776761099696159,
-0.06875656545162201,
-0.022744106128811836,
0.03828994557261467,
-0.008347570896148682,
-0.09041185677051544,
0.016029756516218185,
0.0006710569723509252,
-0.04738355427980423,
0.05633602291345596,
0.10057411342859268,
0.0166245698928833,
-0.05835234373807907,
0.001146152731962502,
0.02395389974117279,
-0.04460103064775467,
0.06000572815537453,
-0.023026391863822937,
0.010676422156393528,
-0.06803068518638611,
0.04976281523704529,
0.01879211701452732,
-0.08791162073612213,
0.06242531165480614,
-0.043592870235443115,
-0.00418638763949275,
-0.01880219765007496,
0.06270759552717209,
-0.006069127470254898,
0.020526152104139328,
-0.03086988255381584,
0.005123977083712816,
0.051859788596630096,
0.0099505465477705,
0.008675223216414452,
0.04927889630198479,
-0.12396344542503357,
-0.028329316526651382,
-0.04492364451289177,
-0.028692254796624184,
-0.005852373316884041,
0.04693996533751488,
-0.03149494156241417,
0.017794037237763405,
-0.08597594499588013,
-0.002729595173150301,
0.03748341649770737,
-0.01042438205331564,
0.02756311558187008,
-0.0011896296637132764,
0.02248198539018631,
-0.02080843783915043,
-0.03014400601387024,
0.014648575335741043,
-0.010016077198088169,
-0.048835307359695435,
0.014023516327142715,
-0.05593275651335716,
-0.001947010401636362,
-0.009325486607849598,
-0.040064308792352676,
-0.02157464064657688,
0.004264520015567541,
-0.00581708736717701,
-0.02280459553003311,
0.01060585118830204,
-0.013579925522208214,
-0.01888285018503666,
0.043713849037885666,
0.024417653679847717,
0.007248675916343927,
-0.007399899885058403,
0.018046077340841293,
-0.0194575022906065,
-0.057142551988363266,
-0.03482187166810036,
0.00910873245447874,
0.04661735147237778,
0.016685061156749725,
0.0017378170741721988,
-0.014366290532052517,
-0.0532308891415596,
0.03320881351828575,
-0.030285147950053215,
0.014930861070752144,
0.015475267544388771,
-0.031132003292441368,
-0.0066034528426826,
0.031636085361242294,
-0.03828994557261467,
0.03181755170226097,
0.03570905327796936,
0.0031152167357504368,
-0.005655781831592321,
-0.028470460325479507,
-0.027038870379328728,
0.08460485190153122,
0.0664982795715332,
-0.003914183937013149,
0.03264424577355385,
0.028188174590468407,
0.043754175305366516,
-0.04738355427980423,
-0.02478059194982052,
-0.04202013835310936,
0.012944784015417099,
0.05040803551673889,
-0.004632498603314161,
-0.020747948437929153,
0.04952085763216019,
0.005645700264722109,
0.04528658092021942,
-0.08246754854917526,
-0.008665141649544239,
-0.0663369745016098,
0.06766775250434875,
-0.027865562587976456,
-0.013690822757780552,
-0.014628412202000618,
-0.01896350271999836,
-0.013529516756534576,
-0.015283716842532158,
-0.0050155995413661,
-0.03504366800189018,
-0.026756586506962776,
-0.033027347177267075,
-0.04169752821326256,
-0.01781420037150383,
0.01130148209631443,
0.031232820823788643,
-0.009496874175965786,
0.031394124031066895,
0.021715782582759857,
0.020626969635486603,
-0.04149589687585831,
-0.02153431437909603,
-0.05064999684691429,
-0.00804512295871973,
-0.00855928473174572,
0.016806039959192276,
-0.015182901173830032,
-0.0012343667913228273,
-0.05073064938187599,
-0.05786842852830887,
-0.027623604983091354,
-0.02035476453602314,
0.03010367974638939,
-0.0652884915471077,
0.016856446862220764,
0.03147478029131889,
0.02039509266614914,
-0.043592870235443115,
-0.03800766170024872,
-0.008115693926811218,
0.04956118389964104,
-0.06008638069033623,
0.037201132625341415,
-0.08734704554080963,
0.06367543339729309,
-0.045730169862508774,
-0.04827073588967323,
0.048633676022291183,
-0.0008953727665357292,
0.06069127842783928,
-0.00213982118293643,
-0.0020024592522531748,
-0.035527583211660385,
0.02355063520371914,
0.03240228816866875,
-0.021312518045306206,
-0.024357164278626442,
0.01805615983903408,
-0.005736434832215309,
-0.07520879060029984,
-0.029720578342676163,
0.023893410339951515,
-0.0014593126252293587,
0.025486303493380547,
0.019840603694319725,
0.020294275134801865,
-0.017904935404658318,
0.002079331548884511,
-0.03748341649770737,
-0.019255870953202248,
-0.022179536521434784,
0.01038405578583479,
0.0034907564986497164,
-0.006467351224273443,
-0.0168262030929327,
0.05484394356608391,
-0.07024864107370377,
-0.01273307017982006,
-0.01451751496642828,
0.004433386959135532,
0.03407583385705948,
0.01126115582883358,
-0.029458457604050636,
0.008589529432356358,
-0.04802877828478813,
-0.014819962903857231,
0.014749391935765743,
0.05028705671429634,
0.05004509910941124,
0.007359573617577553,
-0.04685931280255318,
0.02211904712021351,
-0.0030017986427992582,
0.03655590862035751,
0.0013408537488430738,
0.011583766900002956,
-0.020334601402282715,
-0.038068149238824844,
-0.010575606487691402,
-0.015122410841286182,
-0.0261718537658453,
0.005786842666566372,
-0.009456547908484936,
-0.018167056143283844,
0.04472200945019722,
0.048714328557252884,
-0.022098883986473083,
0.021877087652683258,
-0.02088909037411213,
0.008529040031135082,
0.0038184088189154863,
-0.05887658894062042,
0.031232820823788643,
-0.005494476296007633,
-0.0012331065954640508,
-0.01191646046936512,
0.005993515718728304,
0.031232820823788643,
0.04270568862557411,
0.002588452771306038,
0.0016899293987080455,
0.030990861356258392,
0.02236100472509861,
0.06020735949277878,
-0.004640060011297464,
-0.015777716413140297,
-0.004642580170184374,
0.04435907304286957,
0.01872154511511326,
-0.02461928501725197,
-0.05488426983356476,
0.051133912056684494,
0.018570320680737495,
0.015505512244999409,
-0.04468168318271637,
0.009038161486387253,
-0.031676411628723145,
0.014386453665792942,
-0.07411997765302658,
-0.043754175305366516,
-0.05044836550951004,
-0.003586531849578023,
0.019296197220683098,
0.036918845027685165,
0.034378282725811005,
-0.024296674877405167,
-0.01658424362540245,
0.009431343525648117,
0.048512693494558334,
-0.012874213047325611,
0.04391548037528992,
0.064240001142025,
0.05819103866815567,
-0.030365802347660065,
-0.022260189056396484,
0.011271237395703793,
-0.02244165912270546,
0.022219862788915634,
-0.012813722714781761,
0.06742578744888306,
0.013448864221572876,
0.03026498481631279,
0.008735712617635727,
-0.011593848466873169,
0.008241713978350163,
0.0005982803995721042,
-0.005454149562865496,
-0.034136321395635605,
0.059481482952833176,
-0.0018121689790859818,
-0.05351317301392555,
-0.03234179690480232,
0.004304846283048391,
-0.013670659624040127,
0.006013678852468729,
0.029458457604050636,
0.01107968669384718,
-0.031313471496105194,
0.011805562302470207,
-0.05863462761044502,
0.012783478014171124,
-0.014648575335741043,
-0.01765289530158043,
-0.046415720134973526,
0.0023830400314182043,
-0.028934214264154434,
0.10186456143856049,
0.05621504411101341,
0.014406616799533367,
0.06351412832736969,
-0.04548821225762367,
0.01642293855547905,
-0.04560919106006622,
-0.006825248245149851,
-0.024881407618522644,
-0.04099181666970253,
-0.0397215336561203,
0.021897250786423683,
-0.02673642337322235,
-0.02756311558187008,
0.015082084573805332,
-0.0653691440820694,
-0.0067345136776566505,
-0.006875656079500914,
-0.02359096147119999,
-0.02764376811683178,
0.05085162818431854,
0.009093609638512135,
-0.025950057432055473,
-0.021735945716500282,
0.0016180980019271374,
0.03570905327796936,
0.02935764007270336,
0.04415744170546532,
0.0003660883812699467,
-0.017350446432828903,
0.022381167858839035,
-0.07589434087276459,
-0.037201132625341415,
0.038632720708847046,
-0.004388019442558289,
0.01203743927180767,
0.05738450959324837,
-0.0326845720410347,
0.03222081810235977,
0.046254415065050125,
0.012773396447300911,
-0.02879307046532631,
0.02109072357416153,
0.0054692719131708145,
-0.023389330133795738,
-0.009713628329336643,
0.059481482952833176,
-0.02395389974117279,
0.05230338126420975,
-0.013741230592131615,
0.0028581356164067984,
0.024881407618522644,
-0.013539599254727364,
-0.0025708097964525223,
-0.0402054488658905,
-0.0032034306786954403,
0.023288512602448463,
0.03070857562124729,
0.04726257547736168,
-0.015787797048687935,
0.03530579060316086,
0.033269304782152176,
0.001296746777370572,
0.05044836550951004,
0.015122410841286182,
-0.007808205205947161,
-0.02621218003332615,
-0.007440226152539253,
-0.041374918073415756,
-0.027200177311897278,
-0.017844446003437042,
-0.006356453523039818,
0.019729705527424812,
-0.0066941874101758,
-0.006583289708942175,
0.043633196502923965,
0.001229326007887721,
-0.004309887066483498,
0.06956309080123901,
0.003997357562184334,
0.025627445429563522,
0.05032738298177719,
-0.04935954883694649,
0.012208826839923859,
0.03665672615170479,
-0.04992412030696869,
-0.028369642794132233,
0.041132956743240356,
0.0020138011313974857,
-0.0031883083283901215,
0.030244821682572365,
-0.06105421483516693,
-0.020626969635486603,
-0.029861722141504288,
-0.01952807419002056,
0.04798845201730728,
0.03530579060316086,
0.028893886134028435,
-0.009849730879068375,
-0.008937344886362553,
0.016886692494153976,
0.007858612574636936,
-0.01103936042636633,
0.021877087652683258,
0.014688902534544468,
0.017128651961684227,
0.024296674877405167,
0.009602731093764305,
0.006492555141448975,
0.035688892006874084,
0.05278729647397995,
0.038229454308748245,
0.014618330635130405,
-0.009325486607849598,
-0.020687459036707878,
0.0168262030929327,
0.07174071669578552,
0.04189915955066681,
0.04794812574982643,
0.013579925522208214,
0.000304496061289683,
0.08028992265462875,
0.02088909037411213,
0.005872536450624466,
0.01810656674206257,
0.0045316824689507484,
-0.04079018533229828,
0.011714828200638294,
0.07230529189109802,
0.03744309023022652,
0.0395602285861969,
-0.048996612429618835,
0.010878054425120354,
0.023933736607432365,
0.015616410411894321,
0.04536723345518112,
0.019265951588749886,
0.10105803608894348,
-0.06915982812643051,
0.014920779503881931,
0.011876133270561695,
-0.003964592237025499,
0.04230242595076561,
-0.04415744170546532,
0.015384533442556858,
0.07000668346881866,
-0.05089195445179939,
0.03478154540061951,
0.0264944639056921,
0.006467351224273443,
0.01957848109304905,
-0.03661639988422394,
-0.034136321395635605,
-0.005464231129735708,
0.03121265582740307,
0.00301944138482213,
0.048432040959596634,
-0.05532786250114441,
0.0165439173579216,
-0.04536723345518112,
-0.011140176095068455,
-0.03472105786204338,
-0.026151690632104874,
-0.01027819886803627,
0.05270664393901825,
0.04669800400733948,
0.03125298395752907,
0.030769066885113716,
-0.0073898183181881905,
-0.04145557060837746,
0.010545361787080765,
-0.031595759093761444,
-0.014013434760272503,
-0.010021117515861988,
0.02088909037411213,
0.01715889573097229,
0.007556164637207985,
0.009456547908484936,
-0.03643492981791496,
-0.019265951588749886,
-0.034176647663116455,
0.04391548037528992,
-0.04492364451289177,
0.04026594012975693,
0.008665141649544239,
-0.006719391327351332,
0.01386221032589674,
0.03238212317228317,
-0.012299560941755772,
0.0034101037308573723,
0.015485349111258984,
0.02141333371400833,
-0.0265751164406538,
0.007107533048838377,
0.053392194211483,
0.020213622599840164,
-0.09863844513893127,
-0.026837239041924477,
-0.0007964469841681421,
-0.01634228602051735,
0.0027346359565854073,
0.038511741906404495,
-0.09823518246412277,
0.05867495387792587,
0.03492268919944763,
0.06976472586393356,
0.042987972497940063,
-0.011240992695093155,
0.011251074261963367,
0.0008292121929116547,
-0.07194235175848007,
-0.010404218919575214,
-0.07762837409973145,
-0.014285637997090816,
-0.03234179690480232,
0.07367638498544693,
-0.011654337868094444,
0.015152656473219395,
-0.009446466341614723,
0.06839362531900406,
0.013811802491545677,
-0.00553984334692359,
-0.03627362474799156,
-0.014457025565207005,
-0.03177722543478012,
0.07484585046768188,
0.019195379689335823,
-0.037201132625341415,
-0.064240001142025,
0.04702061787247658,
0.01255160104483366,
0.0267767496407032,
0.04496397078037262,
0.0010831427061930299,
0.04193948581814766,
-0.061941396445035934,
-0.05480361729860306,
0.014305801130831242,
0.025829078629612923,
0.003037084359675646,
0.0008159800781868398,
-0.014900615438818932,
-0.02296590246260166,
-0.016150735318660736,
0.05774744600057602,
0.017189141362905502,
0.028329316526651382,
-0.0025405650958418846,
0.03845125064253807,
0.07032929360866547,
-0.019316360354423523,
-0.010182423517107964,
0.007641858421266079,
-0.03784635290503502,
0.021897250786423683,
-0.0264944639056921,
-0.02653479017317295,
0.012218908406794071,
-0.059683118015527725,
-0.00033426829031668603,
0.013892455026507378,
-0.02621218003332615,
-0.08476615697145462,
0.0794430673122406,
0.013045599684119225,
0.04460103064775467,
-0.05544884130358696,
0.07557173073291779,
0.0070067173801362514,
-0.03320881351828575,
-0.08920206129550934,
0.014144495129585266,
-0.010938543826341629,
0.03062792308628559,
0.03516464680433273,
0.01097887009382248,
-0.017179058864712715,
-0.024760428816080093,
0.01723954826593399,
-0.004120856989175081,
-0.006074168719351292,
0.008750835433602333,
-0.027159851044416428,
-0.003929306287318468,
-0.04722224920988083,
-0.012380214408040047,
-0.017007671296596527,
-0.01261209137737751,
0.05992507562041283,
-0.06476424634456635,
0.007843490689992905,
0.011987031437456608,
-0.08775030821561813,
0.010545361787080765,
-0.04306862875819206,
-0.05484394356608391,
-0.031091677024960518,
-0.030970698222517967,
-0.0017894853372126818,
0.0014517514500766993,
0.006638738326728344,
-0.035527583211660385,
0.023449819535017014,
0.027300992980599403,
0.0030043190345168114,
0.04585115239024162,
-0.019921256229281425,
-0.04230242595076561,
-0.009617853909730911,
0.12396344542503357,
0.000814089784398675,
0.028389805927872658,
-0.022744106128811836,
0.001538705313578248,
0.06004605442285538,
-0.03367256745696068,
0.0007542302482761443,
-0.0016344806645065546,
-0.0096884248778224,
-0.008256836794316769,
-0.05621504411101341,
0.031837716698646545,
0.0526663176715374,
0.005635618697851896,
-0.014255393296480179,
-0.03865288197994232,
-0.0520210936665535,
-0.07383769005537033,
0.08831488341093063,
-0.010494953021407127,
0.0014681341126561165,
0.002061688806861639,
-0.04762551188468933,
0.027421971783041954,
-0.010494953021407127,
-0.0047938041388988495,
-0.03921745344996452,
0.04149589687585831,
0.03026498481631279,
0.039802186191082,
-0.04193948581814766,
0.0008707988308742642,
-0.035406604409217834,
-0.015757553279399872,
-0.007480552885681391,
0.011099849827587605,
0.030365802347660065,
-0.0043754177168011665,
0.02943829447031021,
0.03383387625217438,
0.026272669434547424
] |
725,450 | resfo.format | Format |
The format of an res file, either FORMATTED for ascii
or UNFORMATTED for binary.
| class Format(Enum):
"""
The format of an res file, either FORMATTED for ascii
or UNFORMATTED for binary.
"""
FORMATTED = auto()
UNFORMATTED = auto()
| (value, names=None, *, module=None, qualname=None, type=None, start=1) | [
0.06018441915512085,
-0.033283546566963196,
-0.031965386122465134,
-0.03649222478270531,
0.04166080057621002,
-0.06979311257600784,
0.03016158752143383,
-0.03999575600028038,
0.014811958186328411,
-0.042146436870098114,
0.01932145282626152,
0.035659704357385635,
-0.0006168035906739533,
0.006985382176935673,
0.004886731971055269,
0.040412016212940216,
-0.06708741933107376,
0.018506275489926338,
-0.01795126125216484,
0.04166080057621002,
0.035833146423101425,
0.0366656668484211,
-0.027230415493249893,
-0.006291613448411226,
0.04946569725871086,
0.04478275775909424,
0.011291082948446274,
-0.04665593430399895,
-0.06299418210983276,
-0.06837088614702225,
-0.024663470685482025,
-0.014222254976630211,
0.015271579846739769,
0.020136632025241852,
-0.04911881312727928,
-0.03676973283290863,
-0.02811497077345848,
0.04408898949623108,
-0.11107233911752701,
-0.00907969567924738,
-0.0281670019030571,
0.010189725086092949,
-0.021766988560557365,
-0.022651541978120804,
-0.030439093708992004,
-0.013675912283360958,
-0.014525778591632843,
-0.056195251643657684,
-0.02762933261692524,
-0.035833146423101425,
0.06965436041355133,
0.005814647767692804,
-0.04422774538397789,
-0.017534999176859856,
-0.051755134016275406,
0.025842877104878426,
-0.010267774574458599,
0.07020937651395798,
-0.03833071142435074,
-0.0002910575713030994,
-0.009426579810678959,
0.009652054868638515,
0.008043378591537476,
-0.038226645439863205,
-0.01509813778102398,
0.005450419150292873,
-0.0041864593513309956,
-0.016190823167562485,
0.0011577262775972486,
0.08831673115491867,
0.007934977300465107,
0.0014428216964006424,
-0.026519302278757095,
-0.005172911565750837,
0.0593172088265419,
-0.017196787521243095,
-0.08436225354671478,
0.03231227025389671,
-0.014291631989181042,
0.01220165379345417,
0.044990889728069305,
0.014933368191123009,
0.06448578834533691,
-0.020084599032998085,
-0.009617365896701813,
-0.060774125158786774,
0.03428950905799866,
-0.05792967230081558,
0.027768084779381752,
0.03982231393456459,
-0.006122507154941559,
-0.014395697042346,
-0.02488894574344158,
0.012826045975089073,
-0.020552892237901688,
-0.03342229872941971,
-0.002569111529737711,
-0.014543122611939907,
-0.039579495787620544,
-0.05806842818856239,
-0.04866786301136017,
-0.030439093708992004,
-0.03781038522720337,
-0.04561528190970421,
0.016563722863793373,
-0.033647775650024414,
0.0217149555683136,
0.0048650517128407955,
-0.005259632598608732,
-0.023952359333634377,
0.008108419366180897,
-0.05359362065792084,
-0.012522522360086441,
-0.004821691196411848,
0.04287489503622055,
0.014222254976630211,
0.009296498261392117,
-0.0015013584634289145,
-0.00044010940473526716,
0.006226572673767805,
-0.009383219294250011,
0.018506275489926338,
-0.019460206851363182,
0.009036335162818432,
0.04745376855134964,
0.02051820419728756,
-0.00006842834409326315,
0.004453126806765795,
0.047210950404405594,
0.052448902279138565,
0.028340443968772888,
0.04915349930524826,
-0.012305719777941704,
-0.033283546566963196,
0.02658867835998535,
-0.020726334303617477,
-0.00277290609665215,
0.05844999849796295,
-0.011707344092428684,
0.09442190080881119,
0.024108456447720528,
0.04793940484523773,
0.018072670325636864,
-0.03137568384408951,
-0.0072715613059699535,
0.03885103762149811,
0.032954003661870956,
0.03999575600028038,
-0.03231227025389671,
0.08089341223239899,
0.060253798961639404,
-0.0017355052987113595,
-0.05470364913344383,
0.07569015026092529,
0.02305045910179615,
-0.05137355998158455,
-0.020587582141160965,
-0.031254272907972336,
-0.014508434571325779,
-0.011941490694880486,
0.027525266632437706,
0.002777242101728916,
0.0007826576475054026,
-0.018263457342982292,
0.025808189064264297,
0.08373786509037018,
-0.06202290579676628,
-0.011802737601101398,
0.04506026580929756,
-0.05598711967468262,
-0.002655832562595606,
-0.04068952426314354,
0.010840133763849735,
0.01880112662911415,
0.0690646544098854,
0.06916872411966324,
0.02438596449792385,
0.030959421768784523,
0.02291170507669449,
0.01878378354012966,
0.04800878092646599,
-0.01762172020971775,
-0.038885727524757385,
0.0009327934822067618,
0.03916323557496071,
0.015809250995516777,
0.0067468988709151745,
-0.010874821804463863,
0.022426068782806396,
-0.048216912895441055,
0.05203263834118843,
0.01551439892500639,
-0.043325845152139664,
-0.01878378354012966,
-0.0252531748265028,
-0.05945596471428871,
-0.025808189064264297,
-0.050263531506061554,
0.05421801283955574,
-0.023588130250573158,
-0.03428950905799866,
0.05036759749054909,
0.01457781158387661,
0.04863317310810089,
0.026831498369574547,
0.018697062507271767,
0.06566519290208817,
-0.051096051931381226,
-0.0868598222732544,
0.019234731793403625,
-0.06132913753390312,
-0.042458634823560715,
0.00022764279856346548,
0.04662124440073967,
0.01339840516448021,
-0.039267297834157944,
-0.004052042029798031,
0.07045219838619232,
-0.06802400201559067,
0.06122507154941559,
0.03118489496409893,
-0.017214132472872734,
0.014369680546224117,
-0.02745589055120945,
0.06597738713026047,
-0.026831498369574547,
-0.0007978338398970664,
-0.05373237282037735,
-0.05945596471428871,
0.05012477561831474,
-0.023622818291187286,
-0.01763906516134739,
-0.04623967409133911,
0.013693256303668022,
-0.0070070624351501465,
0.06587332487106323,
0.03241633623838425,
0.02473284862935543,
-0.054807715117931366,
0.009756119921803474,
-0.0021355063654482365,
0.057513412088155746,
-0.008984302170574665,
0.016702476888895035,
0.016173478215932846,
-0.050263531506061554,
0.023622818291187286,
0.035156719386577606,
-0.038053203374147415,
-0.021628234535455704,
-0.016676461324095726,
0.012765341438353062,
-0.030265651643276215,
-0.03182663023471832,
-0.002785914344713092,
-0.026415236294269562,
-0.1033715084195137,
-0.019755059853196144,
0.03231227025389671,
0.005064510274678469,
-0.01606941409409046,
-0.008286197669804096,
0.0416954904794693,
0.0355556383728981,
0.010449888184666634,
-0.025981631129980087,
0.02560005895793438,
-0.008160452358424664,
0.0012693796306848526,
0.01729218102991581,
0.06285542994737625,
0.014907351695001125,
-0.08186468482017517,
-0.013675912283360958,
-0.020379450172185898,
0.023466721177101135,
0.04443587362766266,
-0.0024325258564203978,
0.049049437046051025,
-0.010033627040684223,
0.01533228438347578,
0.01595667563378811,
0.02799355983734131,
0.048390354961156845,
0.03638815879821777,
0.02150682546198368,
-0.02119462937116623,
-0.0036683010403066874,
-0.03864290565252304,
0.024108456447720528,
0.07728581130504608,
0.06032317504286766,
0.024472685530781746,
-0.008958286605775356,
0.09761323034763336,
-0.0018341505201533437,
0.04401961341500282,
-0.049396321177482605,
0.04474807158112526,
-0.00542440265417099,
-0.029398441314697266,
0.003065589815378189,
0.06028848513960838,
-0.001355016720481217,
-0.07902023941278458,
0.0044921510852873325,
-0.0110916243866086,
-0.07145816087722778,
-0.003221687627956271,
0.0352434404194355,
-0.0048563797026872635,
0.03236430138349533,
0.028409821912646294,
0.0027598978485912085,
0.0038612554781138897,
0.04832097887992859,
-0.006265596952289343,
0.04134860634803772,
0.007332266308367252,
0.014074829407036304,
-0.04811284691095352,
0.057860296219587326,
0.0052292803302407265,
-0.03968356177210808,
0.00010230376210529357,
-0.06112100929021835,
-0.020726334303617477,
0.04422774538397789,
-0.005224944092333317,
-0.008819532580673695,
-0.049396321177482605,
-0.0352434404194355,
0.017933916300535202,
0.013788649812340736,
-0.04828628897666931,
-0.00015962096222210675,
0.04676000028848648,
-0.042285192757844925,
0.0022005471400916576,
-0.02388298138976097,
0.05029821768403053,
-0.008004354313015938,
-0.007679150439798832,
0.016182150691747665,
0.0009712759638205171,
0.022946394979953766,
0.020552892237901688,
0.015280252322554588,
0.0657692551612854,
-0.004021689295768738,
-0.033127445727586746,
-0.032468367367982864,
-0.00042005517752841115,
0.02745589055120945,
0.015401661396026611,
-0.04068952426314354,
0.00043170832213945687,
-0.07707768678665161,
0.03951011970639229,
0.02490629069507122,
0.010996230877935886,
0.000710028747562319,
-0.02202715165913105,
-0.015713857486844063,
-0.010406527668237686,
-0.00984284095466137,
0.005407058633863926,
0.012132277712225914,
0.037185993045568466,
-0.01185476966202259,
0.0008401103550568223,
0.019026601687073708,
-0.02998814545571804,
-0.06132913753390312,
0.016364265233278275,
0.00525529682636261,
0.01980709098279476,
0.041279226541519165,
-0.03590252250432968,
-0.0052466243505477905,
0.019755059853196144,
0.031618501991033554,
-0.028791394084692,
0.03867759555578232,
0.002031441079452634,
-0.04554590582847595,
0.037290059030056,
0.0021040698047727346,
-0.07513513416051865,
0.04984726756811142,
-0.009443923830986023,
0.030733946710824966,
-0.012817373499274254,
-0.03645753487944603,
0.007392970845103264,
-0.00029187058680690825,
-0.07673080265522003,
0.042146436870098114,
0.03260711953043938,
0.048702552914619446,
-0.010389183647930622,
0.013823337852954865,
-0.0059750815853476524,
-0.0015891635557636619,
-0.04443587362766266,
0.039267297834157944,
0.06785055994987488,
0.0017929580062627792,
-0.05071448162198067,
-0.00702874269336462,
0.00973877590149641,
-0.01119568943977356,
-0.021662922576069832,
-0.049396321177482605,
0.004843371454626322,
-0.008238500915467739,
0.020778367295861244,
-0.015011416748166084,
-0.012826045975089073,
0.015011416748166084,
-0.03425482288002968,
0.021992461755871773,
0.05921314284205437,
0.10892166197299957,
0.02239137887954712,
-0.016008708626031876,
0.042285192757844925,
0.035659704357385635,
-0.009634710848331451,
0.004678601399064064,
0.003017893061041832,
0.022096527740359306,
-0.008585385978221893,
-0.10801976174116135,
0.014543122611939907,
-0.0733313336968422,
-0.016728494316339493,
-0.05494646728038788,
-0.050436973571777344,
-0.01760437712073326,
0.030074866488575935,
-0.0008970210328698158,
0.005537140183150768,
0.028271067887544632,
0.010233085602521896,
-0.05876219645142555,
-0.03614534065127373,
0.03971824795007706,
0.020275386050343513,
-0.037879761308431625,
-0.0663936510682106,
0.06382670253515244,
-0.010345823131501675,
-0.043811481446027756,
0.06344513595104218,
-0.0775633230805397,
-0.006846628151834011,
0.00002579612919362262,
-0.039232611656188965,
-0.05342017859220505,
0.021610889583826065,
0.03642284870147705,
-0.02388298138976097,
-0.06767711788415909,
0.016641773283481598,
-0.055015843361616135,
0.02747323364019394,
-0.00559784471988678,
-0.029086245223879814,
-0.01391005888581276,
-0.06705272942781448,
0.023622818291187286,
0.027872150763869286,
0.023935014382004738,
-0.03425482288002968,
0.011577262543141842,
0.022061839699745178,
0.030126899480819702,
-0.04408898949623108,
-0.03597189858555794,
0.06476329267024994,
-0.02440330758690834,
-0.04284020885825157,
0.039059169590473175,
0.0252531748265028,
-0.004140930715948343,
0.0015956676797941327,
-0.00428185286000371,
-0.023293279111385345,
0.005823319777846336,
-0.003685645293444395,
0.02221793681383133,
-0.009799480438232422,
-0.016858575865626335,
0.0413832925260067,
-0.0010368587682023644,
0.002402173588052392,
0.019598960876464844,
-0.0531773567199707,
0.007830912247300148,
0.06809338182210922,
-0.08117091655731201,
-0.05862344056367874,
-0.01744827814400196,
0.015549086965620518,
-0.00939189177006483,
0.005281312856823206,
-0.05733997002243996,
0.020708991214632988,
-0.010805444791913033,
-0.020917121320962906,
0.004578872118145227,
0.04898005723953247,
-0.001993500627577305,
0.015592447482049465,
0.010319806635379791,
0.009365875273942947,
-0.03826133534312248,
0.0342201329767704,
0.06018441915512085,
-0.08214219659566879,
-0.05956002697348595,
0.023432033136487007,
0.0003712745674420148,
-0.03562501445412636,
-0.011603279039263725,
-0.013970764353871346,
-0.03614534065127373,
0.011924146674573421,
0.002069381531327963,
0.05817249044775963,
-0.002339300699532032,
0.04537246376276016,
-0.02015397511422634,
-0.00949595682322979,
0.01763906516134739,
-0.01484664622694254,
0.010146364569664001,
-0.020223353058099747,
0.013875370845198631,
0.024004390463232994,
0.015072121284902096,
0.0030092210508883,
-0.009348531253635883,
0.028409821912646294,
-0.02764667570590973,
0.01763906516134739,
-0.046378426253795624,
0.08838611096143723,
-0.04155673459172249,
-0.014872662723064423,
-0.017517656087875366,
-0.029450474306941032,
-0.02931172028183937,
-0.012999488040804863,
0.03324885666370392,
0.05383643880486488,
0.0028726353775709867,
0.042285192757844925,
-0.037706319242715836,
-0.04755783453583717,
0.021055875346064568,
-0.06916872411966324,
0.045511215925216675,
-0.03456701710820198,
0.010311135090887547,
0.011663983575999737,
0.01866237446665764,
0.008004354313015938,
0.008524680510163307,
0.034185443073511124,
-0.016060741618275642,
0.06705272942781448,
-0.021576201543211937,
0.013701928779482841,
0.02256482094526291,
0.015306267887353897,
0.010059643536806107,
0.033300891518592834,
0.0233626551926136,
-0.012479161843657494,
-0.027213070541620255,
-0.02747323364019394,
-0.07589827477931976,
0.012340407818555832,
0.0027924184687435627,
-0.005706246010959148,
0.0008303542272187769,
0.02691821940243244,
0.02540927194058895,
-0.02931172028183937,
0.01578323356807232,
0.05806842818856239,
-0.04682937636971474,
-0.015592447482049465,
-0.009305170737206936,
0.014586483128368855,
-0.04419305548071861,
-0.03220820426940918,
0.010354495607316494,
0.007947986014187336,
0.04426243156194687,
-0.05106136575341225,
0.03337026759982109,
0.046690624207258224,
-0.006066138856112957,
0.04828628897666931,
-0.017534999176859856,
-0.02592959813773632,
0.04932694137096405,
-0.007449339609593153,
-0.04388086125254631,
-0.0072542172856628895,
-0.023674851283431053,
0.05678495392203331,
0.020778367295861244,
0.014369680546224117,
-0.020761024206876755,
-0.03546891734004021,
-0.011733360588550568,
-0.07031343877315521,
0.050575725734233856,
-0.032954003661870956,
0.014551795087754726,
-0.006994054187089205,
0.0654570609331131,
-0.078673355281353,
0.025287862867116928,
-0.03559032455086708,
-0.10531406104564667,
0.019442863762378693,
0.03725536912679672,
-0.0018146383808925748,
-0.035659704357385635,
-0.02386563830077648,
-0.03258977830410004,
-0.031948041170835495,
0.018228767439723015,
0.02239137887954712,
0.024680815637111664,
0.0017647737404331565,
0.0240737684071064,
0.0033279210329055786,
-0.01833283342421055,
-0.022755607962608337,
0.06271667778491974,
-0.0416954904794693,
-0.07353946566581726,
0.027230415493249893,
-0.04648249223828316,
-0.0029962128028273582,
0.03999575600028038,
0.014959383755922318,
0.012678620405495167,
-0.011594606563448906,
0.023501409217715263,
0.009530644863843918,
0.0032693841494619846,
0.02133338339626789,
-0.010883494280278683,
-0.05609118565917015,
-0.006113835144788027,
0.03250305727124214,
-0.0037918786983937025,
-0.016156135126948357,
-0.020049910992383957,
-0.043499287217855453,
-0.02998814545571804,
0.013901387341320515,
-0.026536647230386734,
-0.028062937781214714,
0.056542135775089264,
0.07360883802175522,
-0.0009929562220349908,
-0.021281350404024124,
0.05307329446077347,
0.025894910097122192,
0.019616305828094482,
0.11169673502445221,
0.017205459997057915,
0.015549086965620518,
0.013025504536926746,
-0.025686779990792274,
-0.0041192504577338696,
0.04242394492030144,
0.030890043824911118,
-0.05328142270445824,
0.009036335162818432,
0.029103590175509453,
-0.03172256797552109,
-0.03781038522720337,
-0.03031768463551998,
-0.04471338167786598,
0.00821248535066843,
-0.02188839763402939,
0.006707874592393637,
0.014612499624490738,
0.02221793681383133,
0.0022081350907683372,
-0.006430367007851601,
0.026658056303858757,
-0.05841531231999397,
0.008299206383526325,
-0.022269969806075096,
-0.013120897114276886,
0.008299206383526325,
-0.013034176081418991,
-0.02187105268239975,
0.005788631271570921,
0.009036335162818432,
0.013779977336525917,
0.11169673502445221,
-0.06975842267274857,
-0.008949614129960537,
-0.006439039018005133,
-0.01949489675462246,
-0.01777781918644905,
0.021454792469739914,
0.023189213126897812,
-0.0067382268607616425,
-0.007011398207396269,
0.00010020348418038338,
-0.02984939143061638,
0.015453694388270378,
-0.042493321001529694,
0.026484614238142967,
-0.053489554673433304,
0.02931172028183937,
-0.004336053505539894,
0.006044458597898483,
0.020032566040754318,
-0.016190823167562485,
-0.06580394506454468,
0.047523144632577896,
-0.001437401631847024,
0.022998426109552383,
0.03387324884533882,
0.027681363746523857,
0.0549117811024189,
0.03715130686759949,
0.0032910644076764584,
0.07839584350585938,
-0.022946394979953766,
0.010770756751298904,
-0.07610640674829483,
0.016147462651133537,
0.041626110672950745,
0.012305719777941704,
-0.029970800504088402,
0.06791993975639343,
0.0031696551013737917,
-0.02726510353386402,
-0.019911156967282295,
0.026363205164670944,
0.06406952440738678,
-0.03369980677962303,
-0.003744182176887989,
-0.005172911565750837,
-0.01279135700315237,
0.030126899480819702,
-0.04766189679503441,
-0.02610304206609726,
0.027161037549376488,
0.024368619546294212,
-0.048355668783187866,
-0.02370953932404518,
-0.021923085674643517,
-0.03416810184717178
] |
725,451 | resfo.types | MESS |
The MESS value is a sentinell object used to signal that the type of the
array that is to be written should be an empty array of type MESS.
| class MESS:
"""
The MESS value is a sentinell object used to signal that the type of the
array that is to be written should be an empty array of type MESS.
"""
pass
| () | [
0.04392653703689575,
0.017850767821073532,
0.008427035063505173,
-0.022537941113114357,
0.023974623531103134,
-0.026165561750531197,
-0.07107982039451599,
-0.0152557622641325,
0.03390568494796753,
-0.01344195194542408,
0.0021987962536513805,
0.016845090314745903,
-0.00784787256270647,
-0.028212834149599075,
-0.025860266759991646,
0.03219962492585182,
0.05732359364628792,
0.010137584060430527,
0.026740234345197678,
0.07140307128429413,
-0.001545555074699223,
0.02013150043785572,
0.0004781455791089684,
0.0065862867049872875,
-0.005625505931675434,
0.020311085507273674,
0.04008341580629349,
-0.04299269616603851,
-0.0047365594655275345,
-0.060196954756975174,
-0.07650329172611237,
-0.039939746260643005,
-0.013648474588990211,
0.010694297961890697,
0.07115165144205093,
-0.0506071075797081,
-0.01952091045677662,
0.07772447168827057,
-0.1161556988954544,
0.028823422268033028,
0.016584692522883415,
-0.016656527295708656,
-0.018236875534057617,
-0.01031716912984848,
0.010128605179488659,
0.0346779003739357,
0.04532730206847191,
0.07362993061542511,
-0.05272621288895607,
-0.027494492009282112,
0.0010331760859116912,
0.011089385487139225,
-0.004298820625990629,
0.017195282503962517,
-0.06062795966863632,
0.0491345077753067,
0.052546627819538116,
0.04902675747871399,
-0.04442937672138214,
0.06202872470021248,
-0.04123276099562645,
0.0631062388420105,
0.0824655219912529,
-0.09043910354375839,
0.0047500282526016235,
0.032343294471502304,
-0.033115509897470474,
0.04960142821073532,
0.03457015007734299,
0.08555438369512558,
-0.005836518481373787,
-0.03203799948096275,
-0.03297184035181999,
0.07542578130960464,
0.07736530154943466,
-0.045614637434482574,
-0.0506071075797081,
0.025052133947610855,
-0.0076009430922567844,
-0.03525257110595703,
0.012597900815308094,
0.0574672594666481,
-0.015974102541804314,
0.036581505089998245,
0.02399258129298687,
0.030870694667100906,
0.00843601394444704,
0.01932336576282978,
-0.01952091045677662,
0.06450700014829636,
-0.01496842596679926,
0.03950874134898186,
0.014447628520429134,
0.0077221631072461605,
0.012921154499053955,
0.013612557202577591,
-0.010721235536038876,
-0.03817981109023094,
-0.004424530081450939,
0.010442879050970078,
0.007699714973568916,
0.0013513785088434815,
0.05387555807828903,
-0.011807726696133614,
-0.03004460223019123,
-0.03108619712293148,
0.02067025564610958,
-0.02472888119518757,
0.015408409759402275,
0.03633008524775505,
0.00035159412072971463,
0.03505503013730049,
-0.04442937672138214,
-0.019000113010406494,
0.004925123881548643,
0.013001968152821064,
-0.0317327044904232,
0.002700512297451496,
-0.021891435608267784,
-0.013585619628429413,
0.010442879050970078,
0.04177151620388031,
-0.06245972961187363,
0.030942527577280998,
0.05211562290787697,
-0.004182090051472187,
0.015201886184513569,
0.0074752336367964745,
0.036545585840940475,
-0.02993685193359852,
-0.016171647235751152,
-0.016809172928333282,
0.01149345189332962,
0.017859747633337975,
-0.016593672335147858,
0.0016645302530378103,
0.02183755859732628,
-0.06335765868425369,
-0.03922140598297119,
0.010694297961890697,
0.008705392479896545,
0.026865944266319275,
-0.0014815778704360127,
-0.015058218501508236,
0.02896709181368351,
0.02846425212919712,
0.008867018856108189,
0.016414087265729904,
-0.04378287121653557,
0.026237396523356438,
-0.08052600175142288,
0.004038421902805567,
-0.010712256655097008,
-0.003423342714086175,
0.002590516349300742,
0.00006818625115556642,
0.013459909707307816,
-0.02580639161169529,
-0.022394273430109024,
-0.03518074005842209,
-0.030367854982614517,
-0.012032208032906055,
0.003030500141903758,
0.023040780797600746,
-0.017015697434544563,
0.049278177320957184,
-0.020203333348035812,
-0.00977841392159462,
-0.036509670317173004,
0.022286521270871162,
-0.03241512551903725,
-0.06637468934059143,
-0.06102304905653,
0.018874403089284897,
0.049242258071899414,
0.030296022072434425,
-0.00203716941177845,
0.05642566829919815,
0.03861081600189209,
-0.02433379366993904,
0.0048757377080619335,
0.021622056141495705,
-0.07283975183963776,
0.03175066038966179,
0.01828177273273468,
0.0032347782980650663,
-0.017159365117549896,
-0.0019036029698327184,
0.028105081990361214,
0.0031853923574090004,
-0.03273838013410568,
0.029146676883101463,
-0.0017116713570430875,
0.011744871735572815,
0.04805699735879898,
-0.02164001576602459,
-0.015704724937677383,
-0.005172053351998329,
-0.005374087020754814,
0.012256689369678497,
-0.05003243312239647,
-0.0010079218773171306,
0.04744640737771988,
-0.053013548254966736,
0.024639088660478592,
0.010191459208726883,
0.017347929999232292,
-0.025052133947610855,
-0.09352796524763107,
0.00917231384664774,
-0.014070499688386917,
-0.019772330299019814,
0.006321398541331291,
0.021927351132035255,
0.08375853300094604,
-0.09216312319040298,
0.06475841999053955,
-0.016620609909296036,
-0.054055143147706985,
0.039867911487817764,
0.057610929012298584,
-0.031175989657640457,
0.01211302075535059,
-0.003912712447345257,
-0.010784090496599674,
0.02472888119518757,
-0.004812883213162422,
-0.05369597300887108,
-0.0035804796498268843,
-0.038287561386823654,
0.010442879050970078,
-0.005257356446236372,
-0.04888308793306351,
-0.016010019928216934,
0.019467035308480263,
-0.013872955925762653,
0.012472191825509071,
-0.013046864420175552,
-0.026273313909769058,
0.006640162318944931,
-0.01962866075336933,
-0.01781485043466091,
-0.006559349130839109,
0.056030578911304474,
0.017249157652258873,
0.02533947117626667,
0.014977404847741127,
0.06479433923959732,
-0.03004460223019123,
0.0016488165128976107,
0.004307799972593784,
-0.05937086418271065,
-0.01959274336695671,
-0.040406666696071625,
0.07492294162511826,
-0.011143260635435581,
-0.05258254334330559,
-0.02241223119199276,
0.009311492554843426,
-0.038898151367902756,
-0.004664725158363581,
-0.05577915906906128,
0.046189311891794205,
0.09568298608064651,
-0.0017835054313763976,
0.021352678537368774,
0.017096510156989098,
0.03297184035181999,
-0.02889525704085827,
0.041520096361637115,
0.09647316485643387,
0.02641698159277439,
0.007942155003547668,
-0.061885055154561996,
-0.02120901085436344,
0.027602244168519974,
0.020921675488352776,
0.031193947419524193,
0.05304946377873421,
0.014474566094577312,
0.008005009964108467,
-0.03738963603973389,
0.03223554044961929,
-0.013145635835826397,
0.01550718117505312,
-0.010308190248906612,
-0.01028125174343586,
-0.0177071001380682,
-0.02120901085436344,
-0.01780587248504162,
0.01490557100623846,
0.018928278237581253,
-0.006604245398193598,
-0.008207043632864952,
0.06723669171333313,
0.00503287510946393,
-0.04432162642478943,
0.006752402987331152,
0.04600972682237625,
-0.021119218319654465,
0.039472825825214386,
0.010424920357763767,
-0.013298283331096172,
-0.005535713396966457,
-0.028877299278974533,
-0.004500853829085827,
-0.016818152740597725,
-0.01811116561293602,
0.016441024839878082,
0.027512451633810997,
0.0070397392846643925,
0.05484531819820404,
-0.018766652792692184,
0.052977632731199265,
0.030331939458847046,
0.05470164865255356,
0.050894442945718765,
-0.04011933133006096,
0.02164001576602459,
0.08426137268543243,
-0.011969353072345257,
-0.06274706870317459,
0.012490149587392807,
-0.09977753460407257,
-0.005571630317717791,
-0.0005126596079207957,
-0.00047954858746379614,
-0.03008051961660385,
-0.002325628185644746,
0.021927351132035255,
-0.012777485884726048,
-0.03390568494796753,
0.027709994465112686,
-0.0014815778704360127,
-0.0037465959321707487,
0.005728767719119787,
0.004848800133913755,
-0.046728067100048065,
0.0010191459441557527,
-0.03950874134898186,
-0.023705245926976204,
-0.041915182024240494,
-0.0416637659072876,
0.036850880831480026,
0.024944383651018143,
-0.027225114405155182,
-0.012615859508514404,
-0.02681206911802292,
0.06899663060903549,
0.04848800227046013,
0.009975957684218884,
0.06964313983917236,
0.02067025564610958,
0.061813224107027054,
0.09424630552530289,
-0.013567660935223103,
-0.0031068238895386457,
0.001496169134043157,
-0.02436971105635166,
-0.022322438657283783,
0.05703625828027725,
0.04715907201170921,
0.0049834889359772205,
-0.025088051334023476,
-0.012095062993466854,
-0.00007807746442267671,
-0.010631443001329899,
-0.03846714645624161,
0.03641987591981888,
-0.025429263710975647,
-0.031678829342126846,
-0.049816932529211044,
-0.060807544738054276,
-0.05588691309094429,
0.014411711134016514,
-0.016458982601761818,
-0.07323484122753143,
0.028015289455652237,
-0.039329156279563904,
-0.06263931095600128,
-0.009904122911393642,
-0.011071426793932915,
-0.018874403089284897,
0.007883789949119091,
-0.018290752544999123,
0.03360038995742798,
-0.005023895762860775,
0.04647664725780487,
-0.01862298510968685,
0.07492294162511826,
0.0071295322850346565,
-0.016450002789497375,
-0.06881704181432724,
-0.04335186630487442,
-0.038969986140728,
0.0291646346449852,
-0.017967497929930687,
0.020778005942702293,
-0.0770779624581337,
-0.0014804553939029574,
0.04608156159520149,
-0.05635383352637291,
-0.01240035705268383,
0.05373188853263855,
-0.05387555807828903,
-0.050966277718544006,
0.026524731889367104,
-0.08641639351844788,
-0.010828986763954163,
0.03753330558538437,
0.06953538209199905,
-0.009311492554843426,
0.0032482470851391554,
-0.03478565067052841,
0.08469237387180328,
-0.028015289455652237,
-0.0027790807653218508,
-0.04715907201170921,
0.0580778494477272,
-0.002092167502269149,
0.009751475416123867,
-0.009082521311938763,
0.07470744103193283,
0.07650329172611237,
-0.012714631855487823,
0.018712777644395828,
-0.026434939354658127,
-0.029954809695482254,
-0.018730735406279564,
-0.0035804796498268843,
0.0011774053564295173,
0.009975957684218884,
-0.06008920446038246,
-0.04784149304032326,
-0.04026300087571144,
-0.041987016797065735,
-0.04320819675922394,
-0.09733517467975616,
0.00018309270672034472,
0.03746147081255913,
-0.004274127539247274,
0.04123276099562645,
0.038826316595077515,
0.042633526027202606,
0.02815895713865757,
-0.036509670317173004,
-0.02167593315243721,
0.022358356043696404,
-0.0004980682861059904,
-0.045614637434482574,
0.021460430696606636,
0.011215095408260822,
0.06321398913860321,
-0.0034817077685147524,
0.030170312151312828,
-0.07298342138528824,
-0.025734558701515198,
-0.05836518853902817,
0.022537941113114357,
-0.06856562942266464,
-0.0075829848647117615,
0.013244408182799816,
-0.06436333060264587,
-0.037317801266908646,
-0.016189604997634888,
0.0061193653382360935,
0.01714140735566616,
-0.026722276583313942,
0.028446294367313385,
0.0063393572345376015,
0.006752402987331152,
-0.014555379748344421,
-0.00039284260128624737,
-0.05053527280688286,
-0.006595266051590443,
0.0136933708563447,
-0.03521665558218956,
0.009553932584822178,
-0.05843701958656311,
-0.02036496065557003,
-0.03144536539912224,
-0.018874403089284897,
-0.011385700665414333,
0.032307375222444534,
-0.0037241477984935045,
0.01998783089220524,
-0.03968832641839981,
-0.06863746047019958,
0.053444553166627884,
-0.00547734834253788,
-0.050319772213697433,
0.023812996223568916,
0.010083707980811596,
-0.016054915264248848,
0.0103530865162611,
0.07528211176395416,
0.032451044768095016,
0.03476769104599953,
-0.01882052794098854,
0.0015837169485166669,
0.0003095038409810513,
-0.010712256655097008,
-0.08770940452814102,
-0.06684160977602005,
0.015201886184513569,
-0.10114237666130066,
-0.020257210358977318,
-0.03108619712293148,
-0.035539910197257996,
-0.02788957953453064,
-0.008346221409738064,
0.03218166530132294,
-0.004781455732882023,
0.012086083181202412,
0.03376201540231705,
-0.009787392802536488,
-0.011340804398059845,
-0.036078665405511856,
0.00364557933062315,
-0.024926424026489258,
-0.035468075424432755,
0.011026530526578426,
-0.040981341153383255,
0.04026300087571144,
-0.015291678719222546,
-0.006200178526341915,
-0.03954466059803963,
-0.05118177831172943,
0.037784725427627563,
0.029110759496688843,
0.03457015007734299,
-0.03907773643732071,
-0.006375274155288935,
0.07607228308916092,
0.006896071135997772,
0.00966168288141489,
0.06781136989593506,
-0.0005300568882375956,
0.05470164865255356,
0.030834777280688286,
-0.009311492554843426,
-0.009742496535182,
0.07341442257165909,
-0.041448261588811874,
0.009509035386145115,
0.02318444848060608,
-0.027781829237937927,
-0.0007991541060619056,
0.0033313052263110876,
-0.020382918417453766,
-0.019844163209199905,
-0.022897111251950264,
-0.016225522384047508,
-0.04015524685382843,
0.049278177320957184,
0.0162973552942276,
0.021388595923781395,
-0.004105766303837299,
0.0518282875418663,
0.033348970115184784,
-0.04173559695482254,
0.005944269709289074,
0.01340603455901146,
-0.024046456441283226,
-0.011358763091266155,
0.026129644364118576,
-0.008911915123462677,
-0.00851682759821415,
-0.0248725488781929,
-0.002983358921483159,
0.03672517091035843,
-0.02264569327235222,
0.025357428938150406,
0.022573858499526978,
0.02981114201247692,
0.049314092844724655,
-0.013226449489593506,
0.0708284005522728,
-0.049385927617549896,
-0.06382457911968231,
-0.013172573409974575,
0.03868265077471733,
-0.04554280266165733,
-0.07736530154943466,
0.037353720515966415,
-0.03961649164557457,
-0.048380251973867416,
-0.046189311891794205,
-0.061382219195365906,
0.02164001576602459,
0.031373534351587296,
0.0622442252933979,
-0.002325628185644746,
0.0044424887746572495,
0.006451597902923822,
0.021819600835442543,
0.01496842596679926,
-0.04482446238398552,
0.0291646346449852,
0.012328523211181164,
-0.022304480895400047,
0.060771629214286804,
-0.03738963603973389,
0.015417388640344143,
0.0691043809056282,
-0.038323480635881424,
-0.017320992425084114,
-0.002949686720967293,
0.016692442819476128,
-0.012606880627572536,
0.017734037712216377,
0.045686472207307816,
-0.02392074652016163,
-0.008355201222002506,
-0.00005696217704098672,
0.01214893814176321,
-0.021514305844902992,
-0.0065683284774422646,
0.0006319154053926468,
0.017599347978830338,
0.021532263606786728,
-0.0017419763607904315,
-0.010227376595139503,
-0.027799786999821663,
-0.025716599076986313,
-0.04238210618495941,
-0.01699773781001568,
-0.03248696029186249,
-0.0040496462024748325,
-0.08311202377080917,
0.020526587963104248,
0.03568357601761818,
0.023633411154150963,
-0.058616604655981064,
-0.019736412912607193,
-0.028284667059779167,
-0.038359396159648895,
-0.0005713053978979588,
0.06633877009153366,
0.07129532098770142,
-0.014357835985720158,
0.000974810856860131,
0.05014018341898918,
0.033492639660835266,
-0.07316301017999649,
-0.030906612053513527,
0.004709621425718069,
-0.0145823173224926,
-0.026668401435017586,
-0.030188269913196564,
-0.04134051129221916,
0.06651835143566132,
0.008121740072965622,
-0.024423586204648018,
0.0044559575617313385,
0.03281021490693092,
0.010478795506060123,
0.01767118275165558,
-0.0081486776471138,
-0.026991654187440872,
-0.017967497929930687,
-0.009580870158970356,
-0.019484993070364,
-0.013100739568471909,
0.05118177831172943,
0.018407482653856277,
0.0284283347427845,
0.013028905726969242,
0.013612557202577591,
0.005131646990776062,
-0.04899083822965622,
0.07434827089309692,
0.026991654187440872,
-0.06766770035028458,
-0.006191199645400047,
-0.027817746624350548,
0.023507701233029366,
0.023597493767738342,
0.020275168120861053,
-0.0019350304501131177,
0.020885758101940155,
0.005275315139442682,
0.003396404907107353,
-0.014645172283053398,
-0.03112211264669895,
0.04162784665822983,
-0.003836388699710369,
-0.010622464120388031,
-0.033959560096263885,
-0.08497971296310425,
-0.0024715412873774767,
-0.03634804114699364,
0.05545590817928314,
-0.02691981941461563,
0.014142333529889584,
0.012957071885466576,
-0.03047560714185238,
0.050283852964639664,
-0.03846714645624161,
-0.0023817485198378563,
0.028087124228477478,
0.03302571550011635,
-0.03636600077152252,
0.04708723723888397,
0.009526994079351425,
0.0332053005695343,
-0.007421358022838831,
0.0024850100744515657,
0.029182594269514084,
-0.02526763640344143,
0.011394680477678776,
0.12491945922374725,
-0.0025388856884092093,
-0.05987370386719704,
-0.035270530730485916,
-0.04651256278157234,
0.0022234891075640917,
0.056569334119558334,
-0.004352696239948273,
0.02314853109419346,
0.02264569327235222,
0.01342399325221777,
0.04231027141213417,
0.013720308430492878,
-0.03498319536447525,
0.017859747633337975,
-0.010963675566017628,
-0.042058851569890976,
0.017850767821073532,
-0.03713821619749069,
0.03162495046854019,
0.028320584446191788,
-0.011017551645636559,
0.0878530740737915,
0.016916925087571144,
-0.006451597902923822,
-0.011538348160684109,
0.0048622689209878445,
0.006025083363056183,
0.03219962492585182,
-0.03661742061376572,
0.0025860266759991646,
0.04715907201170921,
-0.00887150876224041,
-0.034695859998464584,
-0.03397751972079277,
0.03440852090716362,
0.06375274062156677,
-0.003079886082559824,
0.019233573228120804,
0.0020528831519186497,
-0.01550718117505312,
-0.0346779003739357,
0.026165561750531197,
0.04942184314131737,
-0.014770882204174995,
0.0026017404161393642,
-0.034462399780750275,
-0.005683871451765299,
-0.030152354389429092,
-0.03266654536128044,
-0.02298690378665924,
0.017734037712216377,
0.03562970086932182,
-0.02981114201247692,
0.040334831923246384,
-0.030655192211270332,
0.008781716227531433
] |
725,452 | resfo.errors | ResfoParsingError |
Indicates an error occurred during reading of an res file.
| class ResfoParsingError(ValueError):
"""
Indicates an error occurred during reading of an res file.
"""
pass
| null | [
0.00602620979771018,
-0.00945167988538742,
-0.020980460569262505,
0.029515773057937622,
0.007160760462284088,
-0.04084382578730583,
0.002978195669129491,
0.029376136139035225,
0.05163078382611275,
-0.046010393649339676,
0.07505489140748978,
0.04978059232234955,
0.04447438567876816,
0.0006027300260029733,
0.011083687655627728,
0.06262719631195068,
-0.03707362711429596,
0.06622285395860672,
-0.036061257123947144,
0.03609616681933403,
-0.04967586696147919,
0.033233609050512314,
-0.04869840666651726,
0.02054409496486187,
0.018257537856698036,
0.08552766591310501,
0.037667084485292435,
-0.016258984804153442,
-0.01109241507947445,
-0.04737185314297676,
-0.06137046590447426,
-0.0055069345980882645,
0.01506334263831377,
0.0525384247303009,
-0.03471725061535835,
-0.0064931209199130535,
-0.02276083268225193,
0.040180549025535583,
-0.1103830561041832,
-0.009844409301877022,
-0.07784762978553772,
0.02131209895014763,
-0.07826654613018036,
-0.016040802001953125,
0.02878267876803875,
-0.03417615592479706,
-0.02796231023967266,
-0.03346051648259163,
-0.05536607280373573,
-0.033233609050512314,
0.009853136725723743,
-0.0037200171500444412,
-0.019060451537370682,
0.008413129486143589,
0.020613912492990494,
0.07742872089147568,
-0.04597548395395279,
0.11464198678731918,
-0.012453875504434109,
-0.03815581277012825,
-0.03047577664256096,
0.01706189662218094,
0.010525139048695564,
-0.014740431681275368,
0.0014280065661296248,
0.020613912492990494,
0.0056902081705629826,
-0.03569471091032028,
-0.03346051648259163,
0.03012668527662754,
-0.007221851497888565,
0.03562489151954651,
-0.07226215302944183,
0.019374635070562363,
0.1154099851846695,
-0.042554378509521484,
-0.0683872252702713,
-0.0013014605501666665,
-0.010472775436937809,
-0.0003319106181152165,
0.028206676244735718,
0.004769476596266031,
0.037667084485292435,
-0.028241584077477455,
0.01689607836306095,
-0.0625922903418541,
0.02862558700144291,
-0.06164973974227905,
-0.04740676283836365,
0.044090386480093,
-0.03773690015077591,
0.00896295066922903,
-0.05976463854312897,
-0.004104019142687321,
-0.01086550485342741,
0.019374635070562363,
0.007344034034758806,
-0.054493341594934464,
0.010385502129793167,
-0.07721926271915436,
0.016328802332282066,
0.01308224257081747,
-0.07170360535383224,
-0.0018087356584146619,
0.02482047863304615,
-0.000721639720723033,
0.00991422776132822,
-0.02384301833808422,
0.035921622067689896,
0.008408766239881516,
-0.006414575036615133,
-0.015569526702165604,
-0.02368592657148838,
0.07945346087217331,
-0.01853681355714798,
-0.055889710783958435,
0.028538312762975693,
0.020421912893652916,
-0.009573861956596375,
0.008526585064828396,
0.05494716390967369,
0.0016025528311729431,
-0.056099168956279755,
0.016180438920855522,
0.03976163640618324,
0.02672303281724453,
-0.013850245624780655,
0.012724421918392181,
0.05442352220416069,
0.021032825112342834,
-0.0009660044452175498,
-0.014653158374130726,
0.010289502330124378,
-0.042659107595682144,
-0.0290444977581501,
-0.01742844469845295,
0.04388092830777168,
0.04709257930517197,
-0.023301925510168076,
-0.02708957903087139,
0.03394924849271774,
0.0813385546207428,
-0.03145323693752289,
-0.03309397026896477,
-0.04133255407214165,
0.002882195170968771,
-0.024680841714143753,
0.002006191061809659,
-0.03293687850236893,
0.05857772380113602,
0.003881472395732999,
-0.030353594571352005,
0.00986186321824789,
0.0337921567261219,
0.021556463092565536,
-0.010734595358371735,
0.031802330166101456,
-0.04391583800315857,
-0.0343332476913929,
-0.0033709246199578047,
-0.008504766970872879,
-0.05082787200808525,
0.03773690015077591,
-0.010394229553639889,
0.015202979557216167,
0.016433529555797577,
-0.02194046415388584,
-0.03181978315114975,
-0.004481475334614515,
0.004590566735714674,
0.0005419115768745542,
-0.019234998151659966,
-0.04496311768889427,
-0.02635648474097252,
0.021067732945084572,
0.03058050386607647,
0.03599143773317337,
0.026147030293941498,
-0.0030196502339094877,
0.06451229751110077,
0.017751354724168777,
-0.01689607836306095,
0.003117832588031888,
0.005803663283586502,
0.03675944358110428,
0.06870140880346298,
-0.0019036451121792197,
0.006584757473319769,
0.049606047570705414,
-0.0382954478263855,
0.05976463854312897,
-0.00014522793935611844,
-0.03752744570374489,
0.00773676298558712,
-0.0008350947755388916,
-0.07680035382509232,
-0.015482253395020962,
-0.01708807796239853,
0.10647321492433548,
0.00045954756205901504,
-0.04283365234732628,
0.07170360535383224,
0.018240084871649742,
0.02677539549767971,
-0.019758636131882668,
0.060113731771707535,
-0.01603207364678383,
-0.02316228859126568,
-0.07980255037546158,
0.0472671277821064,
-0.014661885797977448,
-0.02529175393283367,
0.01632007583975792,
0.01639862172305584,
0.06489630043506622,
0.00896295066922903,
-0.00011597781121963635,
-0.0025047387462109327,
-0.014967341907322407,
0.01940954476594925,
0.0594155453145504,
-0.00289746792986989,
0.021539008244872093,
-0.04234492406249046,
0.020509185269474983,
-0.0072349426336586475,
-0.011773144826292992,
-0.03504888713359833,
-0.01956663653254509,
0.03449033945798874,
-0.009643680416047573,
-0.033547792583703995,
-0.007828399538993835,
0.013448789715766907,
0.030458321794867516,
0.017803719267249107,
0.05829844996333122,
0.0382954478263855,
0.003366560908034444,
-0.04597548395395279,
-0.03955218195915222,
-0.010158591903746128,
-0.09551171213388443,
-0.021870646625757217,
0.018885904923081398,
-0.03105177916586399,
0.030615413561463356,
0.03475216031074524,
-0.05864754319190979,
-0.015639344230294228,
0.050897687673568726,
0.021556463092565536,
-0.0020367365796118975,
-0.009434225037693977,
0.055016979575157166,
-0.07170360535383224,
-0.09027532488107681,
-0.06754940003156662,
0.06643230468034744,
-0.0098356818780303,
0.031086688861250877,
0.002395647345110774,
0.032203786075115204,
0.05082787200808525,
-0.031331054866313934,
-0.0353805273771286,
-0.031278688460588455,
0.005301842465996742,
0.010839322581887245,
-0.0043527474626898766,
0.10731104016304016,
0.03201178461313248,
-0.02893977053463459,
0.008784040808677673,
-0.022673558443784714,
0.026286667212843895,
-0.002751285443082452,
0.0398663654923439,
0.05833335965871811,
0.03857472166419029,
0.014461157843470573,
0.004734567366540432,
0.024628477171063423,
0.03482197970151901,
0.04768603667616844,
-0.02014263905584812,
-0.005969482008367777,
0.00390765443444252,
-0.07924400269985199,
0.016808804124593735,
0.06315083801746368,
0.012087328359484673,
-0.023703381419181824,
-0.02331938035786152,
0.0773589015007019,
0.02656594105064869,
-0.03136596456170082,
-0.047546401619911194,
0.010411684401333332,
-0.02276083268225193,
0.0034516523592174053,
0.004651657771319151,
0.037771809846162796,
-0.009661135263741016,
-0.05019950494170189,
-0.005856026895344257,
0.033757247030735016,
-0.033338334411382675,
-0.026548486202955246,
0.0406692773103714,
0.04618494212627411,
0.005576753057539463,
0.0048043858259916306,
0.013536062091588974,
-0.006096028257161379,
0.06852686405181885,
0.04838422313332558,
0.02141682617366314,
-0.007754217367619276,
0.008832041174173355,
-0.05742571875452995,
0.00048082039575092494,
0.017733899876475334,
-0.06835231184959412,
0.03707362711429596,
0.002343283500522375,
0.0013156423810869455,
-0.0017214624676853418,
0.018449539318680763,
0.015918618068099022,
-0.004134564660489559,
-0.035450346767902374,
-0.007435670588165522,
-0.004315656144171953,
-0.0003507288929540664,
-0.03798126429319382,
0.0514911450445652,
-0.017288807779550552,
0.01909536123275757,
-0.05051368847489357,
0.07009777426719666,
-0.02096300572156906,
0.01040295697748661,
0.0245586596429348,
0.02867794968187809,
-0.02796231023967266,
-0.01673898659646511,
-0.06360466033220291,
0.03721326217055321,
-0.017096806317567825,
-0.06287156045436859,
0.024419020861387253,
-0.019287360832095146,
0.0282590389251709,
0.00571638997644186,
0.013518608175218105,
-0.06440757215023041,
-0.015805164352059364,
0.045137662440538406,
-0.013701881282031536,
-0.014897523447871208,
-0.003840017830953002,
-0.03784162923693657,
-0.005262569524347782,
-0.025972483679652214,
-0.0021534645929932594,
-0.04464893415570259,
0.008369493298232555,
0.026897579431533813,
0.01946190744638443,
-0.005280024372041225,
0.01621534675359726,
-0.04820967838168144,
-0.06608321517705917,
0.01104005053639412,
0.0030480141285806894,
0.00773676298558712,
0.031243780627846718,
-0.06807304173707962,
0.023144833743572235,
0.01276805903762579,
0.047651130706071854,
-0.03131359815597534,
-0.04695294424891472,
-0.0002683648781385273,
-0.04953622817993164,
-0.053376246243715286,
-0.00892367772758007,
-0.009128768928349018,
0.07582289725542068,
-0.019741181284189224,
-0.002150191692635417,
0.03270996734499931,
-0.004038563929498196,
-0.016258984804153442,
-0.0169048048555851,
-0.04377620294690132,
0.02817176654934883,
0.005803663283586502,
-0.007575307507067919,
-0.030772505328059196,
0.011520053260028362,
-0.025396481156349182,
0.03902854397892952,
0.009329497814178467,
0.014914978295564651,
0.059450455009937286,
-0.01692225970327854,
-0.01864154078066349,
0.04335729032754898,
0.034891799092292786,
-0.013204424642026424,
0.031191416084766388,
-0.047651130706071854,
-0.05365552008152008,
0.05355079099535942,
-0.0041869282722473145,
-0.03166269138455391,
0.01014113798737526,
-0.0013418244197964668,
-0.017367353662848473,
0.01212223805487156,
0.08378220349550247,
0.03822563216090202,
-0.037248171865940094,
-0.025448843836784363,
0.011188414879143238,
0.0003575471055228263,
-0.0056771170347929,
-0.02764812670648098,
-0.027665581554174423,
0.03227360174059868,
-0.017515717074275017,
-0.09041496366262436,
-0.007213124074041843,
-0.08678440004587173,
-0.0683872252702713,
-0.008801494725048542,
-0.030423413962125778,
0.022464103996753693,
0.05271296948194504,
-0.0023934654891490936,
0.08587676286697388,
0.04196092113852501,
0.013457516208291054,
-0.057495538145303726,
-0.03672453388571739,
0.05798426643013954,
-0.02806703932583332,
-0.05026932433247566,
-0.03641035035252571,
-0.005969482008367777,
0.0027360126841813326,
-0.02331938035786152,
0.04381111264228821,
-0.06294137984514236,
-0.05288751795887947,
0.011048777960240841,
-0.03703871741890907,
-0.035502709448337555,
-0.02389538288116455,
0.05644826218485832,
0.020840823650360107,
-0.09202078729867935,
-0.015796435996890068,
-0.01832735724747181,
0.006606576032936573,
0.018816087394952774,
-0.0008154583047144115,
-0.01742844469845295,
-0.04615003243088722,
-0.018240084871649742,
0.018030628561973572,
-0.024314293637871742,
-0.003964381758123636,
0.042763832956552505,
0.025152115151286125,
0.01801317371428013,
0.025413936004042625,
0.018100447952747345,
0.08287456631660461,
-0.07219233363866806,
0.008705494925379753,
0.010498957708477974,
0.03213396668434143,
-0.03145323693752289,
0.0020421913359314203,
-0.048838041722774506,
-0.04011072963476181,
0.018449539318680763,
0.031383417546749115,
0.006174574140459299,
-0.041995830833911896,
0.002443647710606456,
0.026286667212843895,
-0.008037854917347431,
-0.010874232277274132,
0.06144028529524803,
-0.04122782498598099,
-0.022638650611042976,
0.011074960231781006,
-0.10835831612348557,
-0.027927402406930923,
-0.03504888713359833,
0.04716239869594574,
-0.0016221893019974232,
0.004431293345987797,
-0.020090274512767792,
0.053934793919324875,
-0.041367463767528534,
-0.05204969644546509,
0.031837236136198044,
0.06611812114715576,
0.031243780627846718,
0.023616109043359756,
0.016014618799090385,
-0.011572416871786118,
0.029899774119257927,
0.016878623515367508,
0.055226437747478485,
-0.02054409496486187,
-0.043741293251514435,
0.05410934239625931,
-0.006772394757717848,
-0.012593512423336506,
-0.03527579829096794,
-0.012375329621136189,
-0.04360165446996689,
0.0075665805488824844,
0.033914338797330856,
-0.00036245622322894633,
-0.026426304131746292,
0.05494716390967369,
-0.06081191822886467,
0.017890991643071175,
0.03178487345576286,
-0.0010630958713591099,
0.0010030955309048295,
-0.0028931042179465294,
0.0008825495024211705,
0.009687317535281181,
0.04164673760533333,
0.022376829758286476,
0.0055898441933095455,
0.007448761723935604,
-0.04045982286334038,
-0.031139053404331207,
0.011493870988488197,
0.028485950082540512,
-0.022568831220269203,
0.002559284446761012,
-0.02914922498166561,
-0.007082214578986168,
0.0031200144439935684,
0.011947691440582275,
0.0169048048555851,
0.03531070798635483,
0.0118167819455266,
0.03482197970151901,
-0.022254647687077522,
0.003405833849683404,
-0.007047305349260569,
0.0013418244197964668,
-0.033285971730947495,
-0.07540398091077805,
0.03295433521270752,
-0.04217037558555603,
-0.026635758578777313,
-0.05602934956550598,
0.005965118296444416,
0.02424447610974312,
-0.011712053790688515,
0.014295338653028011,
-0.0003507288929540664,
0.014173156581819057,
0.01692225970327854,
0.030004501342773438,
0.056971900165081024,
0.018781177699565887,
-0.012445148080587387,
0.02347647212445736,
-0.015351343899965286,
-0.00190473604016006,
-0.05215442180633545,
-0.0039032907225191593,
-0.0052363877184689045,
-0.013806609436869621,
0.0014607340563088655,
0.01062986720353365,
0.040704187005758286,
0.005611662287265062,
-0.03145323693752289,
-0.0023105561267584562,
-0.07117996364831924,
0.02379065565764904,
0.014321520924568176,
0.006375302094966173,
-0.06245265156030655,
-0.010638594627380371,
0.01692225970327854,
-0.031331054866313934,
0.01364079024642706,
-0.008142583072185516,
-0.0306328684091568,
0.00991422776132822,
-0.003973109181970358,
0.021347006782889366,
0.008059673942625523,
-0.010280774906277657,
0.03791144862771034,
0.017908446490764618,
-0.056308623403310776,
0.00921604223549366,
-0.024541204795241356,
-0.019531726837158203,
0.014967341907322407,
0.03213396668434143,
0.017358625307679176,
-0.03201178461313248,
0.016389893367886543,
-0.009722226299345493,
0.00048436588258482516,
-0.018816087394952774,
0.021643735468387604,
-0.022464103996753693,
0.10333138704299927,
-0.02075354941189289,
0.02487284131348133,
-0.0921604260802269,
-0.08385202288627625,
0.0010876413434743881,
0.02096300572156906,
0.05637844279408455,
-0.05938063934445381,
-0.03373979032039642,
-0.003253106027841568,
0.03440306708216667,
0.030807415023446083,
0.029166679829359055,
0.04032018780708313,
0.019182633608579636,
-0.022778287529945374,
-0.08804113417863846,
0.008980405516922474,
-0.04534711688756943,
0.005860390607267618,
-0.002829831326380372,
-0.06894577294588089,
0.07652108371257782,
-0.003957836423069239,
0.03558998182415962,
0.04311292618513107,
-0.03440306708216667,
-0.008718585595488548,
0.01110114250332117,
0.024122294038534164,
0.035555072128772736,
-0.04283365234732628,
-0.03188960254192352,
0.0133353341370821,
-0.018449539318680763,
-0.0353805273771286,
0.043846018612384796,
-0.022725922986865044,
0.015979710966348648,
0.01200005505234003,
-0.008194946683943272,
-0.03471725061535835,
0.013291697949171066,
-0.007693126332014799,
-0.026705577969551086,
0.01632007583975792,
0.05309697240591049,
0.005018204916268587,
-0.01024586521089077,
0.02523938938975334,
-0.012663330882787704,
-0.04032018780708313,
0.054702796041965485,
0.02461102232336998,
0.012942604720592499,
0.04164673760533333,
-0.00021409189503174275,
-0.026897579431533813,
-0.023930292576551437,
0.06747958064079285,
-0.030807415023446083,
0.033757247030735016,
0.028206676244735718,
-0.005616025999188423,
-0.03522343561053276,
0.03784162923693657,
-0.015639344230294228,
0.01387642789632082,
-0.051002416759729385,
0.01220078393816948,
-0.04360165446996689,
0.02110264264047146,
0.03752744570374489,
0.0003294560592621565,
0.018746268004179,
-0.015133161097764969,
0.003141832770779729,
-0.005419661290943623,
-0.015691708773374557,
-0.025117207318544388,
-0.021137552335858345,
-0.03347797319293022,
-0.05787954106926918,
-0.00476074917241931,
0.03307651728391647,
0.06461702287197113,
0.00417820131406188,
-0.047965310513973236,
-0.01909536123275757,
-0.0388190895318985,
0.015194252133369446,
0.0060785734094679356,
0.02482047863304615,
-0.007086578290909529,
-0.023616109043359756,
0.017908446490764618,
-0.009696044959127903,
0.05278278887271881,
-0.03531070798635483,
-0.009460407309234142,
-0.019444452598690987,
-0.04443947598338127,
0.0514911450445652,
0.03208160400390625,
0.05170060321688652,
0.01763789914548397,
-0.0715639665722847,
0.03155796229839325,
-0.04056455194950104,
-0.0016461893683299422,
0.018658995628356934,
0.044055476784706116,
0.06091664358973503,
0.07798726856708527,
0.05086278170347214,
0.02028227597475052,
-0.04234492406249046,
-0.03892381489276886,
-0.03384451940655708,
0.016800077632069588,
0.03038850426673889,
0.055784985423088074,
-0.07610216736793518,
0.061510100960731506,
0.017908446490764618,
-0.007117123808711767,
0.009696044959127903,
0.08057055622339249,
-0.0048218402080237865,
-0.04161182790994644,
0.028398675844073296,
-0.014007337391376495,
0.021224824711680412,
0.002082555089145899,
-0.015377525240182877,
-0.03291942551732063,
-0.01403351966291666,
0.028660496696829796,
0.015028432942926884,
0.023651018738746643,
-0.020928096026182175,
0.005314933601766825
] |
725,453 | resfo.errors | ResfoWriteError |
Indicates an error occurred during writing of an res file.
| class ResfoWriteError(ValueError):
"""
Indicates an error occurred during writing of an res file.
"""
pass
| null | [
-0.02636132761836052,
-0.018741657957434654,
-0.01388112735003233,
0.049032412469387054,
0.03160625696182251,
-0.04985246807336807,
-0.05036500096321106,
0.03973846510052681,
0.044556282460689545,
-0.06211911141872406,
0.08473894000053406,
0.032973017543554306,
0.06143573299050331,
-0.007145577110350132,
0.014778061769902706,
0.06280249357223511,
-0.024106178432703018,
0.04534216597676277,
-0.027745170518755913,
0.03215296193957329,
-0.015538319945335388,
0.03956761956214905,
-0.01845122128725052,
-0.018468305468559265,
-0.0036923799198120832,
0.09123104065656662,
0.03213587775826454,
0.006231558509171009,
0.00463416101410985,
-0.014615759253501892,
-0.08098036050796509,
-0.03669742867350578,
0.053235191851854324,
0.03642407804727554,
-0.013214833103120327,
0.0016219563549384475,
-0.018690403550863266,
0.0714130625128746,
-0.09956825524568558,
-0.027420565485954285,
-0.0727798193693161,
0.031076639890670776,
-0.07250646501779556,
-0.04213028773665428,
0.04110522195696831,
-0.012685214169323444,
-0.030888712033629417,
-0.005411503836512566,
-0.03738080710172653,
-0.028872745111584663,
-0.008085222914814949,
-0.00459999218583107,
-0.01010546088218689,
0.010370269417762756,
0.02328612469136715,
0.07831518352031708,
-0.01125866174697876,
0.10271179676055908,
-0.018775826320052147,
-0.058804724365472794,
-0.012411863543093204,
0.007952817715704441,
0.025797540321946144,
-0.042198628187179565,
0.015059955418109894,
0.0246357973664999,
-0.04346287623047829,
-0.03638990968465805,
-0.010617994703352451,
0.06888455897569656,
0.003931562416255474,
-0.014120309613645077,
-0.044556282460689545,
0.023405715823173523,
0.09170940518379211,
-0.018194954842329025,
-0.05439693480730057,
0.015094123780727386,
0.004424876067787409,
-0.0000678707001497969,
0.04913491755723953,
-0.02537042833864689,
0.023354463279247284,
-0.017127174884080887,
0.025934215635061264,
-0.0406951941549778,
0.008866837248206139,
-0.05948810279369354,
-0.047768160700798035,
0.011139070615172386,
-0.03669742867350578,
0.021577678620815277,
-0.025165416300296783,
-0.031264569610357285,
0.0007399708265438676,
-0.005057001486420631,
-0.014163020998239517,
-0.04284783452749252,
0.017152801156044006,
-0.0470164455473423,
-0.005249201785773039,
0.0027014808729290962,
-0.021680185571312904,
0.00010430865950183943,
0.035330671817064285,
-0.0207917932420969,
0.01478660386055708,
-0.02748890221118927,
-0.010139629244804382,
-0.002957747783511877,
0.012411863543093204,
0.00847389455884695,
-0.019185854122042656,
0.022671082988381386,
-0.01697341538965702,
-0.02806977368891239,
-0.0005605839542113245,
-0.0005744650843553245,
0.008537961170077324,
-0.0033250637352466583,
0.05600287392735481,
-0.0006753702182322741,
-0.053098514676094055,
0.011489301919937134,
0.037995848804712296,
0.034151844680309296,
-0.00024225236847996712,
0.05815551429986954,
0.02730097435414791,
0.025985470041632652,
-0.030888712033629417,
-0.012215391732752323,
0.008969343267381191,
-0.028018521144986153,
-0.017562828958034515,
-0.005847157910466194,
0.03375890105962753,
0.03034200891852379,
-0.02916317991912365,
-0.019425036385655403,
0.028599392622709274,
0.060103144496679306,
-0.02965863049030304,
0.012915855273604393,
0.02142391726374626,
0.01318066380918026,
-0.0406951941549778,
0.006991817150264978,
-0.02373032085597515,
0.05060418322682381,
0.017204055562615395,
-0.016238782554864883,
-0.017699504271149635,
0.04558135196566582,
-0.013445473276078701,
-0.008520876057446003,
0.03512565791606903,
-0.02499457076191902,
-0.042471978813409805,
-0.01046423427760601,
-0.020040076225996017,
-0.07182309031486511,
0.03169168159365654,
0.004805005621165037,
0.010361727327108383,
0.017451779916882515,
-0.025524189695715904,
0.0035407552495598793,
0.030939964577555656,
0.003512992989271879,
0.015264968387782574,
-0.022141465917229652,
-0.025917131453752518,
-0.03563819080591202,
-0.016742775216698647,
0.037004947662353516,
0.04394124075770378,
0.008256067521870136,
-0.020108414813876152,
0.04038767144083977,
0.06167491525411606,
-0.04018266126513481,
-0.0028765967581421137,
0.0338955782353878,
0.029812389984726906,
0.04308701679110527,
-0.03837170824408531,
0.015401644632220268,
0.03946511074900627,
-0.028411464765667915,
0.046948108822107315,
0.008687449619174004,
-0.039396774023771286,
-0.00922561064362526,
0.002902223262935877,
-0.0777684822678566,
-0.01606793887913227,
-0.051150884479284286,
0.11426089704036713,
0.02883857488632202,
-0.06570684909820557,
0.06895289570093155,
0.02806977368891239,
0.010276305489242077,
0.006052171345800161,
0.04185693711042404,
0.026241736486554146,
-0.027010537683963776,
-0.08822417259216309,
0.05033083260059357,
0.006163220386952162,
-0.009550215676426888,
0.0021537102293223143,
0.016956331208348274,
0.07995529472827911,
-0.009097477421164513,
0.01785326562821865,
0.005010019056499004,
-0.034066420048475266,
0.047768160700798035,
0.009037681855261326,
0.00759404432028532,
0.014496168121695518,
-0.021048059687018394,
0.026275906711816788,
-0.022585662081837654,
-0.00004074244134244509,
-0.05593453720211983,
0.0023042671382427216,
0.03111080825328827,
-0.017229681834578514,
0.028513969853520393,
-0.008038240484893322,
0.010207966901361942,
0.011668688617646694,
0.002530636265873909,
0.01112198643386364,
0.014778061769902706,
0.011702857911586761,
-0.024482037872076035,
-0.0605815090239048,
0.0034873662516474724,
-0.04831486567854881,
0.03669742867350578,
0.0592147521674633,
-0.033878494054079056,
0.030188247561454773,
0.03973846510052681,
-0.028599392622709274,
-0.013616317883133888,
0.06434009224176407,
0.010088375769555569,
-0.05193677172064781,
-0.03394683077931404,
0.06488679349422455,
-0.05033083260059357,
-0.07072968035936356,
-0.05702793970704079,
0.043155357241630554,
0.007918649353086948,
0.014957448467612267,
0.021184735000133514,
0.03299010172486305,
0.016742775216698647,
-0.04137857258319855,
-0.05521698668599129,
-0.032170046120882034,
0.009413539431989193,
-0.006880768109112978,
0.03227255120873451,
0.06485262513160706,
0.07667507231235504,
-0.04534216597676277,
-0.0011756246676668525,
-0.018058277666568756,
0.002885138848796487,
0.01148075982928276,
0.04271116107702255,
0.06088903173804283,
0.03987513855099678,
0.046538081020116806,
0.010549657046794891,
0.0262246523052454,
0.042164456099271774,
0.02974405139684677,
-0.010267763398587704,
-0.00142655277159065,
0.01656338758766651,
-0.06495513021945953,
-0.0010907362448051572,
0.044829633086919785,
0.029265686869621277,
-0.0282577034085989,
0.007675195578485727,
0.05285933241248131,
0.013582148589193821,
-0.052415136247873306,
-0.0669369325041771,
0.04346287623047829,
-0.003997764550149441,
-0.007914378307759762,
0.03946511074900627,
0.025114161893725395,
0.0111903240904212,
-0.038132522255182266,
-0.021355580538511276,
0.00940499734133482,
-0.02748890221118927,
-0.03604821860790253,
0.06973878294229507,
0.03304135426878929,
-0.02373032085597515,
0.007060154806822538,
0.046367235481739044,
0.039396774023771286,
0.059385597705841064,
0.04530799761414528,
0.0228248443454504,
-0.03333178907632828,
0.04154941812157631,
-0.07558166980743408,
-0.00281466543674469,
0.012941481545567513,
-0.0818004161119461,
0.022397732362151146,
-0.025575442239642143,
0.01249728538095951,
0.02333737723529339,
0.01670006290078163,
-0.0006449384964071214,
-0.055592846125364304,
-0.03374181687831879,
0.010660705156624317,
-0.015017244033515453,
-0.015239342115819454,
-0.032750919461250305,
0.058428868651390076,
-0.03850838169455528,
0.042027782648801804,
-0.027164297178387642,
0.0287018995732069,
0.0048349034041166306,
0.011053647845983505,
0.0305128525942564,
-0.002688667504116893,
-0.020638031885027885,
-0.025882963091135025,
-0.05467028543353081,
0.010319015942513943,
0.0038546822033822536,
-0.04910074919462204,
0.0642034187912941,
-0.0456496886909008,
0.016264410689473152,
0.006893581245094538,
-0.003164896974340081,
-0.03847421333193779,
-0.03679993748664856,
0.02178269252181053,
-0.03584320470690727,
-0.0074616395868361,
0.02309819497168064,
-0.0187587421387434,
0.003075203625485301,
-0.014632843434810638,
0.0260025542229414,
-0.05022832378745079,
-0.006650127470493317,
0.018024109303951263,
-0.022141465917229652,
-0.00010691137140383944,
-0.01675131730735302,
-0.03490355983376503,
-0.030734950676560402,
0.017485948279500008,
0.011267203837633133,
-0.001286673708818853,
0.04325786232948303,
-0.06071818619966507,
0.001519449520856142,
-0.010165256448090076,
-0.00012319500092417002,
-0.025114161893725395,
-0.05159508064389229,
0.0008590281940996647,
-0.03956761956214905,
-0.021355580538511276,
-0.009217068552970886,
-0.006483553908765316,
0.08426057547330856,
-0.012591250240802765,
0.00655616307631135,
0.0038824444636702538,
-0.016819654032588005,
-0.009789397940039635,
0.003295165952295065,
-0.05637873336672783,
0.061743251979351044,
0.013684655539691448,
0.01771658845245838,
-0.04298451170325279,
0.014137393794953823,
-0.03268257901072502,
0.049442440271377563,
0.005736108869314194,
0.01771658845245838,
0.05118505284190178,
-0.011907871812582016,
0.03210170939564705,
0.020996807143092155,
-0.0011809635907411575,
-0.004053289070725441,
0.015469982288777828,
-0.0282577034085989,
-0.010276305489242077,
0.03803001716732979,
0.0024751117452979088,
-0.04677726328372955,
0.009686890989542007,
0.004501756280660629,
-0.014820772223174572,
0.019100431352853775,
0.12061631679534912,
0.0610257051885128,
-0.02405492588877678,
-0.06123071908950806,
-0.0029726966749876738,
0.015367475338280201,
-0.0262246523052454,
0.003028221195563674,
-0.019134599715471268,
0.005197948310524225,
-0.03543317690491676,
-0.05542200058698654,
-0.005291912704706192,
-0.07421491295099258,
-0.03820086270570755,
-0.0003521001199260354,
-0.037551652640104294,
0.05907807871699333,
0.07831518352031708,
-0.018434137105941772,
0.05634456127882004,
0.020313428714871407,
0.0031435415148735046,
-0.04257448390126228,
-0.023627813905477524,
0.043155357241630554,
0.00043058188748545945,
-0.00854223221540451,
0.014624301344156265,
0.004055424593389034,
0.006129051558673382,
-0.02007424458861351,
0.04380456730723381,
-0.07797349244356155,
-0.07975027710199356,
-0.0619482658803463,
-0.044009581208229065,
-0.05569535121321678,
0.002125947969034314,
0.052107617259025574,
0.016401086002588272,
-0.06618521362543106,
-0.013061072677373886,
-0.035604022443294525,
-0.003171303542330861,
-0.0033635038416832685,
0.026053808629512787,
-0.011045105755329132,
-0.014769519679248333,
0.007380488328635693,
0.010617994703352451,
-0.024618713185191154,
-0.004621347412467003,
0.01949337311089039,
0.003369910642504692,
0.033519718796014786,
0.01702466793358326,
0.019595880061388016,
0.07127638161182404,
-0.043975409120321274,
0.000521876965649426,
0.010934056714177132,
0.03480105474591255,
-0.03563819080591202,
-0.01889541745185852,
-0.04684560000896454,
0.00020261105964891613,
0.04575219377875328,
0.04462461918592453,
-0.021577678620815277,
-0.04291617497801781,
-0.020108414813876152,
0.002754869870841503,
0.0024815183132886887,
-0.05012581869959831,
0.03350263461470604,
-0.06844036281108856,
-0.030991217121481895,
0.011805364862084389,
-0.13127702474594116,
-0.04910074919462204,
-0.037551652640104294,
0.03638990968465805,
-0.025148332118988037,
-0.0012055224506184459,
-0.03129873797297478,
0.05665208399295807,
-0.03792751207947731,
-0.03269966319203377,
0.028872745111584663,
0.02490914799273014,
0.036868274211883545,
0.024311192333698273,
0.010669248178601265,
-0.03070078231394291,
0.0008259270689450204,
0.011463675647974014,
0.03550151735544205,
-0.04182276874780655,
-0.02839437872171402,
0.06369088590145111,
-0.00940499734133482,
-0.013308797962963581,
-0.0533376969397068,
0.010207966901361942,
-0.05385022982954979,
0.020450104027986526,
0.05795050412416458,
-0.02540459856390953,
-0.016059396788477898,
0.05456777662038803,
-0.05795050412416458,
0.02608797699213028,
0.027335142716765404,
0.007401844020932913,
0.005095441360026598,
0.010319015942513943,
-0.023661982268095016,
0.008098036050796509,
0.04493214190006256,
0.0207917932420969,
-0.031247485429048538,
-0.0022231158800423145,
-0.03905508667230606,
-0.013958007097244263,
-0.035740699619054794,
0.038269199430942535,
-0.04858821630477905,
0.011429506354033947,
-0.016794027760624886,
0.021048059687018394,
0.012599792331457138,
-0.0027228365652263165,
0.034527700394392014,
0.052107617259025574,
0.020057160407304764,
0.04479546472430229,
0.006423758342862129,
-0.017315104603767395,
0.004164338111877441,
0.03669742867350578,
-0.0610257051885128,
-0.05904390662908554,
0.02853105589747429,
-0.011087817139923573,
-0.03070078231394291,
-0.034749798476696014,
-0.009926073253154755,
0.018058277666568756,
0.02812102809548378,
0.021406833082437515,
-0.03336595743894577,
0.0021868112962692976,
0.008392742834985256,
0.028958166018128395,
0.05443110316991806,
0.013599233701825142,
-0.013231917284429073,
0.00023918249644339085,
0.00468968553468585,
-0.03111080825328827,
-0.06293916702270508,
0.003984951414167881,
-0.008102307096123695,
-0.003491637296974659,
-0.00036251096753403544,
-0.011873702518641949,
0.05009165033698082,
-0.015444356016814709,
0.029402362182736397,
-0.005932580213993788,
-0.11262078583240509,
0.060103144496679306,
0.018639151006937027,
0.0073847598396241665,
-0.07694842666387558,
0.0006657601916231215,
0.016050854697823524,
-0.02509707771241665,
0.0038888510316610336,
-0.030359093099832535,
-0.01754574477672577,
0.020552610978484154,
-0.007299337070435286,
-0.00379702216014266,
0.022910267114639282,
-0.02518250048160553,
0.033519718796014786,
-0.012847516685724258,
-0.029009420424699783,
0.0338955782353878,
-0.026070892810821533,
-0.024294108152389526,
0.0012322169495746493,
0.005812989082187414,
0.026839694008231163,
-0.04100271314382553,
0.05265431851148605,
-0.006586060859262943,
-0.012223933823406696,
-0.024089094251394272,
-0.004275387153029442,
-0.042745329439640045,
0.08644738793373108,
-0.01604231260716915,
0.03946511074900627,
-0.09205109626054764,
-0.08672074228525162,
-0.04394124075770378,
0.02957320772111416,
0.06844036281108856,
-0.05613954737782478,
-0.02323487028479576,
0.010592367500066757,
-0.004247624892741442,
0.022414816543459892,
0.05080919712781906,
0.029966149479150772,
0.041344404220581055,
0.015606657601892948,
-0.04045601189136505,
-0.011352626606822014,
-0.047904837876558304,
0.03457895666360855,
0.026070892810821533,
-0.07373654842376709,
0.020398849621415138,
-0.04855404794216156,
0.005603704135864973,
0.035604022443294525,
-0.03495481237769127,
-0.024704135954380035,
0.05648123845458031,
0.030529936775565147,
0.028274787589907646,
-0.07079801708459854,
-0.024072010070085526,
0.013650487177073956,
0.00022650262690149248,
-0.04992080479860306,
0.046367235481739044,
-0.06030815839767456,
0.009541673585772514,
0.01839996874332428,
-0.02523375302553177,
-0.03806418552994728,
-0.007478724233806133,
-0.03001740388572216,
-0.012633961625397205,
-0.0025797539856284857,
0.033246368169784546,
-0.011634520255029202,
-0.008273151703178883,
0.020108414813876152,
-0.009797940030694008,
-0.021355580538511276,
0.03666326031088829,
0.00191559549421072,
0.004860530141741037,
0.02482372708618641,
0.0011863025138154626,
-0.016674436628818512,
-0.010447150096297264,
0.07469327747821808,
-0.02806977368891239,
0.030991217121481895,
-0.010677790269255638,
-0.00021168719104025513,
-0.015162462368607521,
0.015717707574367523,
-0.020723454654216766,
0.008145018480718136,
-0.04448794573545456,
0.0022850469686090946,
-0.019151683896780014,
0.043155357241630554,
0.02965863049030304,
-0.008132205344736576,
-0.0020789657719433308,
0.007324963808059692,
0.014752434566617012,
-0.011976209469139576,
-0.022363563999533653,
-0.03353680297732353,
-0.008174915798008442,
-0.036287400871515274,
0.0033293350134044886,
-0.04090020805597305,
0.03404933586716652,
0.06334919482469559,
0.034613125026226044,
-0.03577486798167229,
-0.06830368936061859,
-0.0619482658803463,
0.02707887627184391,
-0.000310990639263764,
0.026703016832470894,
-0.02639549784362316,
-0.016401086002588272,
0.02490914799273014,
-0.008875379338860512,
-0.004386436194181442,
-0.04923742637038231,
-0.04981829598546028,
-0.03377598524093628,
-0.05121922492980957,
0.06324668973684311,
0.020638031885027885,
0.06099153682589531,
-0.004283929243683815,
-0.06946542859077454,
0.05801884084939957,
-0.020501356571912766,
0.02933402545750141,
0.023661982268095016,
0.02853105589747429,
0.037688326090574265,
0.09697141498327255,
0.06030815839767456,
0.04780232906341553,
-0.014496168121695518,
-0.054226089268922806,
-0.01114761270582676,
0.017306562513113022,
0.04131023585796356,
0.08405556529760361,
-0.06393006443977356,
0.034066420048475266,
0.05542200058698654,
0.003566381987184286,
0.000044312830141279846,
0.08576401323080063,
0.019049176946282387,
-0.04954494535923004,
0.03724412992596626,
0.0026139230467379093,
0.02210729569196701,
0.018160784617066383,
-0.012241018936038017,
-0.03155500441789627,
-0.026703016832470894,
0.025712119415402412,
0.010122545063495636,
0.0510825477540493,
-0.03338304162025452,
0.0016112785087898374
] |
725,459 | resfo.read | lazy_read |
Reads the contents of an res file and generates the entries
of that file. Each entry has a entry.read_keyword() and
entry.read_array() method which will return the corresponding
data, but only upon request. This requires the user to
pay attention to when values are read as it should happen
before the file is closed.
When lazy_read is given a path or filename, the file will be closed once
the generator has ran out of elements.
For greater control, one can pass an opened file so that close
can be called at the correct time.
:param filelike: Either filename, pathlib.Path or stream
to write file to. For fileformat=Format.UNFORMATTED the
stream must be in binary mode and for fileformat=Format.FORMATTED
in text mode.
:param fileformat: Either resfo.Format.FORMATTED for ascii
format, resfo.Format.UNFORMATTED for binary formatted files
or None for guess.
:raises resfo.ResfoParsingError: If the file is not a valid
res file.
.. note::
If given a file to be open (as opposed to a stream), the errors
(various `IOError` s) associated with the default behavior of the
built-in `open()` function may be raised.
When given a stream, the exceptions associated with the stream will
pass through.
| def lazy_read(filelike, fileformat: Optional[Format] = None) -> Iterator[ResArray]:
"""
Reads the contents of an res file and generates the entries
of that file. Each entry has a entry.read_keyword() and
entry.read_array() method which will return the corresponding
data, but only upon request. This requires the user to
pay attention to when values are read as it should happen
before the file is closed.
When lazy_read is given a path or filename, the file will be closed once
the generator has ran out of elements.
For greater control, one can pass an opened file so that close
can be called at the correct time.
:param filelike: Either filename, pathlib.Path or stream
to write file to. For fileformat=Format.UNFORMATTED the
stream must be in binary mode and for fileformat=Format.FORMATTED
in text mode.
:param fileformat: Either resfo.Format.FORMATTED for ascii
format, resfo.Format.UNFORMATTED for binary formatted files
or None for guess.
:raises resfo.ResfoParsingError: If the file is not a valid
res file.
.. note::
If given a file to be open (as opposed to a stream), the errors
(various `IOError` s) associated with the default behavior of the
built-in `open()` function may be raised.
When given a stream, the exceptions associated with the stream will
pass through.
"""
if fileformat is None:
fileformat = guess_format(filelike)
stream, didopen = get_stream(filelike, fileformat)
check_correct_mode(stream, fileformat)
try:
if fileformat == Format.FORMATTED:
yield from FormattedArray.parse(stream)
else:
yield from UnformattedResArray.parse(stream)
finally:
if didopen:
stream.close()
| (filelike, fileformat: Optional[resfo.format.Format] = None) -> Iterator[resfo.array_entry.ResArray] | [
0.015238609164953232,
-0.027342967689037323,
-0.06672299653291702,
0.009912306442856789,
0.026804570108652115,
0.05960844084620476,
-0.019766926765441895,
0.033592239022254944,
0.09675795584917068,
-0.033207669854164124,
0.047263722866773605,
0.07852931320667267,
-0.017238376662135124,
0.01968039944767952,
0.026939168572425842,
0.07283766567707062,
-0.04191819205880165,
0.08199045062065125,
-0.064761683344841,
0.023535719141364098,
-0.040649108588695526,
0.015892378985881805,
-0.023247292265295982,
-0.009989220649003983,
0.039879970252513885,
0.02632385678589344,
0.01441178284585476,
-0.0043672798201441765,
-0.0030669502448290586,
-0.010710290633141994,
0.046456124633550644,
-0.021132152527570724,
-0.024401003494858742,
0.05726255849003792,
0.0017558049876242876,
-0.05241696909070015,
-0.04634075611829758,
0.04391796141862869,
-0.06956882029771805,
0.026170028373599052,
0.0778755396604538,
-0.027823681011795998,
0.023689547553658485,
-0.035361263900995255,
-0.029342735186219215,
0.010729518719017506,
0.00467733945697546,
-0.03684186190366745,
-0.06280037760734558,
-0.038091715425252914,
0.0463792122900486,
0.01693071983754635,
-0.005244581028819084,
-0.0067059495486319065,
-0.0028506293892860413,
0.0177190899848938,
-0.08606689423322678,
0.06376180052757263,
0.018209416419267654,
-0.015277066268026829,
0.007888504303991795,
-0.060300666838884354,
0.022343549877405167,
0.0012246168917044997,
0.000999282579869032,
-0.010469933971762657,
-0.025458572432398796,
-0.0799906775355339,
0.00759526900947094,
0.02184360846877098,
-0.02007458359003067,
0.03670726343989372,
-0.013104242272675037,
-0.0053407237865030766,
0.008345181122422218,
0.01463291049003601,
-0.07079944014549255,
0.0072010839357972145,
0.021670551970601082,
-0.01422911137342453,
-0.002985229017212987,
0.04634075611829758,
0.005427252501249313,
-0.03759177401661873,
-0.028977392241358757,
-0.05103251710534096,
0.08399021625518799,
0.00048521990538574755,
0.039649225771427155,
0.032842326909303665,
0.009397943504154682,
0.042610421776771545,
0.010450705885887146,
-0.00985462125390768,
-0.014075282961130142,
-0.05814707279205322,
-0.004384104628115892,
0.006475206930190325,
-0.02882356569170952,
-0.016661521047353745,
0.0019769330974668264,
-0.03730334714055061,
0.00994114950299263,
0.01990152709186077,
0.05134017392992973,
-0.015277066268026829,
0.02691994048655033,
-0.0016188017325475812,
0.015277066268026829,
0.003526031505316496,
-0.03488055244088173,
-0.04972497746348381,
0.023651091381907463,
0.06260809302330017,
-0.05980072543025017,
-0.02067066915333271,
0.03330381214618683,
0.018565144389867783,
-0.02436254546046257,
-0.006162743549793959,
0.008465359918773174,
0.0076289186254143715,
-0.026035428047180176,
0.027939053252339363,
0.0397261418402195,
-0.030900245532393456,
-0.018632443621754646,
-0.011248689144849777,
0.08368255943059921,
0.01893048733472824,
0.010469933971762657,
0.003958673216402531,
0.027419881895184517,
-0.02376646175980568,
-0.03739948943257332,
-0.03491900861263275,
0.02476634457707405,
0.015921222046017647,
-0.05960844084620476,
0.026362312957644463,
0.07129938155412674,
0.009296993725001812,
-0.013786855153739452,
-0.021343667060136795,
-0.03839937224984169,
-0.06391563266515732,
0.038303229957818985,
0.012431244365870953,
-0.012056287378072739,
0.0642232894897461,
0.020959096029400826,
-0.01385415531694889,
0.014392553828656673,
0.07145321369171143,
0.03140018880367279,
-0.01575777865946293,
0.004251908510923386,
0.012556229718029499,
-0.049225032329559326,
-0.020766811445355415,
-0.021670551970601082,
0.05149399861693382,
0.005177281331270933,
0.007657761685550213,
-0.02259352058172226,
0.035380493849515915,
-0.049225032329559326,
-0.025208601728081703,
0.046071555465459824,
-0.02632385678589344,
0.005523394793272018,
-0.029746534302830696,
-0.026227712631225586,
-0.005734908860176802,
0.03153478726744652,
0.033996038138866425,
-0.006133900489658117,
-0.0030525289475917816,
0.0024119785521179438,
0.06418482959270477,
-0.009710406884551048,
-0.050186458975076675,
-0.037880200892686844,
-0.05134017392992973,
0.034592121839523315,
0.08322107046842575,
0.0005299863405525684,
-0.0280928798019886,
0.03566892072558403,
0.024862488731741905,
0.0031967428512871265,
0.03647651895880699,
-0.0366688035428524,
-0.012883114628493786,
0.02242046408355236,
-0.07733714580535889,
-0.04757137969136238,
0.038072485476732254,
0.05522433668375015,
0.03541895002126694,
-0.08022142201662064,
0.03445752337574959,
0.01581546477973461,
0.006210814695805311,
-0.04107213765382767,
0.09175854176282883,
0.008282688446342945,
-0.031688615679740906,
-0.03976459801197052,
0.06953036040067673,
-0.05164782702922821,
-0.058762382715940475,
-0.02049761265516281,
0.006148322019726038,
0.07026104629039764,
0.0553012490272522,
-0.016805734485387802,
-0.002041829517111182,
-0.04949423298239708,
0.014536768198013306,
0.04995571821928024,
0.004586004186421633,
-0.04391796141862869,
-0.015430894680321217,
0.05030183121562004,
-0.025074001401662827,
0.014777124859392643,
0.012133201584219933,
-0.03649574890732765,
0.06276191771030426,
0.003153478726744652,
0.031861674040555954,
0.04461018741130829,
0.008229810744524002,
0.06156975030899048,
-0.029304277151823044,
0.039283882826566696,
0.04876355081796646,
0.0173249039798975,
0.042994990944862366,
-0.021901294589042664,
0.02049761265516281,
-0.028938936069607735,
-0.05833935737609863,
-0.06145437806844711,
-0.029958048835396767,
0.009071058593690395,
0.04268733412027359,
-0.02280503511428833,
0.010960261337459087,
0.022362779825925827,
0.040264539420604706,
0.0013784451875835657,
-0.015228995122015476,
0.04753292351961136,
-0.05087868869304657,
-0.028900478035211563,
-0.07829856872558594,
0.01129676029086113,
-0.0004593815829139203,
0.025400886312127113,
0.01909392885863781,
0.05149399861693382,
0.010767975822091103,
-0.03197704255580902,
0.012037059292197227,
0.01927660033106804,
-0.04153362289071083,
0.024420231580734253,
0.019584257155656815,
-0.052955370396375656,
0.035957347601652145,
-0.004747042898088694,
0.00009922221215674654,
0.00380484526976943,
0.03328458219766617,
0.08106748014688492,
-0.02299731969833374,
0.06729985028505325,
0.04849435016512871,
-0.052532341331243515,
0.05433982238173485,
0.012200501747429371,
0.018767043948173523,
0.045533157885074615,
-0.012594686821103096,
-0.056801073253154755,
0.02045915462076664,
-0.018632443621754646,
0.011835159733891487,
0.06960727274417877,
0.0008154098177328706,
-0.02536243014037609,
-0.018363244831562042,
0.037149518728256226,
-0.03157324343919754,
-0.061108265072107315,
-0.0581086128950119,
0.026400770992040634,
-0.044148702174425125,
-0.03834168612957001,
-0.008138475008308887,
0.07072252780199051,
0.017055705189704895,
-0.002559797838330269,
-0.0024900943972170353,
-0.01718069054186344,
-0.04691760987043381,
-0.06841510534286499,
0.042879618704319,
0.0012162044877186418,
-0.006004108116030693,
0.006455978378653526,
0.0003878754796460271,
-0.05134017392992973,
0.00848939549177885,
0.022170493379235268,
0.0826057568192482,
0.04780212417244911,
-0.028977392241358757,
-0.06803053617477417,
0.046686869114637375,
0.04949423298239708,
-0.04695606604218483,
0.012412015348672867,
0.026593055576086044,
-0.005408023949712515,
-0.001154913567006588,
0.0004071040020789951,
0.04407178983092308,
0.03676494583487511,
-0.025420114398002625,
-0.06333877146244049,
0.05718564614653587,
-0.030554132536053658,
0.03786097466945648,
0.028362080454826355,
-0.02378568984568119,
0.023304976522922516,
-0.09222002327442169,
0.012902342714369297,
-0.027342967689037323,
-0.01698840595781803,
-0.04137979447841644,
-0.052916910499334335,
-0.01635386422276497,
0.032438527792692184,
-0.06818436086177826,
0.0467253252863884,
-0.03332304209470749,
0.01384454034268856,
-0.03145787492394447,
0.05791632831096649,
0.03589966520667076,
-0.02457405999302864,
-0.026977626606822014,
-0.033265355974435806,
-0.016228878870606422,
0.0054464805871248245,
0.0216128658503294,
-0.0020298114977777004,
0.014219497330486774,
-0.02299731969833374,
0.0015022287843748927,
0.02199743688106537,
-0.008623994886875153,
-0.042879618704319,
0.030265703797340393,
-0.026823798194527626,
-0.013911840505897999,
-0.023304976522922516,
0.012940799817442894,
-0.0034034496638923883,
-0.0030140718445181847,
0.020997554063796997,
-0.05091714486479759,
-0.0030044575687497854,
0.02218972146511078,
-0.011815930716693401,
0.0628388300538063,
0.03730334714055061,
0.07733714580535889,
0.010268034413456917,
-0.0228434931486845,
-0.0062348502688109875,
-0.03336149826645851,
-0.00028016566648148,
0.036553435027599335,
-0.03961076959967613,
0.011335217393934727,
0.005239774007350206,
0.028150565922260284,
-0.0035068029537796974,
-0.013238842599093914,
-0.014161811210215092,
-0.02415103279054165,
0.014988638460636139,
0.029515791684389114,
0.008095210418105125,
0.00370389549061656,
-0.01965155638754368,
-0.021555181592702866,
-0.010114206001162529,
0.02065143920481205,
-0.019036242738366127,
-0.035380493849515915,
0.06679990887641907,
-0.030457990244030952,
0.012469700537621975,
0.05726255849003792,
0.041995108127593994,
-0.030900245532393456,
0.03280387073755264,
-0.015046323649585247,
0.006941498722881079,
0.04495630040764809,
-0.025650857016444206,
0.01364264078438282,
0.058454729616642,
0.04964806139469147,
0.052916910499334335,
0.0031054073479026556,
0.012786971405148506,
0.05226314067840576,
0.005297459661960602,
-0.04326419159770012,
0.018209416419267654,
-0.0041413442231714725,
-0.024862488731741905,
-0.007922153919935226,
-0.03688031807541847,
-0.014488696120679379,
0.006662685424089432,
-0.04526395723223686,
-0.008465359918773174,
-0.057608671486377716,
-0.06914579123258591,
0.019536186009645462,
0.00014301217743195593,
-0.030919473618268967,
0.08245193213224411,
0.008609573356807232,
0.06437711417675018,
-0.013017714023590088,
-0.034822866320610046,
0.00214037555269897,
0.0018231049180030823,
0.054839763790369034,
0.009599843062460423,
-0.07099173218011856,
-0.06383871287107468,
-0.005951229482889175,
0.021766694262623787,
-0.010075748898088932,
0.01577700860798359,
-0.028362080454826355,
0.03157324343919754,
-0.03384220972657204,
-0.01530590932816267,
0.00884993001818657,
0.040610652416944504,
-0.002920332830399275,
0.022651206701993942,
-0.1111408993601799,
0.020036127418279648,
-0.06310803443193436,
-0.038091715425252914,
0.04703298211097717,
-0.05772404372692108,
-0.05807015672326088,
-0.03795711696147919,
-0.006359836086630821,
-0.015565494075417519,
-0.038091715425252914,
0.016228878870606422,
0.001609187456779182,
-0.0072010839357972145,
0.03551509231328964,
0.010354562662541866,
-0.006095443852245808,
0.037341803312301636,
-0.06137746572494507,
0.03234238550066948,
0.024035660549998283,
0.02668919786810875,
-0.03038107603788376,
0.03520743548870087,
-0.02203589491546154,
-0.014594453386962414,
0.01248892955482006,
0.03855320066213608,
0.003444310277700424,
0.008407673798501492,
0.035995807498693466,
-0.006912656128406525,
0.028592823073267937,
0.04657149687409401,
0.03539972007274628,
0.0037904237397015095,
0.00020956092339474708,
0.0011140528367832303,
-0.05399370938539505,
-0.03097715973854065,
0.01932467147707939,
0.013104242272675037,
0.04810978099703789,
-0.016853805631399155,
-0.05245542526245117,
0.024285631254315376,
-0.028708193451166153,
-0.007686604280024767,
-0.005230159964412451,
0.0006044968613423407,
-0.002985229017212987,
0.007345297839492559,
0.02342034876346588,
0.0050955601036548615,
0.009292186237871647,
-0.04134133830666542,
0.04534086957573891,
-0.011642874218523502,
-0.024420231580734253,
-0.015286680310964584,
0.04426407441496849,
-0.018632443621754646,
-0.03549586609005928,
0.027516024187207222,
-0.06945344805717468,
0.03082333132624626,
-0.02532397210597992,
0.012469700537621975,
-0.04691760987043381,
0.0044129472225904465,
-0.03318843990564346,
0.016219263896346092,
-0.039649225771427155,
0.04157207906246185,
-0.01828633062541485,
0.0022725716698914766,
0.044340986758470535,
0.04814823716878891,
0.04780212417244911,
-0.004816746339201927,
0.005581080447882414,
0.0214398093521595,
-0.05383988097310066,
0.008883580565452576,
-0.034611351788043976,
0.08752826601266861,
-0.07460669428110123,
-0.019997669383883476,
-0.053493767976760864,
0.04211047664284706,
0.014056054875254631,
0.017449889332056046,
-0.002415583934634924,
0.012181272730231285,
-0.02786213904619217,
-0.03097715973854065,
0.013998368754982948,
0.004206240642815828,
0.07522200793027878,
-0.07822165638208389,
-0.02943887747824192,
-0.03601503372192383,
0.02688148431479931,
-0.010527619160711765,
0.05522433668375015,
-0.018805501982569695,
-0.0011110483901575208,
0.041802823543548584,
0.004708585795015097,
0.02184360846877098,
0.032419297844171524,
0.03761100396513939,
0.029746534302830696,
0.003783212974667549,
-0.023881832137703896,
0.05630113184452057,
-0.08883580565452576,
0.011085246689617634,
-0.03436138108372688,
-0.018824730068445206,
-0.040841396898031235,
0.009138358756899834,
0.018084431067109108,
-0.024497145786881447,
0.05226314067840576,
0.03163092955946922,
0.000136026821564883,
0.02749679610133171,
-0.028515908867120743,
0.00906144455075264,
-0.05537816137075424,
0.015921222046017647,
0.0005909767933189869,
-0.0009464041795581579,
-0.0335153266787529,
-0.03078487515449524,
0.03120790235698223,
-0.08991260081529617,
0.03376529738306999,
-0.04057219624519348,
-0.012469700537621975,
-0.029727306216955185,
0.0021535952109843493,
0.004617250524461269,
0.004369683098047972,
0.008729752153158188,
0.05383988097310066,
-0.029977276921272278,
-0.02824670821428299,
0.027977509424090385,
-0.016046207398176193,
0.016219263896346092,
0.01774793304502964,
-0.04311036318540573,
-0.013882997445762157,
0.0016848997911438346,
-0.051186345517635345,
-0.017853688448667526,
-0.03022724762558937,
0.022382007911801338,
0.027208369225263596,
-0.03411141037940979,
0.015632793307304382,
0.021093696355819702,
-0.02907353639602661,
-0.030361847952008247,
0.005345530807971954,
-0.0022124825045466423,
-0.02434331737458706,
0.06183894723653793,
0.014757895842194557,
0.03676494583487511,
-0.03953385353088379,
0.008239424787461758,
0.01908431574702263,
-0.0014132969081401825,
-0.0016175999771803617,
-0.02926582098007202,
-0.04426407441496849,
-0.009522928856313229,
-0.03918774053454399,
-0.05903158336877823,
-0.014873267151415348,
0.07191469520330429,
-0.03080410324037075,
0.08760517835617065,
-0.015623179264366627,
0.031073302030563354,
0.046110011637210846,
-0.044917844235897064,
0.005398409441113472,
0.05149399861693382,
-0.04976343363523483,
0.04518704116344452,
-0.05010954663157463,
-0.022074351087212563,
0.022285865619778633,
0.04876355081796646,
-0.025285515934228897,
0.006965534761548042,
-0.04307190328836441,
-0.03730334714055061,
-0.0238049179315567,
-0.0390339121222496,
0.05960844084620476,
0.017036477103829384,
0.010681447573006153,
-0.04187973588705063,
0.05887775495648384,
0.004761464428156614,
-0.04087985306978226,
0.058800842612981796,
-0.014777124859392643,
-0.01385415531694889,
0.01828633062541485,
0.03061181865632534,
0.014488696120679379,
0.003422678215429187,
0.0680689886212349,
0.005153245758265257,
0.040841396898031235,
-0.05014800280332565,
0.014421396888792515,
-0.01967078447341919,
-0.009782514534890652,
-0.006672299467027187,
-0.009441208094358444,
0.013700326904654503,
0.01196975912898779,
0.020786039531230927,
-0.04380258917808533,
-0.07937536388635635,
0.014671367593109608,
0.0004999417578801513,
0.003900987794622779,
0.01811327412724495,
0.009864235296845436,
-0.009820970706641674,
-0.05391679331660271,
0.06241580471396446,
0.01500786654651165,
-0.04741755127906799,
0.006903042085468769,
-0.05360914021730423,
0.026958396658301353,
-0.05153245851397514,
0.017497960478067398,
0.0029467721469700336,
0.07191469520330429,
0.002417987445369363,
-0.03101561777293682,
0.02434331737458706,
-0.03328458219766617,
0.00163322314620018,
0.02707376889884472,
0.04680223762989044,
-0.03786097466945648,
0.011652488261461258,
0.0393800288438797,
-0.0596853531897068,
0.0358804352581501,
-0.04522550106048584,
-0.016238491982221603,
-0.05207085609436035,
-0.004653303883969784,
0.02436254546046257,
-0.002276177052408457,
0.04495630040764809,
-0.03057336062192917,
-0.05007109045982361,
-0.009518121369183064,
-0.03038107603788376,
-0.03703414648771286,
0.012056287378072739,
0.021958980709314346,
0.035168979316949844,
0.002711222507059574,
-0.08245193213224411,
0.025477800518274307,
-0.07533737272024155,
0.02570854313671589,
-0.015055937692523003,
-0.03468826785683632,
0.06849201768636703,
0.006148322019726038,
-0.0628388300538063,
0.03539972007274628,
0.0008502615382894874,
-0.028708193451166153,
0.013950297608971596,
0.07814474403858185,
0.004975381772965193,
-0.01530590932816267,
-0.00205024192109704,
-0.06006992608308792,
0.010642990469932556,
0.006999184377491474,
-0.054647479206323624,
0.006465592887252569,
-0.016103893518447876,
0.04284116253256798,
0.004715796560049057,
-0.0036005419678986073,
0.010700676590204239,
0.008648030459880829
] |
725,460 | resfo.read | read |
Read the contents of a res file and return a list of
tuples (keyword, array). Takes the same parameters as
lazy_read, but differs in return type
| def read(*args, **kwargs) -> List[Tuple[str, "ReadArrayValue"]]:
"""
Read the contents of a res file and return a list of
tuples (keyword, array). Takes the same parameters as
lazy_read, but differs in return type
"""
return [
(arr.read_keyword(), arr.read_array()) for arr in lazy_read(*args, **kwargs)
]
| (*args, **kwargs) -> List[Tuple[str, ForwardRef('ReadArrayValue')]] | [
-0.004196879919618368,
-0.03671107068657875,
-0.04358553886413574,
-0.007840082049369812,
0.03531137481331825,
0.08674585074186325,
0.001612310647033155,
-0.0035656869877129793,
0.11084192246198654,
-0.032317083328962326,
0.046420369297266006,
0.06374827772378922,
-0.008358323946595192,
-0.030651619657874107,
-0.006506824865937233,
0.005669663660228252,
-0.02494652010500431,
0.06973686069250107,
-0.07916267961263657,
0.05056631192564964,
-0.03827022761106491,
0.016273707151412964,
0.025531204417347908,
0.019542621448636055,
0.020322199910879135,
0.009071461856365204,
0.06661854684352875,
-0.03827022761106491,
0.00026687284116633236,
-0.01215434167534113,
-0.03749065101146698,
-0.0009401454008184373,
-0.03695911914110184,
0.06573266535997391,
-0.03674650564789772,
-0.026629701256752014,
-0.0013288274640217423,
0.03727803751826286,
-0.0669020339846611,
0.03143119812011719,
0.017239321023225784,
-0.06218912452459335,
0.05237351730465889,
-0.05379093438386917,
-0.05081436038017273,
-0.0435146689414978,
0.005341886077076197,
-0.10708577185869217,
-0.03890806809067726,
-0.03922698646783829,
0.04666841775178909,
-0.01986153982579708,
-0.00005896671791560948,
0.008327318355441093,
0.02260778285562992,
0.04904258996248245,
-0.06573266535997391,
0.0681777074933052,
0.02145613357424736,
0.028755825012922287,
0.014085570350289345,
-0.04192007705569267,
0.02179276943206787,
0.014838572591543198,
-0.02237745374441147,
-0.010984973050653934,
0.0036941401194781065,
-0.025637509301304817,
-0.005594363436102867,
-0.007822363637387753,
0.009638427756726742,
0.02732069231569767,
-0.02762189321219921,
-0.02108406089246273,
0.014191877096891403,
0.014891725964844227,
-0.029464533552527428,
0.061444979161024094,
0.004903373308479786,
-0.0013033582363277674,
-0.023227903991937637,
0.041034191846847534,
-0.005226721055805683,
0.02661198377609253,
-0.044684037566185,
-0.029783451929688454,
0.020180458202958107,
0.010010499507188797,
0.012827614322304726,
0.03656933084130287,
-0.030722489580512047,
0.05680294334888458,
-0.03263600170612335,
0.056661199778318405,
-0.03447864204645157,
-0.048759106546640396,
-0.020091870799660683,
-0.0017806286923587322,
-0.00825644750148058,
0.045569922775030136,
-0.010196535848081112,
-0.041813768446445465,
0.05170024558901787,
0.014395629987120628,
0.00881455559283495,
-0.040396351367235184,
-0.011994882486760616,
0.022253429517149925,
0.03993569314479828,
0.03313209488987923,
0.002646581269800663,
0.017753133550286293,
0.04440055415034294,
0.06112606078386307,
-0.06909902393817902,
0.019259138032794,
-0.013057944364845753,
-0.015972506254911423,
-0.05676750838756561,
-0.008632948622107506,
0.02546033263206482,
0.025531204417347908,
0.008477918803691864,
0.032051317393779755,
0.017327910289168358,
0.030704772099852562,
-0.023103879764676094,
-0.010382571257650852,
0.017327910289168358,
0.007729345932602882,
0.021332109346985817,
-0.011782269924879074,
0.008956296369433403,
-0.019099678844213486,
0.002830402459949255,
-0.03529365733265877,
0.0968095064163208,
-0.02097775600850582,
-0.00263107824139297,
-0.03423059359192848,
0.0368882492184639,
0.04319575056433678,
0.006134753115475178,
-0.020251329988241196,
-0.05014108866453171,
-0.05028282850980759,
0.08135966956615448,
-0.014324759133160114,
0.003096167929470539,
0.05857471376657486,
-0.02057024836540222,
-0.008451342582702637,
-0.054924868047237396,
0.0045623076148331165,
0.04344379901885986,
-0.03915611281991005,
-0.014546230435371399,
-0.009381521493196487,
-0.03844740614295006,
-0.011959446594119072,
-0.028047116473317146,
0.002938923193141818,
-0.040219176560640335,
0.010949538089334965,
0.0047572022303938866,
0.04907802492380142,
-0.03095282055437565,
-0.03447864204645157,
-0.011091279797255993,
0.02372399903833866,
0.015972506254911423,
-0.04627862945199013,
-0.023511385545134544,
-0.029978346079587936,
0.00831403024494648,
0.00664413720369339,
-0.013305991888046265,
0.012110047042369843,
0.02104862593114376,
0.0414239801466465,
-0.025602074339985847,
-0.03894350305199623,
-0.05010565370321274,
-0.031023690477013588,
0.028791259974241257,
0.07732003927230835,
0.01581304706633091,
-0.0007020637858659029,
0.03564801067113876,
0.009089179337024689,
-0.003913396503776312,
0.015494127757847309,
-0.030527595430612564,
-0.007822363637387753,
-0.000578593579120934,
-0.06112606078386307,
-0.07838310301303864,
0.02033991739153862,
0.03447864204645157,
0.016273707151412964,
-0.025850122794508934,
0.011737975291907787,
0.03144891560077667,
0.015511845238506794,
-0.013049084693193436,
0.039510469883680344,
0.020623400807380676,
-0.015520703978836536,
-0.04365640878677368,
0.03570116311311722,
0.003669778350740671,
-0.015024608932435513,
0.00012983751366846263,
-0.03972307965159416,
0.05768882855772972,
0.039439596235752106,
-0.009673863649368286,
-0.004252247512340546,
-0.023954328149557114,
-0.004504724871367216,
0.06194107607007027,
0.006901043467223644,
-0.04897172003984451,
0.005333027336746454,
0.031307172030210495,
-0.014634818769991398,
0.01130389142781496,
-0.005470339674502611,
-0.022625502198934555,
0.049538686871528625,
-0.01740763895213604,
-0.002693090122193098,
0.06087801232933998,
-0.022926703095436096,
0.013483168557286263,
0.04312488064169884,
0.042664218693971634,
0.04209725186228752,
0.027675045654177666,
0.00579811679199338,
-0.03667563572525978,
0.03221077471971512,
-0.028490059077739716,
-0.0030430147890001535,
-0.04131767526268959,
0.01484743133187294,
0.030332699418067932,
0.040325481444597244,
-0.02616904117166996,
-0.0035745457280427217,
0.02457444742321968,
0.047341689467430115,
0.03922698646783829,
-0.014546230435371399,
0.030651619657874107,
-0.0239720456302166,
0.031059125438332558,
-0.06612244993448257,
0.002170418156310916,
-0.035949211567640305,
0.051275018602609634,
0.0071269441395998,
0.05726360157132149,
0.0365338958799839,
-0.033947110176086426,
0.02546033263206482,
0.03890806809067726,
-0.015414398163557053,
-0.060488224029541016,
0.013456592336297035,
-0.048050399869680405,
0.04836931824684143,
-0.013217403553426266,
0.0066219898872077465,
-0.00451801298186183,
0.030633900314569473,
0.08043835312128067,
0.02375943399965763,
0.02508826181292534,
0.061409544199705124,
-0.019028808921575546,
0.05340114235877991,
-0.005014108959585428,
0.006679572630673647,
0.029375944286584854,
-0.06753987073898315,
-0.013731217011809349,
0.018585866317152977,
-0.060559093952178955,
-0.012074612081050873,
0.04985760524868965,
0.0019190482562407851,
0.00022077914036344737,
-0.07732003927230835,
0.04939694330096245,
0.0032888478599488735,
-0.03763239085674286,
-0.020499376580119133,
0.023245621472597122,
-0.0219345111399889,
-0.0006179047632031143,
-0.03883719444274902,
0.08660411089658737,
-0.022590065374970436,
0.012827614322304726,
-0.03695911914110184,
-0.024414988234639168,
-0.02613360621035099,
-0.07590261846780777,
0.005129273980855942,
-0.015839623287320137,
-0.002112835645675659,
0.0017562669236212969,
-0.00575382262468338,
-0.09999869018793106,
-0.002471619052812457,
-0.014395629987120628,
0.0906437486410141,
0.02962399274110794,
-0.03695911914110184,
-0.0346735380589962,
-0.01878076046705246,
0.004695190116763115,
-0.05963777378201485,
0.0475897379219532,
0.06158672273159027,
-0.0215270034968853,
-0.03336242586374283,
0.08114705979824066,
0.03798674792051315,
0.03912067785859108,
0.02446814253926277,
-0.037100862711668015,
0.04766061156988144,
-0.005350744817405939,
0.032086752355098724,
0.032795459032058716,
0.012960496358573437,
0.01788601651787758,
-0.051062408834695816,
-0.03440777212381363,
-0.06987860053777695,
-0.024964237585663795,
0.018550431355834007,
0.016645777970552444,
0.009434674866497517,
0.03426602855324745,
-0.038163922727108,
0.08185576647520065,
-0.01037371251732111,
0.039475031197071075,
-0.06902815401554108,
-0.000134405359858647,
0.05857471376657486,
0.00009364080324303359,
0.029606275260448456,
-0.04698733612895012,
0.013146532699465752,
0.01707986183464527,
-0.003742863889783621,
-0.006112606264650822,
-0.011587374843657017,
0.00022714643273502588,
0.017974605783820152,
0.02386574074625969,
-0.020428506657481194,
-0.0035612573847174644,
0.015219503082334995,
-0.010231970809400082,
-0.014776560477912426,
-0.02572609856724739,
0.00664413720369339,
-0.009656146168708801,
0.004041850101202726,
-0.002724096179008484,
-0.10106175392866135,
0.005820264108479023,
0.010001640766859055,
-0.022696372121572495,
0.04507382586598396,
-0.03389395773410797,
0.03185642138123512,
0.02078285999596119,
-0.024893367663025856,
-0.011463351547718048,
0.003306565573439002,
-0.08093445003032684,
0.036090951412916183,
-0.024928802624344826,
0.04319575056433678,
0.03043900616466999,
0.016043376177549362,
-0.012739025056362152,
-0.05322396755218506,
-0.018320100381970406,
-0.03766782581806183,
0.028117988258600235,
0.03284861519932747,
-0.0097447345033288,
-0.01191515289247036,
-0.05393267422914505,
-0.030563030391931534,
-0.05418072268366814,
0.012623860500752926,
-0.04393989220261574,
0.014865149743855,
0.023139314725995064,
-0.030244112014770508,
-0.0186744537204504,
-0.01570674031972885,
0.034390054643154144,
0.03221077471971512,
0.05790143832564354,
-0.022519195452332497,
0.010249688290059566,
0.041849203407764435,
-0.01599908247590065,
0.05226721242070198,
0.023210184648633003,
0.007862228900194168,
0.04681016132235527,
-0.012198635376989841,
-0.009381521493196487,
0.0145728075876832,
0.022820396348834038,
-0.00703392643481493,
0.0017418712377548218,
0.04663298279047012,
0.0027152374386787415,
-0.0289152842015028,
-0.03982938826084137,
0.0017529447795823216,
-0.044223375618457794,
-0.07150863111019135,
-0.05233808234333992,
-0.0009174445876851678,
-0.051948294043540955,
0.004735054913908243,
0.03091738373041153,
-0.05542096123099327,
0.04138854518532753,
0.05063718184828758,
0.06268522143363953,
0.013952687382698059,
-0.00816785916686058,
-0.028720390051603317,
-0.053613755851984024,
0.059850387275218964,
-0.019755234941840172,
-0.08922632783651352,
-0.010745784267783165,
0.05882275849580765,
0.05010565370321274,
-0.015901634469628334,
0.05081436038017273,
-0.0013797658029943705,
-0.02973029948771,
-0.017584815621376038,
-0.019648928195238113,
-0.03671107068657875,
0.06392545998096466,
-0.007304121274501085,
0.016176259145140648,
-0.12650437653064728,
0.03968764469027519,
-0.03474440798163414,
-0.0562005415558815,
0.028454624116420746,
-0.03254741430282593,
-0.03695911914110184,
-0.016946978867053986,
-0.0215270034968853,
-0.014741125516593456,
-0.05563357472419739,
0.03332699090242386,
0.015042326413094997,
0.001198159414343536,
0.011799987405538559,
-0.002283368492498994,
-0.01018767710775137,
0.02958855777978897,
-0.08880110830068588,
0.0289152842015028,
-0.0021416267845779657,
-0.016397729516029358,
-0.003906752448529005,
0.023033007979393005,
-0.027675045654177666,
-0.01442220713943243,
-0.011826563626527786,
0.012322659604251385,
0.04939694330096245,
0.03355732187628746,
0.004462645389139652,
0.02935822680592537,
0.01529037393629551,
0.04999934509396553,
0.03189185634255409,
-0.002261221408843994,
0.05485399439930916,
-0.014023558236658573,
-0.06647680699825287,
0.03148435056209564,
0.009859899058938026,
-0.00007910675776656717,
-0.0041946652345359325,
0.011215303093194962,
-0.011605092324316502,
0.02223571203649044,
-0.04160115495324135,
-0.024875648319721222,
0.023440515622496605,
0.02305072546005249,
-0.002349809743463993,
0.03419515863060951,
0.004114935640245676,
-0.028631800785660744,
0.0623662993311882,
-0.05836210027337074,
0.06463416665792465,
0.013314850628376007,
-0.00408392958343029,
-0.0239720456302166,
0.02694861963391304,
0.008938578888773918,
-0.03827022761106491,
-0.018249230459332466,
-0.07026839256286621,
0.0013399010058492422,
0.011622810736298561,
0.007760351989418268,
-0.05612966790795326,
-0.021208085119724274,
-0.04227443039417267,
-0.007512304466217756,
-0.0032799888867884874,
0.045640792697668076,
0.0194894690066576,
0.06087801232933998,
0.05155850201845169,
0.042593348771333694,
0.07512304186820984,
0.030651619657874107,
0.026523394510149956,
0.020658837631344795,
-0.019259138032794,
-0.009005020372569561,
0.00959413405507803,
0.0454990491271019,
-0.017203886061906815,
0.014262747950851917,
-0.09234464913606644,
0.001653282786719501,
-0.021332109346985817,
-0.00021261238725855947,
-0.026310782879590988,
-0.013155391439795494,
-0.08376927673816681,
-0.06750443577766418,
-0.02104862593114376,
0.0365338958799839,
0.024060634896159172,
-0.09220290184020996,
0.015122056007385254,
-0.06686659157276154,
0.018603583797812462,
0.026417089626193047,
0.048829976469278336,
-0.05804318189620972,
-0.0516648106276989,
0.030651619657874107,
-0.014794278889894485,
0.011250738985836506,
0.026186758652329445,
0.06286239624023438,
0.0020408574491739273,
0.037738699465990067,
-0.06736268848180771,
-0.005386180244386196,
-0.025531204417347908,
0.04532187432050705,
0.009452392347157001,
-0.016681212931871414,
-0.050318263471126556,
0.029039308428764343,
0.04216812178492546,
0.027551021426916122,
0.021952228620648384,
-0.0011859784135594964,
-0.005505775101482868,
0.04844018816947937,
0.030084652826189995,
0.027905374765396118,
-0.001003818353638053,
0.016982413828372955,
-0.030456723645329475,
-0.007543310057371855,
-0.012606143020093441,
-0.05853927507996559,
-0.04982217028737068,
-0.0692407637834549,
0.0013542965753003955,
-0.01555613987147808,
-0.053294837474823,
-0.06389002501964569,
-0.010568607598543167,
0.04312488064169884,
-0.04443598911166191,
0.010790078900754452,
0.09333683550357819,
-0.02230658195912838,
-0.06665398180484772,
0.017948029562830925,
-0.014687972143292427,
0.03180326893925667,
0.035205066204071045,
-0.03997112810611725,
0.02546033263206482,
0.03646302595734596,
-0.012597284279763699,
-0.034390054643154144,
-0.014156441204249859,
0.05024739354848862,
0.012535272166132927,
-0.021775051951408386,
0.021686462685465813,
-0.022731807082891464,
-0.01714187301695347,
-0.008531072176992893,
0.006719437427818775,
0.003895679023116827,
-0.00796410534530878,
0.12317344546318054,
0.014590525068342686,
0.007804646156728268,
-0.02227114699780941,
0.014493077993392944,
0.00067050417419523,
-0.0006777019589208066,
-0.020180458202958107,
-0.025779251009225845,
-0.0048723672516644,
-0.023174749687314034,
-0.023954328149557114,
-0.011250738985836506,
-0.014776560477912426,
0.017567098140716553,
0.013970405794680119,
0.08986416459083557,
0.018213793635368347,
0.00575382262468338,
0.04383358731865883,
-0.05014108866453171,
0.061338674277067184,
0.0005907745216973126,
0.04291226714849472,
0.03756152093410492,
-0.03986482322216034,
-0.006329647731035948,
0.00048779038479551673,
0.006949767470359802,
0.028312882408499718,
-0.003102811984717846,
-0.024964237585663795,
-0.049609556794166565,
-0.05758251994848251,
-0.03047444112598896,
0.06080714240670204,
0.04376271739602089,
0.0373489074409008,
-0.020127305760979652,
0.03224621340632439,
0.07717829942703247,
-0.005381750874221325,
0.06941794604063034,
0.02799396403133869,
0.008145712316036224,
-0.044825777411460876,
0.02074742503464222,
0.0029499968513846397,
-0.038695454597473145,
0.007317409384995699,
0.002673157723620534,
0.02257234789431095,
-0.008380471728742123,
0.034903865307569504,
-0.01499803178012371,
0.03329155594110489,
0.001161616644822061,
-0.012127764523029327,
0.022412888705730438,
0.032387953251600266,
0.06101975589990616,
-0.055066607892513275,
-0.016566047444939613,
0.012677013874053955,
-0.00258013978600502,
-0.019808387383818626,
0.03143119812011719,
-0.003798231715336442,
-0.016167400404810905,
-0.032193057239055634,
0.012995932251214981,
-0.0024450423661619425,
-0.033504169434309006,
-0.033309273421764374,
-0.040963318198919296,
0.008136853575706482,
-0.06417350471019745,
0.015024608932435513,
-0.03325612097978592,
0.01632685959339142,
0.009142332710325718,
-0.008615231141448021,
0.0024361836258322,
-0.04929063841700554,
0.019064243882894516,
0.020942319184541702,
-0.001699791755527258,
0.02501739002764225,
0.0024295393377542496,
0.05063718184828758,
0.004859078675508499,
0.04248704016208649,
-0.0373489074409008,
0.03196272999048233,
-0.04620775952935219,
-0.032015882432460785,
0.0014860719675198197,
-0.0033597187139093876,
0.00855764839798212,
-0.03274230659008026,
0.0005636442801915109,
0.006870037876069546,
-0.04156571999192238,
-0.011445633135735989,
0.020091870799660683,
-0.022023100405931473,
0.018196076154708862,
-0.004659754689782858,
-0.03058074787259102,
0.01730133220553398,
-0.04397532716393471,
0.048121269792318344,
-0.042593348771333694,
-0.04358553886413574,
0.04220355674624443,
0.015529562719166279,
-0.04117593169212341,
-0.01186199951916933,
0.006041735410690308,
0.023103879764676094,
0.0011450062738731503,
0.04861736670136452,
-0.019099678844213486,
-0.015024608932435513,
0.03702998906373978,
-0.10892841219902039,
-0.014395629987120628,
0.0001546146086184308,
-0.046491242945194244,
0.03322068601846695,
-0.06541374325752258,
0.07242995500564575,
0.006652995944023132,
-0.047306254506111145,
0.0062897829338908195,
0.011463351547718048
] |
725,464 | resfo.write | write |
Write the given contents to the given file in res format.
:param filelike: Either filename, pathlib.Path or stream
to write file to. For fileformat=Format.UNFORMATTED the
stream must be in binary mode and for fileformat=Format.FORMATTED
in text mode.
:param contents: list or iterable of tuples (kw, arr) where keyword
is the keyword, and arr is a numpy arraylike of values. The
keyword must have exactly 8 characters and the type of the array
will be converted according to resfo.types.to_np_type
:param fileformat: Either resfo.Format.FORMATTED for ascii
format or resfo.Format.UNFORMATTED for binary format.
:raises resfo.ResfoWriteError: If the given contents cannot be
written to an res file.
.. note::
If given a file to be open (as opposed to a stream), the errors
(various `IOError` s) associated with the default behavior of the
built-in `open()` function may be raised.
When given a stream, the exceptions associated with the stream will
pass through.
| def write(
filelike,
contents: Union[Sequence[Tuple[str, WriteArrayValue]], Dict[str, WriteArrayValue]],
fileformat: Format = Format.UNFORMATTED,
):
"""
Write the given contents to the given file in res format.
:param filelike: Either filename, pathlib.Path or stream
to write file to. For fileformat=Format.UNFORMATTED the
stream must be in binary mode and for fileformat=Format.FORMATTED
in text mode.
:param contents: list or iterable of tuples (kw, arr) where keyword
is the keyword, and arr is a numpy arraylike of values. The
keyword must have exactly 8 characters and the type of the array
will be converted according to resfo.types.to_np_type
:param fileformat: Either resfo.Format.FORMATTED for ascii
format or resfo.Format.UNFORMATTED for binary format.
:raises resfo.ResfoWriteError: If the given contents cannot be
written to an res file.
.. note::
If given a file to be open (as opposed to a stream), the errors
(various `IOError` s) associated with the default behavior of the
built-in `open()` function may be raised.
When given a stream, the exceptions associated with the stream will
pass through.
"""
stream, didopen = get_stream(filelike, fileformat, mode="w")
check_correct_mode(stream, fileformat)
if fileformat == Format.FORMATTED:
formatted_write(stream, contents)
else:
unformatted_write(stream, contents)
if didopen:
stream.close()
| (filelike, contents: Union[Sequence[Tuple[str, Union[ForwardRef('ArrayLike'), resfo.types.MESS]]], Dict[str, Union[ForwardRef('ArrayLike'), resfo.types.MESS]]], fileformat: resfo.format.Format = <Format.UNFORMATTED: 2>) | [
0.007882854901254177,
-0.0005601765587925911,
-0.03221447765827179,
0.007019802462309599,
0.028356125578284264,
0.008215153589844704,
-0.05774606764316559,
0.02848535217344761,
0.042312655597925186,
-0.0018495633266866207,
0.03836199641227722,
0.05763529986143112,
0.05970293655991554,
-0.030700674280524254,
0.035389773547649384,
0.06450279802083969,
0.0009472810197621584,
0.028153054416179657,
0.010781235061585903,
0.09053283929824829,
0.007550556678324938,
0.02067634090781212,
-0.006419819314032793,
-0.02614080347120762,
0.023482415825128555,
-0.027156159281730652,
0.02283628098666668,
0.007052109111100435,
-0.02527313493192196,
-0.012073506601154804,
0.009747417643666267,
-0.04534026235342026,
0.009581268765032291,
0.023556260392069817,
0.01297809649258852,
-0.023297805339097977,
-0.02977762371301651,
0.07812703400850296,
-0.04593101516366005,
-0.00024215664598159492,
0.009382813237607479,
0.00876436848193407,
-0.009498193860054016,
-0.050140127539634705,
0.021488625556230545,
0.04844171181321144,
-0.012701180763542652,
0.028245359659194946,
-0.05497691407799721,
-0.004504488781094551,
0.02588234841823578,
-0.022614747285842896,
0.009267431683838367,
-0.020288659259676933,
0.0002785017713904381,
0.0472232848405838,
-0.041721902787685394,
0.06952419877052307,
0.008925902657210827,
-0.07908700406551361,
0.02543928474187851,
-0.005242929328233004,
-0.0011122763389721513,
-0.017039520666003227,
0.025199290364980698,
0.03994964435696602,
-0.02239321544766426,
-0.06981956958770752,
-0.023076273500919342,
0.03012838214635849,
-0.02267013117671013,
-0.01077200472354889,
0.000505370378959924,
-0.013227320276200771,
0.030848361551761627,
0.06985649466514587,
-0.05254006013274193,
0.04161113500595093,
-0.013965760357677937,
0.01910715363919735,
0.023980863392353058,
0.014916502870619297,
0.01336577720940113,
-0.02396240271627903,
-0.014168831519782543,
-0.03334059938788414,
-0.006632120814174414,
0.052650824189186096,
0.014584205113351345,
-0.0488109327852726,
-0.01848871074616909,
0.03151296079158783,
0.02846689149737358,
-0.05121086537837982,
-0.032620619982481,
-0.03762355446815491,
-0.000428353319875896,
-0.03073759563267231,
-0.07613324373960495,
-0.016301078721880913,
-0.017417971044778824,
-0.014787276275455952,
0.020713262259960175,
0.006918266881257296,
0.021027101203799248,
-0.05996138975024223,
-0.0021057098638266325,
-0.0010932384757325053,
-0.05302004516124725,
-0.004033732693642378,
0.007061339914798737,
0.007965929806232452,
0.005556766875088215,
-0.02180246263742447,
-0.002427624072879553,
0.0009455503313802183,
0.013596540316939354,
-0.017934879288077354,
-0.03983888030052185,
-0.020510191097855568,
0.03322983533143997,
0.02100863866508007,
0.042423419654369354,
0.01132583525031805,
0.04157421365380287,
-0.021913228556513786,
-0.03647897392511368,
0.04419567808508873,
0.035020552575588226,
0.014722662046551704,
-0.06915497779846191,
-0.04966013878583908,
0.0024622383061796427,
-0.0029306868091225624,
0.02942686341702938,
-0.03441133722662926,
0.014307289384305477,
-0.027063854038715363,
-0.04895862191915512,
-0.0041629597544670105,
0.05191238597035408,
-0.01667029969394207,
-0.02898379974067211,
-0.025291595607995987,
0.011067381128668785,
-0.045967936515808105,
0.0043891072273254395,
0.004716790281236172,
0.009922797791659832,
0.05132163316011429,
-0.015064191073179245,
0.027543840929865837,
-0.02145170420408249,
0.03457748889923096,
0.004366030916571617,
-0.015498025342822075,
0.06173364818096161,
-0.025328516960144043,
-0.027137696743011475,
0.0033575978595763445,
0.030054539442062378,
0.06915497779846191,
0.017824113368988037,
0.02959301322698593,
-0.01667953096330166,
0.03946965932846069,
-0.06036753207445145,
0.03814046457409859,
0.027746912091970444,
-0.03186371922492981,
0.02647310122847557,
-0.020953256636857986,
-0.0077582430094480515,
-0.026528483256697655,
0.014778045937418938,
-0.018165642395615578,
0.025900809094309807,
-0.03012838214635849,
0.019254842773079872,
0.034688252955675125,
0.009447426535189152,
-0.031660646200180054,
-0.004564486909657717,
0.01659645512700081,
0.029389942064881325,
0.04290340840816498,
-0.047186363488435745,
0.01763027347624302,
0.03932197019457817,
-0.01833179220557213,
0.04065116494894028,
0.02560543268918991,
-0.020030206069350243,
-0.021857846528291702,
0.006189056672155857,
-0.07790549844503403,
-0.015027269721031189,
-0.044417209923267365,
0.08189307898283005,
0.055863041430711746,
-0.029648397117853165,
0.031808335334062576,
0.043457239866256714,
0.019254842773079872,
0.022799357771873474,
0.05660148337483406,
0.04072500765323639,
-0.09237893670797348,
-0.06103212758898735,
-0.011944279074668884,
0.010116638615727425,
-0.004481412470340729,
-0.04534026235342026,
-0.05981370061635971,
0.06465049088001251,
0.03151296079158783,
-0.0038329691160470247,
0.019291764125227928,
-0.038841985166072845,
0.0027737680356949568,
-0.030774518847465515,
0.009165896102786064,
-0.0619921013712883,
0.01267348974943161,
0.03725433722138405,
-0.003929889295250177,
0.01813795045018196,
0.014205753803253174,
0.043457239866256714,
0.02935302071273327,
0.020694801583886147,
0.03810354322195053,
0.06206594407558441,
0.002600695937871933,
-0.0029653010424226522,
-0.029389942064881325,
-0.017851805314421654,
0.006664427928626537,
0.014676510356366634,
0.027396151795983315,
-0.03596206381917,
-0.023113194853067398,
-0.021119404584169388,
0.010356631129980087,
-0.019420992583036423,
-0.06734579801559448,
0.018017955124378204,
-0.0011157378321513534,
0.0019360993755981326,
-0.02396240271627903,
0.051358554512262344,
0.0145380524918437,
-0.05146931856870651,
-0.03802970051765442,
0.04940168559551239,
-0.012313499115407467,
0.014694971032440662,
-0.08137617260217667,
0.03125450387597084,
-0.022947046905755997,
0.030331453308463097,
0.00781362596899271,
0.06117981672286987,
-0.06712426245212555,
-0.006479817442595959,
-0.012295038439333439,
-0.03865737468004227,
-0.00906436052173376,
-0.0057644532062113285,
0.01945791393518448,
-0.10271710902452469,
0.0407988503575325,
0.0030945283360779285,
-0.025457745417952538,
-0.0042368038557469845,
-0.00004074404569109902,
0.07262564450502396,
0.015045730397105217,
0.09806492924690247,
0.04419567808508873,
-0.009867414832115173,
0.01971636898815632,
0.0013730382779613137,
0.020344043150544167,
0.09651420265436172,
0.0026606942992657423,
-0.0029929927550256252,
0.06627506017684937,
-0.04068808630108833,
-0.009784339927136898,
0.05146931856870651,
0.017916418612003326,
-0.0388789065182209,
0.02855919674038887,
-0.017224131152033806,
-0.001408806536346674,
-0.046226389706134796,
-0.08204076439142227,
0.07214566320180893,
-0.02527313493192196,
-0.0244054663926363,
0.07975160330533981,
0.09023746103048325,
-0.0031199122313410044,
-0.04504488408565521,
0.01691952347755432,
0.018636398017406464,
-0.03932197019457817,
-0.06250900775194168,
0.06564738601446152,
-0.005584458354860544,
-0.016910294070839882,
-0.027322307229042053,
0.028005365282297134,
-0.0016372615937143564,
0.07886547595262527,
0.03987580165266991,
-0.0023468569852411747,
0.03226986154913902,
-0.03596206381917,
-0.018867161124944687,
-0.021636314690113068,
0.02049173042178154,
-0.04877401143312454,
0.06402281671762466,
-0.06117981672286987,
-0.05545689910650253,
-0.028669962659478188,
0.044417209923267365,
0.00009670401050243527,
0.04836786910891533,
-0.0016026472439989448,
0.01788872666656971,
0.05242929235100746,
0.006936728022992611,
-0.0014238060684874654,
0.03742048516869545,
0.020030206069350243,
0.019605601206421852,
-0.008662832900881767,
-0.003459133440628648,
0.008967439644038677,
0.012036584317684174,
0.000018424962036078796,
-0.042054202407598495,
-0.010688929818570614,
-0.03524208441376686,
-0.020196354016661644,
0.01908869296312332,
-0.058484505861997604,
-0.006452125962823629,
0.04356800392270088,
0.02455315552651882,
0.018977927044034004,
-0.05519844591617584,
0.000792670005466789,
-0.001071892911568284,
-0.05479230359196663,
-0.019734829664230347,
0.02257782593369484,
0.01919945888221264,
0.01667029969394207,
0.024977758526802063,
-0.006885960232466459,
0.01367961522191763,
0.00990433618426323,
-0.017057981342077255,
0.007195182144641876,
0.000917858793400228,
-0.04356800392270088,
0.025845427066087723,
-0.0016499535413458943,
0.012119659222662449,
0.012987326830625534,
0.04486027732491493,
0.04818325862288475,
-0.01532264519482851,
0.00392527412623167,
-0.015664175152778625,
-0.05305696651339531,
0.024885453283786774,
-0.0019695600494742393,
0.009433580562472343,
-0.0357959158718586,
0.02091633342206478,
-0.003775278339162469,
0.008579758927226067,
-0.0006345974979922175,
-0.06077367439866066,
0.024626998230814934,
-0.017934879288077354,
0.05660148337483406,
-0.012073506601154804,
-0.011279682628810406,
-0.03206678852438927,
0.007241334766149521,
-0.015756480395793915,
0.06332129240036011,
0.01349500473588705,
0.006655197124928236,
-0.0290761049836874,
-0.04895862191915512,
-0.00432218611240387,
0.004555256571620703,
0.0026699248701334,
-0.013707306236028671,
-0.012221194803714752,
-0.0018864853773266077,
0.03282369300723076,
0.03987580165266991,
0.027673067525029182,
-0.005252159666270018,
-0.013919607736170292,
0.0019072539871558547,
0.011962739750742912,
0.057081468403339386,
-0.03300829976797104,
-0.00984895322471857,
0.02475622668862343,
0.0012934250989928842,
0.0021426319144666195,
-0.03204832971096039,
0.08071157336235046,
0.07613324373960495,
-0.0006184441153891385,
-0.06140134856104851,
0.024700842797756195,
-0.03106989525258541,
0.015230340883135796,
0.004786019213497639,
0.034319035708904266,
-0.014944194816052914,
0.00564445648342371,
-0.003154526697471738,
0.021082483232021332,
-0.02230091020464897,
-0.0178979579359293,
-0.02510698512196541,
-0.00797977577894926,
0.0059859855100512505,
0.07923468947410583,
0.016633378341794014,
-0.009959720075130463,
-0.024073168635368347,
-0.07746243476867676,
-0.014214984141290188,
0.015654943883419037,
-0.010347400791943073,
0.017667194828391075,
-0.0024760840460658073,
-0.007735166698694229,
-0.02370394766330719,
0.04028194397687912,
-0.010910461656749249,
0.02612234093248844,
-0.04282956197857857,
0.02534697949886322,
-0.09289584308862686,
-0.003791431663557887,
-0.08972055464982986,
0.09717880189418793,
-0.03186371922492981,
0.027414612472057343,
-0.06697657704353333,
0.006904420908540487,
-0.05645379424095154,
-0.05567843094468117,
-0.03249139338731766,
0.01969790644943714,
-0.025033142417669296,
0.01580263301730156,
0.04312494024634361,
0.04017117619514465,
0.004956783726811409,
0.07989928871393204,
0.024091629311442375,
-0.058041442185640335,
-0.0010257404064759612,
-0.04593101516366005,
0.032620619982481,
0.03273138776421547,
-0.04138960316777229,
0.008021312765777111,
0.016550302505493164,
0.05198622867465019,
-0.029925310984253883,
0.001105353469029069,
-0.02822689712047577,
0.044047992676496506,
0.03300829976797104,
0.06343206018209457,
-0.026103880256414413,
0.009692034684121609,
0.01570109650492668,
-0.03090374544262886,
0.004303724970668554,
0.011833513155579567,
-0.00507677998393774,
-0.08514221757650375,
-0.014454977586865425,
0.005935217719525099,
-0.06369051337242126,
-0.05641687288880348,
-0.04412183538079262,
0.010356631129980087,
-0.003223755396902561,
0.020713262259960175,
-0.03376520425081253,
0.027137696743011475,
-0.02935302071273327,
-0.04659561067819595,
0.01437190268188715,
-0.005824451334774494,
-0.019827134907245636,
0.00936896726489067,
0.03435595706105232,
-0.04412183538079262,
-0.03778970614075661,
-0.006733656395226717,
0.014445747248828411,
-0.08115463703870773,
-0.028245359659194946,
0.02335318922996521,
0.08816982805728912,
-0.0015668789856135845,
-0.030700674280524254,
-0.015516486018896103,
-0.047186363488435745,
-0.0010020871413871646,
0.03430057317018509,
-0.0071397991850972176,
-0.008907441981136799,
-0.025568511337041855,
-0.04386338219046593,
0.03810354322195053,
0.015673404559493065,
0.013328855857253075,
-0.03891582787036896,
-0.015387259423732758,
0.05279851332306862,
0.030589908361434937,
0.017251821234822273,
-0.03898967057466507,
-0.0694134309887886,
-0.00022355139662977308,
-0.0106796994805336,
0.004186036065220833,
-0.08757907152175903,
0.07561632990837097,
-0.06760425120592117,
-0.027562301605939865,
-0.03206678852438927,
0.04028194397687912,
0.05671225115656853,
-0.035463616251945496,
0.0004462374490685761,
-0.008256690576672554,
0.0009974719723686576,
-0.0005105625605210662,
0.02327934466302395,
0.015248801559209824,
0.030183766037225723,
0.013033479452133179,
-0.032879073172807693,
-0.04297725111246109,
0.03383904695510864,
-0.01263656746596098,
-0.019254842773079872,
-0.04486027732491493,
-0.013430391438305378,
0.05697070434689522,
0.04478643089532852,
-0.0075274803675711155,
-0.04260803014039993,
0.0600721538066864,
-0.036238979548215866,
0.02100863866508007,
0.02145170420408249,
0.038583528250455856,
-0.05320465564727783,
-0.050657033920288086,
-0.015304184518754482,
-0.07506250590085983,
-0.05032473802566528,
0.06871191412210464,
0.06815808266401291,
0.009581268765032291,
0.05294620245695114,
-0.02804228663444519,
0.03151296079158783,
0.022245528176426888,
0.072921022772789,
0.05929679423570633,
-0.06970880925655365,
0.04851555824279785,
0.01883946917951107,
-0.01150121446698904,
-0.03031299263238907,
0.03038683719933033,
0.04002348706126213,
-0.06823192536830902,
-0.00916128046810627,
-0.03666358441114426,
-0.026546945795416832,
-0.001057470217347145,
0.01570109650492668,
0.018904082477092743,
-0.02455315552651882,
0.026620788499712944,
0.03828815370798111,
-0.017777960747480392,
0.034688252955675125,
0.043715693056583405,
-0.03810354322195053,
0.02351933717727661,
0.009299738332629204,
-0.04209112375974655,
0.018433326855301857,
-0.03046068176627159,
-0.03758663311600685,
0.02067634090781212,
-0.027119236066937447,
-0.016125699505209923,
-0.052835434675216675,
-0.03583283722400665,
0.05793067812919617,
-0.04456489905714989,
-0.0003475863777566701,
-0.03566668927669525,
-0.013005787506699562,
-0.029796084389090538,
-0.008238229900598526,
0.029297636821866035,
0.022799357771873474,
-0.0023307036608457565,
-0.05985062196850777,
-0.052909281104803085,
-0.03932197019457817,
0.020805567502975464,
0.007919777184724808,
0.01691952347755432,
0.011685824953019619,
0.05818913131952286,
-0.020417887717485428,
-0.006544431205838919,
-0.018867161124944687,
0.0674934834241867,
-0.03380212560296059,
-0.0578199103474617,
-0.036072831600904465,
0.02708231471478939,
0.011491984128952026,
-0.05401694029569626,
-0.01711336523294449,
0.09090206027030945,
0.029722239822149277,
0.0735856220126152,
-0.02846689149737358,
0.017759500071406364,
0.014750353991985321,
0.05416462942957878,
-0.037882011383771896,
0.0004049885901622474,
-0.022153222933411598,
-0.02318703942000866,
-0.012064275331795216,
-0.04541410505771637,
0.06612736731767654,
0.023371649906039238,
-0.01606108620762825,
0.020436348393559456,
0.04541410505771637,
0.007389022968709469,
0.017150286585092545,
0.06343206018209457,
-0.018710242584347725,
-0.01980867236852646,
0.045266419649124146,
0.029574552550911903,
0.0020641726441681385,
0.007716706022620201,
0.05375848710536957,
0.025568511337041855,
-0.009608960710465908,
-0.00659519899636507,
0.020270198583602905,
-0.00459910137578845,
0.0616598017513752,
-0.04851555824279785,
-0.0017261052271351218,
0.006802885327488184,
-0.018017955124378204,
-0.026934625580906868,
-0.038251232355833054,
-0.006982880178838968,
0.03747586905956268,
0.016467228531837463,
0.033211372792720795,
0.058373741805553436,
-0.028356125578284264,
-0.02951916866004467,
0.003994503058493137,
0.055863041430711746,
0.029371481388807297,
-0.0026514637283980846,
-0.06657043099403381,
-0.02326088398694992,
-0.031143737956881523,
0.044749509543180466,
-0.05202315002679825,
-0.04589409381151199,
0.05929679423570633,
0.030183766037225723,
-0.04456489905714989,
-0.040060412138700485,
-0.03391289338469505,
0.042497266083955765,
-0.0060644447803497314,
0.04378953576087952,
-0.04633715748786926,
-0.02239321544766426,
0.032085251063108444,
0.011953509412705898,
-0.053093891590833664,
-0.06863807141780853,
-0.06472433358430862,
-0.026251569390296936,
-0.0007453636499121785,
0.061696723103523254,
-0.021839385852217674,
0.018193334341049194,
-0.017039520666003227,
-0.040060412138700485,
0.012599645182490349,
-0.02769152820110321,
0.05567843094468117,
-0.026879243552684784,
0.013504235073924065,
-0.0032260629814118147,
0.03444826230406761,
-0.015673404559493065,
0.04777711629867554,
-0.0433833934366703,
-0.07125953584909439,
0.028097670525312424,
0.0023053197655826807,
0.023150118067860603,
0.02769152820110321,
-0.05176469683647156,
0.03125450387597084,
0.019291764125227928,
-0.030442219227552414,
-0.04438028857111931,
0.01315347570925951,
0.0722564309835434,
0.027414612472057343,
0.005016781855374575,
0.0005180623265914619,
0.009516655467450619,
-0.008570527657866478,
-0.06409665942192078,
0.036848194897174835,
-0.06129058077931404,
0.04593101516366005,
-0.008122848346829414,
0.04508180916309357,
-0.024866992607712746,
0.01241503469645977
] |
725,465 | pydomainextractor | DomainExtractor |
PyDomainExtractor is a highly optimized Domain Name Extraction library written in Rust
| class DomainExtractor:
'''
PyDomainExtractor is a highly optimized Domain Name Extraction library written in Rust
'''
engine: typing.Optional[pydomainextractor.DomainExtractor] = None
def __new__(
cls,
suffix_list_data: typing.Optional[str] = None,
):
if suffix_list_data is None:
if DomainExtractor.engine is None:
DomainExtractor.engine = pydomainextractor.DomainExtractor()
return DomainExtractor.engine
else:
return pydomainextractor.DomainExtractor(suffix_list_data)
| (suffix_list_data: Optional[str] = None) | [
0.032078810036182404,
-0.03506378456950188,
-0.04151831194758415,
0.025042792782187462,
-0.010282663628458977,
-0.0024834424257278442,
-0.029481491073966026,
-0.004962039180099964,
0.047488268464803696,
-0.024616366252303123,
0.03746727481484413,
0.05058954283595085,
-0.036459360271692276,
0.01632045768201351,
0.014585682190954685,
0.005596831440925598,
0.0017275068676099181,
0.09823287278413773,
-0.02106928452849388,
-0.027194300666451454,
-0.002551282988861203,
0.08133092522621155,
0.005645288620144129,
0.0433015450835228,
0.0029583252035081387,
0.05403970927000046,
0.024693898856639862,
-0.008732026442885399,
-0.020545944571495056,
-0.03246646746993065,
0.016456138342618942,
-0.006527213845402002,
-0.030818916857242584,
0.0711742490530014,
0.04741073399782181,
0.004523499868810177,
-0.0069633303210139275,
0.06241315230727196,
-0.0662897452712059,
-0.020080752670764923,
-0.00776772340759635,
-0.05016311630606651,
0.004530768375843763,
-0.05039571225643158,
0.012220960110425949,
0.04454205557703972,
-0.007186234463006258,
-0.017686955630779266,
-0.018481658771634102,
-0.024945877492427826,
0.006512676365673542,
0.01662089303135872,
0.010951375588774681,
-0.002551282988861203,
-0.010747854597866535,
0.10707150399684906,
0.043650440871715546,
0.13389752805233002,
-0.02595379203557968,
0.056365665048360825,
-0.025798726826906204,
-0.01855918951332569,
0.006507830694317818,
-0.03797123208642006,
0.0024131792597472668,
0.05799383297562599,
-0.029365193098783493,
-0.04291388764977455,
0.012996278703212738,
0.010302046313881874,
0.02275560237467289,
-0.046247757971286774,
-0.03285412862896919,
0.018161838874220848,
0.11257626861333847,
-0.019014690071344376,
-0.050085585564374924,
-0.031516700983047485,
0.04737196862697601,
-0.02729121595621109,
-0.01231787446886301,
-0.027194300666451454,
-0.011435950174927711,
0.0033532530069351196,
0.053419455885887146,
-0.05310932546854019,
-0.006779192481189966,
-0.04376673698425293,
0.018656104803085327,
0.04628652334213257,
-0.10497814416885376,
-0.013035045005381107,
-0.012909055687487125,
0.03147793561220169,
-0.017260530963540077,
-0.0453561395406723,
0.03155547007918358,
-0.01172669418156147,
0.012162811122834682,
0.02729121595621109,
0.03246646746993065,
0.04043286666274071,
-0.03713776171207428,
0.03329993411898613,
-0.01584557443857193,
0.030625086277723312,
-0.00017959529941435903,
0.012744300067424774,
-0.045898862183094025,
0.009895004332065582,
-0.04663541540503502,
0.048845075070858,
0.027310598641633987,
0.03655627369880676,
-0.02240670844912529,
-0.023705366998910904,
-0.052372775971889496,
0.006066868547350168,
0.007045708131045103,
0.011377801187336445,
-0.029830384999513626,
0.06625097990036011,
-0.13932475447654724,
0.055318985134363174,
0.013277331367135048,
-0.04078175872564316,
0.043650440871715546,
-0.04314648360013962,
0.008160228841006756,
0.005558065604418516,
0.0509772002696991,
0.052527837455272675,
-0.03362944722175598,
0.013044736348092556,
0.060397323220968246,
0.00865934044122696,
0.002798415720462799,
0.04989175498485565,
-0.06601838022470474,
0.0310515109449625,
-0.04682924598455429,
0.0157098937779665,
0.07229845970869064,
-0.018404126167297363,
0.007758032064884901,
0.0240930262953043,
-0.0286092571914196,
-0.022736219689249992,
-0.029849767684936523,
0.007724111899733543,
-0.02798900380730629,
-0.0348893404006958,
0.025798726826906204,
0.036459360271692276,
-0.008048776537179947,
-0.016087861731648445,
-0.0160587877035141,
-0.03236955404281616,
-0.010243897326290607,
-0.014721362851560116,
-0.019431423395872116,
-0.039328038692474365,
-0.02938457578420639,
-0.0893167108297348,
-0.0016027289675548673,
-0.020642857998609543,
0.046596650034189224,
-0.07268612086772919,
-0.007690191734582186,
0.05458243191242218,
-0.027233067899942398,
-0.004344207234680653,
-0.016717808321118355,
0.026070090010762215,
-0.012734608724713326,
0.04907767102122307,
0.009274749085307121,
0.06520429998636246,
0.040859293192625046,
0.02513970620930195,
0.039812613278627396,
0.0012671614531427622,
-0.055939238518476486,
0.002207235200330615,
0.07741556316614151,
0.041285715997219086,
-0.014866734854876995,
0.07113548368215561,
0.002376836258918047,
0.03659503906965256,
-0.02589564211666584,
-0.009289286099374294,
0.015477298758924007,
-0.01660151034593582,
0.0237247496843338,
-0.015583904460072517,
-0.024131793528795242,
0.03064446896314621,
-0.0607074499130249,
0.05202388018369675,
-0.01284121535718441,
0.07850101590156555,
0.017919551581144333,
-0.015671128407120705,
-0.0509772002696991,
0.023337090387940407,
0.020352113991975784,
0.06985621154308319,
-0.07861731201410294,
-0.02589564211666584,
0.04620899260044098,
-0.031381022185087204,
-0.035567741841077805,
0.001977062551304698,
-0.016562744975090027,
-0.04458082094788551,
0.0013180417008697987,
0.018588263541460037,
0.04039410129189491,
0.020952986553311348,
0.06051361933350563,
0.007336452603340149,
-0.03707961365580559,
0.028880618512630463,
0.03064446896314621,
-0.0032321095932275057,
0.012094970792531967,
0.0038790160324424505,
-0.003917782101780176,
-0.08272650092840195,
-0.013112576678395271,
-0.013500235974788666,
0.0134420869871974,
0.023918580263853073,
0.0900144949555397,
-0.07179450243711472,
0.024189941585063934,
0.04151831194758415,
-0.02680664137005806,
0.017958318814635277,
0.030276192352175713,
0.045046012848615646,
0.0013822477776557207,
0.011106439866125584,
-0.02002260461449623,
0.02246485836803913,
-0.024441920220851898,
0.0265158973634243,
0.052876729518175125,
-0.017192691564559937,
-0.005688900593668222,
-0.03545144572854042,
-0.03901791200041771,
0.009294131770730019,
0.022309793159365654,
0.028144067153334618,
-0.05089966952800751,
-0.06380872428417206,
0.04167337715625763,
-0.03704084828495979,
-0.005470842123031616,
0.010554024949669838,
0.0247714314609766,
0.05969953536987305,
-0.04217733442783356,
-0.01585526578128338,
0.023065729066729546,
-0.033125489950180054,
0.011213045567274094,
0.012676459737122059,
0.03692454844713211,
0.0558617077767849,
-0.0015445800963789225,
-0.008538196794688702,
-0.02541106753051281,
-0.0009225080139003694,
-0.01723145693540573,
-0.015244702808558941,
-0.00041037373011931777,
0.012027130462229252,
0.017900168895721436,
-0.0020303656347095966,
0.023356474936008453,
-0.041983503848314285,
0.03895976021885872,
0.010253588669002056,
-0.026263918727636337,
-0.004559842869639397,
-0.02283313311636448,
-0.02143756113946438,
-0.03289289399981499,
0.005126794334501028,
0.02415117621421814,
-0.0019067992689087987,
0.03669195622205734,
-0.010176056995987892,
-0.014701980166137218,
-0.024732664227485657,
0.06574702262878418,
-0.059428174048662186,
-0.04004520922899246,
-0.006895489990711212,
0.028008386492729187,
0.039599400013685226,
-0.031788066029548645,
-0.024248089641332626,
-0.022232262417674065,
-0.005359390284866095,
0.019838465377688408,
0.01773541420698166,
0.00748667074367404,
0.03502501919865608,
-0.026748493313789368,
0.050434477627277374,
0.04175090789794922,
0.03153608739376068,
-0.008625419810414314,
-0.01913098804652691,
0.0024046991020441055,
0.056985918432474136,
-0.05055077373981476,
-0.00816507451236248,
-0.024655133485794067,
-0.009584876708686352,
-0.027194300666451454,
-0.0268841739743948,
-0.0035034711472690105,
0.013471161015331745,
0.01849135011434555,
-0.02281375043094158,
-0.03405587002635002,
0.00031679036328569055,
0.01968340203166008,
-0.015225320123136044,
0.023201409727334976,
-0.023550303652882576,
0.03671133890748024,
-0.03599416837096214,
0.02541106753051281,
-0.019286051392555237,
-0.003515585558488965,
-0.03302857279777527,
-0.09234044700860977,
0.049310266971588135,
0.017405902966856956,
-0.05465996265411377,
0.022445473819971085,
-0.040161505341529846,
0.06361489742994308,
-0.06361489742994308,
0.010612173937261105,
-0.011339034885168076,
-0.03064446896314621,
0.035567741841077805,
0.10699397325515747,
-0.04841864854097366,
-0.024131793528795242,
0.028512343764305115,
-0.024422537535429,
-0.02353092096745968,
-0.008896781131625175,
-0.04663541540503502,
-0.041905973106622696,
0.01967371068894863,
-0.05225647613406181,
-0.036750104278326035,
0.035780955106019974,
-0.013112576678395271,
0.018064923584461212,
0.0018462275620549917,
-0.032485850155353546,
-0.0600096620619297,
-0.023569686338305473,
-0.043999332934617996,
-0.0029970910400152206,
-0.013238565996289253,
-0.019421732053160667,
0.003152154851704836,
-0.06756901741027832,
0.001912856474518776,
-0.01961556077003479,
0.020952986553311348,
-0.0056259059347212315,
0.00140889931935817,
0.013015661388635635,
0.011213045567274094,
0.0163979884237051,
0.07206586748361588,
0.006163783371448517,
0.07683407515287399,
0.007704729214310646,
-0.017396211624145508,
-0.012657077051699162,
-0.024034878239035606,
0.001490065478719771,
0.0008243817719630897,
-0.09373602271080017,
0.019421732053160667,
-0.015942489728331566,
0.024790814146399498,
0.05012435093522072,
-0.03411402180790901,
0.0663285106420517,
0.0600096620619297,
-0.02498464286327362,
-0.002312630182132125,
0.10358256846666336,
-0.01890808343887329,
-0.012909055687487125,
0.0363042950630188,
-0.0022472126875072718,
-0.02331770770251751,
-0.02973346970975399,
-0.04593762755393982,
-0.011532864533364773,
0.02541106753051281,
0.04244869574904442,
-0.03078014962375164,
0.02227102778851986,
0.00046973407734185457,
-0.0013846706133335829,
-0.010350503958761692,
0.011881758458912373,
0.043379079550504684,
0.019014690071344376,
0.0433015450835228,
0.007273457944393158,
-0.011998055502772331,
-0.02764010988175869,
-0.026748493313789368,
-0.029016299173235893,
0.02302696369588375,
-0.07458565384149551,
-0.032059427350759506,
0.07206586748361588,
-0.009298978373408318,
-0.02106928452849388,
-0.019441114738583565,
-0.004666449036449194,
-0.02498464286327362,
-0.06338229775428772,
-0.0021357606165111065,
0.027756407856941223,
0.034928105771541595,
0.044852182269096375,
-0.010205131955444813,
-0.03748665750026703,
-0.01759973354637623,
0.010602482594549656,
-0.05353575199842453,
-0.0008364961249753833,
0.014217405579984188,
0.08218377828598022,
0.04194473847746849,
0.008819249458611012,
-0.05481502786278725,
-0.007859792560338974,
-0.031148426234722137,
0.013568076305091381,
-0.0019116450566798449,
-0.03295104205608368,
-0.0017468897858634591,
0.06528183072805405,
-0.048883840441703796,
-0.03091583028435707,
0.0823388397693634,
0.015399766154587269,
-0.029210129752755165,
-0.020701007917523384,
-0.038572102785110474,
0.011232429184019566,
0.006958484649658203,
0.012434172444045544,
-0.03477304056286812,
-0.028861235827207565,
0.0028735247906297445,
0.04229363054037094,
-0.0006463007885031402,
0.021456943824887276,
-0.04523984342813492,
0.003299949923530221,
0.04787592589855194,
0.01507994718849659,
0.04628652334213257,
-0.03297042474150658,
-0.012298491783440113,
0.05248907208442688,
-0.029151981696486473,
0.02143756113946438,
0.03601355105638504,
-0.02498464286327362,
0.09226291626691818,
0.023201409727334976,
-0.03533514589071274,
0.017493126913905144,
0.017008552327752113,
0.05144239217042923,
0.04713937267661095,
0.020972369238734245,
-0.05900174751877785,
0.028667407110333443,
-0.04702307656407356,
0.007893713191151619,
-0.055512815713882446,
0.08551764488220215,
-0.05415600538253784,
-0.06663863360881805,
0.00619285786524415,
-0.04543367400765419,
0.00484816450625658,
-0.025042792782187462,
0.01018574833869934,
-0.012414789758622646,
-0.035141319036483765,
0.0310708936303854,
0.03992890939116478,
-0.04492971673607826,
-0.009439504705369473,
-0.04523984342813492,
-0.012395407073199749,
-0.024538835510611534,
0.07028263807296753,
-0.00037100209738127887,
-0.044774651527404785,
-0.004513808060437441,
-0.01127119455486536,
-0.025507982820272446,
0.025779344141483307,
0.05547405034303665,
0.0474494993686676,
0.021263113245368004,
-0.07086412608623505,
-0.025352919474244118,
0.005335161462426186,
0.0516362227499485,
0.06400255113840103,
-0.06365366280078888,
0.02589564211666584,
0.04613145813345909,
-0.0005972376675345004,
0.02498464286327362,
0.022154729813337326,
-0.01996445469558239,
-0.05202388018369675,
-0.030547553673386574,
-0.018879009410738945,
-0.03072200156748295,
0.06136646866798401,
0.009119685739278793,
0.034792423248291016,
0.004719752352684736,
-0.021612007170915604,
0.03601355105638504,
-0.01403326727449894,
0.0004070422728545964,
-0.003297527087852359,
0.0013350017834454775,
-0.007118394132703543,
0.009231137111783028,
0.014585682190954685,
0.008877398446202278,
-0.010786620900034904,
-0.00006708323053317145,
0.04070422798395157,
-0.04182844236493111,
0.03295104205608368,
-0.001788078574463725,
0.0048748161643743515,
-0.022794367745518684,
-0.037506040185689926,
0.0031012746039777994,
-0.00831044651567936,
0.024480685591697693,
0.06121140718460083,
-0.009454041719436646,
0.04458082094788551,
0.016223542392253876,
-0.03554835915565491,
0.033610064536333084,
-0.045549970120191574,
-0.01007914263755083,
0.02610885538160801,
-0.030489405617117882,
-0.09040215611457825,
-0.042758822441101074,
-0.07346144318580627,
-0.005325470119714737,
-0.015467606484889984,
0.008043930865824223,
-0.018026158213615417,
-0.015070255845785141,
0.0558617077767849,
-0.021883368492126465,
0.00963333435356617,
-0.02847357653081417,
-0.009143914096057415,
-0.06555318832397461,
0.009822318330407143,
0.06931348890066147,
-0.011687928810715675,
-0.049038905650377274,
0.08148598670959473,
-0.05528021976351738,
-0.006347921211272478,
0.07772569358348846,
-0.040587931871414185,
-0.048845075070858,
-0.03812629356980324,
-0.01668873429298401,
-0.04454205557703972,
-0.02072039060294628,
-0.017144232988357544,
0.01703762635588646,
0.005296395625919104,
0.0342109352350235,
-0.025217238813638687,
-0.022716837003827095,
-0.009972536005079746,
0.023046346381306648,
-0.01190114114433527,
-0.01054433360695839,
0.04376673698425293,
0.042836353182792664,
0.019092220813035965,
-0.021941518411040306,
-0.006289772689342499,
0.03037310764193535,
-0.004232755396515131,
0.01793893426656723,
-0.03671133890748024,
-0.005291549488902092,
-0.009725403040647507,
-0.011474715545773506,
-0.042603760957717896,
-0.020119518041610718,
0.019770625978708267,
-0.006701660342514515,
-0.005432076286524534,
0.0621417872607708,
0.014789203181862831,
-0.03362944722175598,
-0.04213856905698776,
0.012337258085608482,
0.019518647342920303,
-0.035083167254924774,
-0.02876432240009308,
0.0004712483496405184,
-0.009541264735162258,
-0.0009285652195103467,
0.012957512401044369,
-0.00324422400444746,
0.02771764062345028,
0.013810363598167896,
-0.008683568798005581,
-0.010108216665685177,
-0.002313841599971056,
-0.027465661987662315,
0.007292841095477343,
0.08481986075639725,
-0.010806003585457802,
-0.026612812653183937,
0.00031012744875624776,
0.029132597148418427,
-0.022774985060095787,
0.018462274223566055,
-0.009832009673118591,
0.007845255546271801,
-0.021534474566578865,
0.021515091881155968,
-0.0025997404009103775,
0.012065896764397621,
0.025372302159667015,
0.000132727887830697,
-0.009924078360199928,
0.015235011465847492,
-0.05345822125673294,
0.009352280758321285,
-0.005853655748069286,
0.03913420811295509,
0.021340645849704742,
0.04690677672624588,
-0.03000483103096485,
-0.032292019575834274,
-0.040239036083221436,
-0.033396851271390915,
0.05345822125673294,
0.02568243071436882,
0.005960261914879084,
0.014120490290224552,
-0.08737841248512268,
-0.013500235974788666,
0.014537224546074867,
0.025566132739186287,
-0.011542555876076221,
0.029151981696486473,
-0.005112257320433855,
-0.05144239217042923,
-0.10001610219478607,
0.008635111153125763,
-0.03171053156256676,
0.015545139089226723,
0.004121303092688322,
-0.04492971673607826,
0.0016075747553259134,
0.010476493276655674,
0.03072200156748295,
-0.05082213506102562,
0.022309793159365654,
0.02839604578912258,
-0.03676948696374893,
0.022309793159365654,
0.0467517152428627,
0.03742850571870804,
-0.03795184567570686,
0.02393796294927597,
-0.028589874505996704,
0.01064124796539545,
0.06590208411216736,
-0.005936033558100462,
-0.02422870695590973,
0.04489094763994217,
0.0146535225212574,
0.06741395592689514,
0.013965426944196224,
0.009483115747570992,
-0.018791785463690758,
-0.07508961111307144,
-0.047837160527706146,
-0.012647385708987713,
0.04543367400765419,
-0.02903568372130394,
0.039967674762010574,
-0.03240831941366196,
-0.031187191605567932,
-0.03159423545002937,
-0.07105795294046402,
0.0010769660584628582,
-0.029578406363725662,
-0.03289289399981499,
0.04035533592104912,
-0.04481341689825058,
-0.00987562071532011,
0.02463574893772602,
0.06128893792629242,
0.042061034590005875,
-0.005049262661486864,
0.03915359079837799,
-0.0075738937593996525,
0.010602482594549656,
-0.004259406588971615,
0.016998860985040665,
0.02610885538160801,
-0.02114681527018547,
0.055590346455574036,
-0.004680986516177654,
-0.07737679779529572,
0.042952653020620346,
-0.00703117111697793,
-0.05124856159090996,
-0.03171053156256676,
-0.054543666541576385,
-0.011087056249380112,
0.00900338776409626,
-0.017570659518241882,
-0.0009921655291691422,
-0.0036246145609766245,
0.03818444162607193,
0.0011223949259147048
] |
725,466 | pydomainextractor | __new__ | null | def __new__(
cls,
suffix_list_data: typing.Optional[str] = None,
):
if suffix_list_data is None:
if DomainExtractor.engine is None:
DomainExtractor.engine = pydomainextractor.DomainExtractor()
return DomainExtractor.engine
else:
return pydomainextractor.DomainExtractor(suffix_list_data)
| (cls, suffix_list_data: Optional[str] = None) | [
0.04916105046868324,
-0.02170056849718094,
-0.02927650511264801,
0.009314000606536865,
-0.01920582726597786,
0.004285540897399187,
0.012657135725021362,
0.012849744409322739,
0.04380469769239426,
0.007942811585962772,
0.03131265193223953,
0.05282978340983391,
-0.035531699657440186,
-0.0007767399656586349,
0.04108983278274536,
-0.011235500685870647,
-0.021407069638371468,
0.046409498900175095,
-0.017013758420944214,
-0.03797140717506409,
-0.01211599726229906,
0.038374967873096466,
0.002717156894505024,
0.0436946339905262,
0.0051316432654857635,
0.048757489770650864,
-0.008350958116352558,
0.002973968395963311,
0.0063514974899590015,
-0.01536282803863287,
0.03256002441048622,
-0.009667117148637772,
-0.023351497948169708,
0.07032965123653412,
0.0763096883893013,
0.03408254683017731,
-0.02135203778743744,
0.04050283506512642,
-0.048647426068782806,
-0.005305908154696226,
0.028891287744045258,
-0.04468519240617752,
0.02613973617553711,
-0.012702994979918003,
0.024305369704961777,
0.06024063006043434,
-0.005406798329204321,
-0.0024374157655984163,
0.0027974103577435017,
-0.0024672243744134903,
-0.0035907744895666838,
0.015307797119021416,
-0.007722686976194382,
-0.026414891704916954,
-0.020820071920752525,
0.08276665955781937,
0.06123118847608566,
0.11769302189350128,
0.0043359859846532345,
0.043657947331666946,
-0.01052009779959917,
-0.037476129829883575,
0.022581063210964203,
-0.059873756021261215,
0.01002481859177351,
0.0374210961163044,
-0.005746156442910433,
-0.028157541528344154,
-0.0028639063239097595,
0.023131374269723892,
0.013225790113210678,
-0.07014621049165726,
-0.04244726523756981,
0.01697707176208496,
0.08019854873418808,
-0.003171162912622094,
-0.0388152152299881,
-0.01339088287204504,
0.032193150371313095,
0.01092365849763155,
-0.015206906944513321,
-0.027570543810725212,
-0.0005480172694660723,
0.0024672243744134903,
0.05451740324497223,
-0.05800269916653633,
0.008855408988893032,
-0.032303210347890854,
0.019224170595407486,
0.03256002441048622,
-0.08452765643596649,
-0.02173725515604019,
-0.01478500198572874,
-0.0005414250190369785,
-0.023773401975631714,
-0.05565470829606056,
0.0037168872077018023,
0.016591854393482208,
0.041823580861091614,
0.04329107329249382,
0.03710925579071045,
0.06053412705659866,
0.004838144406676292,
0.033036958426237106,
-0.007553008385002613,
0.042117077857255936,
-0.009194767102599144,
0.016646884381771088,
-0.07326463609933853,
0.0018263421952724457,
-0.030413813889026642,
0.06827516108751297,
0.06060750409960747,
0.015463718213140965,
-0.04035608470439911,
-0.021407069638371468,
-0.051545727998018265,
0.028396008536219597,
0.007039385382086039,
-0.0030611008405685425,
-0.055838145315647125,
0.05664527043700218,
-0.14946426451206207,
0.04861073940992355,
-0.003751281648874283,
-0.05664527043700218,
0.04061289504170418,
-0.06607391685247421,
0.025424333289265633,
-0.046959809958934784,
0.08019854873418808,
0.05855301022529602,
-0.016490964218974113,
0.00421445956453681,
0.06075425073504448,
-0.020673321560025215,
0.015894794836640358,
0.05220609903335571,
-0.08570165187120438,
0.02588292583823204,
-0.047913677990436554,
0.007195306476205587,
0.07025627791881561,
0.006291880737990141,
-0.012638792395591736,
0.03166118264198303,
-0.010244942270219326,
-0.006810089573264122,
-0.023168060928583145,
0.008777448907494545,
-0.028139198198914528,
-0.02672673389315605,
0.03301861509680748,
0.009231454692780972,
-0.01984785683453083,
-0.033036958426237106,
-0.02797410450875759,
-0.028451040387153625,
0.011079579591751099,
-0.009382789954543114,
0.0232414361089468,
-0.016545994207262993,
-0.042777448892593384,
-0.08430752903223038,
-0.020765040069818497,
-0.02527758479118347,
0.013088212348520756,
-0.05715889111161232,
0.020178042352199554,
0.05730564147233963,
-0.001937550725415349,
0.00312988949008286,
-0.004070003051310778,
0.05495765060186386,
-0.0249473974108696,
0.052536286413669586,
0.013005665503442287,
0.06717453896999359,
0.04593256115913391,
0.047913677990436554,
0.03501807525753975,
0.017628271132707596,
-0.021223632618784904,
0.00539762619882822,
0.05470084026455879,
0.06269868463277817,
-0.007621796801686287,
0.0680183470249176,
-0.005420555826276541,
0.03589857369661331,
-0.024672243744134903,
-0.03312867879867554,
0.013400054536759853,
-0.023461559787392616,
0.007919881492853165,
-0.015628810971975327,
-0.006301052402704954,
0.0011992177460342646,
-0.053490158170461655,
0.04310763627290726,
-0.015491233207285404,
0.06607391685247421,
0.022415971383452415,
-0.025956301018595695,
-0.07293444871902466,
0.05576477199792862,
0.011978419497609138,
0.06999946385622025,
-0.0707332119345665,
-0.012858916074037552,
0.0603506900370121,
-0.018820609897375107,
-0.06948584318161011,
0.007314540445804596,
0.004037901293486357,
-0.04358457028865814,
-0.001203803694806993,
-0.004657000303268433,
0.03910871595144272,
0.013721069321036339,
0.05158241465687752,
0.013730240985751152,
-0.008607769384980202,
0.030560562387108803,
0.0173531174659729,
0.014867548830807209,
0.040429458022117615,
-0.01005233358591795,
0.021535474807024002,
-0.04347451031208038,
-0.03729269281029701,
-0.0190590787678957,
0.01583976298570633,
0.007227407768368721,
0.08790288865566254,
-0.06467980146408081,
0.03098246641457081,
0.0395122766494751,
-0.03910871595144272,
0.03542163595557213,
0.0280841663479805,
0.026213111355900764,
0.0047785271890461445,
0.018967360258102417,
-0.007085244636982679,
0.02289290726184845,
-0.02802913635969162,
0.013179930858314037,
0.035990290343761444,
-0.00689722178503871,
0.010740221478044987,
-0.0029464527033269405,
-0.01891232840716839,
0.021957378834486008,
0.03098246641457081,
0.04541894048452377,
-0.042667388916015625,
-0.05991044268012047,
0.0381915308535099,
-0.0443916954100132,
-0.024562180042266846,
0.00844267662614584,
0.01653682254254818,
0.05271972343325615,
-0.04615268483757973,
-0.0024855679366737604,
0.006557863671332598,
-0.05602158233523369,
0.011565687134861946,
0.028157541528344154,
-0.0058057731948792934,
0.01929754577577114,
-0.0031574051827192307,
0.015261937864124775,
-0.00669544143602252,
0.005672781728208065,
-0.0029372810386121273,
-0.06574372947216034,
-0.001016354188323021,
0.021755598485469818,
0.023901809006929398,
0.008493121713399887,
0.02245265804231167,
-0.06148799881339073,
0.07579606771469116,
0.012602104805409908,
-0.024378744885325432,
0.009712976403534412,
0.0064340438693761826,
-0.029991907998919487,
-0.05811276286840439,
0.0031321824062615633,
-0.0032491234596818686,
-0.010694362223148346,
0.00650741858407855,
-0.02713029459118843,
-0.004916104953736067,
-0.02144375629723072,
0.0534534677863121,
-0.040979769080877304,
-0.05635176971554756,
-0.03155112266540527,
0.06335905194282532,
0.03855840489268303,
-0.035733480006456375,
-0.041566766798496246,
-0.004044780507683754,
-0.0021817509550601244,
0.036577288061380386,
0.01296897791326046,
0.013821959495544434,
0.035733480006456375,
-0.0631389319896698,
0.03654060140252113,
0.02881791442632675,
0.01269382331520319,
-0.019682763144373894,
-0.007126517593860626,
0.014821689575910568,
0.03298192843794823,
-0.02428702637553215,
-0.0015660912031307817,
-0.023700028657913208,
-0.030303752049803734,
0.002962503582239151,
0.01703210175037384,
-0.010951174423098564,
0.014684111811220646,
0.015894794836640358,
-0.02727704495191574,
-0.0342843271791935,
-0.030413813889026642,
0.003393579972907901,
-0.0026575399097055197,
0.01860048621892929,
-0.04743674397468567,
0.049307797104120255,
-0.008960884995758533,
0.024011870846152306,
-0.017664959654211998,
-0.03632047772407532,
-0.00895171333104372,
-0.07836417853832245,
0.04839061573147774,
0.018022660166025162,
-0.036779068410396576,
0.007915295660495758,
-0.04153008013963699,
0.04398813098669052,
-0.06875209510326385,
0.00266900472342968,
-0.05290316045284271,
-0.014023739844560623,
-0.017921769991517067,
0.10764068365097046,
-0.08394065499305725,
-0.013179930858314037,
0.035843539983034134,
-0.020361479371786118,
-0.005814944859594107,
-0.01645427569746971,
-0.028946319594979286,
-0.03208308666944504,
0.0201046671718359,
-0.04270407557487488,
-0.031037498265504837,
0.030487187206745148,
-0.011721608228981495,
0.020471541211009026,
-0.011226329021155834,
-0.013271649368107319,
-0.046813059598207474,
-0.00467075826600194,
-0.03487132489681244,
0.033440519124269485,
-0.00556271942332387,
0.006489075254648924,
-0.014528190717101097,
-0.03496304526925087,
0.00714486138895154,
-0.04343782365322113,
0.029001349583268166,
0.002061370527371764,
0.0037650393787771463,
0.013693553395569324,
0.014564878307282925,
0.0024328299332410097,
0.07594281435012817,
0.021278662607073784,
0.03494470193982124,
-0.0019020098261535168,
-0.017683302983641624,
-0.0020969114266335964,
-0.025112491101026535,
-0.0005812651943415403,
0.027020232751965523,
-0.07418182492256165,
0.023755058646202087,
0.0015110602835193276,
0.02039816603064537,
0.01909576542675495,
-0.018875641748309135,
0.046262748539447784,
0.05759913846850395,
-0.00758052384480834,
-0.05745239183306694,
0.08760939538478851,
0.003657270222902298,
-0.015885623171925545,
0.05315997079014778,
-0.007942811585962772,
-0.03479795157909393,
-0.013876990415155888,
-0.026543298736214638,
-0.009749663062393665,
0.04442838206887245,
0.027405450120568275,
-0.018673861399292946,
0.004579039756208658,
-0.0012416375102475286,
-0.008814135566353798,
0.006677097640931606,
0.009446992538869381,
0.007199892308562994,
0.03382573649287224,
0.04938117414712906,
-0.002428244100883603,
-0.03976908698678017,
-0.024562180042266846,
-0.024984085932374,
-0.029203129932284355,
-0.006704613100737333,
-0.05536121129989624,
0.005393040366470814,
0.08144591748714447,
-0.01157485879957676,
-0.021957378834486008,
-0.005645265802741051,
-0.025717832148075104,
-0.04523550346493721,
-0.0748421922326088,
-0.0534534677863121,
0.038631778210401535,
0.07190720736980438,
0.029368223622441292,
-0.03586188331246376,
-0.03215646371245384,
-0.016701916232705116,
0.0402827113866806,
-0.05147235095500946,
0.0022688833996653557,
0.014161317609250546,
0.039732400327920914,
0.048500675708055496,
0.02054491639137268,
-0.03026706352829933,
0.019040735438466072,
-0.028432697057724,
0.014188832603394985,
0.006076342426240444,
-0.05855301022529602,
-0.014069599099457264,
0.0762363150715828,
-0.06691772490739822,
-0.027001889422535896,
0.10764068365097046,
0.012363636866211891,
-0.020067980512976646,
-0.005892905406653881,
-0.048060428351163864,
0.0013184515992179513,
0.009492851793766022,
0.03536660596728325,
-0.04343782365322113,
-0.030157001689076424,
0.023057999089360237,
0.04593256115913391,
0.004175479058176279,
0.05367359146475792,
-0.03485298156738281,
0.021663879975676537,
0.07733693718910217,
0.012437012046575546,
0.026616672053933144,
-0.03437604755163193,
-0.046666309237480164,
0.029313193634152412,
-0.02683679573237896,
0.01732560060918331,
0.03501807525753975,
0.01955435797572136,
0.0901041328907013,
0.007250337395817041,
-0.04706986993551254,
0.01630752719938755,
0.011776639148592949,
0.06467980146408081,
0.021828973665833473,
0.016931211575865746,
-0.04101645573973656,
0.023828433826565742,
-0.05936013162136078,
0.007718101143836975,
-0.05649852007627487,
0.05022498220205307,
-0.06750472635030746,
-0.07799730449914932,
0.034632857888936996,
-0.05257297307252884,
0.004466685000807047,
-0.033238738775253296,
-0.005723226815462112,
-0.022782843559980392,
-0.029001349583268166,
0.020178042352199554,
0.045308876782655716,
-0.05150904133915901,
0.0015626518288627267,
-0.05980037897825241,
0.028799569234251976,
-0.019187483936548233,
0.0659271702170372,
-0.029368223622441292,
-0.028120853006839752,
-0.0016280011041089892,
-0.026653360575437546,
-0.029496628791093826,
0.02408524602651596,
0.052536286413669586,
0.041713517159223557,
0.008768276311457157,
-0.06581710278987885,
-0.003641219576820731,
0.030046939849853516,
0.004180064890533686,
0.04721662029623985,
-0.04754680395126343,
0.013849474489688873,
0.07418182492256165,
-0.009749663062393665,
0.006534934043884277,
0.01424386352300644,
-0.018701376393437386,
-0.06456973403692245,
-0.022672781720757484,
-0.052793096750974655,
-0.02579120732843876,
0.06368923932313919,
0.03140437230467796,
0.049748048186302185,
0.015087672509253025,
-0.030743999406695366,
0.02588292583823204,
-0.018985703587532043,
-0.0008300513145513833,
-0.008846237324178219,
0.012501214630901814,
0.008323442190885544,
-0.02912975661456585,
0.01586727984249592,
-0.022966280579566956,
-0.022305909544229507,
0.00800701417028904,
0.04596925154328346,
-0.006530348211526871,
0.037787970155477524,
-0.008846237324178219,
-0.014904236420989037,
-0.02050822786986828,
-0.026524953544139862,
-0.004285540897399187,
-0.021480442956089973,
0.0045331805013120174,
0.06647747755050659,
-0.009593741968274117,
0.03980577364563942,
0.01680280640721321,
-0.0582595132291317,
0.04703318327665329,
-0.06427624076604843,
0.0010140612721443176,
0.037934720516204834,
-0.03621041402220726,
-0.056535206735134125,
-0.04039277136325836,
-0.08232641220092773,
-0.017875911667943,
0.002250539604574442,
-0.015647154301404953,
-0.03621041402220726,
-0.01052009779959917,
0.05580145865678787,
-0.025571083649992943,
0.006048826966434717,
-0.00980469398200512,
-0.015371999703347683,
-0.04244726523756981,
-0.019370920956134796,
0.07209064066410065,
-0.027405450120568275,
-0.04009927436709404,
0.08841651678085327,
-0.04310763627290726,
-0.004957378376275301,
0.06541354209184647,
-0.06644079089164734,
-0.040979769080877304,
-0.023021312430500984,
-0.028139198198914528,
-0.04659293591976166,
-0.01539034303277731,
0.018472081050276756,
0.0013688968028873205,
0.005957108456641436,
0.03215646371245384,
-0.024984085932374,
-0.014922579750418663,
-0.005269220564514399,
-0.002744672354310751,
-0.03092743642628193,
-0.0007595428032800555,
0.02823091670870781,
0.033091988414525986,
0.04567575082182884,
-0.035183168947696686,
-0.02164553664624691,
0.043217699974775314,
0.009350688196718693,
0.023810090497136116,
-0.020178042352199554,
0.001819463213905692,
-0.008098732680082321,
-0.03800809383392334,
-0.01763744279742241,
-0.015261937864124775,
0.02753385715186596,
-0.00736957136541605,
0.006553277838975191,
0.06387268006801605,
-0.010244942270219326,
-0.018838955089449883,
-0.04354788362979889,
0.018242785707116127,
0.006145131308585405,
-0.05561802163720131,
-0.02907472476363182,
0.005461829248815775,
0.01970110647380352,
-0.011354735121130943,
0.012803885154426098,
0.002204680349677801,
-0.01339088287204504,
0.0039461832493543625,
0.013280821032822132,
-0.010868627578020096,
0.006369841285049915,
-0.0034646615386009216,
-0.005759913939982653,
0.06310224533081055,
-0.02922147512435913,
-0.022232534363865852,
-0.001046735909767449,
0.02503911592066288,
-0.029790127649903297,
0.029643379151821136,
0.012235231697559357,
0.009593741968274117,
-0.010391691699624062,
0.03826490789651871,
-0.010896142572164536,
-0.008451848290860653,
0.018893985077738762,
-0.0263782050460577,
-0.0030702725052833557,
0.01601402834057808,
-0.08137254416942596,
0.011143782176077366,
-0.00874993298202753,
0.04908767342567444,
0.021957378834486008,
0.047253306955099106,
-0.026763422414660454,
-0.005007823463529348,
-0.021608849987387657,
-0.021333694458007812,
0.05495765060186386,
0.03562341630458832,
-0.008048287592828274,
0.0326150543987751,
-0.05642514303326607,
-0.02190234884619713,
0.013803615234792233,
0.02239762805402279,
-0.02848772704601288,
0.0638359859585762,
-0.0038040196523070335,
-0.04604262486100197,
-0.09362611919641495,
-0.009703803807497025,
-0.038631778210401535,
-0.005837874487042427,
0.03833828121423721,
-0.04145670682191849,
0.0009567373199388385,
0.03995252400636673,
-0.0015271109296008945,
-0.04138332977890968,
0.028799569234251976,
0.01650930754840374,
-0.041970327496528625,
0.022085784003138542,
0.04651955887675285,
0.0457858145236969,
-0.017096305266022682,
0.030157001689076424,
-0.04215376451611519,
0.0336606428027153,
0.04523550346493721,
-0.002419072203338146,
-0.03496304526925087,
0.05246290937066078,
-0.017949286848306656,
0.04343782365322113,
0.0036045322194695473,
0.012647964060306549,
-0.03301861509680748,
-0.05033504590392113,
-0.04582250118255615,
-0.020489884540438652,
0.023076342418789864,
-0.02962503582239151,
0.024176964536309242,
0.002398435492068529,
-0.053196657449007034,
-0.018022660166025162,
-0.08093229681253433,
-0.014207175932824612,
-0.04442838206887245,
-0.044208258390426636,
0.03197302669286728,
-0.03298192843794823,
-0.019187483936548233,
0.038374967873096466,
0.08687564730644226,
0.012877260334789753,
0.009015915915369987,
0.030743999406695366,
-0.03402751684188843,
0.031991370022296906,
0.005535203963518143,
-0.010951174423098564,
-0.008140006102621555,
-0.009038846008479595,
0.05851632356643677,
-0.04053952172398567,
-0.07946480065584183,
0.046409498900175095,
-0.014904236420989037,
-0.020728353410959244,
-0.04108983278274536,
-0.0340091735124588,
-0.005287564359605312,
0.02762557379901409,
-0.028451040387153625,
-0.0201413556933403,
-0.00602131150662899,
0.04064958542585373,
-0.002204680349677801
] |
725,536 | syne_tune.report | Reporter |
Callback for reporting metric values from a training script back to Syne Tune.
Example:
.. code-block:: python
from syne_tune import Reporter
report = Reporter()
for epoch in range(1, epochs + 1):
# ...
report(epoch=epoch, accuracy=accuracy)
:param add_time: If True (default), the time (in secs) since creation of the
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_TIME`
:param add_cost: If True (default), estimated dollar cost since creation of
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_COST`. This is available for
SageMaker backend only. Requires ``add_time=True``.
| class Reporter:
"""
Callback for reporting metric values from a training script back to Syne Tune.
Example:
.. code-block:: python
from syne_tune import Reporter
report = Reporter()
for epoch in range(1, epochs + 1):
# ...
report(epoch=epoch, accuracy=accuracy)
:param add_time: If True (default), the time (in secs) since creation of the
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_TIME`
:param add_cost: If True (default), estimated dollar cost since creation of
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_COST`. This is available for
SageMaker backend only. Requires ``add_time=True``.
"""
add_time: bool = True
add_cost: bool = True
def __post_init__(self):
if self.add_time:
self.start = perf_counter()
self.iter = 0
# TODO dollar-cost computation is not available for file-based backends, what would be
# needed to add support for those backends will be to add a way to access instance-type
# information.
if self.add_cost:
# add instance_type and instance count so that cost can be computed easily
self.instance_type = os.getenv(
f"SM_HP_{ST_INSTANCE_TYPE.upper()}", None
)
self.instance_count = literal_eval(
os.getenv(f"SM_HP_{ST_INSTANCE_COUNT.upper()}", "1")
)
if self.instance_type is not None:
logger.info(
f"detected instance-type/instance-count to {self.instance_type}/{self.instance_count}"
)
instance_infos = InstanceInfos()
if self.instance_type in instance_infos.instances:
cost_per_hour = instance_infos(
instance_type=self.instance_type
).cost_per_hour
self.dollar_cost = cost_per_hour * self.instance_count / 3600
def __call__(self, **kwargs) -> None:
"""Report metric values from training function back to Syne Tune
A time stamp :const:`~syne_tune.constants.ST_WORKER_TIMESTAMP` is added.
See :attr:`add_time`, :attr:`add_cost` comments for other automatically
added metrics.
:param kwargs: Keyword arguments for metrics to be reported, for instance
:code:`report(epoch=1, loss=1.2)`. Values must be serializable with json,
keys should not start with ``st_`` which is a reserved namespace for
Syne Tune internals.
"""
self._check_reported_values(kwargs)
assert not any(key.startswith("st_") for key in kwargs), (
"The metric prefix 'st_' is used by Syne Tune internals, "
"please use a metric name that does not start with 'st_'."
)
kwargs[ST_WORKER_TIMESTAMP] = time()
if self.add_time:
seconds_spent = perf_counter() - self.start
kwargs[ST_WORKER_TIME] = seconds_spent
# second cost will only be there if we were able to properly detect the instance-type and instance-count
# from the environment
if hasattr(self, "dollar_cost"):
kwargs[ST_WORKER_COST] = seconds_spent * self.dollar_cost
kwargs[ST_WORKER_ITER] = self.iter
self.iter += 1
_report_logger(**kwargs)
@staticmethod
def _check_reported_values(kwargs: Dict[str, Any]):
assert all(
v is not None for v in kwargs.values()
), f"Invalid value in report: kwargs = {kwargs}"
| (add_time: bool = True, add_cost: bool = True) -> None | [
0.04234132915735245,
-0.03904589265584946,
-0.045297231525182724,
0.04681512713432312,
-0.005447451490908861,
-0.016207540407776833,
-0.05907813459634781,
0.017216144129633904,
0.0019111017463728786,
-0.027861392125487328,
-0.001557841314934194,
0.033034224063158035,
0.05416494235396385,
-0.016227513551712036,
-0.012053297832608223,
-0.0026113814674317837,
0.012662453576922417,
-0.01170378178358078,
0.018035009503364563,
-0.00931708887219429,
0.0038296931888908148,
-0.0040468922816216946,
0.01774541102349758,
0.058798521757125854,
-0.002494043903425336,
0.03577043116092682,
0.0523674339056015,
-0.03648943826556206,
-0.0017538197571411729,
0.023008117452263832,
-0.028620339930057526,
-0.05436466634273529,
-0.04353966563940048,
0.04250110685825348,
0.05332610756158829,
-0.030717434361577034,
-0.041861992329359055,
0.04557684436440468,
-0.12910109758377075,
-0.0028485527727752924,
0.018494373187422752,
-0.036070019006729126,
0.05584261938929558,
-0.002452851040288806,
-0.028560424223542213,
0.03966503590345383,
-0.03249497339129448,
0.02145027555525303,
0.0015178966568782926,
-0.10433541983366013,
-0.006361185107380152,
0.00414425740018487,
0.004134271293878555,
0.05704095959663391,
-0.041662268340587616,
0.04050387442111969,
0.059877026826143265,
0.026003966107964516,
0.008902663365006447,
-0.013900737278163433,
0.01657702960073948,
0.000544245820492506,
0.03259483352303505,
0.007304877508431673,
-0.0037398177664726973,
-0.04481789469718933,
-0.0574803501367569,
0.0171961709856987,
0.007509593851864338,
0.04050387442111969,
0.04649557173252106,
-0.05899824574589729,
0.024366235360503197,
0.00010313832899555564,
0.02330770157277584,
-0.02238897606730461,
-0.07689344882965088,
-0.026103828102350235,
-0.013051914051175117,
-0.0042665875516831875,
0.027441972866654396,
0.022508809342980385,
-0.016397278755903244,
-0.045976292341947556,
0.04693496227264404,
-0.027142388746142387,
0.04234132915735245,
0.00012420289567671716,
-0.05600239709019661,
0.0538853295147419,
-0.06443072110414505,
0.019173432141542435,
0.03644949197769165,
0.015388675965368748,
0.001486689900048077,
-0.0456966795027256,
-0.036828964948654175,
-0.04449833929538727,
-0.040324121713638306,
-0.011953435838222504,
0.018284663558006287,
-0.02402670681476593,
0.06331226974725723,
-0.0070352512411773205,
0.010555373504757881,
-0.05616217479109764,
-0.03916572779417038,
-0.007100161164999008,
0.025484686717391014,
0.021470248699188232,
-0.0366891585290432,
-0.0022331555373966694,
-0.057160791009664536,
-0.06558911502361298,
-0.0011952187633141875,
-0.010465498082339764,
-0.04326005280017853,
0.006715693976730108,
-0.021630026400089264,
-0.015438606962561607,
-0.029079703614115715,
0.039964620023965836,
-0.038786254823207855,
0.04357961192727089,
-0.057360514998435974,
-0.04717462882399559,
0.04553689807653427,
0.07198026031255722,
0.05352582782506943,
-0.04729446396231651,
0.03587029501795769,
-0.012732356786727905,
-0.014200322329998016,
0.03489165008068085,
0.0451773963868618,
-0.004608613904565573,
0.02638344094157219,
0.04681512713432312,
-0.021989529952406883,
0.020751245319843292,
0.0733783170580864,
0.010944833979010582,
-0.03632965683937073,
-0.040623705834150314,
0.05056992545723915,
0.011963422410190105,
-0.06383154541254044,
0.027082471176981926,
-0.016037777066230774,
-0.006710701156407595,
-0.0020072185434401035,
-0.027541834861040115,
0.013840820640325546,
0.011913491412997246,
-0.006775611080229282,
-0.008702940307557583,
-0.014849423430860043,
0.008747878484427929,
0.029658902436494827,
-0.03860650211572647,
-0.04393911361694336,
-0.018294649198651314,
0.013021955266594887,
-0.034572094678878784,
-0.02504529431462288,
0.05420488864183426,
-0.0842033177614212,
0.030258070677518845,
-0.02602393925189972,
0.05332610756158829,
-0.02023196406662464,
-0.056801289319992065,
-0.026862775906920433,
0.02402670681476593,
-0.013900737278163433,
0.07070203125476837,
0.0569610670208931,
0.015848038718104362,
0.01774541102349758,
0.038067251443862915,
-0.002364223822951317,
-0.03782758116722107,
-0.09099391102790833,
0.022768449038267136,
-0.02418648451566696,
-0.010815013200044632,
0.01591794192790985,
-0.026463329792022705,
-0.020671356469392776,
0.029838653281331062,
0.05867869034409523,
0.018644165247678757,
0.016197554767131805,
0.032255303114652634,
0.02125055342912674,
-0.014849423430860043,
0.019313236698508263,
0.005232749041169882,
-0.005157852545380592,
0.04481789469718933,
-0.0343923419713974,
0.05208782106637955,
0.01329158153384924,
-0.04821319133043289,
-0.006745652295649052,
-0.021290497854351997,
0.020112130790948868,
0.0198824480175972,
-0.11208468675613403,
0.024006733670830727,
-0.0005117908003740013,
-0.026962637901306152,
-0.03069746308028698,
0.0888369008898735,
0.05652167648077011,
-0.06798579543828964,
0.09642638266086578,
0.05064981430768967,
-0.0008943856228142977,
-0.018953735008835793,
0.058079518377780914,
-0.04485784098505974,
-0.026103828102350235,
-0.0028335736133158207,
0.024066651239991188,
-0.002550216158851981,
0.06862490624189377,
0.001452986616641283,
0.026603136211633682,
-0.06063597649335861,
-0.018714068457484245,
0.007304877508431673,
0.05476411432027817,
0.04973108693957329,
-0.012123201042413712,
-0.02157011069357395,
-0.0036574318073689938,
0.05472416803240776,
-0.0012701150262728333,
-0.0065908669494092464,
0.0017176198307424784,
0.016067733988165855,
-0.02812103182077408,
-0.037547968327999115,
-0.03355350345373154,
-0.02125055342912674,
0.07996919006109238,
0.06886457651853561,
-0.05448450148105621,
0.013691028580069542,
0.08564132452011108,
-0.024206457659602165,
0.0044738007709383965,
0.0015391171909868717,
-0.07577499747276306,
-0.000933706178329885,
0.006036635022610426,
0.007844130508601665,
0.054284777492284775,
-0.024885516613721848,
-0.021829750388860703,
0.025904104113578796,
-0.05652167648077011,
0.038366835564374924,
-0.0328345000743866,
0.012412799522280693,
-0.008478251285851002,
-0.0044688074849545956,
-0.025844188407063484,
0.06275304406881332,
-0.008248570375144482,
0.04290055111050606,
-0.03049773909151554,
0.009966189973056316,
-0.0462159588932991,
-0.018873846158385277,
-0.013451360166072845,
-0.028041142970323563,
-0.02464584819972515,
0.01088491640985012,
0.046335794031620026,
-0.02145027555525303,
0.039145756512880325,
-0.024426152929663658,
-0.0001001736891339533,
-0.06143486872315407,
0.00491319177672267,
0.03702868893742561,
-0.0030482760630548,
-0.021370386704802513,
-0.013800876215100288,
0.009791431948542595,
0.05412499979138374,
0.0023592307697981596,
0.05064981430768967,
0.02109077386558056,
-0.045457009226083755,
-0.045457009226083755,
0.0410631000995636,
-0.023946816101670265,
0.05060986801981926,
-0.01745581068098545,
-0.00500057078897953,
0.0029908556025475264,
-0.028840037062764168,
0.025065267458558083,
0.024545986205339432,
-0.026862775906920433,
0.018364552408456802,
-0.01978258788585663,
-0.019892435520887375,
0.02063141018152237,
0.030058348551392555,
0.0228483397513628,
-0.0072499536909163,
0.016027789562940598,
-0.023008117452263832,
-0.021470248699188232,
0.007180050481110811,
0.062233760952949524,
-0.03660926967859268,
0.04433856159448624,
0.023167897015810013,
-0.0030707449186593294,
0.017375921830534935,
-0.05280682444572449,
-0.005607230123132467,
0.008248570375144482,
0.0053975204937160015,
-0.011124584823846817,
-0.047214575111866,
-0.06103542447090149,
0.055203504860401154,
0.00409432640299201,
0.0034477224107831717,
0.030218126252293587,
-0.006540936417877674,
0.02464584819972515,
-0.009162303991615772,
-0.020611438900232315,
0.035910237580537796,
0.0164172500371933,
-0.06586872786283493,
0.043659500777721405,
-0.01137423887848854,
-0.03253491595387459,
-0.013970640487968922,
-0.02546471357345581,
0.06706706434488297,
0.007185043767094612,
-0.01627744361758232,
0.010315705090761185,
-0.014689644798636436,
0.1149607002735138,
0.06750645488500595,
-0.030717434361577034,
0.004803344141691923,
-0.08332453668117523,
-0.02226914092898369,
-0.07777222990989685,
-0.05720073729753494,
0.043659500777721405,
-0.01699644885957241,
0.050330258905887604,
0.02520507387816906,
-0.022369002923369408,
0.051248982548713684,
-0.0313166044652462,
0.057879794389009476,
-0.029019787907600403,
-0.02049160562455654,
-0.05632195621728897,
0.003981982357800007,
-0.006875472608953714,
0.001732599106617272,
0.01611766591668129,
-0.007045237347483635,
0.012742343358695507,
-0.0641910508275032,
-0.010170905850827694,
0.056801289319992065,
0.014829451218247414,
-0.044218726456165314,
0.0320955254137516,
0.06359188258647919,
-0.02690272033214569,
-0.03964506462216377,
0.019692711532115936,
0.03994464874267578,
-0.009217227809131145,
0.04469806328415871,
0.006256330758333206,
-0.03599013015627861,
0.010655234567821026,
0.00862804427742958,
-0.013331526890397072,
-0.025324907153844833,
0.04090331867337227,
-0.03638957440853119,
-0.014439990743994713,
-0.0009087407379411161,
-0.05172831937670708,
0.028840037062764168,
0.045816510915756226,
-0.019992297515273094,
-0.017825299873948097,
0.05564289540052414,
-0.009846355766057968,
-0.011064667254686356,
0.09402970224618912,
-0.014739574864506721,
-0.04270083084702492,
-0.049052029848098755,
-0.03151632845401764,
-0.06810562312602997,
0.0007770482334308326,
-0.032115496695041656,
0.03391300514340401,
0.02951909601688385,
-0.0022007005754858255,
0.013860792852938175,
0.020711300894618034,
0.0795697420835495,
0.07669372856616974,
0.08348431438207626,
-0.0195129606872797,
-0.03489165008068085,
-0.03253491595387459,
0.00985634233802557,
0.009386992081999779,
-0.02089105173945427,
-0.015558440238237381,
-0.04765396565198898,
-0.008942607790231705,
0.00971154309809208,
-0.0003579414915293455,
-0.01363111101090908,
-0.03700871765613556,
0.00007879706390667707,
0.012742343358695507,
-0.03301425278186798,
-0.01968272589147091,
0.035450875759124756,
0.008328459225594997,
-0.01647716760635376,
-0.008613064885139465,
-0.04593634605407715,
-0.013810861855745316,
-0.048692528158426285,
-0.035191234201192856,
0.0095617501065135,
-0.016037777066230774,
0.00461610360071063,
0.004778378643095493,
0.018154842779040337,
-0.056441787630319595,
-0.03141646459698677,
-0.05005064606666565,
0.012272993102669716,
-0.0027312154415994883,
0.00010594693594612181,
0.024765681475400925,
-0.02402670681476593,
-0.01376093178987503,
-0.024346264079213142,
0.005172831937670708,
0.04625590145587921,
0.032375138252973557,
-0.011254404671490192,
0.0002980245335493237,
0.029798706993460655,
0.022928228601813316,
-0.014240266755223274,
-0.015178966335952282,
-0.0065908669494092464,
0.0274619460105896,
-0.03994464874267578,
-0.022988146170973778,
-0.05612223222851753,
-0.026003966107964516,
0.05180820822715759,
0.008777836337685585,
0.050170477479696274,
0.01483943685889244,
0.01647716760635376,
-0.012043311260640621,
0.0421016588807106,
-0.05368560925126076,
0.026982609182596207,
0.008323466405272484,
-0.0723797008395195,
0.016916558146476746,
0.07553532719612122,
0.00045031349873170257,
-0.06391143798828125,
0.006715693976730108,
0.06626816838979721,
0.02141033113002777,
0.022608671337366104,
0.013870779424905777,
0.022149307653307915,
-0.024565959349274635,
0.001025454024784267,
0.023607287555933,
0.04290055111050606,
-0.022608671337366104,
-0.05460433289408684,
0.076494000852108,
-0.05612223222851753,
0.030917158350348473,
0.009237200021743774,
0.011973408050835133,
0.0035101359244436026,
0.021190635859966278,
0.016816696152091026,
-0.05224759876728058,
-0.015149007551372051,
-0.016327375546097755,
-0.006965348031371832,
-0.005836911965161562,
-0.008343438617885113,
0.057520292699337006,
0.020930996164679527,
-0.028580395504832268,
0.024765681475400925,
0.009047462604939938,
-0.005212776828557253,
0.006530949845910072,
0.0186042208224535,
0.04937158524990082,
0.015029174275696278,
-0.021889667958021164,
-0.007205015979707241,
0.011214460246264935,
0.012462730519473553,
0.007854116149246693,
0.0026987602468580008,
-0.02232905849814415,
0.03533104062080383,
-0.04757407680153847,
0.03249497339129448,
-0.02386692725121975,
0.02386692725121975,
-0.06247343122959137,
-0.012692412361502647,
0.001075384789146483,
-0.0035600666888058186,
0.03531106933951378,
-0.017385907471179962,
-0.04953136295080185,
0.011264391243457794,
-0.028760146349668503,
0.04322011023759842,
-0.005702098365873098,
-0.010755096562206745,
0.029658902436494827,
0.02510521188378334,
0.032874446362257004,
0.0392855629324913,
0.03449220582842827,
-0.04126282036304474,
-0.031336575746536255,
0.0020658872090280056,
-0.001389324781484902,
0.0069154174998402596,
0.0027112429961562157,
0.022468864917755127,
0.03377319872379303,
-0.08152702450752258,
-0.05256715789437294,
0.018134869635105133,
0.025684408843517303,
-0.017895203083753586,
-0.020411714911460876,
-0.08851733803749084,
0.05276688188314438,
0.012282979674637318,
-0.01322167832404375,
0.005040515214204788,
-0.04549695551395416,
0.0072998846881091595,
0.050130534917116165,
-0.023747093975543976,
-0.03984478861093521,
-0.013880765065550804,
0.04337988793849945,
-0.03343367204070091,
-0.002838566666468978,
-0.056282009929418564,
0.05196798965334892,
-0.013381456956267357,
0.043819278478622437,
-0.03670913353562355,
-0.022908255457878113,
0.012612522579729557,
0.034412313252687454,
0.013661069795489311,
0.0035575702786445618,
0.06423099339008331,
0.017605604603886604,
-0.09155313670635223,
0.059317804872989655,
-0.00048713746946305037,
-0.037508025765419006,
0.07158081233501434,
-0.04337988793849945,
-0.029199538752436638,
0.02628357894718647,
-0.02141033113002777,
-0.007384766824543476,
-0.02870023064315319,
0.014350115321576595,
0.02618371695280075,
-0.020611438900232315,
0.030837269499897957,
-0.019832517951726913,
-0.006845514290034771,
-0.025684408843517303,
0.04174215719103813,
-0.021470248699188232,
-0.024625875055789948,
0.055563006550073624,
-0.01365108322352171,
0.01299199741333723,
-0.02212933450937271,
-0.026043910533189774,
0.004571165889501572,
-0.08324464410543442,
0.0006213265005499125,
-0.09075424075126648,
-0.029938513413071632,
0.0030407863669097424,
0.06590867042541504,
-0.07174059003591537,
0.058239296078681946,
-0.03618985041975975,
0.01725608855485916,
0.025284962728619576,
-0.025744326412677765,
-0.040523845702409744,
0.03630968555808067,
0.051768265664577484,
0.013930696062743664,
-0.007489621639251709,
-0.016107680276036263,
-0.014979243278503418,
-0.030937129631638527,
-0.007075195666402578,
0.07066208124160767,
0.04154243320226669,
-0.025025323033332825,
0.028001198545098305,
-0.03930553421378136,
0.035450875759124756,
-0.046016234904527664,
0.07913035154342651,
-0.032255303114652634,
-0.03710857778787613,
0.048852305859327316,
-0.019592849537730217,
-0.04557684436440468,
0.027901336550712585,
0.0015353724593296647,
-0.003962009679526091,
-0.00874288473278284,
-0.022988146170973778,
-0.021729888394474983,
-0.016037777066230774,
0.023068035021424294,
-0.00354259111918509,
0.0010229574982076883,
0.008732899092137814,
0.007354808505624533,
-0.02818094938993454,
-0.01170378178358078,
-0.0102657750248909,
-0.017725437879562378,
0.0013930696295574307,
-0.025245018303394318,
-0.033693309873342514,
0.010011127218604088,
0.004725951235741377,
-0.047614019364118576,
0.011164529249072075,
-0.030357932671904564,
0.03397292271256447,
0.00590182188898325,
-0.007719303481280804,
-0.0037622866220772266,
-0.040064483880996704,
-0.028820063918828964,
-0.0057620154693722725,
-0.015358717180788517,
0.02382698282599449,
0.0012089497176930308,
-0.06327231973409653,
-0.05795968323945999,
-0.07933007180690765,
0.027941280975937843,
-0.0656690001487732,
0.0102657750248909,
0.002918455982580781,
-0.002482809592038393,
0.0351712629199028,
0.024086622521281242,
0.05045009031891823,
-0.048492804169654846,
-0.0456966795027256,
0.068265400826931,
-0.030717434361577034,
0.03561065346002579,
0.04282066226005554,
0.03856655955314636,
-0.0243862085044384,
-0.031136853620409966,
-0.015458579175174236,
-0.002863531932234764,
-0.010305719450116158,
-0.03686891123652458,
0.04341983422636986,
0.010120975784957409,
-0.005447451490908861,
0.04769391193985939,
-0.015448592603206635,
-0.03702868893742561,
0.039545200765132904,
0.009686577133834362,
-0.036729104816913605,
0.10960811376571655,
0.006985320243984461,
0.003525115316733718,
-0.04841291531920433,
-0.05072970315814018,
0.00874288473278284,
0.030777351930737495,
-0.021929612383246422,
0.024266373366117477,
-0.010110989212989807,
0.05072970315814018,
0.007279912009835243,
-0.004628586117178202,
0.02010214515030384,
-0.014919326640665531,
0.013201706111431122,
0.017825299873948097,
0.046735238283872604,
0.034931596368551254,
0.011743727140128613,
0.04561678692698479,
-0.04024423286318779,
0.0554431714117527,
-0.014989228919148445,
-0.01493929885327816,
0.04857269302010536,
0.07817167788743973,
-0.022768449038267136,
0.030577627941966057,
-0.025844188407063484,
-0.02170991711318493,
-0.05332610756158829,
0.03978487104177475,
-0.031116880476474762,
0.02063141018152237,
0.008368403650820255,
0.05819935351610184,
0.02386692725121975,
0.020341811701655388,
0.05009058862924576
] |
725,537 | syne_tune.report | __call__ | Report metric values from training function back to Syne Tune
A time stamp :const:`~syne_tune.constants.ST_WORKER_TIMESTAMP` is added.
See :attr:`add_time`, :attr:`add_cost` comments for other automatically
added metrics.
:param kwargs: Keyword arguments for metrics to be reported, for instance
:code:`report(epoch=1, loss=1.2)`. Values must be serializable with json,
keys should not start with ``st_`` which is a reserved namespace for
Syne Tune internals.
| def __call__(self, **kwargs) -> None:
"""Report metric values from training function back to Syne Tune
A time stamp :const:`~syne_tune.constants.ST_WORKER_TIMESTAMP` is added.
See :attr:`add_time`, :attr:`add_cost` comments for other automatically
added metrics.
:param kwargs: Keyword arguments for metrics to be reported, for instance
:code:`report(epoch=1, loss=1.2)`. Values must be serializable with json,
keys should not start with ``st_`` which is a reserved namespace for
Syne Tune internals.
"""
self._check_reported_values(kwargs)
assert not any(key.startswith("st_") for key in kwargs), (
"The metric prefix 'st_' is used by Syne Tune internals, "
"please use a metric name that does not start with 'st_'."
)
kwargs[ST_WORKER_TIMESTAMP] = time()
if self.add_time:
seconds_spent = perf_counter() - self.start
kwargs[ST_WORKER_TIME] = seconds_spent
# second cost will only be there if we were able to properly detect the instance-type and instance-count
# from the environment
if hasattr(self, "dollar_cost"):
kwargs[ST_WORKER_COST] = seconds_spent * self.dollar_cost
kwargs[ST_WORKER_ITER] = self.iter
self.iter += 1
_report_logger(**kwargs)
| (self, **kwargs) -> NoneType | [
0.010130084119737148,
-0.01650693640112877,
0.003996919374912977,
0.0437634214758873,
-0.00019500640337355435,
-0.004973944276571274,
-0.07400792092084885,
-0.028550075367093086,
0.03716793656349182,
-0.022355420514941216,
-0.028477197512984276,
0.021517319604754448,
0.07116566598415375,
-0.02486972138285637,
0.013446046970784664,
0.030135178938508034,
-0.02352147176861763,
-0.026691678911447525,
0.015249785035848618,
0.00844021886587143,
-0.0062538692727684975,
-0.017053522169589996,
0.01598767749965191,
0.05921362340450287,
0.010020766407251358,
0.01508580893278122,
0.0544765330851078,
-0.06719379872083664,
-0.021298684179782867,
0.006463394500315189,
-0.017682097852230072,
-0.04321683570742607,
-0.03410704433917999,
0.008084936998784542,
0.0519622303545475,
-0.024432450532913208,
-0.06770394742488861,
0.014357025735080242,
-0.11995768547058105,
-0.0077433199621737,
-0.00910978764295578,
-0.05061398074030876,
0.028167463839054108,
0.010303170420229435,
-0.05400282144546509,
0.008572310209274292,
-0.003060888731852174,
0.03906277194619179,
0.04150419309735298,
-0.09211817383766174,
-0.0377509631216526,
-0.0036097534466534853,
-0.026527702808380127,
0.02873227186501026,
-0.02097073197364807,
0.0017206112388521433,
0.04427357017993927,
-0.01872972398996353,
0.026709897443652153,
-0.013737560249865055,
0.02643660455942154,
-0.008153260685503483,
0.02479684352874756,
0.030663546174764633,
0.017663879320025444,
-0.04922929406166077,
-0.041321996599435806,
0.014439013786613941,
-0.0116514191031456,
0.04868270829319954,
0.04478371888399124,
-0.07408079504966736,
0.022956665605306625,
0.02084319479763508,
-0.00862241443246603,
-0.023703668266534805,
-0.06970809400081635,
-0.01867506466805935,
-0.025270551443099976,
-0.022282540798187256,
0.009993437677621841,
0.04113980382680893,
-0.024523548781871796,
-0.06172792240977287,
-0.006764017511159182,
-0.007388038095086813,
0.03337826207280159,
-0.00903690978884697,
-0.1024668961763382,
0.044164251536130905,
-0.033487580716609955,
0.0558612197637558,
0.0036553023383021355,
-0.014967381954193115,
-0.0020269278902560472,
-0.017499903216958046,
-0.05352911353111267,
-0.03106437623500824,
-0.05290964990854263,
-0.010558243840932846,
0.03091862052679062,
0.020715657621622086,
0.05495024099946022,
-0.0011005762498825788,
0.009629045613110065,
-0.06810477375984192,
-0.03800603374838829,
-0.004454686306416988,
-0.013865097425878048,
0.0279306098818779,
-0.013254741206765175,
0.024213816970586777,
-0.03091862052679062,
-0.03538241609930992,
-0.0016750622307881713,
0.0035300429444760084,
-0.029078442603349686,
-0.010940855368971825,
-0.03436211869120598,
0.0013402776094153523,
-0.003910376690328121,
0.052217304706573486,
-0.02554384618997574,
0.02448710985481739,
-0.09219105541706085,
0.009993437677621841,
0.03479938954114914,
0.06289397925138474,
0.06497100740671158,
-0.04525742679834366,
0.03197535499930382,
-0.02195458859205246,
0.0073515987023711205,
0.086870938539505,
0.05075974017381668,
0.014001743867993355,
0.05567902326583862,
0.015723494812846184,
-0.013172753155231476,
0.006750352680683136,
0.06664720922708511,
0.006732133217155933,
-0.008900262415409088,
-0.03563749045133591,
0.0651167631149292,
0.01651604473590851,
-0.07222239673137665,
0.05145208165049553,
0.02149909920990467,
-0.015805482864379883,
0.015140467323362827,
-0.01821046695113182,
0.008344565518200397,
-0.012088689021766186,
-0.037149716168642044,
0.013045215979218483,
0.01146011333912611,
0.007930070161819458,
0.0448201559484005,
-0.05389350652694702,
-0.05742810294032097,
-0.017581891268491745,
0.023849423974752426,
-0.003823833540081978,
-0.006595486309379339,
0.03833398595452309,
-0.08315414190292358,
0.04952080920338631,
-0.020660998299717903,
0.022209662944078445,
0.009000470861792564,
-0.0537477508187294,
0.011031953617930412,
0.037605203688144684,
-0.014876283705234528,
0.04955724626779556,
0.04576757550239563,
0.019695362076163292,
0.0013710231287404895,
0.04952080920338631,
-0.004673321265727282,
-0.02501547709107399,
-0.08694381266832352,
-0.000025585693947505206,
-0.03264947980642319,
-0.016980644315481186,
0.0012127405498176813,
-0.024614647030830383,
-0.041103363037109375,
0.04128555953502655,
0.053055405616760254,
0.014648539014160633,
0.014092842116951942,
-0.008882042951881886,
-0.0020872801542282104,
-0.0006775404908694327,
0.009884119965136051,
0.015723494812846184,
0.026837434619665146,
0.03024449571967125,
-0.02844075858592987,
0.03971867635846138,
0.03286811336874962,
-0.019166992977261543,
-0.020351266488432884,
-0.024851500988006592,
0.0053201159462332726,
0.038042474538087845,
-0.08191521465778351,
0.017654769122600555,
0.021772393956780434,
-0.020296607166528702,
-0.014730527065694332,
0.07907295972108841,
0.06435154378414154,
-0.07032756507396698,
0.06540827453136444,
0.045512501150369644,
0.015805482864379883,
-0.0247239638119936,
0.05159783735871315,
-0.0604889914393425,
-0.01537732221186161,
-0.029133101925253868,
0.03219399228692055,
-0.015513968653976917,
0.07240459322929382,
-0.04638703912496567,
0.010175633244216442,
-0.054840922355651855,
-0.03479938954114914,
-0.005283677019178867,
0.037058617919683456,
0.04106692597270012,
-0.029242418706417084,
0.020278388634324074,
-0.026473043486475945,
0.028240343555808067,
-0.018474649637937546,
-0.030044080689549446,
-0.011824504472315311,
-0.0034025057684630156,
-0.019822899252176285,
-0.05502311885356903,
-0.03898989409208298,
-0.0064406199380755424,
0.06715735793113708,
0.09058773517608643,
-0.03465363383293152,
0.019841117784380913,
0.08446595072746277,
-0.018419992178678513,
-0.008449328131973743,
0.0053155613131821156,
-0.07907295972108841,
-0.029388176277279854,
0.02783951163291931,
0.0013323065359145403,
0.05589766055345535,
-0.028313221409916878,
-0.027948830276727676,
0.021025391295552254,
-0.054986681789159775,
0.00858142040669918,
-0.03694929927587509,
0.011860944330692291,
-0.03786027804017067,
-0.002635006094351411,
-0.008859268389642239,
0.06150928884744644,
-0.01934918947517872,
0.028932686895132065,
-0.014639428816735744,
0.01082242839038372,
-0.05666287988424301,
-0.027056070044636726,
-0.01627008058130741,
-0.028987346217036247,
-0.01332761999219656,
-0.0038511629682034254,
0.037896718829870224,
-0.007069195620715618,
0.00703731132671237,
-0.012516848742961884,
-0.010175633244216442,
-0.06467949599027634,
0.042743124067783356,
0.0501767136156559,
0.0008534732623957098,
-0.05396638438105583,
-0.007870856672525406,
0.022155003622174263,
0.05702727288007736,
-0.011496552266180515,
0.07036400586366653,
0.027056070044636726,
-0.022519396618008614,
-0.03552817180752754,
0.024960819631814957,
0.029078442603349686,
0.05859415605664253,
-0.040738970041275024,
-0.03525488078594208,
-0.01452100183814764,
0.02904200367629528,
0.04015594348311424,
0.033268947154283524,
0.004625495057553053,
-0.00034360980498604476,
-0.030280934646725655,
-0.03552817180752754,
0.0194038487970829,
0.019822899252176285,
-0.01202492043375969,
-0.02918776124715805,
-0.008125931024551392,
-0.03694929927587509,
0.006695694290101528,
0.007438141852617264,
0.07094702869653702,
-0.030335593968629837,
0.029242418706417084,
0.04813611879944801,
0.010931745171546936,
0.03569214791059494,
-0.030590668320655823,
-0.009209996089339256,
-0.015022040344774723,
-0.00433170422911644,
-0.009938778355717659,
-0.014329696074128151,
-0.07010892778635025,
0.055751901119947433,
-0.0013721617870032787,
-0.03725903108716011,
0.0154866399243474,
0.007943735457956791,
0.07233171910047531,
-0.012343762442469597,
0.005465872585773468,
0.028477197512984276,
0.03931784629821777,
-0.03720437362790108,
0.038406867533922195,
-0.01648871600627899,
-0.00910523347556591,
-0.034161705523729324,
-0.018110258504748344,
0.07987461984157562,
0.04434644803404808,
-0.006472504232078791,
0.0006627370603382587,
-0.013118094764649868,
0.08512185513973236,
0.06704804301261902,
0.0323944054543972,
0.003607476130127907,
-0.037678081542253494,
-0.022865567356348038,
-0.09408588707447052,
-0.05225374549627304,
0.0323944054543972,
-0.02007797174155712,
0.05786537379026413,
0.04350834712386131,
-0.01590568944811821,
0.025798918679356575,
-0.014830734580755234,
0.05859415605664253,
-0.04172283038496971,
-0.03039025329053402,
-0.05444009229540825,
-0.006244759541004896,
0.0194038487970829,
0.004443299025297165,
0.045876890420913696,
-0.019822899252176285,
-0.00798928365111351,
-0.055059559643268585,
-0.004067520145326853,
0.021389782428741455,
0.013801328837871552,
-0.017718536779284477,
0.016215423122048378,
0.07739675790071487,
0.008371895179152489,
-0.06788613647222519,
-0.01837444305419922,
0.03771452233195305,
-0.01042159739881754,
0.042378734797239304,
-0.006846005562692881,
-0.048864901065826416,
0.004263380542397499,
0.010467146523296833,
-0.016762010753154755,
0.00941041111946106,
0.006021569948643446,
-0.05331047996878624,
-0.02113470807671547,
-0.013646462000906467,
-0.05899498611688614,
0.0012195728486403823,
0.0494479276239872,
0.008212474174797535,
-0.0311372559517622,
0.02904200367629528,
-0.036931078881025314,
-0.007465471047908068,
0.060889821499586105,
0.009118897840380669,
-0.04285244271159172,
-0.04653279855847359,
-0.004217831883579493,
-0.06883355975151062,
0.018310673534870148,
-0.04842763394117355,
0.04248804971575737,
0.03532775864005089,
0.002771653002128005,
0.023084202781319618,
0.024250255897641182,
0.07528328895568848,
0.054330773651599884,
0.07145717740058899,
-0.014903613366186619,
-0.013664682395756245,
-0.047006506472826004,
0.03186604008078575,
0.025325210765004158,
-0.03888057544827461,
-0.02771197445690632,
-0.038406867533922195,
0.04784460738301277,
0.010722220875322819,
-0.035054463893175125,
-0.010120974853634834,
-0.04576757550239563,
-0.014111061580479145,
0.022373639047145844,
-0.028495416045188904,
-0.027821293100714684,
0.04624128341674805,
0.0025279661640524864,
-0.026400165632367134,
-0.005001273471862078,
-0.04780816659331322,
-0.012589726597070694,
-0.07025468349456787,
-0.026545921340584755,
0.04183214530348778,
0.00032937576179392636,
-0.0014746469678357244,
0.023649008944630623,
0.018802601844072342,
-0.026637019589543343,
-0.043726980686187744,
-0.05735522508621216,
0.012170677073299885,
0.0018925584154203534,
-0.0014564273878932,
0.011050173081457615,
-0.0501767136156559,
-0.005001273471862078,
-0.006809566635638475,
-0.025562064722180367,
0.013418717309832573,
0.04299819841980934,
0.0074290321208536625,
-0.033177848905324936,
0.015668835490942,
0.0019449397223070264,
-0.03496336564421654,
-0.031228352338075638,
-0.0028878028970211744,
0.036475591361522675,
-0.05651712417602539,
-0.013682901859283447,
0.00020269278320483863,
-0.012152456678450108,
0.03323250636458397,
-0.0021225805394351482,
0.05607985332608223,
0.031483426690101624,
0.0322304293513298,
0.017272157594561577,
0.022574054077267647,
-0.04052033647894859,
0.04106692597270012,
0.03884413465857506,
-0.03128301352262497,
0.025798918679356575,
0.06595486402511597,
0.006832341197878122,
-0.0875997245311737,
0.008253468200564384,
0.03343292325735092,
-0.002375377109274268,
0.0039490931667387486,
0.05137920379638672,
0.017682097852230072,
-0.009232769720256329,
0.004832742735743523,
0.03844330459833145,
0.03731369227170944,
0.0311372559517622,
-0.04638703912496567,
0.045148108154535294,
-0.051488522440195084,
0.003026727121323347,
0.0005559817655012012,
-0.005256347823888063,
0.016169873997569084,
0.02822212316095829,
0.00388304702937603,
-0.05444009229540825,
0.006094448268413544,
0.011851834133267403,
-0.008686183020472527,
-0.008763615973293781,
-0.004527564626187086,
0.045876890420913696,
0.014721417799592018,
0.02193637005984783,
0.029442835599184036,
0.022264322265982628,
0.01090441644191742,
0.01348248589783907,
0.015696164220571518,
0.0676310658454895,
-0.004518454894423485,
-0.024815062060952187,
-0.016616253182291985,
0.0033045755699276924,
0.04704294353723526,
0.0016511490102857351,
-0.02142622135579586,
-0.03898989409208298,
0.03979155421257019,
-0.024286694824695587,
0.016096996143460274,
-0.05699083209037781,
0.017345035448670387,
-0.07725100219249725,
-0.02516123466193676,
-0.011004623956978321,
-0.011860944330692291,
0.020806755870580673,
-0.013655572198331356,
-0.051925789564847946,
0.016224531456828117,
-0.043654102832078934,
0.031556304544210434,
0.016306521371006966,
0.019458506256341934,
0.06664720922708511,
0.011605869978666306,
0.06475237011909485,
-0.0006963293999433517,
0.03833398595452309,
-0.05564258620142937,
-0.023485032841563225,
0.06518964469432831,
0.0029857330955564976,
0.000032916224881773815,
-0.006017014849931002,
0.012699044309556484,
0.02241007797420025,
-0.08388292789459229,
-0.04186858609318733,
0.022009247913956642,
0.01614254340529442,
-0.033123187720775604,
-0.013655572198331356,
-0.08074916154146194,
0.047443777322769165,
0.024304913356900215,
-0.016224531456828117,
-0.01590568944811821,
-0.008253468200564384,
-0.012516848742961884,
0.031392328441143036,
0.004937504883855581,
-0.016771119087934494,
-0.025562064722180367,
0.06424222141504288,
-0.054695166647434235,
-0.017272157594561577,
-0.05112412944436073,
0.034908708184957504,
0.009278318844735622,
0.017745867371559143,
-0.023175301030278206,
0.000319127255352214,
0.022865567356348038,
-0.009911449626088142,
-0.018046490848064423,
-0.019750019535422325,
0.05429433658719063,
0.014156610704958439,
-0.07557480037212372,
0.04831831529736519,
0.040046628564596176,
-0.031228352338075638,
0.04467440024018288,
-0.031228352338075638,
-0.027165386825799942,
0.07233171910047531,
-0.028568295761942863,
-0.01007542572915554,
-0.004586778115481138,
0.011132161132991314,
0.03884413465857506,
-0.0006331302574835718,
0.02709250897169113,
-0.01422948855906725,
0.010020766407251358,
-0.010120974853634834,
0.01783696562051773,
-0.06212875247001648,
0.009956997819244862,
0.04354478791356087,
-0.030499570071697235,
0.004085740074515343,
-0.013236521743237972,
-0.017509011551737785,
0.01812847889959812,
-0.08563200384378433,
0.033943068236112595,
-0.06129065155982971,
-0.038406867533922195,
0.012808362022042274,
0.041030485183000565,
-0.05899498611688614,
0.044164251536130905,
-0.056772198528051376,
0.002892357762902975,
0.05950513482093811,
-0.04562181979417801,
-0.07914584130048752,
0.037969596683979034,
0.0889844074845314,
0.04718870297074318,
-0.02328461781144142,
-0.012726373970508575,
0.0016966980183497071,
-0.0419779047369957,
-0.014703197404742241,
0.06978097558021545,
0.06992673128843307,
-0.023175301030278206,
0.017709428444504738,
-0.015222455374896526,
0.048719145357608795,
-0.0023036375641822815,
0.08905728906393051,
-0.009305648505687714,
-0.03359689936041832,
0.03489048779010773,
-0.030116958543658257,
-0.05567902326583862,
0.012744593434035778,
-0.015614176169037819,
-0.016980644315481186,
-0.00563440378755331,
-0.0064360653050243855,
-0.045220986008644104,
-0.0009383081342093647,
-0.005224463529884815,
-0.023703668266534805,
-0.007797978352755308,
0.0057938252575695515,
-0.013947085477411747,
0.0021089159417897463,
-0.009975218214094639,
0.00007227336027426645,
-0.02343037538230419,
-0.0247239638119936,
-0.0316656231880188,
-0.06595486402511597,
-0.011050173081457615,
-0.027748413383960724,
-0.00042275109444744885,
-0.014275037683546543,
-0.03485404700040817,
0.023849423974752426,
-0.03738657012581825,
-0.009096123278141022,
-0.02210034616291523,
-0.033870190382003784,
-0.020424144342541695,
-0.04128555953502655,
-0.029625030234456062,
0.028422538191080093,
0.00021180257317610085,
-0.03891701251268387,
-0.04383629932999611,
-0.06857848167419434,
0.054840922355651855,
-0.047225140035152435,
-0.02246473729610443,
0.02800348773598671,
0.018392661586403847,
0.0076157827861607075,
0.04420069232583046,
0.05137920379638672,
-0.02537987008690834,
-0.04263380914926529,
0.03862550109624863,
-0.039682235568761826,
0.046168405562639236,
0.023940522223711014,
-0.002075892873108387,
0.012289104051887989,
-0.046095527708530426,
-0.012125127948820591,
-0.0026942198164761066,
-0.02374010719358921,
-0.02494259923696518,
0.035437073558568954,
0.008708957582712173,
-0.02374010719358921,
0.030044080689549446,
-0.009638155810534954,
-0.016479605808854103,
0.025197673588991165,
0.014384355396032333,
0.007388038095086813,
0.09357573837041855,
-0.024250255897641182,
0.010275840759277344,
-0.03458075597882271,
-0.008449328131973743,
-0.019822899252176285,
0.0491199754178524,
0.010995513759553432,
0.013792218640446663,
0.01090441644191742,
0.06562691181898117,
-0.009847681038081646,
0.026400165632367134,
0.040957607328891754,
-0.01350981555879116,
-0.003787394380196929,
-0.0004956293851137161,
0.049010660499334335,
0.012571507133543491,
0.02053346298635006,
0.0526910126209259,
-0.05742810294032097,
0.061618607491254807,
0.006914329249411821,
-0.0019005294889211655,
0.04697006568312645,
0.09787556529045105,
-0.029697908088564873,
0.048792023211717606,
-0.031082596629858017,
0.002308192430064082,
-0.0391356498003006,
0.04041101783514023,
-0.04420069232583046,
0.009565277025103569,
0.022829128429293633,
0.005657178349792957,
0.032503724098205566,
0.031119035556912422,
0.03643915057182312
] |
725,538 | syne_tune.report | __eq__ | null | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
import os
import re
import sys
import json
import logging
from ast import literal_eval
from typing import List, Dict, Any
from time import time, perf_counter
from dataclasses import dataclass
from syne_tune.constants import (
ST_INSTANCE_TYPE,
ST_INSTANCE_COUNT,
ST_WORKER_TIME,
ST_WORKER_COST,
ST_WORKER_TIMESTAMP,
ST_WORKER_ITER,
ST_SAGEMAKER_METRIC_TAG,
)
from syne_tune.util import dump_json_with_numpy
# this is required so that metrics are written
from syne_tune.backend.sagemaker_backend.instance_info import InstanceInfos
logging.basicConfig()
logger = logging.getLogger(__name__)
@dataclass
class Reporter:
"""
Callback for reporting metric values from a training script back to Syne Tune.
Example:
.. code-block:: python
from syne_tune import Reporter
report = Reporter()
for epoch in range(1, epochs + 1):
# ...
report(epoch=epoch, accuracy=accuracy)
:param add_time: If True (default), the time (in secs) since creation of the
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_TIME`
:param add_cost: If True (default), estimated dollar cost since creation of
:class:`Reporter` object is reported automatically as
:const:`~syne_tune.constants.ST_WORKER_COST`. This is available for
SageMaker backend only. Requires ``add_time=True``.
"""
add_time: bool = True
add_cost: bool = True
def __post_init__(self):
if self.add_time:
self.start = perf_counter()
self.iter = 0
# TODO dollar-cost computation is not available for file-based backends, what would be
# needed to add support for those backends will be to add a way to access instance-type
# information.
if self.add_cost:
# add instance_type and instance count so that cost can be computed easily
self.instance_type = os.getenv(
f"SM_HP_{ST_INSTANCE_TYPE.upper()}", None
)
self.instance_count = literal_eval(
os.getenv(f"SM_HP_{ST_INSTANCE_COUNT.upper()}", "1")
)
if self.instance_type is not None:
logger.info(
f"detected instance-type/instance-count to {self.instance_type}/{self.instance_count}"
)
instance_infos = InstanceInfos()
if self.instance_type in instance_infos.instances:
cost_per_hour = instance_infos(
instance_type=self.instance_type
).cost_per_hour
self.dollar_cost = cost_per_hour * self.instance_count / 3600
def __call__(self, **kwargs) -> None:
"""Report metric values from training function back to Syne Tune
A time stamp :const:`~syne_tune.constants.ST_WORKER_TIMESTAMP` is added.
See :attr:`add_time`, :attr:`add_cost` comments for other automatically
added metrics.
:param kwargs: Keyword arguments for metrics to be reported, for instance
:code:`report(epoch=1, loss=1.2)`. Values must be serializable with json,
keys should not start with ``st_`` which is a reserved namespace for
Syne Tune internals.
"""
self._check_reported_values(kwargs)
assert not any(key.startswith("st_") for key in kwargs), (
"The metric prefix 'st_' is used by Syne Tune internals, "
"please use a metric name that does not start with 'st_'."
)
kwargs[ST_WORKER_TIMESTAMP] = time()
if self.add_time:
seconds_spent = perf_counter() - self.start
kwargs[ST_WORKER_TIME] = seconds_spent
# second cost will only be there if we were able to properly detect the instance-type and instance-count
# from the environment
if hasattr(self, "dollar_cost"):
kwargs[ST_WORKER_COST] = seconds_spent * self.dollar_cost
kwargs[ST_WORKER_ITER] = self.iter
self.iter += 1
_report_logger(**kwargs)
@staticmethod
def _check_reported_values(kwargs: Dict[str, Any]):
assert all(
v is not None for v in kwargs.values()
), f"Invalid value in report: kwargs = {kwargs}"
| (self, other) | [
0.07312266528606415,
-0.039373744279146194,
-0.043572552502155304,
0.007951990701258183,
-0.011021875776350498,
-0.015240490436553955,
-0.06840890645980835,
-0.025410721078515053,
0.00012626138050109148,
-0.009066062048077583,
-0.02087521366775036,
0.03277844190597534,
0.0267178975045681,
-0.008729364722967148,
0.008828393183648586,
-0.006511125713586807,
0.0065705431625247,
-0.035174932330846786,
0.0491577610373497,
-0.0009593389113433659,
0.005857537500560284,
0.010279161855578423,
0.0069963657297194,
0.05141561105847359,
0.019379884004592896,
0.005619869101792574,
0.05668393149971962,
-0.020835602656006813,
-0.007976748049259186,
0.012982640415430069,
-0.02525227516889572,
-0.0414731502532959,
-0.049791544675827026,
0.03269921988248825,
0.06468543410301208,
-0.053237736225128174,
-0.027331873774528503,
-0.007843059487640858,
-0.09799863398075104,
0.006664620246738195,
0.019379884004592896,
-0.054346855729818344,
0.031411848962306976,
-0.01380457729101181,
-0.035452213138341904,
0.022103168070316315,
-0.029550112783908844,
0.009437418542802334,
0.0062487004324793816,
-0.07062714546918869,
-0.0016079758061096072,
-0.01897386647760868,
-0.0034808528143912554,
0.06222952902317047,
-0.04325566068291664,
0.02087521366775036,
0.04182964935898781,
0.021786276251077652,
0.02073657512664795,
-0.024321407079696655,
0.02206355705857277,
-0.01660708524286747,
-0.008174804970622063,
0.0029361958149820566,
-0.009600816294550896,
-0.04515700787305832,
-0.05157405883073807,
0.018132124096155167,
0.0005740560009144247,
-0.0003391727223061025,
0.04840514436364174,
-0.06987453252077103,
0.03238232806324959,
0.005033125169575214,
-0.01860745996236801,
0.00610510865226388,
-0.05319812521338463,
-0.0423445999622345,
-0.012289440259337425,
-0.029847199097275734,
0.013517394661903381,
0.03622463718056679,
-0.0012601380003616214,
-0.07205315679311752,
0.031253404915332794,
0.016349609941244125,
0.04650379717350006,
0.019667066633701324,
-0.07339994609355927,
0.015596993267536163,
-0.041512761265039444,
0.04563234746456146,
0.024182766675949097,
0.02982739359140396,
0.03747239708900452,
-0.022677533328533173,
-0.03992830216884613,
-0.08492686599493027,
-0.03048098087310791,
-0.006659668870270252,
0.040562085807323456,
0.003966092597693205,
0.06333864480257034,
0.0040007526986300945,
-0.002299937652423978,
-0.0339667871594429,
-0.061437301337718964,
0.013418366201221943,
0.01926104910671711,
0.00634772889316082,
-0.034501541405916214,
0.029569918289780617,
-0.050583772361278534,
-0.049553874880075455,
0.008041116409003735,
-0.021865500137209892,
0.004909339360892773,
0.01682494767010212,
-0.03115437552332878,
-0.028401382267475128,
0.014953307807445526,
0.021231716498732567,
-0.030580010265111923,
0.04135431349277496,
-0.06623028218746185,
-0.031629711389541626,
0.0440082773566246,
0.06702250987291336,
0.037828899919986725,
-0.04725641384720802,
0.0011598716955631971,
-0.028361771255731583,
-0.014883988536894321,
0.06642834097146988,
0.027767600491642952,
-0.0127251660451293,
0.030065061524510384,
0.030659232288599014,
-0.033174555748701096,
-0.004089878406375647,
0.07272655516862869,
0.010764401406049728,
-0.02184569463133812,
-0.05933789536356926,
0.029926421120762825,
-0.011814103461802006,
-0.059139836579561234,
0.03606618940830231,
-0.0013269822811707854,
-0.01809251308441162,
-0.0295105017721653,
-0.013121279887855053,
0.024301601573824883,
0.00948693323880434,
-0.02604450285434723,
-0.008664996363222599,
-0.0250146072357893,
-0.00588724622502923,
0.01545835379511118,
-0.029926421120762825,
-0.05807033181190491,
-0.020716767758131027,
-0.017399312928318977,
-0.04614729434251785,
-0.03978966176509857,
0.03875976800918579,
-0.09023479372262955,
0.05319812521338463,
-0.034362901002168655,
0.037611037492752075,
-0.006783454213291407,
-0.04214654117822647,
-0.028460798785090446,
0.01926104910671711,
0.0051445323042571545,
0.08397619426250458,
0.06119963154196739,
0.004887057933956385,
0.03260019049048424,
0.0267178975045681,
-0.031015735119581223,
-0.023648012429475784,
-0.06650756299495697,
0.028064684942364693,
-0.02958972565829754,
-0.015428644604980946,
0.009749358519911766,
-0.01129915565252304,
-0.011160515248775482,
0.03491745889186859,
0.05688198655843735,
0.024994801729917526,
0.0030599816236644983,
0.0307780671864748,
0.025192858651280403,
0.01873619854450226,
0.019379884004592896,
0.0181618332862854,
-0.025707805529236794,
0.05692159757018089,
-0.055535200983285904,
0.04349333047866821,
0.011873520910739899,
-0.03778928890824318,
-0.014121468178927898,
-0.04753369465470314,
0.0031491073314100504,
0.005179191939532757,
-0.09863241761922836,
0.018042998388409615,
-0.029352055862545967,
0.0035848328843712807,
-0.00907596480101347,
0.0751824602484703,
0.10124676674604416,
-0.06706211715936661,
0.06908230483531952,
0.040601696819067,
0.0015547479270026088,
-0.06020934507250786,
0.03151087835431099,
-0.06547766178846359,
-0.02539091557264328,
0.01586437039077282,
0.020538516342639923,
-0.0037828898057341576,
0.05129677802324295,
0.016646696254611015,
0.017141839489340782,
-0.03010467253625393,
-0.0419088751077652,
0.0043770610354840755,
0.06876540929079056,
0.046899911016225815,
0.016993295401334763,
0.009541398845613003,
-0.003881918266415596,
0.04022539034485817,
0.03572949394583702,
-0.024400629103183746,
-0.013725354336202145,
-0.01472554262727499,
-0.046028461307287216,
-0.06488349288702011,
-0.06523999571800232,
0.006169477477669716,
0.09522583335638046,
0.059139836579561234,
-0.059298284351825714,
-0.017627079039812088,
0.09823630005121231,
-0.017894456163048744,
0.02677731402218342,
0.031768351793289185,
-0.06567572057247162,
-0.03697725385427475,
0.03596716374158859,
-0.0003670244768727571,
0.051177944988012314,
-0.04523623362183571,
-0.011903229169547558,
-0.005510937888175249,
-0.055099472403526306,
0.013467879965901375,
-0.05165328085422516,
0.02871827408671379,
0.0135768111795187,
0.028104295954108238,
-0.02877769060432911,
0.051177944988012314,
0.021271327510476112,
0.040601696819067,
-0.0399877205491066,
0.004931620787829161,
-0.036779195070266724,
-0.006199186202138662,
-0.008521405048668385,
-0.027470514178276062,
-0.019142214208841324,
-0.002614353084936738,
0.012606332078576088,
-0.005654529202729464,
0.036363277584314346,
-0.009724602103233337,
0.0032283300533890724,
-0.07446945458650589,
0.010308870114386082,
0.02376684732735157,
-0.0019285805756226182,
-0.004943999461829662,
-0.061001572757959366,
0.007501411251723766,
0.06508155167102814,
-0.03319436311721802,
0.04289915785193443,
0.016577376052737236,
-0.034580763429403305,
-0.03129301592707634,
0.014745348133146763,
-0.020716767758131027,
0.06052623689174652,
0.010804012417793274,
0.009684990160167217,
-0.0020721720065921545,
-0.019369980320334435,
0.021508997306227684,
0.03129301592707634,
-0.016032718122005463,
0.02877769060432911,
-0.02752993069589138,
-0.01479486282914877,
0.02390548773109913,
0.02281617373228073,
0.03341222554445267,
-0.027114011347293854,
0.03345183655619621,
-0.04139392450451851,
0.007649953942745924,
0.007283548358827829,
0.05850605666637421,
-0.02230122499167919,
0.05113833397626877,
0.0181618332862854,
-0.008362959139049053,
0.023964904248714447,
-0.07557857781648636,
0.0030203701462596655,
-0.015884175896644592,
-0.00520394928753376,
-0.017537953332066536,
-0.019350174814462662,
-0.08072805404663086,
0.05581247806549072,
0.02065735124051571,
0.008273833431303501,
0.0314316563308239,
-0.00929382722824812,
0.016508055850863457,
-0.04456283897161484,
-0.00043603498488664627,
0.045790791511535645,
0.037828899919986725,
-0.03091670759022236,
0.042701102793216705,
-0.01586437039077282,
-0.04737525060772896,
0.011913131922483444,
-0.02612372674047947,
0.037452589720487595,
0.013715451583266258,
-0.024242185056209564,
0.022835979238152504,
0.01332924049347639,
0.12469672411680222,
0.05557481199502945,
-0.0500292144715786,
-0.0007563303806819022,
-0.058704111725091934,
-0.03004525601863861,
-0.06294253468513489,
-0.06579455733299255,
0.008234222419559956,
-0.03269921988248825,
0.046464186161756516,
0.021429773420095444,
-0.0395519956946373,
0.03572949394583702,
-0.048682425171136856,
0.09126469492912292,
-0.015468256548047066,
-0.019142214208841324,
-0.08769966661930084,
0.01602281630039215,
-0.00270347879268229,
0.01681504398584366,
0.03145145997405052,
-0.030738456174731255,
-0.01479486282914877,
-0.05173250287771225,
-0.00822431966662407,
0.048603203147649765,
0.03351125493645668,
-0.049474652856588364,
0.025113634765148163,
0.09213614463806152,
-0.028658855706453323,
-0.019092701375484467,
0.012873709201812744,
0.05129677802324295,
-0.03351125493645668,
0.04991037771105766,
0.02125152200460434,
-0.010417801328003407,
-0.00012510087981354445,
0.024776937440037727,
-0.004233469720929861,
-0.0674978494644165,
0.02574741840362549,
-0.04127509146928787,
-0.005956565961241722,
-0.034640178084373474,
-0.03933413326740265,
0.04353294149041176,
0.03717530891299248,
-0.03386775776743889,
-0.05367346480488777,
0.05402996763586998,
-0.013963023200631142,
-0.013111377134919167,
0.09031401574611664,
-0.008303542621433735,
-0.03965102508664131,
-0.030738456174731255,
-0.032580386847257614,
-0.08524376153945923,
0.02382626384496689,
-0.004050266928970814,
0.044919341802597046,
0.02495518885552883,
0.01681504398584366,
0.021390162408351898,
0.02214277908205986,
0.05949633941054344,
0.050227269530296326,
0.04836553335189819,
-0.01110109779983759,
-0.03860132023692131,
-0.03840326517820358,
0.013725354336202145,
-0.0036071143113076687,
-0.02192491665482521,
-0.006278408691287041,
-0.04050266742706299,
-0.012200314551591873,
0.004406769759953022,
-0.007476653903722763,
-0.005570354871451855,
-0.04242382198572159,
-0.01977599784731865,
0.007268694229424,
-0.022855784744024277,
-0.037234727293252945,
0.022083362564444542,
0.049712322652339935,
-0.0029238173738121986,
0.006134817376732826,
-0.04634535312652588,
-0.010081104002892971,
-0.021093076094985008,
-0.040185779333114624,
0.004874679259955883,
-0.032421939074993134,
0.01779542677104473,
0.017755815759301186,
0.01659718155860901,
-0.0267178975045681,
0.010942652821540833,
-0.06987453252077103,
-0.012329052202403545,
-0.01328962855041027,
-0.009338390082120895,
0.010586149990558624,
0.023113258183002472,
0.019825512543320656,
0.0029188659973442554,
-0.017676591873168945,
0.030817678198218346,
0.03778928890824318,
-0.014111565425992012,
-0.010635663755238056,
0.022756755352020264,
0.001475525088608265,
0.014299719594419003,
-0.020914824679493904,
-0.005248512141406536,
0.021885305643081665,
-0.01652786135673523,
-0.015220684930682182,
-0.029906615614891052,
-0.012972737662494183,
0.08611521124839783,
0.002523989649489522,
0.04559273645281792,
0.007501411251723766,
0.018468821421265602,
0.0017862271051853895,
0.02931244485080242,
-0.054941028356552124,
0.031609907746315,
0.009724602103233337,
-0.07023103535175323,
-0.006144720129668713,
0.05418841168284416,
0.05513908714056015,
-0.057159267365932465,
0.000875164638273418,
0.05466374754905701,
0.022776562720537186,
0.03430348262190819,
0.023786652833223343,
0.02281617373228073,
-0.00782820489257574,
-0.01081391517072916,
0.012804388999938965,
0.044760894030332565,
0.02249928191304207,
-0.05232667550444603,
0.0636555403470993,
-0.039076659828424454,
0.027926046401262283,
0.014408650808036327,
-0.0010107099078595638,
0.03135243430733681,
0.013002445921301842,
0.003404105780646205,
0.0007464275695383549,
0.015181073918938637,
-0.00022838455333840102,
0.014626514166593552,
-0.002446004655212164,
-0.009278973564505577,
0.02899555303156376,
0.005812974646687508,
-0.019667066633701324,
0.008278785273432732,
0.035689882934093475,
0.006402194499969482,
-0.01180420070886612,
0.02449965849518776,
0.060248956084251404,
0.02103365957736969,
-0.021667443215847015,
-0.015111753717064857,
-0.00523860938847065,
0.015329616144299507,
-0.0007049593259580433,
0.04163159430027008,
-0.03541260212659836,
0.06860696524381638,
-0.055614423006772995,
0.036779195070266724,
-0.05252473056316376,
0.009511690586805344,
-0.04729602485895157,
-0.023707430809736252,
0.027252651751041412,
0.0074617997743189335,
0.012774680741131306,
-0.027213040739297867,
-0.04341410845518112,
0.009615669958293438,
0.0067785028368234634,
0.05165328085422516,
-0.008258979767560959,
0.005268317647278309,
0.010318772867321968,
0.012735068798065186,
0.019469009712338448,
0.010536635294556618,
0.028955942019820213,
-0.023232093080878258,
-0.0650419369339943,
0.037611037492752075,
-0.011764589697122574,
0.01564650796353817,
0.006199186202138662,
-0.028223130851984024,
0.04377061128616333,
-0.06543805450201035,
-0.007773739751428366,
0.027054594829678535,
0.019379884004592896,
0.009660232812166214,
-0.007184519898146391,
-0.07767798006534576,
0.022162584587931633,
-0.015240490436553955,
-0.004755845293402672,
-0.0015213257865980268,
-0.05977362021803856,
0.023945098742842674,
0.0339667871594429,
-0.021449578925967216,
-0.015478159300982952,
0.0081203393638134,
0.05478258430957794,
-0.05327735096216202,
0.003589784260839224,
-0.07339994609355927,
0.06163535639643669,
-0.018389597535133362,
0.055614423006772995,
-0.026975370943546295,
0.0056792860850691795,
0.011685366742312908,
0.042027708142995834,
0.020855408161878586,
0.007407334167510271,
0.060248956084251404,
0.030124478042125702,
-0.0770045816898346,
0.06131846457719803,
0.017102226614952087,
-0.03467979282140732,
0.07577662914991379,
-0.048009030520915985,
-0.012853902764618397,
0.031609907746315,
0.011388281360268593,
-0.010576247237622738,
0.00610510865226388,
0.009437418542802334,
0.012873709201812744,
-0.04931620880961418,
0.013527297414839268,
-0.007521216757595539,
-0.01288361195474863,
-0.011417989619076252,
0.06476465612649918,
-0.08350085467100143,
-0.00008618576976004988,
0.042621880769729614,
-0.0019545755349099636,
-0.00808567926287651,
-0.04014616459608078,
-0.030005645006895065,
0.008313445374369621,
-0.03941335529088974,
0.0022751805372536182,
-0.08421386033296585,
-0.0040230341255664825,
-0.024321407079696655,
0.06531921774148941,
-0.06389320641756058,
0.05838721990585327,
-0.0029040116351097822,
0.014141273684799671,
0.02782701700925827,
-0.030005645006895065,
-0.03646230325102806,
0.029470890760421753,
0.06623028218746185,
0.03040175884962082,
0.02257850393652916,
-0.03477881848812103,
-0.018637169152498245,
-0.010011784732341766,
-0.011556629091501236,
0.04721680283546448,
0.07740069925785065,
-0.022162584587931633,
0.02384606935083866,
-0.03618502616882324,
0.00863033626228571,
-0.031015735119581223,
0.05965478718280792,
-0.048009030520915985,
-0.053039681166410446,
0.023489566519856453,
-0.0239252932369709,
-0.040047138929367065,
0.02406393364071846,
-0.011625949293375015,
0.012121092528104782,
0.0017565184971317649,
-0.04046305641531944,
-0.0050405520014464855,
0.00071238650707528,
0.05157405883073807,
0.0267178975045681,
0.002270229160785675,
-0.010546538047492504,
-0.00830849353224039,
-0.0009036353440023959,
0.0061150118708610535,
-0.012546914629638195,
-0.014071954414248466,
-0.008570919744670391,
-0.025707805529236794,
-0.015349422581493855,
0.01734979823231697,
0.0010286588221788406,
-0.021786276251077652,
0.012962834909558296,
-0.030144285410642624,
-0.013438171707093716,
-0.004676622338593006,
-0.008664996363222599,
-0.0030426515731960535,
-0.038700349628925323,
-0.025212664157152176,
-0.028837107121944427,
-0.021271327510476112,
0.019280854612588882,
0.0031268259044736624,
-0.07854942977428436,
-0.016111942008137703,
-0.03751200810074806,
0.03386775776743889,
-0.04285954684019089,
-0.0002826955169439316,
0.00203998782671988,
-0.01594359427690506,
0.0026737703010439873,
0.03640288859605789,
0.07027064263820648,
-0.0760539099574089,
-0.03267941623926163,
0.05050455033779144,
-0.04079975560307503,
0.05993206799030304,
0.03452134504914284,
0.020776186138391495,
-0.016062427312135696,
-0.03188718855381012,
0.009016547352075577,
-0.026064308360219002,
-0.012556817382574081,
-0.03626424819231033,
0.030896902084350586,
0.011685366742312908,
0.01564650796353817,
0.04186926409602165,
-0.0040923538617789745,
-0.07233043760061264,
0.04650379717350006,
-0.024539269506931305,
-0.028619244694709778,
0.10750537365674973,
0.021350551396608353,
0.003426387207582593,
-0.04361216351389885,
-0.04258226975798607,
-0.034580763429403305,
0.021053465083241463,
-0.011160515248775482,
0.013675839640200138,
-0.005728800315409899,
0.035452213138341904,
0.0005861251265741885,
0.00009059563308255747,
0.04725641384720802,
-0.03978966176509857,
0.0023024133406579494,
-0.010992166586220264,
0.07625196874141693,
0.015814855694770813,
-0.004337449558079243,
0.039373744279146194,
-0.05696121230721474,
0.05165328085422516,
-0.018924351781606674,
-0.016963588073849678,
0.06028857082128525,
0.07510323822498322,
-0.0209544375538826,
0.04095819965004921,
-0.035452213138341904,
-0.01926104910671711,
-0.06274447590112686,
0.06163535639643669,
-0.034065812826156616,
0.006971608381718397,
0.01203196682035923,
0.01748843863606453,
0.004268129821866751,
0.008590725250542164,
0.021449578925967216
] |
725,540 | syne_tune.report | __post_init__ | null | def __post_init__(self):
if self.add_time:
self.start = perf_counter()
self.iter = 0
# TODO dollar-cost computation is not available for file-based backends, what would be
# needed to add support for those backends will be to add a way to access instance-type
# information.
if self.add_cost:
# add instance_type and instance count so that cost can be computed easily
self.instance_type = os.getenv(
f"SM_HP_{ST_INSTANCE_TYPE.upper()}", None
)
self.instance_count = literal_eval(
os.getenv(f"SM_HP_{ST_INSTANCE_COUNT.upper()}", "1")
)
if self.instance_type is not None:
logger.info(
f"detected instance-type/instance-count to {self.instance_type}/{self.instance_count}"
)
instance_infos = InstanceInfos()
if self.instance_type in instance_infos.instances:
cost_per_hour = instance_infos(
instance_type=self.instance_type
).cost_per_hour
self.dollar_cost = cost_per_hour * self.instance_count / 3600
| (self) | [
0.07912492752075195,
-0.03653176128864288,
-0.05556892976164818,
0.04246613383293152,
0.0038156001828610897,
-0.034426603466272354,
-0.020942699164152145,
-0.014545558020472527,
-0.06845395267009735,
-0.028818896040320396,
0.01430056057870388,
0.06489696353673935,
0.009872468188405037,
-0.008230081759393215,
-0.028437789529561996,
0.015861282125115395,
0.00119549420196563,
0.024445248767733574,
-0.03183145076036453,
-0.08181082457304001,
-0.022213052958250046,
0.027984092012047768,
-0.006138533819466829,
0.04130466654896736,
-0.0038473589811474085,
0.03540659323334694,
0.01976308412849903,
-0.003246209118515253,
0.016732381656765938,
-0.01188688725233078,
0.012531138956546783,
0.012866875156760216,
-0.05535115674138069,
0.011043009348213673,
0.04518831893801689,
-0.03527955710887909,
0.012848727405071259,
0.007585830520838499,
-0.08239155262708664,
0.07215613126754761,
0.09785358607769012,
-0.05408079922199249,
0.019599752500653267,
-0.004053791519254446,
-0.03272069990634918,
0.03604177013039589,
0.015344066545367241,
-0.025261905044317245,
0.03368254005908966,
-0.09357067197561264,
-0.012340585701167583,
0.003708980977535248,
0.028891488909721375,
0.042175766080617905,
-0.03330143168568611,
0.058508891612291336,
0.054189689457416534,
0.03596917539834976,
-0.03190404176712036,
0.016369422897696495,
-0.011269858106970787,
-0.017258672043681145,
-0.017177006229758263,
-0.013266129419207573,
0.01032616663724184,
-0.02103343978524208,
-0.05676669254899025,
0.026078561320900917,
0.01983567699790001,
0.015471101738512516,
0.05023344233632088,
-0.031686268746852875,
0.0069188945926725864,
0.008801741525530815,
-0.012685395777225494,
-0.01912790723145008,
-0.019164202734827995,
-0.025987820699810982,
0.012866875156760216,
-0.02587893418967724,
0.003005749313160777,
0.046821631491184235,
-0.019037168473005295,
-0.03883654996752739,
0.04798309877514839,
-0.027639281004667282,
0.029381481930613518,
-0.017412928864359856,
-0.05230230465531349,
0.023555999621748924,
-0.05720224231481552,
0.006002424284815788,
0.02778446488082409,
0.07956048101186752,
0.04627719521522522,
-0.05502449348568916,
-0.03190404176712036,
-0.05019714683294296,
-0.02435450814664364,
0.0012658174382522702,
0.022739343345165253,
-0.043700192123651505,
0.04638608172535896,
-0.014182599261403084,
0.0055396524257957935,
-0.035805843770504,
0.00831628404557705,
-0.03192219138145447,
0.0032552829943597317,
0.002756215399131179,
-0.015235178172588348,
0.013012058101594448,
-0.03451734408736229,
-0.02575189806520939,
-0.017739592120051384,
-0.02497153729200363,
-0.025280052796006203,
0.01818421483039856,
0.019055316224694252,
0.02181379869580269,
-0.04968900606036186,
-0.0017716906731948256,
-0.036404725164175034,
0.0665302723646164,
-0.059779249131679535,
-0.013175389729440212,
0.047003112733364105,
0.01823865994811058,
-0.023029709234833717,
-0.02255786396563053,
0.06046886742115021,
-0.015071847476065159,
-0.025316348299384117,
0.03880025073885918,
0.008207396604120731,
-0.04391796514391899,
0.06522362679243088,
0.030797019600868225,
-0.030669983476400375,
0.012612803839147091,
0.03985283151268959,
0.012440399266779423,
-0.008184711448848248,
-0.056040775030851364,
0.047003112733364105,
0.046494971960783005,
-0.05168527364730835,
0.024808205664157867,
-0.03840099647641182,
-0.03850988671183586,
0.005748353432863951,
-0.035878438502550125,
0.024826353415846825,
0.009364326484501362,
0.008670168928802013,
-0.044716473668813705,
-0.02816557139158249,
-0.006796395871788263,
-0.02281193435192108,
-0.03399105370044708,
-0.05262896791100502,
0.018120698630809784,
-0.009899689815938473,
-0.05752890557050705,
-0.029635552316904068,
0.04043356329202652,
-0.03703990578651428,
-0.009736359119415283,
-0.008089435286819935,
0.04195798933506012,
-0.010734494775533676,
-0.07927011698484421,
-0.010625607334077358,
0.03012554720044136,
-0.006487881299108267,
0.06464289128780365,
0.03967135399580002,
-0.00040322408312931657,
0.019146054983139038,
0.029417777433991432,
0.014545558020472527,
-0.02110603079199791,
-0.0799960270524025,
0.011469485238194466,
-0.02181379869580269,
0.0005693910061381757,
0.040397267788648605,
-0.0029036670457571745,
0.021886391565203667,
0.0640258640050888,
0.05789186432957649,
0.027947796508669853,
-0.029145559296011925,
-0.01843828707933426,
0.05945258587598801,
0.03876395523548126,
0.014908515848219395,
-0.007762772496789694,
-0.007780920714139938,
0.10068465769290924,
-0.07055911421775818,
0.03255736827850342,
-0.004750217776745558,
-0.07175687700510025,
-0.008819889277219772,
-0.011814295314252377,
-0.012585582211613655,
0.06812728941440582,
-0.07912492752075195,
0.029381481930613518,
-0.052919335663318634,
-0.029835179448127747,
-0.011868739500641823,
0.06707470864057541,
0.048600129783153534,
-0.047003112733364105,
0.021450841799378395,
0.01770329661667347,
0.009908764623105526,
-0.0021006218157708645,
0.029018523171544075,
-0.00371805508621037,
-0.05077787861227989,
-0.029091116040945053,
0.011650964617729187,
-0.0014994718367233872,
0.004668552428483963,
0.062319956719875336,
-0.02306600660085678,
-0.017131635919213295,
-0.019926415756344795,
0.04050615802407265,
0.02283008210361004,
0.016369422897696495,
0.04947122931480408,
0.021450841799378395,
-0.009582101367413998,
0.08188341557979584,
-0.04311945661902428,
-0.02459043078124523,
0.00937340036034584,
0.019055316224694252,
-0.013837789185345173,
-0.08384338766336441,
-0.10939566045999527,
-0.003003480611369014,
0.04660385847091675,
0.04918086156249046,
-0.03731212392449379,
-0.004335084464401007,
0.03217625990509987,
-0.04330093786120415,
0.0055532632395625114,
-0.024445248767733574,
-0.04094170778989792,
-0.022703047841787338,
0.029163707047700882,
-0.008515911176800728,
0.029472222551703453,
-0.017494594678282738,
-0.0011149628553539515,
-0.009527658112347126,
-0.012503916397690773,
0.025407087057828903,
-0.04609571769833565,
0.05919851362705231,
0.03070628084242344,
0.009963207878172398,
-0.034099940210580826,
0.013928527943789959,
0.031631823629140854,
0.002481728093698621,
-0.02905481867492199,
0.005095028318464756,
-0.028492234647274017,
-0.017975514754652977,
-0.026024116203188896,
-0.02377377450466156,
-0.05095935985445976,
0.031051089987158775,
0.061122193932533264,
-0.026858922094106674,
0.03279329091310501,
-0.05052381008863449,
-0.05154009163379669,
-0.044716473668813705,
-0.011369671672582626,
0.05763779208064079,
0.005585022270679474,
-0.017594408243894577,
-0.07665681093931198,
0.035805843770504,
0.024880798533558846,
0.022648604586720467,
0.06936135143041611,
-0.006288254167884588,
-0.04086911678314209,
-0.02090640366077423,
0.0024045994505286217,
0.03558807075023651,
-0.02034381777048111,
-0.020833812654018402,
-0.009300808422267437,
0.03272069990634918,
-0.04253872483968735,
0.03869136422872543,
0.06968801468610764,
0.017739592120051384,
0.05095935985445976,
-0.018964575603604317,
0.011006712913513184,
0.046240899711847305,
0.050632696598768234,
0.09916023164987564,
0.02936333417892456,
0.006828154902905226,
-0.025842636823654175,
-0.030361469835042953,
-0.01932753436267376,
0.05350006744265556,
-0.06634879112243652,
0.0365680567920208,
0.012485768646001816,
0.012685395777225494,
0.01996271125972271,
-0.025153016671538353,
0.023029709234833717,
-0.004990677814930677,
0.04384537413716316,
-0.029889624565839767,
-0.07081318646669388,
-0.030270729213953018,
0.03687657415866852,
0.00792610365897417,
0.057057060301303864,
-0.014264265075325966,
-0.0037044440396130085,
-0.020616035908460617,
-0.04094170778989792,
-0.040070608258247375,
0.02382821775972843,
0.03551547974348068,
-0.061122193932533264,
0.036441024392843246,
0.02473561465740204,
-0.07956048101186752,
0.020307522267103195,
-0.07070429623126984,
0.03558807075023651,
-0.012630952522158623,
-0.04620460420846939,
-0.024572283029556274,
-0.026350779458880424,
0.10990380495786667,
0.06576806306838989,
-0.04696681722998619,
-0.02669559046626091,
-0.06217477470636368,
-0.01813884638249874,
-0.029780736193060875,
0.014745185151696205,
0.04515202343463898,
-0.03145034611225128,
0.03121442161500454,
0.011133749037981033,
-0.06075923517346382,
0.010271722450852394,
-0.020162338390946388,
0.02618744783103466,
-0.02783890813589096,
-0.025915229693055153,
-0.047511253505945206,
0.030978498980402946,
0.009337104856967926,
0.03390031307935715,
-0.013819640502333641,
-0.030542949214577675,
0.03284773603081703,
-0.023465260863304138,
-0.0012159106554463506,
0.029762588441371918,
0.05284674093127251,
-0.03999801352620125,
0.01620609313249588,
0.009083033539354801,
0.006882598623633385,
0.01894642785191536,
0.02103343978524208,
0.08224637061357498,
0.01178707368671894,
0.020253079012036324,
0.03228515014052391,
-0.03959875926375389,
-0.030778871849179268,
0.015534618869423866,
0.03540659323334694,
-0.013601865619421005,
0.004668552428483963,
-0.02117862179875374,
0.01179614756256342,
0.01605183444917202,
-0.040723931044340134,
0.02471746690571308,
0.05999702215194702,
-0.02382821775972843,
-0.04718459025025368,
0.04515202343463898,
-0.011133749037981033,
0.00035416800528764725,
0.06072293967008591,
-0.05480671674013138,
-0.03415438532829285,
-0.03259366378188133,
-0.04914456605911255,
-0.08043158054351807,
-0.048273466527462006,
0.029163707047700882,
-0.022485272958874702,
0.024626726284623146,
0.027857055887579918,
0.012785209342837334,
0.0825367420911789,
0.020942699164152145,
0.012467620894312859,
0.005330951418727636,
-0.011551151052117348,
-0.001948632881976664,
-0.0035184279549866915,
-0.0061113121919333935,
0.004759292118251324,
-0.05607707053422928,
0.061630334705114365,
-0.04794680327177048,
0.012948540970683098,
0.06261032074689865,
-0.005321877542883158,
0.014799628406763077,
-0.025715602561831474,
0.00502243684604764,
0.01303020678460598,
-0.005249285604804754,
-0.017721444368362427,
0.04126837104558945,
0.017512742429971695,
0.011269858106970787,
-0.018783096224069595,
-0.04181280732154846,
-0.025661159306764603,
-0.005984276533126831,
-0.023846367374062538,
-0.01564350724220276,
-0.02288452722132206,
0.047075703740119934,
-0.006052331067621708,
0.02675003372132778,
-0.04355500638484955,
-0.004668552428483963,
-0.031305160373449326,
0.022485272958874702,
-0.009536731988191605,
-0.08064935356378555,
0.05433487147092819,
0.02511672116816044,
0.008711001835763454,
-0.011805221438407898,
0.021069735288619995,
0.03818322345614433,
0.04892679303884506,
0.0006011498626321554,
0.02422747202217579,
0.007544997613877058,
0.03141405060887337,
0.00004540524605545215,
-0.04203058034181595,
-0.021142326295375824,
-0.04017949476838112,
-0.022394532337784767,
-0.001752408454194665,
-0.023737479001283646,
-0.07037763297557831,
0.09465955197811127,
0.015235178172588348,
0.06286439299583435,
0.010634681209921837,
-0.013393164612352848,
0.0018669671844691038,
0.04997937008738518,
-0.018202362582087517,
0.044462405145168304,
-0.042175766080617905,
-0.08144786208868027,
-0.020452706143260002,
0.048600129783153534,
0.03286588191986084,
-0.033791426569223404,
0.010171908885240555,
0.04798309877514839,
0.02408229000866413,
0.05099565535783768,
-0.0066738976165652275,
-0.006075016222894192,
0.016442015767097473,
0.019999006763100624,
-0.005412617232650518,
0.009527658112347126,
0.009241827763617039,
-0.03357364982366562,
0.02529820054769516,
-0.01856532134115696,
0.035805843770504,
0.009250901639461517,
-0.06065034866333008,
-0.006832691840827465,
-0.01197762694209814,
0.020670481026172638,
0.03108738735318184,
-0.03495289385318756,
-0.0008064481662586331,
-0.04475276917219162,
0.014817776158452034,
0.014863146468997002,
0.06885320693254471,
0.02194083482027054,
-0.05633114278316498,
0.0185381006449461,
-0.0026042265817523003,
-0.02573375031352043,
0.005666688084602356,
0.05208452790975571,
0.03999801352620125,
0.017721444368362427,
-0.07825382798910141,
0.004899938125163317,
0.004046985879540443,
0.022975265979766846,
0.009908764623105526,
0.011660038493573666,
-0.07883456349372864,
0.007363518234342337,
-0.07233760505914688,
0.027040399610996246,
-0.02473561465740204,
0.05796445533633232,
-0.09197365492582321,
-0.004664015490561724,
0.0014915321953594685,
0.008556744083762169,
0.020743072032928467,
-0.04587794095277786,
-0.024808205664157867,
0.05593188852071762,
-0.04079652205109596,
0.01487222034484148,
-0.03720323368906975,
0.023918958380818367,
0.02999851107597351,
0.02751224674284458,
0.012258919887244701,
0.07963307201862335,
0.03538844361901283,
-0.010761716403067112,
-0.0347895622253418,
-0.0040878187865018845,
0.031377751380205154,
-0.020325670018792152,
-0.040905412286520004,
-0.03742101043462753,
0.059343695640563965,
-0.031758859753608704,
-0.019527161493897438,
0.027675578370690346,
-0.025915229693055153,
0.02219490520656109,
-0.003389124060049653,
-0.043700192123651505,
0.009151088073849678,
-0.03284773603081703,
0.031305160373449326,
0.04272020235657692,
-0.06493325531482697,
0.00994506012648344,
0.04511572793126106,
-0.04584164544939995,
-0.03337402269244194,
-0.0017410659929737449,
0.001972452038899064,
-0.007712865713983774,
0.016732381656765938,
0.006664823740720749,
-0.010335240513086319,
-0.05720224231481552,
0.00849776342511177,
-0.016042761504650116,
-0.0018250001594424248,
-0.02313859760761261,
0.003466252703219652,
0.00033488584449514747,
0.0067283413372933865,
-0.0026314484421163797,
0.0332651361823082,
-0.017031822353601456,
0.06344512850046158,
0.010435054078698158,
0.002481728093698621,
0.0665665715932846,
-0.03669509291648865,
-0.04152243956923485,
0.027693726122379303,
-0.010553015395998955,
-0.013710753060877323,
0.020489001646637917,
0.020833812654018402,
0.027348915114998817,
0.02791150100529194,
0.003491206094622612,
-0.05669410154223442,
-0.003264357103034854,
-0.029581109061837196,
0.05745631456375122,
-0.002046177862212062,
-0.07505979388952255,
0.08725519478321075,
0.03132330998778343,
0.015861282125115395,
-0.031813304871320724,
-0.030688133090734482,
0.04025208577513695,
-0.09255439043045044,
0.02275749109685421,
-0.03482585772871971,
-0.006882598623633385,
-0.00802591722458601,
0.00840702373534441,
-0.06453400105237961,
0.005362710449844599,
0.01597924344241619,
0.005616781301796436,
0.03959875926375389,
0.004096892662346363,
0.015534618869423866,
0.03157737851142883,
0.024064142256975174,
0.010634681209921837,
-0.01051671989262104,
-0.0059207589365541935,
-0.020924551412463188,
-0.02961740456521511,
-0.030234433710575104,
0.054951902478933334,
0.033918462693691254,
-0.017521817237138748,
-0.021214917302131653,
-0.013883158564567566,
0.02194083482027054,
-0.08551299571990967,
-0.008711001835763454,
-0.02192268706858158,
-0.0162514615803957,
0.016777751967310905,
-0.026659294962882996,
-0.07701977342367172,
0.021468989551067352,
-0.00017240524175576866,
-0.03745730593800545,
0.03720323368906975,
-0.029018523171544075,
0.00617936672642827,
0.01503555104136467,
-0.02905481867492199,
0.008960535749793053,
0.008860722184181213,
-0.012785209342837334,
-0.013211685232818127,
0.008434245362877846,
-0.03451734408736229,
-0.000358704972313717,
-0.02090640366077423,
0.011832443997263908,
-0.010852456092834473,
0.036840278655290604,
0.04010690376162529,
0.012186327949166298,
-0.04743866249918938,
0.001482458203099668,
-0.020561592653393745,
0.038110632449388504,
-0.014164451509714127,
-0.0013622281840071082,
0.03491659834980965,
-0.05967035889625549,
-0.04235724359750748,
0.007681107148528099,
0.02420932427048683,
0.019055316224694252,
-0.019218647852540016,
-0.03272069990634918,
-0.01843828707933426,
-0.07977825403213501,
0.02771187387406826,
-0.015716098248958588,
0.0012839653063565493,
-0.007989621721208096,
0.011115601286292076,
0.01115189678966999,
0.01134245004504919,
0.034226976335048676,
-0.061811815947294235,
-0.0019293506629765034,
0.04765643551945686,
-0.013928527943789959,
0.040723931044340134,
0.054951902478933334,
0.021251214668154716,
-0.0072909267619252205,
-0.013892232440412045,
0.032248854637145996,
-0.004763829056173563,
0.04653126746416092,
-0.07407981157302856,
0.015235178172588348,
0.025697454810142517,
0.005063269753009081,
0.06075923517346382,
-0.01874680072069168,
-0.01709534041583538,
0.03373698145151138,
-0.003150932490825653,
-0.0332832857966423,
0.048273466527462006,
0.0337732769548893,
-0.06340882927179337,
-0.05644002929329872,
-0.036441024392843246,
-0.019472718238830566,
-0.016342202201485634,
-0.05458894371986389,
0.03880025073885918,
-0.005820945370942354,
0.04925345256924629,
0.020198633894324303,
-0.021214917302131653,
-0.0005311102140694857,
-0.035751402378082275,
0.04105059430003166,
0.004654941614717245,
0.04174021631479263,
0.013111871667206287,
-0.019980859011411667,
0.04576905444264412,
-0.007939714938402176,
0.03843729570508003,
0.016668863594532013,
0.016777751967310905,
0.06471548229455948,
0.044026851654052734,
-0.008261840790510178,
0.027929648756980896,
-0.028764452785253525,
-0.011669112369418144,
-0.06115848943591118,
0.03890914097428322,
-0.08819889277219772,
0.014028341509401798,
0.017140710726380348,
0.06580435484647751,
-0.0018873836379498243,
0.010562089271843433,
0.0038156001828610897
] |
725,542 | syne_tune.report | _check_reported_values | null | @staticmethod
def _check_reported_values(kwargs: Dict[str, Any]):
assert all(
v is not None for v in kwargs.values()
), f"Invalid value in report: kwargs = {kwargs}"
| (kwargs: Dict[str, Any]) | [
0.02296316623687744,
-0.026852089911699295,
-0.0024747694842517376,
0.026666903868317604,
-0.040707431733608246,
-0.02314835414290428,
0.01696142926812172,
-0.023518728092312813,
0.02377125434577465,
-0.033788178116083145,
-0.013510220684111118,
0.08484923839569092,
0.042289938777685165,
-0.051616620272397995,
-0.0009227775735780597,
-0.015454682521522045,
-0.010437803342938423,
0.06710497289896011,
0.08060677349567413,
0.0053788358345627785,
0.012348594143986702,
-0.02949521131813526,
-0.03008444234728813,
0.07649899274110794,
0.004747516941279173,
0.0103957150131464,
0.01841767132282257,
-0.023350374773144722,
0.024613013491034508,
0.08996713161468506,
-0.05309811607003212,
-0.054579608142375946,
0.014831781387329102,
0.08397381007671356,
0.012138155288994312,
-0.0455559603869915,
-0.018131474032998085,
0.020320044830441475,
-0.14235816895961761,
-0.026431210339069366,
-0.023687079548835754,
0.003851044224575162,
-0.0058081322349607944,
-0.017373891547322273,
-0.02931002527475357,
-0.030471650883555412,
-0.001866599079221487,
0.04259297251701355,
-0.06218910589814186,
-0.04104413464665413,
0.02616184763610363,
0.03353565186262131,
0.02143116667866707,
0.008661692962050438,
-0.010564066469669342,
0.031801629811525345,
0.01148158311843872,
0.06565714627504349,
0.010387297719717026,
0.029427871108055115,
-0.05633046478033066,
0.056364137679338455,
0.021498506888747215,
-0.07946198433637619,
-0.00634264899417758,
-0.0574752576649189,
-0.005538769531995058,
-0.00941927544772625,
-0.0017287611262872815,
0.015134814195334911,
-0.02141433209180832,
-0.039124924689531326,
-0.04730681702494621,
0.04397345334291458,
0.0109007703140378,
-0.05828334391117096,
-0.07090972363948822,
0.04185222461819649,
0.01180986873805523,
-0.029613057151436806,
-0.00042561403824947774,
-0.02314835414290428,
0.0044402750208973885,
-0.019966507330536842,
0.002260121051222086,
0.034949805587530136,
-0.012432769872248173,
0.05468061938881874,
0.07387270778417587,
0.058552708476781845,
-0.034579429775476456,
0.002565258415415883,
0.005980692803859711,
-0.004646505694836378,
-0.005904934369027615,
0.036161936819553375,
0.039326947182416916,
-0.009579209610819817,
-0.07306462526321411,
0.016809914261102676,
0.027188792824745178,
-0.10208845138549805,
0.05535402521491051,
-0.0257578045129776,
0.006624638102948666,
-0.04639771953225136,
0.0038236870896071196,
-0.0793273001909256,
0.03582523390650749,
0.020471561700105667,
-0.019932836294174194,
-0.0950176790356636,
0.0023716541472822428,
-0.035757891833782196,
-0.02791270613670349,
0.0058838906697928905,
-0.032003652304410934,
-0.06895684450864792,
-0.04205424711108208,
-0.030000265687704086,
0.013712243176996708,
0.05407455563545227,
0.0017498050583526492,
0.044478509575128555,
0.07205451279878616,
-0.01961296796798706,
-0.039124924689531326,
0.04835059866309166,
0.037946466356515884,
0.05370417982339859,
0.05333380773663521,
-0.0006939244922250509,
0.01337553933262825,
0.010479890741407871,
-0.0035879947245121002,
0.015715626999735832,
0.029579387977719307,
0.004608626943081617,
0.03089253045618534,
-0.03094303607940674,
0.02237393520772457,
0.02298000268638134,
-0.015833474695682526,
-0.013350286521017551,
0.017727430909872055,
-0.014587671495974064,
-0.03730672970414162,
0.022474946454167366,
-0.025101233273744583,
-0.0005834437324665487,
0.04377143085002899,
-0.015084308572113514,
-0.08633073419332504,
0.0011426869314163923,
-0.011060704477131367,
-0.06569081544876099,
0.0336703322827816,
-0.027458155527710915,
0.010471473447978497,
-0.01595132052898407,
0.003728989278897643,
-0.03232352063059807,
0.04478154331445694,
0.008375495672225952,
-0.008863715454936028,
0.059529148042201996,
0.02533692494034767,
-0.006940297316759825,
0.04144817963242531,
0.04343472793698311,
-0.0074790227226912975,
0.005551395937800407,
-0.0036574399564415216,
0.02434365078806877,
0.012895737774670124,
0.04340105876326561,
-0.026448046788573265,
-0.032828573137521744,
-0.002632599091157317,
0.0257578045129776,
-0.03727305680513382,
-0.05269407108426094,
-0.050269804894924164,
0.03868721053004265,
0.0773070827126503,
-0.025421101599931717,
-0.03292958438396454,
-0.06235745549201965,
-0.04676809161901474,
0.025421101599931717,
-0.008476505987346172,
-0.017929451540112495,
0.031397584825754166,
0.023939605802297592,
-0.004183538723737001,
-0.05471429228782654,
0.03048848547041416,
-0.04841793701052666,
0.025219079107046127,
-0.012651627883315086,
-0.016498463228344917,
-0.0714484453201294,
-0.009048901498317719,
-0.0003885240585077554,
-0.019713979214429855,
0.005614527966827154,
0.04117881506681442,
-0.0067677367478609085,
-0.003907863050699234,
-0.0007249643676914275,
0.001420467160642147,
-0.017213957384228706,
-0.030993541702628136,
0.014175210148096085,
-0.003409121185541153,
-0.015825055539608,
0.04239095002412796,
-0.021868880838155746,
-0.0614820271730423,
0.038518860936164856,
0.08572466671466827,
-0.007996704429388046,
0.04457952082157135,
-0.005963857751339674,
0.08505126088857651,
0.011195385828614235,
0.07434409111738205,
0.02159951813519001,
-0.012197078205645084,
0.0026262858882546425,
0.002613659482449293,
0.034377411007881165,
-0.014537165872752666,
0.03133024275302887,
-0.027626506984233856,
-0.02361973747611046,
0.034158553928136826,
-0.06097697094082832,
0.03659965097904205,
0.004760143347084522,
0.028602948412299156,
0.006595176178961992,
-0.029411034658551216,
0.06818242371082306,
0.02890598028898239,
-0.046902772039175034,
0.005345165263861418,
0.07744176685810089,
-0.02338404580950737,
-0.004966374021023512,
0.023535562679171562,
0.010016923770308495,
-0.025303255766630173,
-0.004410813562572002,
-0.013249276205897331,
0.014823364093899727,
0.01766008883714676,
0.0065404619090259075,
0.091111920773983,
-0.042121585458517075,
-0.002430577063933015,
0.02456250786781311,
0.0018508160719648004,
0.053030773997306824,
-0.022222420200705528,
-0.018788045272231102,
0.042896002531051636,
-0.003926802426576614,
-0.04437749832868576,
0.01686883717775345,
-0.008093506097793579,
-0.01457925420254469,
0.010160022415220737,
0.02994976006448269,
0.0047348905354738235,
0.04377143085002899,
0.07360334694385529,
-0.03703736513853073,
-0.016877254471182823,
0.04148184880614281,
0.04262664169073105,
-0.015261078253388405,
0.047677189111709595,
0.028451431542634964,
0.0049537476152181625,
-0.014638177119195461,
0.005260989535599947,
0.007020264398306608,
-0.013956353068351746,
-0.012129737064242363,
0.0011721485061571002,
-0.014436155557632446,
0.04101046547293663,
-0.010766088962554932,
-0.014326726086437702,
0.016919342800974846,
0.060337234288454056,
-0.08437785506248474,
0.018552353605628014,
0.025202244520187378,
0.030033936724066734,
-0.025690464302897453,
0.0020822996739298105,
-0.03481512516736984,
0.01707085780799389,
0.01941094733774662,
0.006048033479601145,
0.010328374803066254,
-0.005669242236763239,
-0.043098025023937225,
-0.018501847982406616,
0.03922593593597412,
-0.009646550752222538,
-0.027794860303401947,
0.032794903963804245,
-0.013644902035593987,
0.004911659751087427,
-0.009604462422430515,
-0.04380510374903679,
0.0376097597181797,
-0.0029503628611564636,
0.01567354053258896,
0.0067971982061862946,
-0.04851894825696945,
-0.006119582802057266,
-0.05087587237358093,
0.012171825394034386,
-0.011607847176492214,
0.025303255766630173,
0.020067518576979637,
-0.05037081614136696,
-0.04080844298005104,
0.046700749546289444,
0.018333496525883675,
0.03643130138516426,
0.024444662034511566,
-0.07037099450826645,
0.03193631023168564,
0.04225626587867737,
0.024512002244591713,
-0.006426824722439051,
-0.04272765293717384,
0.0076894620433449745,
0.0021496403496712446,
0.05373784899711609,
-0.005357791669666767,
-0.01696142926812172,
0.012668462470173836,
0.07609495520591736,
0.005681868642568588,
-0.03146492689847946,
0.011843539774417877,
0.02577463909983635,
0.007853604853153229,
0.07690303772687912,
0.030219122767448425,
0.029596222564578056,
-0.03348514437675476,
-0.02638070471584797,
0.03133024275302887,
0.11394040286540985,
-0.008973143994808197,
0.011363737285137177,
0.006835077423602343,
0.03313160687685013,
0.004646505694836378,
0.037744443863630295,
0.003015599213540554,
0.010951275937259197,
-0.02831674925982952,
-0.0036595442797988653,
-0.024730859324336052,
0.008602770045399666,
-0.0395626425743103,
0.007979868911206722,
0.020286375656723976,
0.024697188287973404,
0.03341780602931976,
-0.07111174613237381,
0.016919342800974846,
-0.004158285912126303,
-0.015757715329527855,
-0.008430209942162037,
-0.002157005714252591,
-0.008186100050807,
-0.025437936186790466,
-0.030387476086616516,
0.005303077399730682,
-0.019562462344765663,
0.029040662571787834,
0.026414375752210617,
-0.006923462264239788,
-0.015883980318903923,
0.005164187401533127,
0.026195518672466278,
0.002624181564897299,
0.01702035404741764,
0.01663314364850521,
-0.04855262115597725,
-0.0020086457952857018,
-0.00014743923384230584,
-0.04875463992357254,
-0.07979869097471237,
0.005900725722312927,
0.003428060794249177,
0.0003088200755883008,
-0.008552264422178268,
-0.0218015406280756,
0.03606092557311058,
0.016296440735459328,
0.07010163366794586,
-0.05663349851965904,
0.013914264738559723,
-0.04841793701052666,
-0.02239077165722847,
-0.002190676052123308,
-0.024040617048740387,
-0.009032066911458969,
0.003945742268115282,
-0.03858620300889015,
0.06043824553489685,
-0.028451431542634964,
0.007580033503472805,
0.06599385291337967,
0.09090989828109741,
-0.02119547501206398,
-0.030572662129998207,
-0.03052215650677681,
0.06367059797048569,
0.0065110004507005215,
-0.03925960883498192,
-0.03784545511007309,
-0.0515156090259552,
-0.015580946579575539,
0.03579156473278999,
0.03424272686243057,
-0.04835059866309166,
0.008106132969260216,
0.021111298352479935,
0.04653239995241165,
-0.05902409180998802,
-0.02196989208459854,
0.015193738043308258,
0.02478136494755745,
0.014537165872752666,
-0.02161635272204876,
-0.001678255619481206,
0.023030508309602737,
-0.0067382752895355225,
-0.026262858882546425,
-0.02082510106265545,
0.017525408416986465,
-0.06299719214439392,
-0.05508466437458992,
0.022306594997644424,
-0.025421101599931717,
-0.13353653252124786,
0.03592624515295029,
0.02139749564230442,
-0.016456374898552895,
0.04138083755970001,
-0.018973233178257942,
-0.09676853567361832,
-0.04276132211089134,
0.003535385010764003,
0.08585935086011887,
-0.03306426480412483,
0.02062307856976986,
0.0005650302628055215,
0.050236135721206665,
-0.015715626999735832,
0.017230791971087456,
-0.018148308619856834,
0.00911624263972044,
-0.03074101358652115,
0.002807263983413577,
0.02420896850526333,
0.046633411198854446,
-0.02319885976612568,
0.03154909983277321,
0.025791475549340248,
0.07117908447980881,
0.042323607951402664,
-0.0019949672278016806,
-0.015538858249783516,
-0.03245820105075836,
-0.010867100208997726,
-0.02301367186009884,
-0.01652371510863304,
0.05232369527220726,
-0.035589542239904404,
-0.058721061795949936,
0.03390602394938469,
-0.021515343338251114,
0.009040484204888344,
-0.0356568805873394,
0.026077672839164734,
0.0436367504298687,
0.03484879434108734,
0.03126290440559387,
0.0023695495910942554,
0.003335467306897044,
0.005538769531995058,
-0.017559077590703964,
0.000993800931610167,
-0.09205468744039536,
0.023872265592217445,
0.045892663300037384,
-0.002342192456126213,
0.003495401469990611,
0.027794860303401947,
0.029983431100845337,
0.022929497063159943,
0.030000265687704086,
0.06131367385387421,
-0.0007538998033851385,
-0.022542288526892662,
-0.03942795842885971,
-0.029427871108055115,
0.031195562332868576,
-0.002316939877346158,
0.05474796146154404,
0.03528650850057602,
-0.07589293271303177,
0.006001736968755722,
-0.007811516989022493,
-0.012996748089790344,
-0.032003652304410934,
-0.0013226127484813333,
-0.021936221048235893,
-0.010370462201535702,
-0.031650111079216,
0.017963122576475143,
0.005303077399730682,
0.009629715234041214,
-0.001085868221707642,
0.021885715425014496,
-0.006675143260508776,
-0.05037081614136696,
0.0027041486464440823,
0.01880487985908985,
-0.016128089278936386,
0.0036742750089615583,
-0.036936353892087936,
0.006978176534175873,
-0.003068209160119295,
-0.01663314364850521,
0.051582951098680496,
-0.005467220209538937,
-0.014831781387329102,
-0.014537165872752666,
-0.019293101504445076,
0.0614820271730423,
0.014099451713263988,
-0.04989943280816078,
-0.01159101165831089,
0.037677101790905,
0.04000035673379898,
0.037744443863630295,
0.024444662034511566,
0.01149000134319067,
-0.05454593896865845,
0.04255929961800575,
-0.024023782461881638,
-0.0830983817577362,
-0.05454593896865845,
-0.015623033978044987,
0.02023587003350258,
-0.02836725488305092,
0.021683694794774055,
-0.03909125551581383,
-0.017559077590703964,
-0.06811508536338806,
-0.011784616857767105,
-0.004638088401407003,
-0.012053978629410267,
0.002769384765997529,
0.006128000561147928,
0.01664998009800911,
-0.03015178255736828,
-0.003059791401028633,
0.04087578505277634,
0.0238049253821373,
-0.056162115186452866,
0.03626294806599617,
0.018586022779345512,
0.039899345487356186,
-0.007849396206438541,
-0.009629715234041214,
0.06468071043491364,
-0.023535562679171562,
0.041313499212265015,
-0.029781408607959747,
-0.04380510374903679,
0.00792094599455595,
0.022626463323831558,
0.02318202331662178,
-0.023872265592217445,
-0.0016077583422884345,
-0.004882198292762041,
-0.06996694952249527,
0.033215783536434174,
-0.019713979214429855,
0.010210528038442135,
-0.015942903235554695,
-0.008754286915063858,
0.03154909983277321,
0.05255939066410065,
-0.01880487985908985,
-0.04067376255989075,
-0.021717363968491554,
-0.0016519506461918354,
0.025471607223153114,
0.03505081683397293,
0.02038738690316677,
-0.01964663900434971,
-0.027693849056959152,
0.03196997940540314,
-0.003301796969026327,
0.034209057688713074,
-0.039158597588539124,
-0.015336836688220501,
-0.042896002531051636,
0.012626375071704388,
-0.004444484133273363,
-0.04602734372019768,
-0.004168807994574308,
-0.00980648398399353,
-0.0713811069726944,
-0.07596027106046677,
-0.0013173517072573304,
0.018905891105532646,
0.035555873066186905,
-0.03372083976864815,
-0.03710470721125603,
0.0009643393568694592,
-0.007466396316885948,
-0.030067607760429382,
-0.014612924307584763,
0.01799679361283779,
-0.007037099450826645,
0.015513605438172817,
-0.03528650850057602,
0.033215783536434174,
0.0018897474510595202,
0.09057319164276123,
-0.04895666241645813,
-0.0672396570444107,
0.06020255386829376,
-0.013308199122548103,
0.013998440466821194,
0.04279499128460884,
-0.012188659980893135,
-0.001730865566059947,
0.018367165699601173,
0.08262699842453003,
-0.03048848547041416,
0.023518728092312813,
0.002617868361994624,
-0.01607758365571499,
0.002512648468837142,
0.0133587047457695,
0.01009268220514059,
-0.06400730460882187,
0.03868721053004265,
0.016700485721230507,
-0.04929336532950401,
-0.045084577053785324,
0.04336738958954811,
-0.002840934321284294,
0.011262726038694382,
-0.007542154286056757,
0.03407437726855278,
0.011767781339585781,
-0.005942813586443663,
-0.019511958584189415,
-0.029411034658551216,
0.0032197255641222,
0.018114639446139336,
-0.0455559603869915,
0.023535562679171562,
-0.0317511223256588,
-0.050236135721206665,
0.020959781482815742,
-0.04481521248817444,
0.01516006700694561,
-0.06707130372524261,
0.00902364868670702,
0.019680310040712357,
-0.0030766266863793135,
0.004385560750961304,
-0.10619623214006424,
-0.00554718729108572,
0.060943301767110825,
-0.022306594997644424,
-0.06875482201576233,
-0.042289938777685165,
0.025909321382641792,
0.07279525697231293,
0.00870378129184246,
-0.053434818983078,
-0.010000089183449745,
-0.012626375071704388,
0.0436030812561512,
-0.016953011974692345,
-0.029865585267543793,
-0.017104528844356537,
0.0062710996717214584,
0.03744141012430191,
-0.05333380773663521,
-0.029831914231181145,
0.07515218108892441,
-0.024006947875022888,
-0.0773744210600853,
-0.03542118892073631,
-0.017912616953253746,
-0.03011811338365078,
-0.024091122671961784,
0.00629635201767087,
-0.06750901788473129,
0.022239254787564278,
0.06848545372486115,
-0.08612871170043945,
0.0067298575304448605,
-0.00629635201767087,
0.022710639983415604,
-0.04000035673379898,
-0.06764369457960129,
0.08397381007671356,
-0.03266022354364395,
0.039326947182416916,
0.004217209294438362,
-0.0058838906697928905,
0.01841767132282257,
-0.0023590277414768934,
-0.015084308572113514,
-0.05414189398288727,
-0.044882554560899734,
-0.01685200072824955,
0.046633411198854446,
0.04740782827138901,
0.03446158394217491,
0.03210466355085373,
-0.004688594024628401,
0.04936070740222931,
0.005463011562824249,
0.020555738359689713,
0.02063991315662861,
0.026801584288477898,
-0.06697028875350952,
0.023889100179076195,
0.012567451223731041,
-0.021885715425014496,
0.030774684622883797,
0.061111655086278915,
-0.013341869227588177,
0.011271144263446331,
0.010185275226831436,
0.03622927889227867,
0.04205424711108208,
-0.06707130372524261,
0.033569321036338806,
-0.02319885976612568,
0.02991609089076519,
-0.0046591321006417274,
0.05235736817121506,
0.006376319099217653,
0.02636387012898922
] |
725,543 | syne_tune.stopping_criterion | StoppingCriterion |
Stopping criterion that can be used in a Tuner, for instance
:code:`Tuner(stop_criterion=StoppingCriterion(max_wallclock_time=3600), ...)`.
If several arguments are used, the combined criterion is true whenever
one of the atomic criteria is true.
In principle, ``stop_criterion`` for ``Tuner`` can be any lambda function, but
this class should be used with remote launching in order to ensure
proper serialization.
:param max_wallclock_time: Stop once this wallclock time is reached
:param max_num_evaluations: Stop once more than this number of metric
records have been reported
:param max_num_trials_started: Stop once more than this number of trials
have been started
:param max_num_trials_completed: Stop once more than this number of trials
have been completed. This does not include trials which were stopped
or failed
:param max_cost: Stop once total cost of evaluations larger than this value
:param max_num_trials_finished: Stop once more than this number of trials
have finished (i.e., completed, stopped, failed, or stopping)
:param min_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value below a threshold
:param max_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value above a threshold
| class StoppingCriterion:
"""
Stopping criterion that can be used in a Tuner, for instance
:code:`Tuner(stop_criterion=StoppingCriterion(max_wallclock_time=3600), ...)`.
If several arguments are used, the combined criterion is true whenever
one of the atomic criteria is true.
In principle, ``stop_criterion`` for ``Tuner`` can be any lambda function, but
this class should be used with remote launching in order to ensure
proper serialization.
:param max_wallclock_time: Stop once this wallclock time is reached
:param max_num_evaluations: Stop once more than this number of metric
records have been reported
:param max_num_trials_started: Stop once more than this number of trials
have been started
:param max_num_trials_completed: Stop once more than this number of trials
have been completed. This does not include trials which were stopped
or failed
:param max_cost: Stop once total cost of evaluations larger than this value
:param max_num_trials_finished: Stop once more than this number of trials
have finished (i.e., completed, stopped, failed, or stopping)
:param min_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value below a threshold
:param max_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value above a threshold
"""
max_wallclock_time: float = None
max_num_evaluations: int = None
max_num_trials_started: int = None
max_num_trials_completed: int = None
max_cost: float = None
max_num_trials_finished: int = None
# minimum value for metrics, any value below this threshold will trigger a stop
min_metric_value: Optional[Dict[str, float]] = None
# maximum value for metrics, any value above this threshold will trigger a stop
max_metric_value: Optional[Dict[str, float]] = None
# todo we should have unit-test for all those cases.
def __call__(self, status: TuningStatus) -> bool:
if (
self.max_wallclock_time is not None
and status.wallclock_time > self.max_wallclock_time
):
logger.info(
f"reaching max wallclock time ({self.max_wallclock_time}), stopping there."
)
return True
if (
self.max_num_trials_started is not None
and status.num_trials_started > self.max_num_trials_started
):
logger.info(
f"reaching max number of trials started ({self.max_num_trials_started + 1}), stopping there."
)
return True
if (
self.max_num_trials_completed is not None
and status.num_trials_completed > self.max_num_trials_completed
):
logger.info(
f"reaching max number of trials completed ({self.max_num_trials_completed + 1}), stopping there."
)
return True
if (
self.max_num_trials_finished is not None
and status.num_trials_finished > self.max_num_trials_finished
):
logger.info(
f"reaching max number of trials finished ({self.max_num_trials_finished + 1}), stopping there."
)
return True
if self.max_cost is not None and status.cost > self.max_cost:
logger.info(f"reaching max cost ({self.max_cost}), stopping there.")
return True
if (
self.max_num_evaluations is not None
and status.overall_metric_statistics.count > self.max_num_evaluations
):
logger.info(
f"reaching {status.overall_metric_statistics.count + 1} evaluations, stopping there. "
)
return True
if (
self.max_metric_value is not None
and status.overall_metric_statistics.count > 0
):
max_metrics_observed = status.overall_metric_statistics.max_metrics
for metric, max_metric_accepted in self.max_metric_value.items():
if (
metric in max_metrics_observed
and max_metrics_observed[metric] > max_metric_accepted
):
logger.info(
f"found {metric} with value ({max_metrics_observed[metric]}), "
f"above the provided threshold {max_metric_accepted} stopping there."
)
return True
if (
self.min_metric_value is not None
and status.overall_metric_statistics.count > 0
):
min_metrics_observed = status.overall_metric_statistics.min_metrics
for metric, min_metric_accepted in self.min_metric_value.items():
if (
metric in min_metrics_observed
and min_metrics_observed[metric] < min_metric_accepted
):
logger.info(
f"found {metric} with value ({min_metrics_observed[metric]}), "
f"below the provided threshold {min_metric_accepted} stopping there."
)
return True
return False
| (max_wallclock_time: float = None, max_num_evaluations: int = None, max_num_trials_started: int = None, max_num_trials_completed: int = None, max_cost: float = None, max_num_trials_finished: int = None, min_metric_value: Optional[Dict[str, float]] = None, max_metric_value: Optional[Dict[str, float]] = None) -> None | [
0.07093635201454163,
-0.010819786228239536,
-0.045311588793992996,
0.016418974846601486,
-0.03877587988972664,
-0.05025322362780571,
-0.0462680347263813,
-0.013997973874211311,
-0.03879580646753311,
-0.028673429042100906,
-0.047264330089092255,
0.0478222593665123,
0.05089085176587105,
-0.012921972200274467,
-0.0029415669851005077,
0.03668365627527237,
-0.010371452197432518,
-0.01761453226208687,
0.04865914583206177,
0.006351393647491932,
0.005315244663506746,
0.01052089687436819,
-0.014665492810308933,
0.061810269951820374,
0.018750309944152832,
0.043478403240442276,
0.011288045905530453,
0.0007590538007207215,
-0.06750908493995667,
0.006914301309734583,
-0.03467113897204399,
-0.009056339971721172,
0.002112149726599455,
-0.012951861135661602,
0.0681467205286026,
-0.023353202268481255,
0.011278082616627216,
0.07408464699983597,
-0.10233963280916214,
-0.013190972618758678,
-0.039592843502759933,
-0.04750344157218933,
-0.024867573752999306,
0.03807847201824188,
-0.005305281840264797,
0.00009760597458807752,
-0.006456004921346903,
0.04260165989398956,
0.05471663549542427,
-0.0666721984744072,
0.0019203625852242112,
-0.009803563356399536,
0.02044401504099369,
0.06591501086950302,
-0.0274579469114542,
0.021380534395575523,
0.02044401504099369,
0.004246715921908617,
0.01686730980873108,
-0.04650714620947838,
-0.015502382069826126,
0.0023512609768658876,
0.03656410053372383,
0.002085997024551034,
-0.0066602458246052265,
0.006002689711749554,
-0.0478222593665123,
0.014994270168244839,
-0.020115237683057785,
0.05746641382575035,
-0.0008792321314103901,
-0.016986863687634468,
0.01886986568570137,
-0.028474168851971626,
-0.0416850671172142,
-0.0625276044011116,
-0.035089582204818726,
-0.04842003807425499,
-0.019776497036218643,
-0.08093917369842529,
0.04391677305102348,
0.0166680496186018,
-0.009056339971721172,
-0.07392524182796478,
0.033913951367139816,
-0.01401789952069521,
0.03979210555553436,
0.008936784230172634,
-0.004084818065166473,
-0.04391677305102348,
-0.03811832517385483,
0.05324211344122887,
0.018052902072668076,
0.022894905880093575,
0.01646878942847252,
0.020862460136413574,
-0.055991895496845245,
-0.021739201620221138,
-0.0666721984744072,
-0.06479915976524353,
0.04559055343270302,
0.0013761352747678757,
0.05057203769683838,
0.01700679026544094,
0.06691130995750427,
-0.04184447601437569,
-0.03951314091682434,
-0.008712617680430412,
-0.030307356268167496,
-0.01035152655094862,
-0.04403632879257202,
0.004812114872038364,
-0.0936519205570221,
-0.005793467164039612,
0.001546751125715673,
0.054876040667295456,
-0.04861929640173912,
0.013997973874211311,
-0.04590936750173569,
0.004251697566360235,
0.02187868393957615,
0.00702887587249279,
0.0020287097431719303,
-0.005967819131910801,
-0.018401606008410454,
0.006256745662540197,
0.032399579882621765,
0.06296597421169281,
0.026680834591388702,
0.002220497000962496,
-0.009718877263367176,
-0.010949304327368736,
-0.009260580874979496,
0.08125798404216766,
0.020683126524090767,
0.010212045162916183,
0.0427212156355381,
0.08910880982875824,
0.0003157016180921346,
-0.004734901711344719,
0.04224299639463425,
0.007472227793186903,
-0.027597427368164062,
-0.0442754402756691,
0.03873603045940399,
-0.04224299639463425,
-0.022556165233254433,
-0.007880710065364838,
0.013978047296404839,
-0.012722712941467762,
-0.0050512258894741535,
-0.050492335110902786,
0.0018120151944458485,
-0.0037560397759079933,
0.015093900263309479,
0.02968965284526348,
-0.01941782981157303,
0.004498281050473452,
0.025206314399838448,
-0.024449128657579422,
-0.015771381556987762,
-0.03231987729668617,
-0.029988540336489677,
-0.03301728516817093,
-0.016418974846601486,
0.025206314399838448,
-0.017873568460345268,
0.03897514194250107,
-0.025445425882935524,
0.06707071512937546,
0.013709046877920628,
0.014366603456437588,
0.02267572097480297,
0.0503329262137413,
-0.04742373898625374,
0.07249057292938232,
0.023293424397706985,
-0.009664081037044525,
-0.008737524971365929,
-0.025764241814613342,
-0.02013516239821911,
-0.0116965277120471,
-0.07516065239906311,
-0.025126611813902855,
0.008065024390816689,
0.011357786133885384,
0.015791308134794235,
-0.014197233133018017,
-0.028792984783649445,
0.030905134975910187,
-0.03006824478507042,
-0.0758381336927414,
0.0302675049751997,
0.026501500979065895,
-0.03903491795063019,
-0.013649269938468933,
0.04172492027282715,
0.0665924921631813,
0.07105590403079987,
0.0019153810571879148,
-0.030944986268877983,
0.03000846691429615,
0.06320508569478989,
-0.04355810582637787,
-0.016598308458924294,
-0.014526010490953922,
-0.02803579904139042,
0.029330985620617867,
-0.007138468325138092,
0.022097868844866753,
-0.060056786984205246,
-0.0008674011332914233,
-0.009375154972076416,
0.09221725165843964,
0.046028923243284225,
-0.03700247406959534,
0.07910598814487457,
0.06926257163286209,
0.0024122842587530613,
0.005733689293265343,
-0.003384919138625264,
-0.09572421759366989,
0.025385648012161255,
0.014635603874921799,
0.058741673827171326,
0.04036995768547058,
0.05635055899620056,
0.009684007614850998,
0.04036995768547058,
-0.042482104152441025,
0.014197233133018017,
-0.057506266981363297,
0.04754329472780228,
0.0065058195032179356,
-0.057227302342653275,
0.018650680780410767,
-0.0264616496860981,
0.02169935032725334,
-0.01536290068179369,
-0.01697690226137638,
0.02035434916615486,
-0.04415588453412056,
-0.01833186484873295,
-0.020085347816348076,
-0.014047788456082344,
-0.025186389684677124,
0.05639041215181351,
0.04212344065308571,
0.030885208398103714,
0.0004953464376740158,
0.0208425335586071,
-0.004866911098361015,
-0.014097603037953377,
-0.017425235360860825,
-0.016448864713311195,
-0.013908307068049908,
-0.00014921104593668133,
-0.047981664538383484,
0.06559620052576065,
-0.021320756524801254,
0.04395662620663643,
0.01654849387705326,
-0.05364063382148743,
0.05208640918135643,
-0.012204638682305813,
0.019776497036218643,
-0.00889195129275322,
-0.02785646542906761,
0.024987129494547844,
0.010959267616271973,
0.022396758198738098,
-0.027816614136099815,
-0.037500619888305664,
-0.01592082716524601,
-0.06627368181943893,
0.031562689691782,
-0.01709645800292492,
-0.051129963248968124,
-0.01084967516362667,
-0.06575560569763184,
0.02150009013712406,
-0.005140892695635557,
-0.03461135923862457,
-0.05786493048071861,
-0.029052020981907845,
-0.0008424936677329242,
-0.035408396273851395,
-0.0179233830422163,
0.010321637615561485,
0.004914235323667526,
-0.025863870978355408,
-0.04017069563269615,
0.055991895496845245,
-0.020483866333961487,
0.07958421111106873,
0.000018427603208692744,
0.01853112503886223,
-0.0874350294470787,
0.025325870141386986,
-0.02397090755403042,
0.04869899898767471,
-0.04264151304960251,
0.02765720523893833,
-0.03164239227771759,
-0.034491803497076035,
0.049496036022901535,
0.019228532910346985,
-0.040848180651664734,
0.06380286067724228,
-0.050811149179935455,
0.02909187413752079,
-0.026900019496679306,
0.01198545377701521,
-0.0564701147377491,
0.03289772942662239,
0.011935638263821602,
-0.018859902396798134,
-0.06141174957156181,
-0.00873254332691431,
0.057825081050395966,
-0.00963419210165739,
0.029570097103714943,
0.0053202263079583645,
0.014994270168244839,
0.004475864581763744,
-0.0742042064666748,
0.023114090785384178,
0.0045356424525380135,
-0.03283794969320297,
-0.035408396273851395,
-0.018820051103830338,
-0.04925692453980446,
0.0640818253159523,
0.03275824710726738,
0.013988010585308075,
0.009539544582366943,
0.022396758198738098,
0.0538797453045845,
0.026780463755130768,
-0.014496121555566788,
0.07759161293506622,
-0.014067714102566242,
-0.0025579927023500204,
0.046148478984832764,
0.012473639100790024,
-0.029769355431199074,
0.0305265411734581,
-0.022396758198738098,
0.08281221240758896,
-0.02313401736319065,
0.02253623865544796,
0.026501500979065895,
-0.022815201431512833,
0.06499841809272766,
0.05260448530316353,
-0.04371751472353935,
0.011606860905885696,
-0.06810686737298965,
0.008593061938881874,
-0.08046095073223114,
-0.023612240329384804,
0.03825780749320984,
-0.031144246459007263,
0.08081961423158646,
0.016966938972473145,
0.009285488165915012,
0.028055725619196892,
-0.02534579671919346,
-0.010929378680884838,
-0.041764773428440094,
-0.022396758198738098,
-0.037500619888305664,
0.049894556403160095,
-0.010067581199109554,
0.017445161938667297,
0.017833717167377472,
0.01660827174782753,
-0.01457582600414753,
-0.017196087166666985,
0.07249057292938232,
0.027019575238227844,
0.012144860811531544,
-0.04742373898625374,
0.000860551546793431,
0.0067250048741698265,
0.012025305069983006,
-0.04292047768831253,
-0.04108728840947151,
0.04391677305102348,
-0.012523453682661057,
0.05806419253349304,
0.0042093549855053425,
-0.023014461621642113,
0.036464471369981766,
-0.008622950874269009,
0.04092788323760033,
0.009723858907818794,
0.017704198136925697,
-0.02666090801358223,
-0.03367483988404274,
-0.009743785485625267,
0.018311940133571625,
0.039991363883018494,
0.022038090974092484,
0.034950099885463715,
-0.04738388583064079,
0.057028044015169144,
0.010461119003593922,
-0.009081247262656689,
0.07372598350048065,
-0.03638476878404617,
-0.06224863976240158,
-0.026680834591388702,
0.006346412003040314,
-0.07795028388500214,
0.005063679534941912,
-0.02397090755403042,
0.050213370472192764,
0.07795028388500214,
-0.010939341969788074,
0.035667434334754944,
-0.0379190668463707,
0.07795028388500214,
-0.02325357310473919,
-0.008164654485881329,
-0.0051558371633291245,
0.029071947559714317,
-0.04818092659115791,
-0.04152566194534302,
-0.011676601134240627,
-0.029729504138231277,
0.00980854406952858,
-0.040509436279535294,
-0.031164171174168587,
-0.002463344484567642,
0.03184165433049202,
-0.033714693039655685,
-0.009957988746464252,
0.03399365395307541,
-0.015781344845891,
-0.035268913954496384,
-0.0026152797508984804,
-0.014336714521050453,
0.046148478984832764,
-0.003905484452843666,
-0.010271822102367878,
-0.012583231553435326,
-0.020882386714220047,
-0.001825714367441833,
0.026162760332226753,
-0.031144246459007263,
-0.03301728516817093,
0.007711339276283979,
-0.005325207486748695,
0.017156235873699188,
0.015641864389181137,
-0.07249057292938232,
0.013828602619469166,
-0.008468524552881718,
-0.041445955634117126,
0.03877587988972664,
0.023990832269191742,
-0.05479633808135986,
-0.004505753517150879,
-0.08416717499494553,
0.05567307770252228,
0.005898078437894583,
0.018341828137636185,
-0.005120966583490372,
0.035667434334754944,
0.003409826662391424,
-0.03588661924004555,
-0.006251764018088579,
0.02004549652338028,
0.04503262788057327,
0.02777676098048687,
-0.021380534395575523,
0.021918535232543945,
0.010690267197787762,
-0.010819786228239536,
0.047463592141866684,
-0.0073277647607028484,
0.016917124390602112,
-0.008647858165204525,
0.017305679619312286,
-0.03552795201539993,
-0.007292894180864096,
-0.011666638776659966,
0.0026401872746646404,
0.01703668013215065,
-0.0666721984744072,
-0.005135911051183939,
0.09795592725276947,
0.033634986728429794,
-0.018451420590281487,
-0.0055493745021522045,
0.05364063382148743,
0.03006824478507042,
0.1048104465007782,
0.03058631904423237,
0.03634491562843323,
0.03911462053656578,
-0.05360078066587448,
0.015323048457503319,
0.05053218454122543,
-0.017534827813506126,
-0.07364627718925476,
-0.0034845490008592606,
-0.08289191126823425,
0.034890323877334595,
0.03512943536043167,
-0.0056539857760071754,
0.051010407507419586,
0.0040947808884084225,
-0.016937049105763435,
-0.04865914583206177,
0.025385648012161255,
0.001008128048852086,
0.0019153810571879148,
-0.0353286936879158,
0.007507098373025656,
0.038297656923532486,
0.0025393120013177395,
-0.0032529097516089678,
-0.015392789617180824,
0.0001033658190863207,
-0.014207195490598679,
-0.014376566745340824,
-0.0012665425892919302,
0.0028942429926246405,
0.028414390981197357,
-0.00535509642213583,
0.017375420778989792,
0.02562475949525833,
0.01867060735821724,
0.0055493745021522045,
-0.041445955634117126,
0.0028494095895439386,
-0.05403915047645569,
-0.01424704771488905,
0.030745726078748703,
0.06045530363917351,
0.02319379523396492,
-0.029769355431199074,
-0.03202098608016968,
0.05503544956445694,
0.024349499493837357,
0.059459008276462555,
-0.004348836373537779,
-0.027438020333647728,
0.04646729305386543,
0.037042323499917984,
0.0233930554240942,
-0.01720605045557022,
-0.024927351623773575,
-0.0020498812664300203,
0.028773058205842972,
0.03399365395307541,
0.036464471369981766,
0.04443484917283058,
-0.026820316910743713,
-0.025903722271323204,
0.012473639100790024,
-0.031941283494234085,
-0.021081645041704178,
-0.01345997303724289,
0.01761453226208687,
0.008877006359398365,
-0.0244292039424181,
0.02417016588151455,
-0.004239243920892477,
0.014984307810664177,
-0.04140610620379448,
-0.03186158090829849,
-0.030566392466425896,
0.012204638682305813,
0.018939606845378876,
-0.002114640548825264,
-0.061611007899045944,
-0.03821795433759689,
-0.0050412630662322044,
0.008807266131043434,
-0.01071019284427166,
-0.0752403512597084,
-0.013240788131952286,
0.020722977817058563,
-0.05850256234407425,
0.00568387471139431,
-0.02215764671564102,
0.04304003342986107,
0.015761420130729675,
0.09062317758798599,
-0.05156833678483963,
-0.020882386714220047,
-0.010999118909239769,
0.06089367717504501,
0.001676269806921482,
0.03628513962030411,
0.06587515771389008,
0.08600036054849625,
-0.0671902745962143,
-0.023552462458610535,
-0.0002286813105456531,
-0.019079089164733887,
-0.0036016139201819897,
-0.009838433004915714,
-0.06372316181659698,
-0.017245901748538017,
-0.025903722271323204,
-0.04128655046224594,
-0.018431495875120163,
0.005888115614652634,
0.034432027488946915,
0.026043204590678215,
0.023293424397706985,
-0.007576839067041874,
-0.015562159940600395,
0.006351393647491932,
0.0488584078848362,
-0.06663234531879425,
-0.010082526132464409,
0.019198644906282425,
0.019278347492218018,
0.02693987265229225,
-0.020722977817058563,
-0.026979723945260048,
0.01428689993917942,
-0.06045530363917351,
-0.036723509430885315,
-0.03682313859462738,
-0.030108096078038216,
-0.011387675069272518,
0.04355810582637787,
-0.016428938135504723,
-0.018720421940088272,
-0.020882386714220047,
0.04869899898767471,
0.008289191871881485,
-0.030387060716748238,
-0.0636434555053711,
-0.013350380584597588,
0.03604602813720703,
0.0432392917573452,
0.021579794585704803,
-0.01559204887598753,
-0.045311588793992996,
0.002747289137914777,
0.03228002414107323,
0.0666721984744072,
0.023552462458610535,
-0.041366253048181534,
0.04503262788057327,
-0.02325357310473919,
-0.008079969324171543,
-0.030885208398103714,
0.0236520916223526,
-0.004842003807425499,
0.013141158036887646,
0.07276953756809235,
-0.06173056364059448,
-0.041964031755924225,
0.0025168952997773886,
-0.006117263808846474,
-0.054995596408843994,
-0.03461135923862457,
-0.017016753554344177,
0.002222987823188305,
-0.0052056522108614445,
0.0032280024606734514,
0.01841156929731369,
0.0462680347263813,
-0.039413511753082275,
0.035089582204818726,
0.02580409310758114,
-0.011646712198853493,
-0.0019714226946234703,
-0.045311588793992996,
-0.0340733602643013,
-0.08121813833713531,
-0.060574859380722046,
0.02169935032725334,
0.0036190489772707224,
-0.057107746601104736,
0.04027032479643822,
0.04555070027709007,
0.027298539876937866,
-0.037500619888305664,
-0.03546817600727081,
-0.0012814870569854975,
0.015930790454149246,
-0.02482772246003151,
0.004184447694569826,
-0.03373461961746216,
0.045749958604574203,
-0.032598838210105896,
-0.04467396065592766,
-0.07902628183364868,
-0.00957939587533474,
0.08671769499778748,
-0.040967732667922974,
0.0014296862063929439,
-0.004391179420053959,
-0.012144860811531544,
0.003790910355746746,
0.045231886208057404,
0.034372247755527496,
-0.022436609491705894,
-0.030088171362876892,
0.09699948132038116,
-0.04276106879115105,
0.050093814730644226,
0.05658967047929764,
-0.007686431519687176,
-0.07257027924060822,
-0.0025903722271323204,
-0.0007515815668739378,
-0.025903722271323204,
-0.03020772710442543,
-0.0016613253392279148,
0.04076847434043884,
0.03190143033862114,
0.002270311815664172,
0.003003835678100586,
-0.021241052076220512,
-0.041246697306632996,
0.0187004953622818,
-0.011098749004304409,
-0.037580326199531555,
0.04973514750599861,
-0.01944771781563759,
-0.030426912009716034,
0.03945336118340492,
-0.03235972672700882,
0.022835128009319305,
0.020025569945573807,
-0.012951861135661602,
0.0216196458786726,
-0.03767995536327362,
-0.004403633065521717,
0.06583531200885773,
0.010530860163271427,
0.007576839067041874,
0.019537385553121567,
-0.022874979302287102,
-0.01955731026828289,
0.026959797367453575,
-0.002058598678559065,
0.024867573752999306,
0.03893528878688812,
-0.05929959937930107,
0.026780463755130768,
-0.041565511375665665,
0.015213456004858017,
-0.007805987261235714,
0.03787921369075775,
0.03536854684352875,
-0.03182172775268555,
0.0075021167285740376,
-0.023353202268481255,
-0.04029025137424469,
-0.0033425765577703714,
-0.008099894970655441,
0.008264283649623394,
0.035607654601335526,
-0.008079969324171543,
0.039014991372823715,
0.004757318180054426,
0.05826345086097717
] |
725,544 | syne_tune.stopping_criterion | __call__ | null | def __call__(self, status: TuningStatus) -> bool:
if (
self.max_wallclock_time is not None
and status.wallclock_time > self.max_wallclock_time
):
logger.info(
f"reaching max wallclock time ({self.max_wallclock_time}), stopping there."
)
return True
if (
self.max_num_trials_started is not None
and status.num_trials_started > self.max_num_trials_started
):
logger.info(
f"reaching max number of trials started ({self.max_num_trials_started + 1}), stopping there."
)
return True
if (
self.max_num_trials_completed is not None
and status.num_trials_completed > self.max_num_trials_completed
):
logger.info(
f"reaching max number of trials completed ({self.max_num_trials_completed + 1}), stopping there."
)
return True
if (
self.max_num_trials_finished is not None
and status.num_trials_finished > self.max_num_trials_finished
):
logger.info(
f"reaching max number of trials finished ({self.max_num_trials_finished + 1}), stopping there."
)
return True
if self.max_cost is not None and status.cost > self.max_cost:
logger.info(f"reaching max cost ({self.max_cost}), stopping there.")
return True
if (
self.max_num_evaluations is not None
and status.overall_metric_statistics.count > self.max_num_evaluations
):
logger.info(
f"reaching {status.overall_metric_statistics.count + 1} evaluations, stopping there. "
)
return True
if (
self.max_metric_value is not None
and status.overall_metric_statistics.count > 0
):
max_metrics_observed = status.overall_metric_statistics.max_metrics
for metric, max_metric_accepted in self.max_metric_value.items():
if (
metric in max_metrics_observed
and max_metrics_observed[metric] > max_metric_accepted
):
logger.info(
f"found {metric} with value ({max_metrics_observed[metric]}), "
f"above the provided threshold {max_metric_accepted} stopping there."
)
return True
if (
self.min_metric_value is not None
and status.overall_metric_statistics.count > 0
):
min_metrics_observed = status.overall_metric_statistics.min_metrics
for metric, min_metric_accepted in self.min_metric_value.items():
if (
metric in min_metrics_observed
and min_metrics_observed[metric] < min_metric_accepted
):
logger.info(
f"found {metric} with value ({min_metrics_observed[metric]}), "
f"below the provided threshold {min_metric_accepted} stopping there."
)
return True
return False
| (self, status: syne_tune.tuning_status.TuningStatus) -> bool | [
0.06075862795114517,
-0.02031799778342247,
-0.05153738334774971,
0.03456013277173042,
-0.02022031508386135,
-0.04469959810376167,
-0.04110487177968025,
-0.04063599556684494,
-0.05864868313074112,
-0.014750085771083832,
-0.04223799332976341,
0.057046689093112946,
0.05853146314620972,
-0.03330979496240616,
-0.011985665187239647,
0.023717354983091354,
-0.011282349936664104,
-0.011331191286444664,
0.05692946910858154,
0.015629230067133904,
0.008127199485898018,
0.0525142103433609,
-0.010061316192150116,
0.055600982159376144,
0.01760241948068142,
0.058883123099803925,
0.03143428638577461,
-0.01939978078007698,
-0.028386587277054787,
0.012483847327530384,
-0.06368911266326904,
0.017074933275580406,
0.02860148996114731,
-0.0023272898979485035,
0.02594452165067196,
-0.017768479883670807,
-0.011858677491545677,
0.036416105926036835,
-0.12261130660772324,
-0.0008956281235441566,
-0.02492862194776535,
-0.06677588075399399,
-0.019204415380954742,
0.049310218542814255,
-0.023111723363399506,
-0.024479281157255173,
0.008845167234539986,
0.021978603675961494,
0.03121938556432724,
-0.07599712908267975,
-0.007555755786597729,
-0.026940884068608284,
0.0012967375805601478,
0.0661507174372673,
-0.03065282665193081,
0.014525415375828743,
0.02190045826137066,
-0.0026398745831102133,
0.007067342288792133,
-0.04876319691538811,
-0.04528569430112839,
0.008596076630055904,
0.026472007855772972,
0.0012405700981616974,
0.008620496839284897,
-0.0011483820853754878,
-0.0430976003408432,
-0.006696147844195366,
-0.0167525801807642,
0.042394284158945084,
0.01852063648402691,
-0.009475219994783401,
0.005553260445594788,
-0.020552435889840126,
-0.03655286133289337,
-0.05876590311527252,
-0.051771823316812515,
-0.0235415268689394,
-0.005050194915384054,
-0.0685732439160347,
0.06575998663902283,
0.017104238271713257,
0.007272475864738226,
-0.07408254593610764,
0.024811401963233948,
-0.007506914436817169,
0.037490613758563995,
0.00091638567391783,
-0.00367775303311646,
0.0007161361863836646,
-0.013167626224458218,
0.05825795233249664,
0.03250879794359207,
0.004044062923640013,
-0.0035629759076982737,
0.03596676513552666,
-0.045481059700250626,
-0.01661582477390766,
-0.08517929911613464,
-0.03004719316959381,
-0.003572744084522128,
0.031180312857031822,
0.03729524835944176,
0.0025519600603729486,
0.04001082852482796,
-0.03788134455680847,
-0.026999494060873985,
-0.022447481751441956,
-0.014359354972839355,
0.013206698931753635,
-0.028230296447873116,
-0.030027657747268677,
-0.08767997473478317,
0.016254398971796036,
0.0004929922870360315,
0.02578822895884514,
-0.02395179495215416,
-0.01169261708855629,
-0.09510385990142822,
0.00688174506649375,
0.040870435535907745,
-0.001227749278768897,
0.023014040663838387,
-0.035087618976831436,
-0.008439783938229084,
0.003086772747337818,
0.040870435535907745,
0.0523969903588295,
0.03381774574518204,
0.01728006638586521,
-0.017621956765651703,
0.011106520891189575,
-0.011047911830246449,
0.08658593147993088,
0.020865021273493767,
-0.00009669059363659471,
0.01264013908803463,
0.06220433488488197,
0.0005400020745582879,
-0.01852063648402691,
0.014300744980573654,
0.01466217078268528,
-0.015853900462388992,
-0.060524191707372665,
0.04907578229904175,
-0.022838210687041283,
-0.020357070490717888,
0.017680566757917404,
0.018501101061701775,
-0.011282349936664104,
0.02533888816833496,
-0.06025068089365959,
0.020552435889840126,
0.010149231180548668,
-0.023150796070694923,
0.008937966078519821,
-0.025202132761478424,
0.00745807308703661,
0.04313667491078377,
-0.013196930289268494,
-0.009011227637529373,
-0.020591510459780693,
-0.004754704888910055,
-0.013138321228325367,
-0.014359354972839355,
0.016537679359316826,
-0.0564996637403965,
0.04704397916793823,
-0.021060386672616005,
0.05454600974917412,
0.04653603211045265,
0.01807129569351673,
0.003589838743209839,
0.0335051603615284,
-0.04637973755598068,
0.04157375171780586,
0.014886841177940369,
-0.002527539385482669,
0.010491120629012585,
-0.01860855147242546,
-0.041534677147865295,
-0.0017509621102362871,
-0.06939377635717392,
-0.040518779307603836,
0.010217608883976936,
0.03282138332724571,
0.03747107833623886,
-0.03637703135609627,
-0.024948157370090485,
0.0430976003408432,
-0.06841695308685303,
-0.06443149596452713,
0.02850380726158619,
0.004285827744752169,
-0.021919993683695793,
-0.00048627660726197064,
0.02113853208720684,
0.04802080616354942,
0.07220704108476639,
-0.03547834977507591,
-0.007213866338133812,
0.02104084938764572,
0.0578281506896019,
-0.031453825533390045,
-0.013734185136854649,
0.01813967525959015,
-0.02078687585890293,
0.045168474316596985,
-0.013216467574238777,
0.0016801421297714114,
-0.061696384102106094,
-0.018149442970752716,
-0.044504232704639435,
0.0983859971165657,
0.02461603656411171,
-0.04395720735192299,
0.09697937220335007,
0.03663100674748421,
0.004517823923379183,
0.021118996664881706,
0.027702808380126953,
-0.09729195386171341,
-0.003221086459234357,
-0.01599065586924553,
0.04727841913700104,
0.029500171542167664,
0.030750509351491928,
0.02186138555407524,
0.020298462361097336,
-0.053959913551807404,
0.021158069372177124,
-0.03696312755346298,
0.04290223494172096,
0.03795948997139931,
-0.0983859971165657,
0.043371111154556274,
-0.016313008964061737,
0.013294612988829613,
-0.02072826586663723,
-0.015648765489459038,
0.05587449669837952,
-0.03680683672428131,
-0.009392189793288708,
-0.028327979147434235,
-0.02338523417711258,
-0.06032882630825043,
0.026804128661751747,
0.03909261152148247,
0.011604703031480312,
-0.008786557242274284,
-0.029461096972227097,
-0.03870188072323799,
-0.015209194272756577,
-0.043175745755434036,
-0.030125340446829796,
-0.028699172660708427,
-0.007052689790725708,
-0.03727571293711662,
0.0670103207230568,
-0.034110791981220245,
0.03202038258314133,
0.025827301666140556,
-0.033290259540081024,
0.05438971891999245,
-0.04196448251605034,
0.012298249639570713,
0.02164648286998272,
-0.015453401021659374,
0.013910014182329178,
-0.002722904784604907,
0.030418388545513153,
-0.012913650833070278,
-0.06888582557439804,
-0.021353434771299362,
-0.07603619992733002,
0.03786180913448334,
0.026804128661751747,
-0.039991289377212524,
-0.018852757290005684,
-0.03803763911128044,
0.012288481928408146,
-0.007741352543234825,
-0.008527697995305061,
-0.040245264768600464,
-0.04509032890200615,
-0.00932381208986044,
-0.0063103013671934605,
-0.013187162578105927,
-0.01361696608364582,
-0.015629230067133904,
-0.015541315078735352,
-0.040557850152254105,
0.05716390535235405,
-0.0063835633918643,
0.07115206867456436,
-0.022994503378868103,
0.03737339377403259,
-0.07294943183660507,
-0.013050406239926815,
-0.026706445962190628,
0.03248926252126694,
-0.061540089547634125,
-0.002971995621919632,
-0.03024255856871605,
-0.012522920034825802,
0.05419435352087021,
0.001735088648274541,
-0.04540291056036949,
0.07201167196035385,
-0.0661507174372673,
-0.022642847150564194,
0.004254080820828676,
0.07166001945734024,
-0.026393860578536987,
0.03879956156015396,
0.011262813583016396,
-0.017836857587099075,
-0.032879993319511414,
-0.019770976155996323,
0.06243877112865448,
-0.013167626224458218,
0.0645877942442894,
0.013577893376350403,
0.025045840069651604,
-0.011907518841326237,
-0.07470771670341492,
0.029187586158514023,
-0.006837788037955761,
-0.05188904330134392,
-0.05235791951417923,
-0.032118067145347595,
-0.06548646837472916,
0.08978992700576782,
0.026804128661751747,
0.012347090989351273,
0.028581952676177025,
0.02006402425467968,
0.060055315494537354,
0.030750509351491928,
-0.013167626224458218,
0.07334016263484955,
0.0012405700981616974,
0.0024664876982569695,
0.04727841913700104,
0.08322564512491226,
-0.009890371933579445,
0.004566665273159742,
-0.0017814879538491368,
0.08963362872600555,
-0.032372042536735535,
-0.03833068534731865,
0.023072650656104088,
-0.02088455855846405,
0.04372277110815048,
0.02660876326262951,
-0.02600312978029251,
0.025729618966579437,
-0.0793183371424675,
0.008923313580453396,
-0.027194859459996223,
-0.040870435535907745,
0.04341018572449684,
-0.05513210594654083,
0.10190257430076599,
-0.003250391222536564,
-0.0029280383605509996,
0.019331403076648712,
-0.0137634901329875,
0.01921418309211731,
-0.02057197317481041,
-0.018940672278404236,
-0.023932257667183876,
0.03024255856871605,
-0.004437236115336418,
-0.005504419095814228,
0.058726828545331955,
0.00730666471645236,
-0.006500782445073128,
-0.0067254528403282166,
0.058062586933374405,
0.062048040330410004,
0.03860419616103172,
-0.02666737325489521,
-0.010051548480987549,
0.007423884235322475,
-0.011223740875720978,
-0.05521025136113167,
-0.022603772580623627,
-0.010344596579670906,
0.001410293742083013,
0.06111028790473938,
0.002544633811339736,
-0.07892760634422302,
0.021763702854514122,
-0.011966128833591938,
0.06357189267873764,
0.02856241725385189,
0.012884345836937428,
-0.017114005982875824,
-0.008195577189326286,
0.00728224404156208,
0.0008376290206797421,
0.01661582477390766,
0.018842989578843117,
0.02871870994567871,
-0.0456373505294323,
0.05845331773161888,
0.0050208899192512035,
-0.014720780774950981,
0.05513210594654083,
0.00008974596858024597,
-0.032782308757305145,
-0.025260742753744125,
0.02107992395758629,
-0.09533829987049103,
0.014720780774950981,
-0.028777318075299263,
0.05071685090661049,
0.07017523795366287,
-0.005328590516000986,
0.05692946910858154,
-0.0055581447668373585,
0.07978721708059311,
-0.008039284497499466,
-0.02221304178237915,
0.0033260954078286886,
-0.007194329518824816,
-0.04497310891747475,
-0.014720780774950981,
-0.041183020919561386,
-0.015316644683480263,
0.005953759420663118,
-0.0007216308149509132,
-0.031102167442440987,
0.000355320778908208,
0.022838210687041283,
-0.040518779307603836,
-0.006212618667632341,
0.026276642456650734,
-0.0049451859667897224,
0.008659569546580315,
-0.014388659037649632,
0.002202744595706463,
0.04110487177968025,
-0.00173997285310179,
-0.02211535908281803,
-0.008576539345085621,
-0.0699017271399498,
-0.0417691171169281,
0.020454753190279007,
-0.05216255411505699,
-0.01671350747346878,
-0.0051381089724600315,
0.012493615038692951,
0.028425661846995354,
0.0014090727781876922,
-0.07564546912908554,
0.017016323283314705,
0.00870352704077959,
-0.014007696881890297,
0.014290976338088512,
0.02113853208720684,
-0.07181631028652191,
0.021275289356708527,
-0.060719557106494904,
0.007248055189847946,
0.006539855618029833,
0.02221304178237915,
-0.0026447586715221405,
0.030574679374694824,
0.0014298303285613656,
-0.025456108152866364,
-0.014779389835894108,
0.040049899369478226,
0.03342701494693756,
0.005704668816179037,
-0.004036737140268087,
0.023912720382213593,
0.006095399614423513,
0.01361696608364582,
0.05067777633666992,
0.0137634901329875,
0.015775753185153008,
-0.0017521831905469298,
0.012561993673443794,
-0.027663735672831535,
-0.029500171542167664,
0.009426378645002842,
0.01174145843833685,
0.0010378785664215684,
-0.053764548152685165,
-0.018501101061701775,
0.06009438633918762,
0.06951099634170532,
-0.040518779307603836,
-0.029519706964492798,
0.03377867117524147,
-0.00011012196046067402,
0.07845873385667801,
0.02066965587437153,
0.06517388671636581,
0.03694359213113785,
-0.06310301274061203,
0.0097194267436862,
0.04469959810376167,
0.024401133880019188,
-0.033544234931468964,
0.0005625911871902645,
-0.07470771670341492,
0.03424754738807678,
0.01072555873543024,
-0.008073474280536175,
0.003001300385221839,
0.0014664613408967853,
-0.013480210676789284,
-0.03581047058105469,
0.022642847150564194,
-0.03336840495467186,
0.012005201540887356,
-0.03336840495467186,
0.007228518836200237,
0.02430345118045807,
0.014300744980573654,
0.005055078770965338,
-0.020923631265759468,
0.021412044763565063,
-0.010627876035869122,
0.008586307987570763,
-0.008244418539106846,
0.04489496350288391,
0.004329784773290157,
-0.021978603675961494,
0.030183948576450348,
0.011780532076954842,
0.03198131173849106,
-0.016156716272234917,
-0.057398345321416855,
-0.04114394634962082,
-0.07685673236846924,
0.008845167234539986,
0.021021313965320587,
-0.03315350413322449,
0.02404947765171528,
-0.049271147698163986,
-0.034052181988954544,
0.028132613748311996,
0.035243913531303406,
0.04169096797704697,
0.01924348808825016,
-0.03821346536278725,
0.06075862795114517,
0.012942955829203129,
0.019038354977965355,
0.010676717385649681,
-0.0014298303285613656,
0.0336809903383255,
0.021919993683695793,
0.025104450061917305,
0.06091492250561714,
0.028777318075299263,
-0.02723393216729164,
-0.03956148773431778,
-0.001473787473514676,
-0.01466217078268528,
-0.060524191707372665,
-0.021998140960931778,
0.002040347084403038,
0.019927266985177994,
-0.009421494789421558,
0.017905235290527344,
-0.023307088762521744,
0.007926950231194496,
-0.08150643110275269,
-0.03577139973640442,
-0.009963633492588997,
-0.0034017995931208134,
0.002776630222797394,
0.03049653396010399,
-0.04950558394193649,
-0.008806093595921993,
-0.016576752066612244,
0.007038037292659283,
-0.0061344727873802185,
-0.0593910738825798,
0.00008287765376735479,
0.028581952676177025,
-0.06310301274061203,
-0.04364462196826935,
0.00740923173725605,
0.046848613768815994,
-0.015023596584796906,
0.08205345273017883,
-0.04872412234544754,
-0.03307535871863365,
0.00299397436901927,
0.062165260314941406,
-0.005343243014067411,
-0.008459320291876793,
0.067361980676651,
0.0846322774887085,
-0.05052148550748825,
0.008552119135856628,
-0.017084700986742973,
-0.04602808132767677,
-0.009406842291355133,
-0.022427944466471672,
-0.0349508635699749,
0.006803599186241627,
-0.02190045826137066,
-0.04329296573996544,
0.0019145805854350328,
-0.004451888147741556,
0.017114005982875824,
0.029187586158514023,
0.02805446647107601,
-0.013773258775472641,
-0.00922612939029932,
0.014398427680134773,
0.07505937665700912,
-0.030418388545513153,
0.017074933275580406,
0.048802267760038376,
0.011887982487678528,
0.01930209808051586,
-0.003162476932629943,
-0.009851298294961452,
0.03885817155241966,
-0.08713295310735703,
-0.023053113371133804,
-0.038565125316381454,
0.001306505873799324,
-0.010041779838502407,
0.046340666711330414,
-0.0236001368612051,
-0.015248266980051994,
-0.05149831250309944,
0.034423377364873886,
0.027624662965536118,
-0.025065377354621887,
-0.051615528762340546,
-0.04180818796157837,
0.02211535908281803,
0.055600982159376144,
0.0021465769968926907,
0.016078568994998932,
-0.035439278930425644,
-0.024576963856816292,
0.03137567639350891,
0.07294943183660507,
0.04278501495718956,
-0.042706869542598724,
0.048958562314510345,
-0.03403264656662941,
0.005812119692564011,
-0.014232367277145386,
0.019634218886494637,
0.0064079840667545795,
0.05353011190891266,
0.03471642732620239,
-0.0523969903588295,
-0.0563824437558651,
0.00030113739194348454,
-0.0013492420548573136,
-0.04524661973118782,
-0.0001368320663459599,
0.02846473455429077,
-0.03157104179263115,
-0.005738857667893171,
-0.010940460488200188,
-0.003943938296288252,
0.05700761452317238,
-0.006280996836721897,
0.030359778553247452,
0.026432935148477554,
-0.008395826444029808,
0.017670797184109688,
-0.029929975047707558,
-0.01202473882585764,
-0.05618707835674286,
-0.05665595829486847,
0.01798338256776333,
-0.005660711787641048,
-0.042511504143476486,
0.02344384416937828,
0.06583812832832336,
0.01087208278477192,
-0.037138957530260086,
-0.026042204350233078,
-0.009685237891972065,
0.0045691076666116714,
-0.05685132369399071,
-0.03813531994819641,
-0.01816897839307785,
0.047317493706941605,
-0.03735385835170746,
-0.014525415375828743,
-0.07841965556144714,
0.003272369969636202,
0.07587990909814835,
-0.07216797024011612,
-0.0007350621744990349,
-0.04200355336070061,
-0.0214901901781559,
0.024127623066306114,
0.028894538059830666,
0.02686273865401745,
0.0005827382556162775,
-0.00590980239212513,
0.07466864585876465,
-0.05142016336321831,
0.04809895530343056,
0.06443149596452713,
0.003150266595184803,
-0.0470830537378788,
0.006715684663504362,
0.008918428793549538,
0.0064665935933589935,
-0.01731913909316063,
0.015258035622537136,
0.014193293638527393,
-0.005445809569209814,
0.028640562668442726,
-0.003475061384961009,
-0.0036313538439571857,
-0.02584683895111084,
0.018813684582710266,
0.005294401664286852,
-0.05825795233249664,
0.0510685071349144,
-0.020747801288962364,
-0.02824983187019825,
0.0066277701407670975,
-0.05653873831033707,
0.020396145060658455,
0.008596076630055904,
0.019038354977965355,
0.035947225987911224,
-0.002815703395754099,
0.018100600689649582,
0.04942743852734566,
0.016186021268367767,
-0.010110157541930676,
0.00021871762874070555,
-0.0513029471039772,
-0.02871870994567871,
0.032235287129879,
0.03030116856098175,
0.024440208449959755,
-0.004617949016392231,
-0.04544198513031006,
0.04594993591308594,
-0.030770044773817062,
0.0322938971221447,
-0.0016886894591152668,
0.055405616760253906,
0.05950829014182091,
-0.024479281157255173,
-0.017485201358795166,
-0.0010427626548334956,
-0.01996634155511856,
0.01582459546625614,
0.004261407069861889,
0.022603772580623627,
0.05454600974917412,
-0.01986865885555744,
0.03696312755346298,
-0.015355718322098255,
0.05450693890452385
] |
725,545 | syne_tune.stopping_criterion | __eq__ | null | # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
import logging
import numpy as np
from dataclasses import dataclass
from typing import Optional, Dict
from syne_tune.tuning_status import TuningStatus
logger = logging.getLogger(__name__)
@dataclass
class StoppingCriterion:
"""
Stopping criterion that can be used in a Tuner, for instance
:code:`Tuner(stop_criterion=StoppingCriterion(max_wallclock_time=3600), ...)`.
If several arguments are used, the combined criterion is true whenever
one of the atomic criteria is true.
In principle, ``stop_criterion`` for ``Tuner`` can be any lambda function, but
this class should be used with remote launching in order to ensure
proper serialization.
:param max_wallclock_time: Stop once this wallclock time is reached
:param max_num_evaluations: Stop once more than this number of metric
records have been reported
:param max_num_trials_started: Stop once more than this number of trials
have been started
:param max_num_trials_completed: Stop once more than this number of trials
have been completed. This does not include trials which were stopped
or failed
:param max_cost: Stop once total cost of evaluations larger than this value
:param max_num_trials_finished: Stop once more than this number of trials
have finished (i.e., completed, stopped, failed, or stopping)
:param min_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value below a threshold
:param max_metric_value: Dictionary with thresholds for selected metrics.
Stop once an evaluation reports a metric value above a threshold
"""
max_wallclock_time: float = None
max_num_evaluations: int = None
max_num_trials_started: int = None
max_num_trials_completed: int = None
max_cost: float = None
max_num_trials_finished: int = None
# minimum value for metrics, any value below this threshold will trigger a stop
min_metric_value: Optional[Dict[str, float]] = None
# maximum value for metrics, any value above this threshold will trigger a stop
max_metric_value: Optional[Dict[str, float]] = None
# todo we should have unit-test for all those cases.
def __call__(self, status: TuningStatus) -> bool:
if (
self.max_wallclock_time is not None
and status.wallclock_time > self.max_wallclock_time
):
logger.info(
f"reaching max wallclock time ({self.max_wallclock_time}), stopping there."
)
return True
if (
self.max_num_trials_started is not None
and status.num_trials_started > self.max_num_trials_started
):
logger.info(
f"reaching max number of trials started ({self.max_num_trials_started + 1}), stopping there."
)
return True
if (
self.max_num_trials_completed is not None
and status.num_trials_completed > self.max_num_trials_completed
):
logger.info(
f"reaching max number of trials completed ({self.max_num_trials_completed + 1}), stopping there."
)
return True
if (
self.max_num_trials_finished is not None
and status.num_trials_finished > self.max_num_trials_finished
):
logger.info(
f"reaching max number of trials finished ({self.max_num_trials_finished + 1}), stopping there."
)
return True
if self.max_cost is not None and status.cost > self.max_cost:
logger.info(f"reaching max cost ({self.max_cost}), stopping there.")
return True
if (
self.max_num_evaluations is not None
and status.overall_metric_statistics.count > self.max_num_evaluations
):
logger.info(
f"reaching {status.overall_metric_statistics.count + 1} evaluations, stopping there. "
)
return True
if (
self.max_metric_value is not None
and status.overall_metric_statistics.count > 0
):
max_metrics_observed = status.overall_metric_statistics.max_metrics
for metric, max_metric_accepted in self.max_metric_value.items():
if (
metric in max_metrics_observed
and max_metrics_observed[metric] > max_metric_accepted
):
logger.info(
f"found {metric} with value ({max_metrics_observed[metric]}), "
f"above the provided threshold {max_metric_accepted} stopping there."
)
return True
if (
self.min_metric_value is not None
and status.overall_metric_statistics.count > 0
):
min_metrics_observed = status.overall_metric_statistics.min_metrics
for metric, min_metric_accepted in self.min_metric_value.items():
if (
metric in min_metrics_observed
and min_metrics_observed[metric] < min_metric_accepted
):
logger.info(
f"found {metric} with value ({min_metrics_observed[metric]}), "
f"below the provided threshold {min_metric_accepted} stopping there."
)
return True
return False
| (self, other) | [
0.06703952699899673,
-0.018748341128230095,
-0.0375981368124485,
0.005417540203779936,
-0.03147042915225029,
-0.03812568634748459,
-0.06285969913005829,
-0.038572076708078384,
-0.0486564114689827,
-0.028406577184796333,
-0.043096836656332016,
0.05555514991283417,
0.03688796982169151,
-0.003951557911932468,
-0.007756010163575411,
0.0290964525192976,
-0.011149581521749496,
-0.024693433195352554,
0.07061063498258591,
0.01625262014567852,
0.0012903434690088034,
0.0019707062747329473,
-0.026519570499658585,
0.07560207694768906,
0.021467257291078568,
0.024693433195352554,
0.013198914006352425,
-0.012255409732460976,
-0.06350899487733841,
-0.00071143259992823,
-0.05019848048686981,
0.0005998353590257466,
0.0017614614916965365,
-0.008385012857615948,
0.06756707280874252,
-0.03256611153483391,
0.019225167110562325,
0.038166265934705734,
-0.08830387890338898,
-0.017409173771739006,
-0.03613722696900368,
-0.06464525312185287,
-0.023496298119425774,
0.019001971930265427,
-0.015045341104269028,
-0.00610741414129734,
-0.016983075067400932,
0.03901846334338188,
0.044598326086997986,
-0.058801617473363876,
0.012864122167229652,
-0.019844023510813713,
0.011595970951020718,
0.07848331332206726,
-0.04216347634792328,
0.017429465427994728,
0.01721641607582569,
-0.0029979085084050894,
0.03510241582989693,
-0.05547398701310158,
-0.02132522314786911,
0.00026504351990297437,
0.022380325943231583,
0.009003871120512486,
-0.004737811628729105,
-0.015035196207463741,
-0.050157900899648666,
0.012701798230409622,
-0.01657726801931858,
0.03522415831685066,
0.0031069694086909294,
-0.02775728516280651,
0.017409173771739006,
-0.02639782801270485,
-0.035244446247816086,
-0.05908568203449249,
-0.039525724947452545,
-0.05835522711277008,
-0.03092258982360363,
-0.0797819048166275,
0.03989095240831375,
0.03140955790877342,
0.008775603957474232,
-0.06996134668588638,
0.041493892669677734,
-0.00903430674225092,
0.043177999556064606,
0.02148754708468914,
-0.015907684341073036,
-0.042934514582157135,
-0.02538330666720867,
0.058152321726083755,
0.020797673612833023,
0.038044523447752,
0.037943072617053986,
0.02528185397386551,
-0.059491489082574844,
-0.03780103847384453,
-0.056245025247335434,
-0.06350899487733841,
0.04914338141679764,
0.017490336671471596,
0.03997211158275604,
0.01616131328046322,
0.05214636027812958,
-0.02609347179532051,
-0.049589768052101135,
0.009450259618461132,
-0.02091941609978676,
-0.02242090553045273,
-0.04060111567378044,
0.007406000513583422,
-0.07925435155630112,
-0.015400423668324947,
0.008385012857615948,
0.03313424438238144,
-0.021588999778032303,
0.01998605579137802,
-0.03875469043850899,
0.0013949659187346697,
0.03226175531744957,
-0.003604084486141801,
0.004255914129316807,
0.002406950341537595,
-0.03589374199509621,
-0.0032769017852842808,
0.025951437652111053,
0.07280199974775314,
0.024044139310717583,
0.0035990120377391577,
-0.03147042915225029,
-0.02091941609978676,
0.0019402707694098353,
0.09301125258207321,
0.01347283460199833,
0.010733628645539284,
0.034615445882081985,
0.0797819048166275,
-0.005080211907625198,
-0.02242090553045273,
0.058801617473363876,
0.014436628669500351,
-0.03256611153483391,
-0.059653814882040024,
0.02688479796051979,
-0.030638523399829865,
-0.02061505988240242,
0.00456280680373311,
0.02242090553045273,
-0.015451149083673954,
-0.025667373090982437,
-0.05547398701310158,
-0.004222942050546408,
0.004841799847781658,
0.010824935510754585,
0.02862977236509323,
-0.03244436904788017,
0.0076342676766216755,
0.020554188638925552,
-0.02353687956929207,
-0.029380517080426216,
-0.034858930855989456,
-0.04674911126494408,
-0.035487931221723557,
-0.018667180091142654,
0.025586210191249847,
-0.04216347634792328,
0.03978949785232544,
-0.037922780960798264,
0.04731724411249161,
0.016435233876109123,
0.002718915231525898,
0.02465285174548626,
0.037456102669239044,
-0.03956630453467369,
0.07012366503477097,
0.02773699350655079,
-0.009653164073824883,
-0.0005836664349772036,
-0.021203480660915375,
-0.02378036454319954,
-0.003741044783964753,
-0.07255851477384567,
-0.013980094343423843,
0.00844081211835146,
0.0075480337254703045,
0.023881815373897552,
-0.032302338629961014,
-0.02877180464565754,
0.03274872526526451,
-0.024612270295619965,
-0.05713780224323273,
0.029076160863041878,
0.03471689671278,
-0.023293394595384598,
-0.01098725851625204,
0.05941032990813255,
0.07166574150323868,
0.04869699105620384,
-0.0005354766617529094,
-0.02806164138019085,
0.03684739023447037,
0.07365419715642929,
-0.021467257291078568,
-0.013645302504301071,
-0.03997211158275604,
-0.019854169338941574,
0.017500480636954308,
-0.014203288592398167,
0.017409173771739006,
-0.06436119228601456,
0.017581643536686897,
-0.006026252638548613,
0.0864371582865715,
0.053323205560445786,
-0.029360227286815643,
0.07876738160848618,
0.07698182761669159,
0.00809080246835947,
-0.029624002054333687,
0.001902226242236793,
-0.08570670336484909,
0.027554379776120186,
0.01934690959751606,
0.05859871208667755,
0.02528185397386551,
0.05888277664780617,
0.02424704283475876,
0.03863294795155525,
-0.023496298119425774,
0.0026276083663105965,
-0.05596095696091652,
0.053404368460178375,
0.010048827156424522,
-0.04573459178209305,
0.025910858064889908,
-0.022968746721744537,
0.020117944106459618,
0.006021180190145969,
-0.025261564180254936,
0.004367511253803968,
-0.03950543329119682,
-0.021710742264986038,
-0.04060111567378044,
-0.030902298167347908,
-0.01625262014567852,
0.07243677228689194,
0.04480123147368431,
0.01823093555867672,
-0.012022069655358791,
0.03711116686463356,
-0.018768632784485817,
-0.004192506428807974,
-0.006147995125502348,
-0.02694566920399666,
-0.027412347495555878,
0.00784224458038807,
-0.04398961365222931,
0.0665525570511818,
-0.041189536452293396,
0.03784162178635597,
0.01610044203698635,
-0.061723437160253525,
0.05080719292163849,
-0.02181219309568405,
0.022644100710749626,
0.007527743000537157,
-0.005600153934210539,
0.01743960939347744,
0.005879146978259087,
0.025707952678203583,
-0.009734326042234898,
-0.05827406421303749,
-0.010256803594529629,
-0.06204808130860329,
0.04338090121746063,
-0.00848139263689518,
-0.04273160919547081,
-0.0017437073402106762,
-0.049102798104286194,
0.003484878456220031,
-0.00086487882072106,
-0.017723675817251205,
-0.0311660747975111,
-0.01134234108030796,
-0.01232642587274313,
-0.03780103847384453,
-0.03433137759566307,
-0.000999936950393021,
0.012407587841153145,
-0.04123011976480484,
-0.02862977236509323,
0.08047177642583847,
-0.022380325943231583,
0.09690701216459274,
0.004047937225550413,
0.01957010291516781,
-0.07990364730358124,
0.014172852970659733,
-0.019083132967352867,
0.04889989644289017,
-0.02712828293442726,
0.028568901121616364,
-0.03242408111691475,
-0.02950225956737995,
0.039525724947452545,
0.013280075043439865,
-0.03672564774751663,
0.06269737333059311,
-0.05725954473018646,
0.021609289571642876,
-0.018220791593194008,
0.017581643536686897,
-0.03729378059506416,
0.011829311028122902,
0.008729950524866581,
-0.03037474863231182,
-0.043015673756599426,
-0.007573396433144808,
0.051253583282232285,
-0.013807625509798527,
0.03621838614344597,
0.01138292159885168,
-0.0010570037411525846,
0.004917888902127743,
-0.0794166773557663,
0.03187623992562294,
-0.020483171567320824,
-0.04788537323474884,
-0.049589768052101135,
-0.0073502021841704845,
-0.05644792690873146,
0.05222752317786217,
0.03378353640437126,
0.02014837972819805,
0.008202399127185345,
0.018038177862763405,
0.04346206411719322,
-0.003959166817367077,
-0.009399534203112125,
0.07669775933027267,
0.011403212323784828,
0.009252428077161312,
0.0482100211083889,
0.009987955912947655,
-0.034047313034534454,
0.025890566408634186,
-0.0044359914027154446,
0.059816136956214905,
-0.00197197450324893,
0.021183190867304802,
0.026032600551843643,
-0.01168727781623602,
0.08144571632146835,
0.04480123147368431,
-0.06415828317403793,
0.006543658208101988,
-0.056407347321510315,
0.017104817554354668,
-0.07044831663370132,
-0.03656332567334175,
0.026499278843402863,
-0.033661793917417526,
0.08870968222618103,
0.020554188638925552,
-0.004737811628729105,
0.01927589252591133,
-0.02197451703250408,
0.0036649557296186686,
-0.03583287075161934,
-0.02173103205859661,
-0.05681315436959267,
0.0561232827603817,
0.0027544235344976187,
0.01038869097828865,
0.027148572728037834,
0.0037790893111377954,
-0.03242408111691475,
-0.014527935534715652,
0.054337725043296814,
0.03934311121702194,
0.025160111486911774,
-0.049346283078193665,
-0.005120792891830206,
0.015552601777017117,
-0.005123329348862171,
-0.039201077073812485,
-0.03646187111735344,
0.040073566138744354,
-0.02694566920399666,
0.0623321495950222,
0.012448168359696865,
-0.020980287343263626,
0.037212617695331573,
0.0024348495062440634,
0.04297509416937828,
-0.016851188614964485,
0.015430859290063381,
-0.013067025691270828,
-0.024064429104328156,
-0.04861582815647125,
0.008694441989064217,
0.04605923593044281,
0.02006721869111061,
0.02599201910197735,
-0.05328262597322464,
0.07491220533847809,
0.009572002105414867,
-0.00108997558709234,
0.08992710709571838,
-0.03339802101254463,
-0.030739976093173027,
-0.014182998798787594,
0.0037968435790389776,
-0.0914691835641861,
0.013625012710690498,
-0.013371381908655167,
0.054418887943029404,
0.0748310461640358,
-0.00093652936629951,
0.0415547639131546,
-0.02631666511297226,
0.06829752773046494,
-0.01800774224102497,
0.00019894115393981338,
-0.0014710549730807543,
0.01721641607582569,
-0.04143302142620087,
-0.03798365220427513,
-0.013188768178224564,
-0.022644100710749626,
0.01864689029753208,
-0.01973242685198784,
-0.04549110680818558,
-0.013259785249829292,
0.024612270295619965,
-0.03370237722992897,
-0.00569146079942584,
0.016861332580447197,
-0.02394268661737442,
-0.02292816713452339,
-0.004486717749387026,
-0.012255409732460976,
0.05575805529952049,
0.0009739398374222219,
-0.013696028850972652,
-0.0169526394456625,
-0.01830195263028145,
-0.029380517080426216,
0.01847442053258419,
-0.03950543329119682,
-0.03700971230864525,
0.0060769785195589066,
0.003850105917081237,
0.02315136045217514,
0.016983075067400932,
-0.05437830835580826,
-0.004080909304320812,
-0.024612270295619965,
-0.044598326086997986,
0.03084142692387104,
0.025180403143167496,
-0.03749668225646019,
0.0028102220967411995,
-0.05600154027342796,
0.02783844619989395,
-0.00008884981798473746,
0.025829695165157318,
-0.014872872270643711,
0.03830830007791519,
-0.00020005079568363726,
-0.026499278843402863,
0.008146600797772408,
0.01806861348450184,
0.025910858064889908,
0.014527935534715652,
-0.01998605579137802,
0.030861718580126762,
0.010733628645539284,
0.0010436881566420197,
0.06785114109516144,
-0.0041189538314938545,
0.01965126395225525,
-0.00994737446308136,
0.018220791593194008,
-0.026296375319361687,
-0.007659630849957466,
-0.02203538827598095,
0.002554055768996477,
0.021426675841212273,
-0.06639023125171661,
-0.002650435082614422,
0.08668064326047897,
0.06776998192071915,
-0.03021242469549179,
-0.009374170564115047,
0.04622156172990799,
0.025099240243434906,
0.10567247122526169,
0.02956313081085682,
0.046505626291036606,
0.02451081946492195,
-0.06809462606906891,
0.008202399127185345,
0.058152321726083755,
0.0012687848648056388,
-0.06906856596469879,
0.006051615811884403,
-0.07430349290370941,
0.02885296754539013,
0.03149072080850601,
-0.009495913051068783,
0.059491489082574844,
-0.0005367448320612311,
-0.012194538488984108,
-0.02988777868449688,
0.034919802099466324,
-0.010241585783660412,
0.009140831418335438,
-0.02584998682141304,
-0.00042451347690075636,
0.03449370339512825,
-0.00012752841576002538,
-0.0041671437211334705,
-0.0038222065195441246,
0.02371949329972267,
-0.008009640499949455,
-0.017561351880431175,
0.003974384628236294,
0.01743960939347744,
0.027777574956417084,
-0.008958217687904835,
0.012295990251004696,
0.01609029807150364,
0.010033609345555305,
0.004778392147272825,
-0.025241274386644363,
-0.0077306474559009075,
-0.029400808736681938,
-0.03640099987387657,
0.030395038425922394,
0.02076723799109459,
0.022238291800022125,
-0.030719684436917305,
-0.03297192230820656,
0.06586267799139023,
0.023496298119425774,
0.058395806699991226,
-0.011240888386964798,
-0.020239686593413353,
0.03670535609126091,
0.040540244430303574,
0.02432820573449135,
-0.009825631976127625,
-0.028122512623667717,
-0.014497499912977219,
0.034047313034534454,
0.02552533894777298,
0.022806424647569656,
0.04914338141679764,
-0.023638330399990082,
-0.049752093851566315,
0.024673141539096832,
-0.033093664795160294,
-0.009622728452086449,
-0.00970896240323782,
-0.005186736583709717,
0.01998605579137802,
-0.03153130039572716,
0.03956630453467369,
0.004851945210248232,
-0.015998991206288338,
-0.0303544569760561,
-0.025241274386644363,
-0.04403019696474075,
0.0016917132306843996,
0.013533705845475197,
0.004453745670616627,
-0.052065201103687286,
-0.03481834754347801,
0.0033048009499907494,
0.018575873225927353,
-0.02046288177371025,
-0.06785114109516144,
0.004390337970107794,
0.027168862521648407,
-0.057827677577733994,
0.005787840113043785,
-0.031754497438669205,
0.0432591587305069,
0.00466172257438302,
0.09698817133903503,
-0.054662372916936874,
-0.024125300347805023,
-0.003888150444254279,
0.05985671654343605,
-0.009561857208609581,
0.036340128630399704,
0.06963669508695602,
0.08359649777412415,
-0.07572381943464279,
-0.018454130738973618,
0.004986369051039219,
-0.024936918169260025,
0.007015410345047712,
-0.023090489208698273,
-0.04305625706911087,
-0.022542648017406464,
-0.00646249670535326,
-0.04204173386096954,
-0.012164102867245674,
0.011413357220590115,
0.023273102939128876,
0.01609029807150364,
0.015400423668324947,
-0.01568448916077614,
-0.03185594826936722,
0.011362630873918533,
0.06496990472078323,
-0.09041407704353333,
0.005503774620592594,
0.029624002054333687,
0.01887008361518383,
0.016597557812929153,
-0.029299356043338776,
-0.012833686545491219,
0.0071828062646090984,
-0.04390845447778702,
-0.032241467386484146,
-0.03128781542181969,
-0.007228459697216749,
-0.023983268067240715,
0.054662372916936874,
-0.01400038506835699,
-0.014243870042264462,
-0.011677132919430733,
0.056326184421777725,
0.003520386526361108,
-0.015390277840197086,
-0.056650832295417786,
-0.02020925097167492,
0.0561232827603817,
0.06010020151734352,
0.027331186458468437,
-0.012559765949845314,
-0.039748918265104294,
-0.0034037167206406593,
0.030577652156352997,
0.05717838183045387,
0.04123011976480484,
-0.04382729157805443,
0.04374612867832184,
-0.013280075043439865,
-0.015643907710909843,
-0.0284674484282732,
0.024307914078235626,
-0.017936725169420242,
0.023638330399990082,
0.06602500379085541,
-0.06350899487733841,
-0.038247428834438324,
0.008035003207623959,
0.0067516351118683815,
-0.03161246329545975,
-0.025728244334459305,
-0.027858735993504524,
0.014720694161951542,
-0.0065690213814377785,
0.010652466677129269,
0.016607703641057014,
0.05904510244727135,
-0.044598326086997986,
0.022461486980319023,
0.03347918018698692,
-0.0017487799050286412,
-0.004841799847781658,
-0.04536936432123184,
-0.04374612867832184,
-0.06768881529569626,
-0.06501048058271408,
0.02148754708468914,
0.004803755320608616,
-0.05725954473018646,
0.02268468216061592,
0.04191999137401581,
-0.004527298267930746,
-0.03544735163450241,
-0.025505049154162407,
-0.004773319698870182,
-0.010165496729314327,
-0.02593114785850048,
-0.004304104018956423,
-0.03828800842165947,
0.058152321726083755,
-0.027960188686847687,
-0.06594384461641312,
-0.061966922134160995,
0.00546826608479023,
0.07799634337425232,
-0.055392827838659286,
0.015430859290063381,
-0.018291806802153587,
-0.02197451703250408,
-0.006670473143458366,
0.04703317582607269,
0.06452351063489914,
-0.03108491189777851,
-0.039769209921360016,
0.0794166773557663,
-0.051172420382499695,
0.06886566430330276,
0.06083065643906593,
-0.01864689029753208,
-0.06683661788702011,
-0.006178430747240782,
0.010383618995547295,
-0.04041850194334984,
-0.042853351682424545,
-0.011068420484662056,
0.035711128264665604,
0.023597750812768936,
0.028203673660755157,
-0.018606308847665787,
-0.006498004775494337,
-0.05953207239508629,
0.04051995277404785,
-0.02164987102150917,
-0.03370237722992897,
0.07251793891191483,
-0.018738197162747383,
-0.021223772317171097,
0.02195422723889351,
-0.03179507702589035,
0.00485955411568284,
0.02236003428697586,
0.004494326654821634,
0.018332388252019882,
-0.037861909717321396,
0.007238604594022036,
0.0561232827603817,
0.011616261675953865,
0.018200499936938286,
0.0018654498271644115,
-0.015613473020493984,
-0.031429849565029144,
0.041595347225666046,
-0.007000192534178495,
0.0142337242141366,
0.05186229571700096,
-0.07008308917284012,
0.0284674484282732,
-0.04699259623885155,
0.010337965562939644,
-0.0035914031323045492,
0.04687085375189781,
0.02258322946727276,
-0.017459901049733162,
-0.00445881811901927,
-0.02615434303879738,
-0.04334032163023949,
0.015390277840197086,
-0.00517659168690443,
0.007872680202126503,
0.037922780960798264,
-0.017388883978128433,
0.02789931744337082,
0.008009640499949455,
0.04305625706911087
] |
725,548 | syne_tune.tuner | Tuner |
Controller of tuning loop, manages interplay between scheduler and
trial backend. Also, stopping criterion and number of workers are
maintained here.
:param trial_backend: Backend for trial evaluations
:param scheduler: Tuning algorithm for making decisions about which
trials to start, stop, pause, or resume
:param stop_criterion: Tuning stops when this predicates returns ``True``.
Called in each iteration with the current tuning status. It is
recommended to use :class:`StoppingCriterion`.
:param n_workers: Number of workers used here. Note that the backend
needs to support (at least) this number of workers to be run
in parallel
:param sleep_time: Time to sleep when all workers are busy. Defaults to
:const:`~syne_tune.constants.DEFAULT_SLEEP_TIME`
:param results_update_interval: Frequency at which results are updated and
stored (in seconds). Defaults to 10.
:param print_update_interval: Frequency at which result table is printed.
Defaults to 30.
:param max_failures: This many trial execution failures are allowed before
the tuning loop is aborted. Defaults to 1
:param tuner_name: Name associated with the tuning experiment, default to
the name of the entrypoint. Must consists of alpha-digits characters,
possibly separated by '-'. A postfix with a date time-stamp is added
to ensure uniqueness.
:param asynchronous_scheduling: Whether to use asynchronous scheduling
when scheduling new trials. If ``True``, trials are scheduled as soon as
a worker is available. If ``False``, the tuner waits that all trials
are finished before scheduling a new batch of size ``n_workers``.
Default to ``True``.
:param wait_trial_completion_when_stopping: How to deal with running
trials when stopping criterion is met. If ``True``, the tuner waits
until all trials are finished. If ``False``, all trials are terminated.
Defaults to ``False``.
:param callbacks: Called at certain times in the tuning loop, for example
when a result is seen. The default callback stores results every
``results_update_interval``.
:param metadata: Dictionary of user-metadata that will be persisted in
``{tuner_path}/{ST_METADATA_FILENAME}``, in addition to metadata provided by
the user. ``SMT_TUNER_CREATION_TIMESTAMP`` is always included which
measures the time-stamp when the tuner started to run.
:param suffix_tuner_name: If ``True``, a timestamp is appended to the
provided ``tuner_name`` that ensures uniqueness, otherwise the name is
left unchanged and is expected to be unique. Defaults to ``True``.
:param save_tuner: If ``True``, the :class:`Tuner` object is serialized at
the end of tuning, including its dependencies (e.g., scheduler). This
allows all details of the experiment to be recovered. Defaults to
``True``.
:param start_jobs_without_delay: Defaults to ``True``. If this is ``True``, the tuner
starts new jobs depending on scheduler decisions communicated to the
backend. For example, if a trial has just been stopped (by calling
``backend.stop_trial``), the tuner may start a new one immediately, even
if the SageMaker training job is still busy due to stopping delays.
This can lead to faster experiment runtime, because the backend is
temporarily going over its budget.
If set to ``False``, the tuner always asks the backend for the number of
busy workers, which guarantees that we never go over the ``n_workers``
budget. This makes a difference for backends where stopping or pausing
trials is not immediate (e.g., :class:`SageMakerBackend`). Not going
over budget means that ``n_workers`` can be set up to the available quota,
without running the risk of an exception due to the quota being
exceeded. If you get such exceptions, we recommend to use
``start_jobs_without_delay=False``. Also, if the SageMaker warm pool
feature is used, it is recommended to set
``start_jobs_without_delay=False``, since otherwise more than ``n_workers``
warm pools will be started, because existing ones are busy with
stopping when they should be reassigned.
:param trial_backend_path: If this is given, the path of ``trial_backend``
(where logs and checkpoints of trials are stored) is set to this.
Otherwise, it is set to ``self.tuner_path``, so that per-trial
information is written to the same path as tuning results.
If the backend is :class:`~syne_tune.backend.LocalBackend` and the
experiment is ru remotely, we recommend to set this, since otherwise
checkpoints and logs are synced to S3, along with tuning results, which
is costly and error-prone.
| class Tuner:
"""
Controller of tuning loop, manages interplay between scheduler and
trial backend. Also, stopping criterion and number of workers are
maintained here.
:param trial_backend: Backend for trial evaluations
:param scheduler: Tuning algorithm for making decisions about which
trials to start, stop, pause, or resume
:param stop_criterion: Tuning stops when this predicates returns ``True``.
Called in each iteration with the current tuning status. It is
recommended to use :class:`StoppingCriterion`.
:param n_workers: Number of workers used here. Note that the backend
needs to support (at least) this number of workers to be run
in parallel
:param sleep_time: Time to sleep when all workers are busy. Defaults to
:const:`~syne_tune.constants.DEFAULT_SLEEP_TIME`
:param results_update_interval: Frequency at which results are updated and
stored (in seconds). Defaults to 10.
:param print_update_interval: Frequency at which result table is printed.
Defaults to 30.
:param max_failures: This many trial execution failures are allowed before
the tuning loop is aborted. Defaults to 1
:param tuner_name: Name associated with the tuning experiment, default to
the name of the entrypoint. Must consists of alpha-digits characters,
possibly separated by '-'. A postfix with a date time-stamp is added
to ensure uniqueness.
:param asynchronous_scheduling: Whether to use asynchronous scheduling
when scheduling new trials. If ``True``, trials are scheduled as soon as
a worker is available. If ``False``, the tuner waits that all trials
are finished before scheduling a new batch of size ``n_workers``.
Default to ``True``.
:param wait_trial_completion_when_stopping: How to deal with running
trials when stopping criterion is met. If ``True``, the tuner waits
until all trials are finished. If ``False``, all trials are terminated.
Defaults to ``False``.
:param callbacks: Called at certain times in the tuning loop, for example
when a result is seen. The default callback stores results every
``results_update_interval``.
:param metadata: Dictionary of user-metadata that will be persisted in
``{tuner_path}/{ST_METADATA_FILENAME}``, in addition to metadata provided by
the user. ``SMT_TUNER_CREATION_TIMESTAMP`` is always included which
measures the time-stamp when the tuner started to run.
:param suffix_tuner_name: If ``True``, a timestamp is appended to the
provided ``tuner_name`` that ensures uniqueness, otherwise the name is
left unchanged and is expected to be unique. Defaults to ``True``.
:param save_tuner: If ``True``, the :class:`Tuner` object is serialized at
the end of tuning, including its dependencies (e.g., scheduler). This
allows all details of the experiment to be recovered. Defaults to
``True``.
:param start_jobs_without_delay: Defaults to ``True``. If this is ``True``, the tuner
starts new jobs depending on scheduler decisions communicated to the
backend. For example, if a trial has just been stopped (by calling
``backend.stop_trial``), the tuner may start a new one immediately, even
if the SageMaker training job is still busy due to stopping delays.
This can lead to faster experiment runtime, because the backend is
temporarily going over its budget.
If set to ``False``, the tuner always asks the backend for the number of
busy workers, which guarantees that we never go over the ``n_workers``
budget. This makes a difference for backends where stopping or pausing
trials is not immediate (e.g., :class:`SageMakerBackend`). Not going
over budget means that ``n_workers`` can be set up to the available quota,
without running the risk of an exception due to the quota being
exceeded. If you get such exceptions, we recommend to use
``start_jobs_without_delay=False``. Also, if the SageMaker warm pool
feature is used, it is recommended to set
``start_jobs_without_delay=False``, since otherwise more than ``n_workers``
warm pools will be started, because existing ones are busy with
stopping when they should be reassigned.
:param trial_backend_path: If this is given, the path of ``trial_backend``
(where logs and checkpoints of trials are stored) is set to this.
Otherwise, it is set to ``self.tuner_path``, so that per-trial
information is written to the same path as tuning results.
If the backend is :class:`~syne_tune.backend.LocalBackend` and the
experiment is ru remotely, we recommend to set this, since otherwise
checkpoints and logs are synced to S3, along with tuning results, which
is costly and error-prone.
"""
def __init__(
self,
trial_backend: TrialBackend,
scheduler: TrialScheduler,
stop_criterion: Callable[[TuningStatus], bool],
n_workers: int,
sleep_time: float = TUNER_DEFAULT_SLEEP_TIME,
results_update_interval: float = 10.0,
print_update_interval: float = 30.0,
max_failures: int = 1,
tuner_name: Optional[str] = None,
asynchronous_scheduling: bool = True,
wait_trial_completion_when_stopping: bool = False,
callbacks: Optional[List[TunerCallback]] = None,
metadata: Optional[dict] = None,
suffix_tuner_name: bool = True,
save_tuner: bool = True,
start_jobs_without_delay: bool = True,
trial_backend_path: Optional[str] = None,
):
self.trial_backend = trial_backend
self.scheduler = scheduler
self.n_workers = n_workers
self.sleep_time = sleep_time
self.results_update_interval = results_update_interval
self.stop_criterion = stop_criterion
self.asynchronous_scheduling = asynchronous_scheduling
self.wait_trial_completion_when_stopping = wait_trial_completion_when_stopping
self.metadata = self._enrich_metadata(metadata)
self.save_tuner = save_tuner
self.start_jobs_without_delay = start_jobs_without_delay
self.max_failures = max_failures
self.print_update_interval = print_update_interval
if tuner_name is not None:
check_valid_sagemaker_name(tuner_name)
else:
tuner_name = Path(self.trial_backend.entrypoint_path()).stem.replace(
"_", "-"
)
if suffix_tuner_name or tuner_name is None:
self.name = name_from_base(tuner_name, default="st-tuner")
else:
self.name = tuner_name
# we keep track of the last result seen to send it to schedulers when trials complete.
self.last_seen_result_per_trial = {}
self.trials_scheduler_stopped = set()
self.tuner_path = Path(experiment_path(tuner_name=self.name))
# inform the backend to the folder of the Tuner. This allows the local backend
# to store the logs and tuner results in the same folder.
self.trial_backend.set_path(
results_root=str(self.tuner_path)
if trial_backend_path is None
else trial_backend_path,
tuner_name=self.name,
)
self._init_callbacks(callbacks)
self.tuning_status = None
self.tuner_saver = None
self.status_printer = None
self._initialize_early_checkpoint_removal()
def _init_callbacks(self, callbacks: Optional[List[TunerCallback]]):
if callbacks is None:
callbacks = [self._default_callback()]
else:
if not any(
isinstance(callback, StoreResultsCallback) for callback in callbacks
):
logger.warning(
"None of the callbacks provided are of type StoreResultsCallback. "
"This means no tuning results will be written."
)
self.callbacks: List[TunerCallback] = | (trial_backend: syne_tune.backend.trial_backend.TrialBackend, scheduler: syne_tune.optimizer.scheduler.TrialScheduler, stop_criterion: Callable[[syne_tune.tuning_status.TuningStatus], bool], n_workers: int, sleep_time: float = 5.0, results_update_interval: float = 10.0, print_update_interval: float = 30.0, max_failures: int = 1, tuner_name: Optional[str] = None, asynchronous_scheduling: bool = True, wait_trial_completion_when_stopping: bool = False, callbacks: Optional[List[syne_tune.tuner_callback.TunerCallback]] = None, metadata: Optional[dict] = None, suffix_tuner_name: bool = True, save_tuner: bool = True, start_jobs_without_delay: bool = True, trial_backend_path: Optional[str] = None) | [
0.05967482179403305,
-0.012728716246783733,
-0.08025498688220978,
0.02796301059424877,
-0.019757721573114395,
0.01866750791668892,
-0.08354475349187851,
-0.03993622958660126,
-0.017491227015852928,
-0.018399737775325775,
-0.019203051924705505,
0.00862607266753912,
0.0006580727058462799,
0.024195080623030663,
-0.01861012913286686,
0.02262670360505581,
0.005465410649776459,
-0.0027255327440798283,
0.03691423311829567,
0.013159063644707203,
-0.012441817671060562,
-0.0091185811907053,
0.01769205555319786,
0.0717628002166748,
-0.0024888417683541775,
0.0011422134703025222,
0.019566455855965614,
-0.05474017560482025,
-0.023028360679745674,
0.02264583110809326,
-0.006163529586046934,
-0.03303154557943344,
-0.000880418810993433,
0.020388897508382797,
0.048198897391557693,
-0.016181057319045067,
-0.011581123806536198,
0.03808095306158066,
-0.04670702666044235,
0.00803793128579855,
0.007282432168722153,
-0.09241946786642075,
0.06109018623828888,
-0.03079373948276043,
-0.008190942928195,
0.042996473610401154,
-0.040165744721889496,
0.009453295730054379,
0.042460933327674866,
-0.05076185241341591,
-0.005245455075055361,
-0.047089554369449615,
-0.02999042347073555,
0.03257250785827637,
-0.04846666753292084,
0.025132281705737114,
0.033356696367263794,
0.015559445135295391,
0.05125914141535759,
-0.056614577770233154,
0.0030315574258565903,
-0.028861958533525467,
0.03502070531249046,
0.061855249106884,
0.016028044745326042,
-0.01848580688238144,
-0.02343001961708069,
0.02356390468776226,
-0.015750709921121597,
0.014000631868839264,
0.050914864987134933,
-0.02943575382232666,
-0.0068855565041303635,
-0.036761220544576645,
0.017233017832040787,
0.01067261304706335,
-0.05584951490163803,
-0.07948992401361465,
-0.048810943961143494,
-0.02968440018594265,
0.05152691528201103,
0.06854954361915588,
-0.009701940231025219,
-0.03574751317501068,
0.04601847007870674,
-0.011791515164077282,
0.007693652994930744,
-0.02907234989106655,
-0.012470507994294167,
-0.03488681837916374,
-0.03989797458052635,
-0.0017237799474969506,
0.06812875717878342,
0.025189660489559174,
-0.0074211000464856625,
-0.03131015598773956,
-0.04181062802672386,
-0.11238758265972137,
-0.044985637068748474,
-0.05523746460676193,
0.006899901665747166,
0.03672296926379204,
0.03840610384941101,
-0.00995536707341671,
0.04544467478990555,
-0.033796608448028564,
-0.06262031197547913,
0.016094988211989403,
-0.0027637858875095844,
-0.006455209106206894,
-0.04280520975589752,
0.027446594089269638,
-0.05527571961283684,
-0.01971946842968464,
-0.017892884090542793,
0.03683772683143616,
-0.017845068126916885,
0.019642962142825127,
-0.009740193374454975,
0.0011129259364679456,
-0.012499197386205196,
0.02733183465898037,
-0.0451386496424675,
0.01756773330271244,
-0.05764741078019142,
-0.0025677387602627277,
0.015473376028239727,
0.10603757202625275,
0.014870889484882355,
-0.06258206069469452,
-0.010854315012693405,
-0.013245132751762867,
-0.0287471991032362,
0.014545737765729427,
0.033184558153152466,
0.034791186451911926,
-0.011380295269191265,
0.05818295106291771,
-0.04253743961453438,
0.003359099617227912,
0.02677716501057148,
0.02157474309206009,
-0.0020429540891200304,
-0.026815418154001236,
0.039668455719947815,
-0.02262670360505581,
-0.016860051080584526,
-0.023850802332162857,
0.03658908233046532,
-0.004293909762054682,
-0.03678034618496895,
-0.010596106760203838,
0.03699073940515518,
0.01736690290272236,
-0.02559131756424904,
0.019269995391368866,
-0.020924441516399384,
0.0012982143089175224,
0.02021675929427147,
-0.022798843681812286,
-0.03982146829366684,
-0.053592581301927567,
-0.03458079323172569,
-0.04005098715424538,
-0.02826903574168682,
0.03511633723974228,
-0.05152691528201103,
0.07723299413919449,
-0.032553382217884064,
0.05994259566068649,
0.030946752056479454,
-0.020006367936730385,
-0.058718495070934296,
0.006957280915230513,
-0.04601847007870674,
0.08775259554386139,
0.04184888303279877,
-0.012652209959924221,
0.03372010216116905,
-0.010003183968365192,
-0.02641375921666622,
-0.000017949814719031565,
-0.07941342145204544,
-0.0011846504639834166,
-0.018724888563156128,
-0.004432577174156904,
0.012499197386205196,
0.016181057319045067,
0.017462536692619324,
0.04295822232961655,
0.024883635342121124,
-0.030506839975714684,
0.024654118344187737,
0.005226328503340483,
-0.010768244974315166,
0.012853038497269154,
0.08400379121303558,
0.024826256558299065,
0.024137701839208603,
0.01459355466067791,
0.0045210374519228935,
0.027178822085261345,
0.040777795016765594,
-0.018763141706585884,
0.0032036963384598494,
-0.027656985446810722,
0.012049724347889423,
-0.012967797927558422,
-0.021727755665779114,
0.01719476468861103,
-0.00405004620552063,
-0.021115707233548164,
-0.00936722569167614,
0.06816700845956802,
0.04559768736362457,
-0.054893188178539276,
0.06893207132816315,
0.040280506014823914,
0.0426904521882534,
-0.0213452260941267,
-0.006512588821351528,
-0.032878533005714417,
-0.015760274603962898,
0.004052436910569668,
0.00881255604326725,
0.002928752452135086,
0.04529166221618652,
0.0027350960299372673,
0.03023906983435154,
-0.028096895664930344,
0.03396874666213989,
-0.029206234961748123,
0.022913601249456406,
-0.0028785450849682093,
0.004353680182248354,
0.0025796929839998484,
-0.014239713549613953,
0.016056735068559647,
0.021995527669787407,
-0.036761220544576645,
0.024252459406852722,
0.0005959114641882479,
0.004733819980174303,
-0.03741152212023735,
-0.051603421568870544,
-0.0012970188399776816,
0.061510972678661346,
0.03477206081151962,
-0.015090844593942165,
-0.01394325215369463,
0.06399742513895035,
-0.02182338945567608,
-0.023602157831192017,
0.03370097279548645,
-0.05125914141535759,
0.010634359903633595,
0.017596421763300896,
0.0026275091804564,
0.030774611979722977,
-0.018351919949054718,
-0.020886188372969627,
0.0482371486723423,
-0.11269360780715942,
0.052100710570812225,
-0.06292633712291718,
0.014794383198022842,
0.001997528597712517,
-0.0010973855387419462,
-0.015597698278725147,
0.033853985369205475,
0.07948992401361465,
0.08629897236824036,
-0.07627666741609573,
0.014010194689035416,
-0.04953775554895401,
0.031520549207925797,
-0.013780676759779453,
0.0060105170123279095,
-0.04766335338354111,
-0.032189976423978806,
0.010452657006680965,
0.010376150719821453,
0.009438950568437576,
-0.028307288885116577,
0.0023238754365593195,
-0.03456166759133339,
-0.016544463112950325,
0.019336938858032227,
-0.007531077601015568,
0.0005585548933595419,
-0.026298999786376953,
-0.011676756665110588,
0.08599294722080231,
-0.012355748564004898,
0.06583356857299805,
-0.01338858250528574,
-0.08086703717708588,
-0.009362444281578064,
0.031023258343338966,
-0.05604077875614166,
0.029225362464785576,
-0.03284027799963951,
-0.015616824850440025,
0.04720431566238403,
-0.020369771867990494,
0.013532031327486038,
0.008965568616986275,
-0.027542226016521454,
0.04062478244304657,
-0.023238753899931908,
-0.02411857433617115,
-0.03697161376476288,
0.021498236805200577,
0.019929861649870872,
0.008176598697900772,
-0.012374875135719776,
-0.01664009504020214,
-0.025878217071294785,
-0.01751035265624523,
0.05037932097911835,
-0.01187758520245552,
0.06101367995142937,
0.011342042125761509,
-0.005790561903268099,
0.016171494498848915,
-0.05156516656279564,
-0.004100253339856863,
0.024214206263422966,
-0.05152691528201103,
-0.024328965693712234,
-0.02281796932220459,
-0.027178822085261345,
0.020082872360944748,
-0.015043028630316257,
-0.008124000392854214,
0.020981820300221443,
0.04200189560651779,
0.025151407346129417,
0.01041440386325121,
-0.006531715393066406,
0.06919984519481659,
-0.004745774436742067,
-0.051412153989076614,
0.03171181306242943,
-0.006177874282002449,
0.00013515594764612615,
0.007387628313153982,
-0.0051115695387125015,
0.06273507326841354,
-0.0201019998639822,
0.00933375395834446,
0.03253425285220146,
-0.02641375921666622,
0.09999357908964157,
0.03920941799879074,
-0.07662094384431839,
0.001140420325100422,
-0.0290532223880291,
0.0031702250707894564,
-0.05959831550717354,
-0.11682493984699249,
0.02907234989106655,
-0.03438952937722206,
0.055619996041059494,
0.030525967478752136,
-0.028307288885116577,
0.011839332059025764,
-0.05405161902308464,
0.002780521521344781,
-0.0587567500770092,
0.004736211150884628,
-0.0772712454199791,
0.030315576121211052,
-0.006909464951604605,
0.026432886719703674,
-0.017080005258321762,
-0.02683454379439354,
-0.015167350880801678,
-0.021039200946688652,
0.019623836502432823,
0.0773477554321289,
0.014277966693043709,
-0.010204012505710125,
-0.0048605334013700485,
0.029913917183876038,
-0.04559768736362457,
-0.058527231216430664,
0.020006367936730385,
0.04751034080982208,
-0.03251512721180916,
0.0371246263384819,
0.007306340616196394,
-0.025935595855116844,
0.06189350411295891,
0.017481662333011627,
0.019327374175190926,
-0.05076185241341591,
0.005479755345731974,
-0.040089238435029984,
-0.020006367936730385,
-0.025380926206707954,
-0.03678034618496895,
0.002584474626928568,
0.06598658114671707,
0.04456485062837601,
-0.009964930824935436,
0.11407072097063065,
0.04877269268035889,
-0.010031873360276222,
0.07092123478651047,
-0.028460299596190453,
0.007664963137358427,
-0.02331526018679142,
-0.0019724250305444,
-0.08484535664319992,
0.022358931601047516,
-0.08897668868303299,
0.04559768736362457,
0.041275087743997574,
0.039974480867385864,
0.021498236805200577,
0.024501105770468712,
0.06281157582998276,
0.04686003923416138,
0.041887134313583374,
0.03752628341317177,
0.013407709077000618,
-0.006847303360700607,
-0.04747208580374718,
-0.038731254637241364,
0.017213892191648483,
0.009740193374454975,
0.008080965839326382,
-0.030009550973773003,
-0.01425884012132883,
0.025954723358154297,
-0.02040802501142025,
-0.017491227015852928,
0.0008385794935747981,
-0.043187741190195084,
0.021287845447659492,
-0.03492507338523865,
-0.029837410897016525,
-0.009099454618990421,
0.021498236805200577,
-0.00370337744243443,
-0.02627987414598465,
-0.007674526423215866,
-0.08071402460336685,
-0.009046856313943863,
-0.020924441516399384,
-0.012757406570017338,
0.01106470637023449,
0.04376153647899628,
0.013723297044634819,
0.014555301517248154,
-0.019987240433692932,
-0.02901497110724449,
-0.05083835870027542,
-0.038253091275691986,
0.005140259396284819,
0.008740831166505814,
0.023047488182783127,
0.008798210881650448,
0.003913769498467445,
0.06392091512680054,
0.031329281628131866,
0.0031200177036225796,
-0.034408655017614365,
0.005498881917446852,
-0.014794383198022842,
0.0007722342852503061,
0.0025366581976413727,
-0.0010573393665254116,
-0.003593399887904525,
0.01057698018848896,
-0.05493143945932388,
-0.015989791601896286,
0.006503025535494089,
-0.034905947744846344,
0.05053233355283737,
-0.01897353306412697,
0.04605672135949135,
0.05014980211853981,
0.0014225369086489081,
-0.027790870517492294,
0.0020525173749774694,
-0.01681223325431347,
-0.012585267424583435,
-0.009749757125973701,
-0.046592265367507935,
-0.008076184429228306,
0.054204631596803665,
0.06219952553510666,
-0.06483899056911469,
0.007531077601015568,
0.012298368848860264,
0.0340069979429245,
0.0673636943101883,
0.021192213520407677,
0.06533627957105637,
-0.041160326451063156,
-0.024577612057328224,
0.013254696503281593,
0.060439884662628174,
-0.026012102141976357,
-0.08859416097402573,
0.043685030192136765,
-0.07436401396989822,
0.025935595855116844,
0.008669107221066952,
-0.020006367936730385,
0.02616511471569538,
-0.028900211676955223,
-0.003947240766137838,
-0.05653807148337364,
-0.003155880142003298,
-0.025304419919848442,
0.015205604024231434,
-0.002225851872935891,
-0.01116033922880888,
0.02758047915995121,
-0.0025270949117839336,
0.0042054494842886925,
0.045368168503046036,
-0.004210230894386768,
-0.009577617980539799,
0.0007034982554614544,
0.03477206081151962,
0.05699710547924042,
0.009993620216846466,
-0.01067261304706335,
0.001996333245187998,
0.019375190138816833,
0.036895107477903366,
-0.006421737838536501,
-0.021689502522349358,
-0.014517048373818398,
0.02689192444086075,
-0.050914864987134933,
0.010328334756195545,
0.025706076994538307,
0.02126871980726719,
-0.08247366547584534,
-0.015941975638270378,
-0.009687595069408417,
-0.01452661119401455,
0.04502388834953308,
-0.008540002629160881,
-0.017414720728993416,
-0.017089568078517914,
0.008525657467544079,
0.051603421568870544,
0.003837263211607933,
-0.04039526358246803,
-0.023965561762452126,
0.03370097279548645,
0.026184242218732834,
0.053592581301927567,
0.04085430130362511,
-0.021134832873940468,
-0.023468272760510445,
-0.007043350487947464,
-0.02782912366092205,
0.08079052716493607,
0.02974177896976471,
0.012604393996298313,
0.010519600473344326,
-0.037009865045547485,
-0.01891615428030491,
0.038176584988832474,
-0.014182333834469318,
-0.030009550973773003,
0.0002761395007837564,
-0.09716285020112991,
0.023162247613072395,
0.01905003935098648,
0.0042580473236739635,
-0.0445265993475914,
-0.05298053100705147,
0.03660820797085762,
0.024386346340179443,
-0.013991068117320538,
-0.015722021460533142,
-0.018954407423734665,
0.021632123738527298,
-0.01582721620798111,
0.0008326024399138987,
-0.08974175155162811,
0.01100732758641243,
-0.005742745473980904,
0.09020078927278519,
-0.06832002103328705,
-0.008606946095824242,
0.03240036964416504,
0.054893188178539276,
-0.05703536048531532,
-0.005876631010323763,
0.09173091500997543,
0.038979899138212204,
-0.07260436564683914,
-0.00011774779704865068,
-0.006804268807172775,
-0.03241949528455734,
0.03932417929172516,
-0.04150460287928581,
-0.028670692816376686,
0.01279565878212452,
0.017730308696627617,
-0.028345540165901184,
-0.002737486967816949,
-0.004382370039820671,
0.02430984005331993,
-0.045903708785772324,
-0.013598973862826824,
-0.022282425314188004,
-0.01224098913371563,
-0.002432657638564706,
0.09310802817344666,
-0.05619379132986069,
-0.013350329361855984,
0.044067561626434326,
0.010739555582404137,
0.015693331137299538,
-0.040165744721889496,
-0.06411217898130417,
0.024634990841150284,
-0.03863562270998955,
0.0036316527985036373,
-0.06074590981006622,
0.004853360820561647,
-0.028479427099227905,
0.06594832986593246,
-0.018810957670211792,
0.023774296045303345,
-0.01861012913286686,
0.01425884012132883,
0.020006367936730385,
-0.007382846903055906,
-0.03656995669007301,
0.029454881325364113,
0.06116669252514839,
0.046592265367507935,
0.015109971165657043,
0.014124954119324684,
-0.02901497110724449,
-0.006531715393066406,
0.034408655017614365,
0.025897342711687088,
0.07654443383216858,
-0.04934648796916008,
0.031214522197842598,
-0.0463627465069294,
0.0012480071745812893,
-0.04544467478990555,
0.028402920812368393,
0.026796290650963783,
-0.02035064436495304,
0.03276377171278,
-0.008410898968577385,
-0.040777795016765594,
0.016649657860398293,
0.02362128347158432,
-0.024156827479600906,
0.009721066802740097,
0.0056710210628807545,
0.0019341720035299659,
0.0023358294274657965,
0.021364351734519005,
0.02189989574253559,
0.021440858021378517,
-0.031692687422037125,
-0.01132291555404663,
0.006789923645555973,
0.017099132761359215,
0.001133845536969602,
-0.011418547481298447,
-0.04926998168230057,
-0.027752617374062538,
-0.06028687208890915,
-0.00041480697109363973,
0.011523744091391563,
-0.03536498174071312,
0.010615233331918716,
0.019948987290263176,
-0.0075741121545434,
-0.01471787691116333,
-0.004836625419557095,
0.02386992983520031,
-0.004109816625714302,
-0.06105193495750427,
0.04563593864440918,
-0.01849536970257759,
0.01536817941814661,
-0.006651256233453751,
-0.06525977700948715,
-0.006235253997147083,
-0.09502068161964417,
0.014153644442558289,
-0.07157153636217117,
0.05802994221448898,
-0.0340261235833168,
-0.03085111826658249,
-0.01289129164069891,
0.021593870595097542,
0.07554985582828522,
-0.046094976365566254,
-0.058718495070934296,
0.023831676691770554,
-0.06227603182196617,
0.07872486114501953,
0.02406119555234909,
0.03048771433532238,
-0.005035063251852989,
-0.005599296186119318,
-0.002797257388010621,
-0.013522467575967312,
-0.017902446910738945,
0.025744330137968063,
0.06487724184989929,
0.008611727505922318,
0.00878386665135622,
0.015387305989861488,
0.009993620216846466,
-0.008305702358484268,
0.019327374175190926,
-0.020867060869932175,
-0.0420401468873024,
0.04586545750498772,
0.038807760924100876,
0.008559129200875759,
-0.0364743247628212,
-0.03232386335730553,
-0.025495685636997223,
0.019948987290263176,
-0.04655401408672333,
0.07512906938791275,
0.0077366880141198635,
0.014421415515244007,
0.03838697820901871,
0.021173086017370224,
-0.011179465800523758,
-0.024577612057328224,
-0.009654124267399311,
0.019059602171182632,
0.03580489382147789,
0.019011786207556725,
-0.016917429864406586,
0.045903708785772324,
-0.023850802332162857,
0.07134201377630234,
-0.042078401893377304,
-0.014947395771741867,
0.02696842886507511,
0.03184569999575615,
-0.01211666688323021,
0.03561362996697426,
-0.004160023760050535,
-0.03974496200680733,
-0.057723917067050934,
0.03563275560736656,
-0.04123683273792267,
0.05106787756085396,
-0.0007644641445949674,
0.005804906599223614,
0.007588457316160202,
0.0038133549969643354,
0.022301552817225456
] |
725,549 | syne_tune.tuner | __init__ | null | def __init__(
self,
trial_backend: TrialBackend,
scheduler: TrialScheduler,
stop_criterion: Callable[[TuningStatus], bool],
n_workers: int,
sleep_time: float = TUNER_DEFAULT_SLEEP_TIME,
results_update_interval: float = 10.0,
print_update_interval: float = 30.0,
max_failures: int = 1,
tuner_name: Optional[str] = None,
asynchronous_scheduling: bool = True,
wait_trial_completion_when_stopping: bool = False,
callbacks: Optional[List[TunerCallback]] = None,
metadata: Optional[dict] = None,
suffix_tuner_name: bool = True,
save_tuner: bool = True,
start_jobs_without_delay: bool = True,
trial_backend_path: Optional[str] = None,
):
self.trial_backend = trial_backend
self.scheduler = scheduler
self.n_workers = n_workers
self.sleep_time = sleep_time
self.results_update_interval = results_update_interval
self.stop_criterion = stop_criterion
self.asynchronous_scheduling = asynchronous_scheduling
self.wait_trial_completion_when_stopping = wait_trial_completion_when_stopping
self.metadata = self._enrich_metadata(metadata)
self.save_tuner = save_tuner
self.start_jobs_without_delay = start_jobs_without_delay
self.max_failures = max_failures
self.print_update_interval = print_update_interval
if tuner_name is not None:
check_valid_sagemaker_name(tuner_name)
else:
tuner_name = Path(self.trial_backend.entrypoint_path()).stem.replace(
"_", "-"
)
if suffix_tuner_name or tuner_name is None:
self.name = name_from_base(tuner_name, default="st-tuner")
else:
self.name = tuner_name
# we keep track of the last result seen to send it to schedulers when trials complete.
self.last_seen_result_per_trial = {}
self.trials_scheduler_stopped = set()
self.tuner_path = Path(experiment_path(tuner_name=self.name))
# inform the backend to the folder of the Tuner. This allows the local backend
# to store the logs and tuner results in the same folder.
self.trial_backend.set_path(
results_root=str(self.tuner_path)
if trial_backend_path is None
else trial_backend_path,
tuner_name=self.name,
)
self._init_callbacks(callbacks)
self.tuning_status = None
self.tuner_saver = None
self.status_printer = None
self._initialize_early_checkpoint_removal()
| (self, trial_backend: syne_tune.backend.trial_backend.TrialBackend, scheduler: syne_tune.optimizer.scheduler.TrialScheduler, stop_criterion: Callable[[syne_tune.tuning_status.TuningStatus], bool], n_workers: int, sleep_time: float = 5.0, results_update_interval: float = 10.0, print_update_interval: float = 30.0, max_failures: int = 1, tuner_name: Optional[str] = None, asynchronous_scheduling: bool = True, wait_trial_completion_when_stopping: bool = False, callbacks: Optional[List[syne_tune.tuner_callback.TunerCallback]] = None, metadata: Optional[dict] = None, suffix_tuner_name: bool = True, save_tuner: bool = True, start_jobs_without_delay: bool = True, trial_backend_path: Optional[str] = None) | [
0.05733644589781761,
-0.021173883229494095,
-0.0619279146194458,
0.0375855378806591,
-0.03684559091925621,
0.0013862157939001918,
-0.0651533231139183,
-0.023431671783328056,
-0.03280434012413025,
-0.002397714415565133,
-0.007650867570191622,
0.04671155661344528,
-0.013072405941784382,
0.03316482529044151,
-0.023166049271821976,
0.023488590493798256,
0.010207480750977993,
0.005658701062202454,
0.02157231606543064,
-0.006782852113246918,
-0.00476222625002265,
0.010833590291440487,
0.02329885959625244,
0.08962851017713547,
0.0057535660453140736,
0.01464716624468565,
-0.001090948237106204,
-0.06245915964245796,
-0.03269050270318985,
0.025822270661592484,
-0.0006883646128699183,
-0.03198850154876709,
0.002936073811724782,
0.03566926345229149,
0.048684749752283096,
0.0011093283537775278,
-0.028174923732876778,
0.01793898455798626,
-0.07346350699663162,
0.03151417523622513,
0.018954040482640266,
-0.10723546892404556,
0.037889108061790466,
-0.03538466989994049,
-0.00608085049316287,
0.046104419976472855,
-0.0006142513011582196,
-0.023166049271821976,
0.027586761862039566,
-0.060561858117580414,
-0.034549858421087265,
-0.019997555762529373,
-0.02303323708474636,
0.03559337183833122,
-0.07748578488826752,
0.04261338710784912,
0.04526960849761963,
0.030508605763316154,
0.025708433240652084,
-0.023431671783328056,
-0.011345861479640007,
-0.023811131715774536,
0.0292943324893713,
0.0549078993499279,
0.027491895481944084,
-0.016867008060216904,
-0.04018484055995941,
0.013546731323003769,
-0.025803297758102417,
0.022464048117399216,
0.08203931152820587,
-0.004382765851914883,
-0.024019833654165268,
-0.03602975234389305,
0.01612706109881401,
0.022520966827869415,
-0.0763094574213028,
-0.07293226569890976,
-0.05255524441599846,
-0.03348736837506294,
0.06484975665807724,
0.08158395439386368,
-0.02200869470834732,
-0.027605734765529633,
0.04640799015760422,
-0.024399295449256897,
0.018546119332313538,
-0.05118918791413307,
-0.03151417523622513,
-0.013641596771776676,
-0.051113296300172806,
-0.005573322530835867,
0.06409084051847458,
0.002653850242495537,
0.02104107104241848,
-0.034454990178346634,
-0.03578310087323189,
-0.08378482609987259,
-0.029161520302295685,
-0.045079879462718964,
0.0027961477171629667,
0.026068920269608498,
0.006251608021557331,
-0.017170576378703117,
0.04409328103065491,
-0.026391461491584778,
-0.059157855808734894,
-0.01653498038649559,
-0.02001652866601944,
-0.024721836671233177,
-0.04633209854364395,
0.04743253439664841,
-0.05320032685995102,
0.012379891239106655,
-0.02013036608695984,
0.03561234474182129,
-0.014466922730207443,
-0.0037234537303447723,
0.0022020554170012474,
-0.0068160551600158215,
0.01588989794254303,
0.04652182757854462,
-0.032880231738090515,
0.033468395471572876,
-0.06139666959643364,
0.001098063075914979,
0.014761004596948624,
0.08105271309614182,
0.0045843543484807014,
-0.06522922217845917,
0.015358653850853443,
0.0027392287738621235,
-0.02411470003426075,
0.010368751361966133,
0.04117143899202347,
0.01847022771835327,
0.01151661854237318,
0.0720595046877861,
-0.05452844128012657,
0.018954040482640266,
0.02627762220799923,
0.010662833228707314,
0.009235113859176636,
-0.027036543935537338,
0.03075525350868702,
-0.005900606978684664,
-0.029844550415873528,
-0.01969398744404316,
0.02390599623322487,
-0.0027937761042267084,
-0.024778755381703377,
-0.018451254814863205,
0.02466491609811783,
0.008300692774355412,
-0.020149338990449905,
-0.010131589137017727,
-0.018811741843819618,
0.0037993458099663258,
0.026391461491584778,
-0.02978762984275818,
-0.027529841288924217,
-0.04067813977599144,
-0.0207754485309124,
-0.05050615966320038,
-0.04299284890294075,
0.05331416800618172,
-0.05779179930686951,
0.061206940561532974,
-0.04033662751317024,
0.042803116142749786,
0.04997491464018822,
-0.000914262083824724,
-0.060334183275699615,
0.007242947816848755,
-0.06663322448730469,
0.08499909937381744,
0.043941497802734375,
0.02087031491100788,
0.029275359585881233,
0.004193035885691643,
-0.02713140845298767,
0.007494340185075998,
-0.0653810054063797,
-0.01065334677696228,
-0.005696647334843874,
-0.011886592954397202,
0.012806783430278301,
0.03995716571807861,
0.00939164124429226,
0.038932621479034424,
0.029066655784845352,
-0.02950303442776203,
0.019788851961493492,
0.019248122349381447,
-0.011364834383130074,
0.00543576804921031,
0.07407063990831375,
0.012768837623298168,
0.0021913829259574413,
0.024399295449256897,
-0.014258218929171562,
0.019921664148569107,
0.038932621479034424,
-0.039995111525058746,
-0.001828524167649448,
-0.02572740614414215,
0.006868230644613504,
0.0030427968595176935,
-0.020566746592521667,
0.030717307701706886,
-0.0034530884586274624,
-0.0382685661315918,
-0.018185632303357124,
0.0681510642170906,
0.030869092792272568,
-0.0720595046877861,
0.06469797343015671,
0.04557317867875099,
0.03555542603135109,
-0.012142728082835674,
0.0008306622039526701,
-0.018384849652647972,
-0.008461963385343552,
-0.006327499635517597,
-0.0026609650813043118,
0.03572618216276169,
0.0653810054063797,
-0.006218404974788427,
-0.0019139026990160346,
-0.012673973105847836,
0.028990764170885086,
-0.04117143899202347,
0.042271874845027924,
-0.020244205370545387,
-0.014609220437705517,
0.010776671580970287,
-0.0059338100254535675,
0.009894425980746746,
0.0005096032982692122,
-0.048153508454561234,
0.0415508970618248,
-0.00040851268568076193,
0.012730891816318035,
-0.03274742141366005,
-0.012550648301839828,
-0.027264220640063286,
0.03842035308480263,
0.02174307219684124,
-0.006128283217549324,
-0.015908870846033096,
0.0485709123313427,
-0.002028926508501172,
-0.027150381356477737,
0.020756475627422333,
-0.04504193365573883,
-0.02519616112112999,
0.01785360462963581,
-0.030186064541339874,
0.03572618216276169,
-0.011478672735393047,
0.0039274138398468494,
0.033696070313453674,
-0.09008386731147766,
0.03900851309299469,
-0.0764232948422432,
0.012360918335616589,
0.0018273383611813188,
-0.004057853017002344,
0.00939164124429226,
0.04026073217391968,
0.0926641970872879,
0.05153070390224457,
-0.06621581315994263,
0.015358653850853443,
-0.056236010044813156,
0.024456214159727097,
-0.03075525350868702,
-0.018100254237651825,
-0.032994069159030914,
-0.030982930213212967,
0.02147745154798031,
0.024892592802643776,
0.022426102310419083,
-0.02622070349752903,
0.01148815918713808,
-0.01624089851975441,
-0.025860216468572617,
0.028725141659379005,
-0.02654324471950531,
-0.0033345071133226156,
-0.033411476761102676,
-0.00282460730522871,
0.07646124064922333,
-0.01100434735417366,
0.07300815731287003,
-0.03506212681531906,
-0.06268683820962906,
-0.024266483262181282,
0.03684559091925621,
-0.04090581461787224,
0.034549858421087265,
-0.04591469094157219,
-0.031362392008304596,
0.05794358253479004,
-0.02880103327333927,
0.019997555762529373,
-0.012142728082835674,
-0.010454130358994007,
0.04750842601060867,
-0.01703776605427265,
0.009462790563702583,
-0.03916030004620552,
0.04409328103065491,
0.007020014803856611,
0.03559337183833122,
-0.006389162037521601,
-0.028895899653434753,
-0.03373401612043381,
-0.01473254431039095,
0.029313305392861366,
-0.006920406594872475,
0.06534305959939957,
0.011924538761377335,
-0.005777282640337944,
-0.008172625675797462,
-0.04724280163645744,
-0.0010595242492854595,
0.03561234474182129,
-0.05745028331875801,
-0.013461352325975895,
-0.018622012808918953,
-0.014855869114398956,
0.02718832716345787,
-0.02417161874473095,
-0.01939990557730198,
0.030148116871714592,
0.03904646262526512,
0.02665708400309086,
-0.0058911205269396305,
-0.012389377690851688,
0.07839649170637131,
-0.017749253660440445,
-0.030717307701706886,
0.044852204620838165,
-0.0062421211041510105,
-0.0008359983912669122,
0.00476222625002265,
-0.030774226412177086,
0.06879614293575287,
-0.0276816263794899,
-0.0011810701107606292,
0.03585899621248245,
-0.042803116142749786,
0.1038203239440918,
0.05411103367805481,
-0.061852023005485535,
-0.014125408604741096,
-0.024456214159727097,
0.010055696591734886,
-0.05043026804924011,
-0.09213294833898544,
0.009799561463296413,
-0.043562039732933044,
0.058664556592702866,
0.03183671459555626,
-0.040754031389951706,
0.021344639360904694,
-0.06890998035669327,
-0.006578892469406128,
-0.05024053901433945,
0.019712960347533226,
-0.05999266728758812,
0.008357612416148186,
-0.026201730594038963,
0.0412093847990036,
-0.04056430235505104,
-0.025765351951122284,
-0.010160048492252827,
-0.028364654630422592,
0.009932372719049454,
0.04261338710784912,
0.02255891263484955,
-0.01499816682189703,
-0.011744295246899128,
0.0005988357006572187,
-0.033809907734394073,
-0.0484570749104023,
0.021116962656378746,
0.07665096968412399,
-0.014798950403928757,
0.03656099736690521,
-0.0035076357889920473,
-0.020509827882051468,
0.04838118329644203,
0.023488590493798256,
0.024683890864253044,
-0.06405289471149445,
-0.01668676547706127,
-0.039350029081106186,
-0.019267095252871513,
-0.02481670118868351,
-0.031305473297834396,
0.006929893046617508,
0.05752617493271828,
0.03743375465273857,
-0.015415573492646217,
0.11140953004360199,
0.026201730594038963,
-0.0009818534599617124,
0.05665341764688492,
-0.0013067662948742509,
0.01826152577996254,
-0.020244205370545387,
-0.026144811883568764,
-0.08499909937381744,
0.008613747544586658,
-0.08970440924167633,
0.04519371688365936,
0.0549078993499279,
0.03269050270318985,
-0.007707786746323109,
0.05361773446202278,
0.060334183275699615,
0.036826618015766144,
0.03236795961856842,
0.06022034212946892,
0.00848568044602871,
0.0018261525547131896,
-0.0294081699103117,
-0.06522922217845917,
0.002109561813995242,
0.021211829036474228,
0.0024854647926986217,
-0.008400301449000835,
-0.006170972716063261,
0.04720485582947731,
-0.030034279450774193,
-0.012617053464055061,
-0.0005324301891960204,
-0.04409328103065491,
0.005075281020253897,
-0.04671155661344528,
-0.013432892970740795,
0.00537884933874011,
0.029578927904367447,
-0.011943511664867401,
-0.030129143968224525,
-0.007627151440829039,
-0.06374932080507278,
0.0006800639093853533,
-0.008585288189351559,
-0.011450213380157948,
0.02739703096449375,
0.021932803094387054,
0.00484286155551672,
0.02276761643588543,
-0.02563253976404667,
-0.02168615348637104,
-0.02897179126739502,
-0.04052635654807091,
0.012370404787361622,
0.025215134024620056,
0.018716877326369286,
-0.017199035733938217,
-0.013081892393529415,
0.06879614293575287,
0.04056430235505104,
0.007105393335223198,
-0.021287720650434494,
0.0018569836392998695,
0.005834201350808144,
0.012142728082835674,
0.007503826636821032,
0.0039653596468269825,
-0.022539939731359482,
0.021173883229494095,
-0.047660209238529205,
-0.01884968765079975,
0.02876308746635914,
-0.030148116871714592,
0.05782974511384964,
-0.014742030762135983,
0.04416917264461517,
0.06230737641453743,
-0.00246886326931417,
-0.019352473318576813,
-0.040602248162031174,
-0.016923926770687103,
-0.010454130358994007,
0.010511049069464207,
-0.055704765021800995,
0.008006611838936806,
0.04462452605366707,
0.07038988173007965,
-0.03853419050574303,
0.013319055549800396,
0.019561177119612694,
0.05422487109899521,
0.05820920318365097,
0.028876926749944687,
0.06272478401660919,
-0.04750842601060867,
-0.028516437858343124,
0.015728628262877464,
0.05297265201807022,
-0.03443601727485657,
-0.07604383677244186,
0.028307735919952393,
-0.07763756811618805,
0.030717307701706886,
0.014305652119219303,
-0.02806108631193638,
-0.00039131840458139777,
-0.022350208833813667,
-0.023128103464841843,
-0.04580085352063179,
-0.03215925768017769,
-0.027700599282979965,
-0.0028056344017386436,
0.020623665302991867,
0.007271407172083855,
0.048532966524362564,
0.008039814420044422,
0.003953501582145691,
0.018622012808918953,
-0.03657997027039528,
0.015017139725387096,
0.011127672158181667,
0.049178048968315125,
0.05741233751177788,
-0.0033653380814939737,
-0.026353515684604645,
-0.004242840223014355,
0.005535376723855734,
0.037357863038778305,
0.014504868537187576,
-0.03561234474182129,
-0.010501562617719173,
0.03242487832903862,
-0.05729850009083748,
0.016952387988567352,
0.021818965673446655,
0.036712780594825745,
-0.09797663986682892,
-0.024266483262181282,
-0.01875482313334942,
-0.02988249622285366,
0.07038988173007965,
-0.0023064068518579006,
0.0024249881971627474,
0.006469797343015671,
-0.013205217197537422,
0.0222173985093832,
-0.0003815354430116713,
-0.05851277336478233,
-0.01561478991061449,
0.03663688898086548,
0.02826979011297226,
0.05676725506782532,
0.03587796911597252,
-0.013366487808525562,
-0.01588989794254303,
0.003770886454731226,
-0.004529806785285473,
0.05080972984433174,
0.012465269304811954,
0.011962484568357468,
0.014988680370151997,
-0.03591591492295265,
-0.007394731976091862,
0.027586761862039566,
-0.026676056906580925,
-0.03278536722064018,
0.0005425096023827791,
-0.09607933461666107,
0.012038377113640308,
0.0071243662387132645,
0.02493053860962391,
-0.04428301379084587,
-0.04276517033576965,
0.03650407865643501,
0.030242983251810074,
-0.016051169484853745,
-0.024247510358691216,
-0.03289920464158058,
0.023222967982292175,
-0.023166049271821976,
-0.007043730933219194,
-0.08894548565149307,
0.007921232841908932,
-0.008699126541614532,
0.10594530403614044,
-0.052024003118276596,
-0.00399381946772337,
0.02255891263484955,
0.041019655764102936,
-0.0515686497092247,
-0.020092420279979706,
0.061852023005485535,
0.04978518560528755,
-0.05642573907971382,
0.013575190678238869,
-0.010055696591734886,
-0.04162679240107536,
0.029901469126343727,
-0.06177613139152527,
-0.021382585167884827,
0.024152645841240883,
0.0062848106026649475,
-0.019599122926592827,
0.015007653273642063,
-0.0204908549785614,
0.03485342487692833,
-0.05270703136920929,
0.009050127118825912,
-0.02551870234310627,
-0.025746379047632217,
-0.015463005751371384,
0.09661058336496353,
-0.042537495493888855,
-0.012673973105847836,
0.026562217622995377,
0.0015534154372289777,
0.028990764170885086,
-0.03802191838622093,
-0.07816881686449051,
0.03523288667201996,
-0.03162801265716553,
0.0008407416171394289,
-0.07038988173007965,
0.01703776605427265,
-0.03699737414717674,
0.05217578634619713,
-0.027643680572509766,
0.007475367281585932,
-0.009458047337830067,
0.002990621142089367,
0.021970748901367188,
0.02039598859846592,
-0.03950181230902672,
0.04033662751317024,
0.0517963245511055,
0.03756656497716904,
0.013224190101027489,
0.005625498481094837,
-0.037471700459718704,
-0.027871355414390564,
0.03134341910481453,
0.03134341910481453,
0.07786524295806885,
-0.03635229170322418,
0.05043026804924011,
-0.04925394058227539,
0.004650759976357222,
-0.061624348163604736,
0.025537675246596336,
0.025272052735090256,
-0.005046821665018797,
0.02973071113228798,
0.0004755111294798553,
-0.030224010348320007,
0.01145969983190298,
0.02713140845298767,
-0.015624276362359524,
0.00434482004493475,
-0.0015332566108554602,
0.0007126738200895488,
0.011791727505624294,
0.007655610796064138,
0.014362570829689503,
0.002207984449341893,
-0.018897121772170067,
-0.01761644333600998,
0.019238635897636414,
-0.0036357035860419273,
0.017246467992663383,
-0.022312263026833534,
-0.05312443524599075,
-0.027264220640063286,
-0.040867868810892105,
0.00848568044602871,
0.0019826798234134912,
-0.04678745195269585,
-0.0032135541550815105,
0.023166049271821976,
0.0023585825692862272,
-0.04162679240107536,
0.017009306699037552,
0.011507132090628147,
-0.013006000779569149,
-0.07289431244134903,
0.039729490876197815,
-0.013214703649282455,
0.012569621205329895,
0.0024570052046328783,
-0.05255524441599846,
-0.020737502723932266,
-0.10700779408216476,
0.01505508553236723,
-0.05782974511384964,
0.0310208760201931,
-0.028838979080319405,
-0.05900606885552406,
-0.01059642806649208,
0.014125408604741096,
0.061093103140592575,
-0.03532775118947029,
-0.02961687371134758,
0.010179021395742893,
-0.0589301772415638,
0.09190527349710464,
0.043410252779722214,
0.03443601727485657,
-0.007513313088566065,
-0.023887023329734802,
-0.012303998693823814,
-0.0018996729049831629,
-0.02897179126739502,
0.029654819518327713,
0.03343044966459274,
0.0011626899940893054,
0.0033250204287469387,
0.014059002511203289,
0.017929498106241226,
0.0048902942799031734,
0.0066785006783902645,
-0.026296596974134445,
-0.03399964049458504,
0.0554770901799202,
0.023887023329734802,
0.008424017578363419,
-0.020149338990449905,
-0.04284106194972992,
-0.029825575649738312,
0.030869092792272568,
-0.03221617639064789,
0.08128038793802261,
0.0007470623822882771,
0.04538344591856003,
0.06025828793644905,
0.03532775118947029,
0.011744295246899128,
-0.02282453514635563,
0.004027022048830986,
0.013167271390557289,
0.04181652143597603,
0.015225842595100403,
-0.023564482107758522,
0.050088755786418915,
-0.029901469126343727,
0.045459337532520294,
-0.030129143968224525,
-0.008424017578363419,
0.019504256546497345,
0.016848035156726837,
-0.02362140081822872,
0.04667361080646515,
0.010805130936205387,
-0.04473836347460747,
-0.047660209238529205,
0.020035501569509506,
-0.04948161914944649,
0.04986107721924782,
-0.004159833304584026,
-0.012303998693823814,
0.02443724125623703,
0.017692334949970245,
0.017929498106241226
] |
725,550 | syne_tune.tuner | _default_callback |
:return: Default callback to store results
| @staticmethod
def _default_callback():
"""
:return: Default callback to store results
"""
return StoreResultsCallback()
| () | [
-0.030576791614294052,
-0.05574081093072891,
-0.05652942880988121,
0.03925156965851784,
0.014069626107811928,
0.007093063089996576,
-0.047639574855566025,
0.03799695149064064,
0.07033021003007889,
-0.01304800994694233,
0.029859868809580803,
0.014141318388283253,
-0.003573416266590357,
-0.04362480342388153,
-0.0002731870918069035,
0.03251248598098755,
-0.022708555683493614,
0.004028214607387781,
-0.015171895734965801,
-0.02462632581591606,
-0.021095477044582367,
0.01876547560095787,
0.02512817271053791,
-0.010278892703354359,
-0.008410410024225712,
0.03720833733677864,
-0.004946772940456867,
-0.047137726098299026,
0.05584834888577461,
0.046600036323070526,
-0.052622195333242416,
-0.047352805733680725,
-0.012752278707921505,
0.047281112521886826,
-0.004447166807949543,
-0.007733813486993313,
-0.02573755756020546,
0.09714315086603165,
-0.04914511367678642,
-0.02484140358865261,
0.011031662113964558,
-0.03706495091319084,
-0.0029259445145726204,
0.0026795021258294582,
0.05756896734237671,
0.05746142938733101,
-0.04032695293426514,
0.014051702804863453,
0.05617096647620201,
-0.05140342190861702,
-0.0050722346641123295,
0.03330110386013985,
-0.01826362870633602,
0.04358895495533943,
-0.02625732682645321,
0.024142403155565262,
0.00231431913562119,
0.010870354250073433,
-0.028766559436917305,
0.014885126613080502,
0.017403321340680122,
0.008477621711790562,
0.0615837387740612,
0.022726478055119514,
0.015216703526675701,
-0.008249102160334587,
-0.023335862904787064,
0.010700085200369358,
0.035272642970085144,
0.0638061985373497,
0.034537795931100845,
0.007066178601235151,
0.015969473868608475,
-0.03917987644672394,
0.05466542765498161,
0.028659021481871605,
-0.03235117718577385,
-0.04867911338806152,
-0.013021125458180904,
0.09183791279792786,
0.008025064133107662,
-0.012089124880731106,
-0.027476098388433456,
0.03362371772527695,
0.02464425005018711,
-0.0639137402176857,
0.0023389633279293776,
-0.05258634686470032,
-0.0033471372444182634,
0.0665663555264473,
-0.08108405768871307,
-0.013729087077081203,
0.0048078689724206924,
-0.0007874958100728691,
-0.04470018669962883,
-0.0674983561038971,
-0.011273624375462532,
-0.03835541382431984,
0.0012803807621821761,
-0.01838909089565277,
-0.027655327692627907,
0.02468009479343891,
0.05208450183272362,
-0.026938404887914658,
0.08524221926927567,
-0.07176405191421509,
0.008948102593421936,
-0.040972184389829636,
0.011730662547051907,
0.07427328824996948,
0.0022415064740926027,
-0.0657060518860817,
-0.02450086548924446,
0.04487941786646843,
-0.023228324949741364,
0.014956818893551826,
-0.03695741295814514,
0.016569897532463074,
-0.010556700639426708,
0.0030222812201827765,
-0.04982618987560272,
0.0057219467125833035,
-0.03702910616993904,
-0.006223793141543865,
-0.00949027668684721,
-0.028659021481871605,
0.060006506741046906,
0.05280142277479172,
0.05771235004067421,
0.040685415267944336,
0.07412990182638168,
0.0028520117048174143,
-0.0308814849704504,
-0.04326634109020233,
0.008069871924817562,
0.054127734154462814,
0.04867911338806152,
0.04473603516817093,
-0.0022751123178750277,
0.0669248178601265,
-0.03374917805194855,
-0.0022605496924370527,
-0.006765966769307852,
0.028730714693665504,
0.03247664123773575,
-0.01309281773865223,
-0.013747010380029678,
0.017331628128886223,
0.009248314425349236,
-0.010565661825239658,
0.0641288161277771,
-0.010834508575499058,
-0.014114433899521828,
0.03152671456336975,
-0.033892564475536346,
-0.005659215617924929,
0.014679010957479477,
-0.008921218104660511,
0.01231316290795803,
-0.03349825739860535,
0.005717465654015541,
-0.01941070705652237,
0.00642990879714489,
-0.05900281295180321,
0.009893545880913734,
0.042083416134119034,
0.003349377540871501,
-0.010440200567245483,
-0.021346401423215866,
0.017716974020004272,
-0.03441233187913895,
-0.0066673895344138145,
-0.06993589550256729,
0.0035644546151161194,
0.012573047541081905,
0.027816636487841606,
0.0038624259177595377,
0.005883254576474428,
0.03147294744849205,
-0.001997304381802678,
-0.008159486576914787,
-0.05577665939927101,
-0.04925265163183212,
0.010189277119934559,
-0.017725937068462372,
0.018084397539496422,
0.041258953511714935,
0.02536117285490036,
0.020414400845766068,
0.01915978454053402,
-0.047496188431978226,
-0.03853464499115944,
0.01294943317770958,
-0.017492936924099922,
0.011533509008586407,
-0.036061257123947144,
0.020091785117983818,
0.03957418352365494,
-0.01991255395114422,
-0.048499882221221924,
-0.03860633820295334,
-0.01880132220685482,
0.00963366124778986,
-0.026830866932868958,
-0.004776503425091505,
0.04473603516817093,
0.022135017439723015,
0.03265587240457535,
-0.08323483169078827,
-0.023102862760424614,
-0.003916195128113031,
0.013612587004899979,
-0.04280034080147743,
0.061619583517313004,
-0.005896696820855141,
-0.05559742823243141,
0.02620355784893036,
0.005305234808474779,
0.008724064566195011,
0.05100911483168602,
0.023533018305897713,
-0.05108080804347992,
-0.0013408712111413479,
-0.040004339069128036,
0.0307918693870306,
0.05326742306351662,
0.034251026809215546,
-0.07778621464967728,
-0.002437540329992771,
-0.0672115907073021,
-0.013522971421480179,
0.014356395229697227,
-0.01885509118437767,
-0.01858624443411827,
0.005878773517906666,
-0.09757330268621445,
0.035165105015039444,
-0.0030715696047991514,
-0.006004235241562128,
0.014437049627304077,
0.059863124042749405,
0.020091785117983818,
0.022636862471699715,
0.020199323073029518,
0.003768329741433263,
-0.0005998634151183069,
0.007818948477506638,
0.028838252648711205,
0.010556700639426708,
0.009391698986291885,
0.026597866788506508,
-0.02502063475549221,
0.0035218873526901007,
-0.03122202306985855,
0.04007602855563164,
0.001086587319150567,
-0.060006506741046906,
0.06957744061946869,
0.060974352061748505,
0.003461396787315607,
0.02464425005018711,
0.054701272398233414,
-0.048284806311130524,
0.030361715704202652,
-0.012196662835776806,
-0.020378554239869118,
0.004507657140493393,
0.0037929739337414503,
0.03177763894200325,
0.07864651829004288,
0.12015639990568161,
0.035577334463596344,
-0.01910601370036602,
-0.03253040835261345,
-0.05151096358895302,
-0.014517703093588352,
-0.03204648569226265,
0.0008855126798152924,
-0.03677818179130554,
-0.02507440373301506,
0.05179773271083832,
0.010646315291523933,
-0.00491540739312768,
-0.005856369622051716,
0.01252824068069458,
-0.02450086548924446,
0.03324733301997185,
0.027655327692627907,
-0.035487718880176544,
-0.07018682360649109,
0.03305017948150635,
-0.0033068102784454823,
-0.005444138776510954,
0.013128663413226604,
-0.020521938800811768,
-0.0306843314319849,
-0.05498804152011871,
-0.005735388956964016,
0.05911035090684891,
0.027924174442887306,
-0.05169019475579262,
-0.0678209736943245,
0.016238320618867874,
0.01948240026831627,
-0.010959969833493233,
0.026723327115178108,
-0.03319356217980385,
-0.01816505193710327,
-0.021292630583047867,
0.021453939378261566,
-0.046815112233161926,
-0.0006648346316069365,
-0.0032171946950256824,
0.003132060170173645,
0.040506184101104736,
0.006886947434395552,
0.03717248886823654,
-0.01872962899506092,
0.040936339646577835,
0.07599390298128128,
-0.0657418966293335,
0.01823674514889717,
-0.03392840921878815,
0.023228324949741364,
0.027278942987322807,
-0.024106556549668312,
-0.026651635766029358,
0.022923633456230164,
0.010171353816986084,
-0.016103897243738174,
-0.04638495668768883,
-0.0664946660399437,
0.0006480317679233849,
-0.003618223825469613,
-0.07907667756080627,
0.009570930153131485,
0.017035897821187973,
-0.01914186030626297,
0.054127734154462814,
-0.023264171555638313,
0.0004884042427875102,
-0.04577557370066643,
-0.029824022203683853,
0.015225665643811226,
-0.02511025033891201,
0.030415484681725502,
0.005892215762287378,
0.0022941555362194777,
0.047424498945474625,
-0.06810774654150009,
0.03100694715976715,
-0.05624265968799591,
-0.021167170256376266,
0.0638778954744339,
0.07520528882741928,
-0.03953833878040314,
0.04573972523212433,
-0.08008036762475967,
-0.004261214751750231,
-0.047998037189245224,
-0.002240386325865984,
0.023174555972218513,
0.004843715112656355,
0.03220779448747635,
0.03842710703611374,
0.03150879219174385,
0.018030628561973572,
-0.013594663701951504,
0.029913637787103653,
-0.059970661997795105,
-0.023712249472737312,
-0.07663913816213608,
0.00307605043053627,
0.014401203021407127,
0.02448294125497341,
-0.054737117141485214,
0.016480281949043274,
0.010762816295027733,
-0.05599173530936241,
-0.016829781234264374,
0.014105471782386303,
-0.014114433899521828,
-0.05208450183272362,
-0.01290462538599968,
0.034645333886146545,
-0.020468169823288918,
-0.046707574278116226,
0.08810991048812866,
-0.010628392919898033,
0.005179773084819317,
0.01001900713890791,
-0.03256625682115555,
-0.07807298004627228,
-0.016363780945539474,
0.0003940279420930892,
0.015996357426047325,
0.0050498307682573795,
0.004789946135133505,
-0.03315771743655205,
-0.030469253659248352,
0.030200406908988953,
-0.047603730112314224,
-0.005959427449852228,
0.028945790603756905,
0.008894333615899086,
-0.007299178745597601,
0.0020477131474763155,
0.017125513404607773,
0.0028721753042191267,
-0.028838252648711205,
0.0057219467125833035,
-0.035039640963077545,
-0.02442917227745056,
-0.05652942880988121,
-0.026687482371926308,
0.001411443343386054,
-0.04882249981164932,
0.046922650188207626,
-0.007760697975754738,
0.030272100120782852,
-0.00002147620398318395,
0.023389633744955063,
0.07283943891525269,
0.0662795901298523,
0.042190954089164734,
0.01216977834701538,
0.03064848482608795,
0.03210025653243065,
-0.05703127384185791,
-0.021507708355784416,
0.02643655799329281,
-0.02539701946079731,
-0.026741251349449158,
-0.0155751658603549,
-0.002762396354228258,
0.060974352061748505,
-0.01842493750154972,
-0.014293665066361427,
-0.024303710088133812,
0.0661003589630127,
-0.0015895541291683912,
0.02625732682645321,
-0.023120786994695663,
-0.011076469905674458,
0.021794477477669716,
-0.041617415845394135,
-0.0619063563644886,
-0.0015593088464811444,
0.004254493396729231,
-0.0627666637301445,
-0.04287203401327133,
0.03720833733677864,
0.059540506452322006,
-0.00046291982289403677,
0.008970506489276886,
-0.040183570235967636,
-0.09406037628650665,
-0.048213113099336624,
0.005704023409634829,
-0.021561477333307266,
0.03308602422475815,
-0.003304569749161601,
-0.042298492044210434,
-0.07258851826190948,
0.005762273445725441,
0.04265695437788963,
-0.008405929431319237,
0.02514609508216381,
-0.03917987644672394,
-0.01905224472284317,
0.014661087654531002,
0.01801270619034767,
-0.059325430542230606,
-0.0627666637301445,
0.023210402578115463,
-0.0002598848077468574,
-0.05792742967605591,
-0.05082988366484642,
-0.012599932961165905,
0.00649712048470974,
-0.04412664845585823,
0.03127579391002655,
0.020647400990128517,
0.021203016862273216,
-0.01792309060692787,
-0.047818806022405624,
0.026759173721075058,
-0.04975450038909912,
0.035218872129917145,
-0.03964587673544884,
-0.023425478488206863,
0.0612969696521759,
0.0648815855383873,
0.008585160598158836,
-0.0004903645603917539,
-0.02003801427781582,
0.053231578320264816,
0.02417824976146221,
0.029447637498378754,
-0.03645556420087814,
0.05118834599852562,
-0.034000102430582047,
-0.020826630294322968,
0.023730171844363213,
0.021220939233899117,
-0.08266129344701767,
-0.046600036323070526,
-0.00003126039155176841,
-0.053697578608989716,
-0.003409867873415351,
-0.005838446784764528,
0.03118617832660675,
-0.012510317377746105,
-0.029626868665218353,
0.008034025318920612,
-0.07871821522712708,
-0.01840701326727867,
-0.03885725885629654,
-0.03204648569226265,
0.005345561541616917,
0.016982128843665123,
0.041079722344875336,
0.013316855765879154,
-0.00467344606295228,
-0.015709588304162025,
-0.0047854650765657425,
-0.060830969363451004,
0.02471594139933586,
-0.007093063089996576,
0.005789158400148153,
-0.00917662214487791,
-0.016641588881611824,
0.008625486865639687,
0.014186126179993153,
0.006671870592981577,
0.03892895206809044,
-0.021686939522624016,
0.020414400845766068,
-0.011676893569529057,
-0.021848246455192566,
0.023873556405305862,
0.03796110674738884,
-0.01933901384472847,
-0.04932434484362602,
0.029465559870004654,
-0.02541494183242321,
-0.029447637498378754,
0.047030188143253326,
0.020629476755857468,
-0.02511025033891201,
0.029716484248638153,
0.0008507866878062487,
0.0666380524635315,
-0.07273190468549728,
-0.01230420172214508,
0.003958762623369694,
0.0073171015828847885,
-0.017475012689828873,
0.053661733865737915,
0.023515094071626663,
0.0010339382570236921,
0.03699325770139694,
-0.07273190468549728,
0.01842493750154972,
0.0036787143908441067,
0.013764933682978153,
0.06850205361843109,
0.022152939811348915,
-0.03600749000906944,
-0.014132357202470303,
0.02620355784893036,
0.011766509152948856,
0.015422819182276726,
-0.0008787915576249361,
-0.03362371772527695,
0.04340972378849983,
0.04538126662373543,
-0.07678251713514328,
-0.0014349673874676228,
-0.07950682938098907,
-0.01930316910147667,
-0.023156633600592613,
0.03206440806388855,
-0.05201280862092972,
-0.04430587962269783,
-0.016874589025974274,
-0.016596781089901924,
0.015503473579883575,
0.00957989227026701,
0.048428189009428024,
-0.021902017295360565,
0.07151313126087189,
-0.07441667467355728,
-0.01802166737616062,
0.03767433762550354,
0.034734949469566345,
-0.007482890505343676,
0.0018696023616939783,
-0.008903294801712036,
-0.035774488002061844,
-0.04401911050081253,
0.05842927470803261,
-0.017716974020004272,
0.0007141231326386333,
0.05939712002873421,
-0.022117093205451965,
-0.09241145104169846,
0.02657994255423546,
-0.026597866788506508,
0.034053873270750046,
-0.042190954089164734,
-0.023963171988725662,
0.05699542909860611,
0.013800779357552528,
0.05556157976388931,
0.00964262243360281,
-0.029250483959913254,
0.0033762622624635696,
0.004021493252366781,
0.07369975000619888,
0.001821434125304222,
0.041438184678554535,
0.010135507211089134,
0.028300559148192406,
-0.040936339646577835,
-0.060830969363451004,
0.035595256835222244,
-0.04233434051275253,
0.003087252378463745,
0.00983081478625536,
-0.03745925799012184,
0.04025525972247124,
0.04685095697641373,
-0.07592221349477768,
0.08194436877965927,
-0.012277317233383656,
0.023640556260943413,
0.0036204643547534943,
0.01844285987317562,
-0.048213113099336624,
0.03093525394797325,
0.02649032697081566,
0.03817618265748024,
-0.024052787572145462,
0.014383279718458652,
0.02012762986123562,
-0.030612638220191002,
0.03720833733677864,
0.05172603949904442,
-0.034484025090932846,
-0.08008036762475967,
0.027458174154162407,
-0.01876547560095787,
0.07499021291732788,
-0.006134177558124065,
0.012519278563559055,
0.021848246455192566,
-0.017475012689828873,
0.04964696243405342,
-0.0628383532166481,
-0.061332814395427704,
0.010001084767282009,
-0.05194111540913582,
0.01855039782822132,
0.026705404743552208,
0.013487125746905804,
-0.029358021914958954,
0.008773352950811386,
-0.035183027386665344,
-0.041438184678554535,
0.047496188431978226,
0.02512817271053791,
0.0659569725394249,
0.01989462971687317,
0.010520854033529758,
-0.01867586001753807,
-0.015655819326639175,
0.01300320215523243,
0.011838201433420181,
0.006102812476456165,
-0.0010485007660463452,
-0.0011862845858559012,
-0.03971756994724274,
0.047854650765657425,
-0.023335862904787064,
0.05183357745409012,
-0.0020667563658207655,
-0.04222680255770683,
0.02586301974952221,
-0.02575548179447651,
-0.016103897243738174,
-0.008034025318920612,
-0.016776012256741524,
0.004754099529236555,
-0.04505864903330803,
-0.014159241691231728,
-0.0626232773065567,
-0.08043882995843887,
0.014490818604826927,
0.009714314714074135,
0.05004126951098442,
-0.01262681744992733,
-0.005825004540383816,
-0.03573864325881004,
0.022188786417245865,
0.009418584406375885,
-0.012644740752875805,
-0.034466102719306946,
0.0309531781822443,
0.002323280554264784,
0.01821882091462612,
-0.02482348121702671,
0.028157174587249756,
0.014024818316102028,
-0.04581141844391823,
-0.022278402000665665,
-0.015915704891085625,
0.0028251272160559893,
0.015673741698265076,
0.026687482371926308,
-0.0056726583279669285,
-0.0678209736943245,
-0.000851346820127219,
-0.00248010759241879,
0.04437757283449173,
0.0006793971406295896,
-0.003152223536744714,
-0.07065282016992569,
0.041330646723508835,
0.034573640674352646,
0.01980501413345337,
-0.04194003343582153,
-0.023766018450260162,
0.05642188712954521,
0.041330646723508835,
-0.02417824976146221,
0.052622195333242416,
-0.013988971710205078,
-0.018039589747786522,
0.009328968822956085,
-0.047747112810611725,
-0.04545295611023903,
0.05204865336418152,
0.013845587149262428,
0.022135017439723015,
-0.0061117736622691154,
0.05699542909860611,
0.01296735554933548,
0.001107310876250267,
0.04398326575756073,
0.023981094360351562,
0.03677818179130554,
0.021382246166467667,
0.0628741979598999,
-0.02464425005018711,
0.03975341469049454,
0.0008715103031136096,
0.035003796219825745,
-0.016085973009467125,
0.011739624664187431,
-0.005013984628021717,
0.017000051215291023,
-0.008347678929567337,
-0.027691174298524857,
0.05039973184466362,
0.021991632878780365,
0.06893220543861389,
0.05606342852115631
] |
725,551 | syne_tune.tuner | _enrich_metadata |
:param metadata: Original metadata
:return: ``metadata`` enriched by default entries
| def _enrich_metadata(self, metadata: Dict[str, Any]) -> Dict[str, Any]:
"""
:param metadata: Original metadata
:return: ``metadata`` enriched by default entries
"""
res = metadata if metadata is not None else dict()
self._set_metadata(res, ST_TUNER_CREATION_TIMESTAMP, time.time())
self._set_metadata(res, "entrypoint", self.trial_backend.entrypoint_path().stem)
self._set_metadata(res, "backend", str(type(self.trial_backend).__name__))
for key, value in self.scheduler.metadata().items():
self._set_metadata(res, key, value)
return res
| (self, metadata: Dict[str, Any]) -> Dict[str, Any] | [
0.040511354804039,
-0.025781631469726562,
-0.024949965998530388,
-0.0017164653399959207,
0.009397820569574833,
-0.020736195147037506,
-0.014304647222161293,
0.038737133145332336,
0.0529678538441658,
0.023656263947486877,
0.01554290484637022,
0.012012946419417858,
0.0033520741853863,
0.004791317507624626,
-0.007947026751935482,
-0.005752353463321924,
-0.06468509882688522,
0.07037738710641861,
-0.00045597218559123576,
-0.06734643131494522,
0.05333748459815979,
-0.08545825630426407,
-0.03465273231267929,
-0.003948101308196783,
0.009231487289071083,
0.050269562751054764,
0.02254737727344036,
-0.05008474737405777,
0.01837056875228882,
0.024044375866651535,
-0.023489931598305702,
-0.07688286155462265,
0.05636844411492348,
-0.005863242316991091,
-0.014202999882400036,
-0.03103036619722843,
-0.08065307885408401,
-0.005720010958611965,
-0.08922847360372543,
0.011578632518649101,
0.022769154980778694,
-0.020514417439699173,
-0.0163560900837183,
-0.028572332113981247,
0.02361930161714554,
0.035207174718379974,
0.0026636398397386074,
0.028664739802479744,
0.0816880390048027,
-0.027038371190428734,
0.012022187933325768,
-0.021198231726884842,
0.00022206625726539642,
0.0524873360991478,
-0.06523954123258591,
0.01261359453201294,
-0.002434931928291917,
0.03980905935168266,
-0.018564622849225998,
0.02517174370586872,
0.04749734327197075,
-0.017991697415709496,
-0.021438490599393845,
0.016457736492156982,
0.00516556715592742,
-0.01849069818854332,
0.03825661540031433,
-0.016134312376379967,
-0.047940898686647415,
-0.01592177525162697,
-0.0035599905531853437,
-0.0700816810131073,
0.02977362647652626,
-0.04132453724741936,
-0.01866627112030983,
-0.03991994634270668,
-0.08471899479627609,
-0.026613296940922737,
0.046979863196611404,
-0.052856966853141785,
0.011513947509229183,
0.044688161462545395,
-0.02977362647652626,
0.006265213713049889,
0.030586810782551765,
0.012484223581850529,
-0.015699997544288635,
-0.006819657515734434,
-0.023120302706956863,
-0.04332053288817406,
-0.01619899645447731,
-0.0007594723720103502,
0.062393397092819214,
0.02811029553413391,
0.03443095460534096,
-0.007240110542625189,
-0.06187591701745987,
-0.026391519233584404,
0.005110122729092836,
-0.00039908394683152437,
-0.017326366156339645,
-0.036131247878074646,
0.032860029488801956,
-0.001033806474879384,
0.04904978722333908,
-0.047903936356306076,
-0.02286156266927719,
-0.020828600972890854,
-0.010340374894440174,
0.01129216980189085,
-0.0649438351392746,
-0.08057915419340134,
-0.05854925513267517,
-0.03139999508857727,
0.04638845473527908,
-0.016503941267728806,
0.027001408860087395,
0.009166802279651165,
0.04901282489299774,
-0.02653937228024006,
-0.015589108690619469,
0.015598349273204803,
-0.01439705491065979,
-0.0235823392868042,
-0.04579704999923706,
-0.021549377590417862,
0.05075008049607277,
0.05474207550287247,
0.03430158272385597,
-0.06479598581790924,
-0.03178810700774193,
0.0013699380215257406,
0.009739727713167667,
0.029902996495366096,
0.009610357694327831,
-0.04805178567767143,
0.04461423680186272,
0.03925461322069168,
0.00889420136809349,
0.04805178567767143,
-0.05537044256925583,
-0.010358856059610844,
0.021771155297756195,
0.00007695794192841277,
-0.006875101942569017,
-0.077030710875988,
-0.005992612335830927,
0.03929157555103302,
0.009850616566836834,
-0.07019257545471191,
0.041694168001413345,
-0.04291394352912903,
-0.036131247878074646,
0.0001464077940909192,
-0.02424767054617405,
0.000045156841224525124,
-0.0027121538296341896,
0.004680429119616747,
-0.024284634739160538,
0.01584784872829914,
0.013648555614054203,
-0.08124448359012604,
0.01031265314668417,
0.02031112089753151,
0.0027213944122195244,
0.016661033034324646,
0.02949640527367592,
-0.03699987754225731,
0.0041329157538712025,
0.02524567022919655,
0.030623773112893105,
-0.03173265978693962,
0.0009159871842712164,
-0.0010921385837718844,
0.039143726229667664,
0.06767909228801727,
0.03437551110982895,
-0.02849840559065342,
0.009273070842027664,
0.0700816810131073,
-0.01377792563289404,
-0.014295406639575958,
-0.07762211561203003,
0.009952264837920666,
-0.016171274706721306,
-0.033580806106328964,
-0.005752353463321924,
0.02489452250301838,
0.00010713469237089157,
0.036131247878074646,
0.09388580173254013,
-0.006255973130464554,
-0.034135252237319946,
0.051858969032764435,
-0.02844296209514141,
-0.012927778996527195,
-0.001663331058807671,
-0.02515326254069805,
-0.014646554365754128,
0.030013885349035263,
-0.022824598476290703,
-0.016734959557652473,
0.01618051528930664,
0.041694168001413345,
0.03199139982461929,
-0.016836607828736305,
-0.010155560448765755,
-0.01592177525162697,
-0.0767350047826767,
0.002402589423581958,
-0.011412299238145351,
-0.03112277388572693,
-0.02456185594201088,
-0.012807649560272694,
-0.0026659502182155848,
0.0013260445557534695,
0.011550910770893097,
0.030882515013217926,
-0.021124305203557014,
0.0021230573765933514,
0.007974748499691486,
0.0015085488557815552,
0.052524298429489136,
-0.016402292996644974,
0.06971205770969391,
-0.023656263947486877,
0.03239799290895462,
-0.08752817660570145,
-0.020773157477378845,
-0.00045164060429669917,
0.004604192916303873,
-0.008330516517162323,
-0.06956420093774796,
-0.010174041613936424,
0.037443432956933975,
0.020514417439699173,
0.03988298401236534,
-0.024432485923171043,
-0.0008784467354416847,
0.04224861040711403,
0.05337444692850113,
0.03955031558871269,
-0.01752966083586216,
-0.017049143090844154,
-0.04062224179506302,
-0.08575396239757538,
0.0068566203117370605,
0.00788234081119299,
-0.019849084317684174,
-0.03045744076371193,
0.03833054006099701,
0.0329524390399456,
0.023397523909807205,
0.03999387100338936,
-0.021863562986254692,
0.0030656117014586926,
0.012364094145596027,
0.0014600350987166166,
0.036482393741607666,
-0.06468509882688522,
0.027592815458774567,
0.02618822455406189,
-0.028276627883315086,
0.031547848135232925,
-0.0005151706282049417,
0.003719393163919449,
0.021992933005094528,
0.05699681118130684,
-0.05936243757605553,
0.000542315247002989,
0.027371037751436234,
0.0654243603348732,
-0.026021890342235565,
-0.026317594572901726,
0.018721716478466988,
0.027703704312443733,
0.021530896425247192,
-0.061654139310121536,
-0.06531346589326859,
-0.00372632360085845,
0.02814725786447525,
-0.0072678327560424805,
0.016790403053164482,
-0.004643465857952833,
0.03709228336811066,
-0.0763653814792633,
-0.037147726863622665,
0.03899587318301201,
-0.01653166301548481,
-0.02090252749621868,
-0.022066859528422356,
0.001733791665174067,
-0.013205001130700111,
-0.04505779221653938,
-0.002012168522924185,
0.009573394432663918,
-0.051267560571432114,
-0.026114298030734062,
0.035207174718379974,
0.006912064738571644,
0.05403978005051613,
0.030309589579701424,
0.043653201311826706,
0.036463912576436996,
-0.0063160378485918045,
0.004430929198861122,
0.019368566572666168,
-0.011403058655560017,
0.0066117411479353905,
-0.06298480182886124,
-0.016254441812634468,
0.014008943922817707,
0.01094102207571268,
0.01164331752806902,
0.009319274686276913,
-0.03343295678496361,
0.03326662257313728,
0.05130452290177345,
-0.005687668453902006,
0.05100882053375244,
-0.010026190429925919,
-0.013805648311972618,
-0.010562152601778507,
0.006833518389612436,
0.08257514983415604,
-0.0790267065167427,
0.019017418846488,
0.03079010732471943,
-0.021198231726884842,
-0.04712771624326706,
-0.02452489361166954,
-0.03862624615430832,
0.05359622463583946,
0.048236601054668427,
-0.05769910663366318,
0.044688161462545395,
-0.0464993454515934,
-0.024765152484178543,
0.005373483523726463,
0.015367330983281136,
0.0018539211014285684,
-0.008543053641915321,
-0.03169569745659828,
0.044392459094524384,
0.0028877276927232742,
0.01997845433652401,
0.06815961003303528,
-0.046314530074596405,
0.020070862025022507,
-0.04062224179506302,
-0.022066859528422356,
0.005382724106311798,
-0.00196596491150558,
0.04420764371752739,
0.0876760333776474,
-0.05237644910812378,
-0.05766214430332184,
-0.04779304563999176,
-0.05075008049607277,
-0.0005633956752717495,
-0.001843525329604745,
0.011412299238145351,
0.03642695024609566,
0.05588792636990547,
-0.023804116994142532,
0.02058834210038185,
-0.02356385812163353,
0.09107661992311478,
0.05178504064679146,
-0.0594363659620285,
0.01731712557375431,
-0.03396891802549362,
0.02620670571923256,
-0.001387264346703887,
0.01633760705590248,
-0.03729557991027832,
-0.02356385812163353,
-0.002825352596119046,
-0.0807270035147667,
-0.0013537666527554393,
0.015311886556446552,
0.07100575417280197,
-0.014794406481087208,
-0.010137079283595085,
0.003807180095463991,
-0.010395819321274757,
0.057477328926324844,
-0.03073466196656227,
-0.009564153850078583,
-0.018416771665215492,
-0.019719714298844337,
-0.02581859566271305,
-0.02646544575691223,
0.019719714298844337,
-0.019165270030498505,
-0.02785155549645424,
-0.015561386942863464,
-0.018620068207383156,
-0.03546591475605965,
-0.055407408624887466,
0.019146788865327835,
-0.10778385400772095,
-0.005581399891525507,
0.008533813059329987,
0.02034808322787285,
-0.04646238312125206,
0.06091488152742386,
0.025726187974214554,
0.011532428674399853,
0.03398739919066429,
-0.02223319187760353,
-0.06793783605098724,
0.00816880352795124,
-0.004179119598120451,
-0.008409062400460243,
0.056442368775606155,
-0.0006185512756928802,
-0.02424767054617405,
-0.01439705491065979,
0.07666108012199402,
0.017446495592594147,
-0.0020699230954051018,
-0.034246139228343964,
0.07643930613994598,
0.032564327120780945,
-0.007568156346678734,
-0.040770094841718674,
-0.049271564930677414,
-0.054816000163555145,
-0.04221164807677269,
0.0076282210648059845,
-0.02223319187760353,
-0.015265683643519878,
-0.016152793541550636,
0.032619770616292953,
0.0041329157538712025,
0.018721716478466988,
-0.03951335325837135,
-0.02289852499961853,
-0.004160637967288494,
0.02517174370586872,
-0.04542741924524307,
0.03688898682594299,
-0.03504084050655365,
-0.0076051196083426476,
-0.017187755554914474,
-0.06431546807289124,
0.0152379609644413,
0.002825352596119046,
0.014544906094670296,
0.011708002537488937,
0.037757616490125656,
0.03509628772735596,
-0.011375336907804012,
0.07303871959447861,
-0.01994149200618267,
0.04328357055783272,
0.001875867834314704,
-0.03012477420270443,
-0.022510414943099022,
-0.04187897965312004,
-0.024118300527334213,
-0.014239962212741375,
-0.02254737727344036,
0.08582788705825806,
0.0033543843310326338,
-0.02910829335451126,
-0.055148664861917496,
-0.09403365105390549,
0.02060682326555252,
0.035521358251571655,
-0.004560299217700958,
0.05034348741173744,
0.014470980502665043,
-0.015228720381855965,
-0.0004496191977523267,
-0.01406438834965229,
0.018241196870803833,
-0.02552289143204689,
-0.010543671436607838,
0.0021808119490742683,
0.010719245299696922,
0.010950262658298016,
0.05980599299073219,
0.02256585843861103,
0.006163565907627344,
0.004989993292838335,
-0.05307874456048012,
-0.025800112634897232,
0.038404468446969986,
-0.003821041202172637,
0.05729251727461815,
0.0640936940908432,
0.03173265978693962,
-0.015108590945601463,
0.02060682326555252,
0.06401976943016052,
0.06705072522163391,
0.06279999017715454,
0.0298105888068676,
0.014711239375174046,
-0.0763653814792633,
0.02875714749097824,
0.028960442170500755,
0.03213925287127495,
-0.006884342525154352,
-0.03995690867304802,
0.02064378745853901,
-0.03544743359088898,
0.03572465479373932,
-0.004440169781446457,
-0.010063152760267258,
0.027352556586265564,
-0.023822598159313202,
-0.03474513813853264,
-0.030937958508729935,
-0.057403404265642166,
0.06479598581790924,
-0.011449262499809265,
0.009129839949309826,
0.0008772916626185179,
0.0028276629745960236,
0.013057149015367031,
-0.044392459094524384,
0.025282632559537888,
0.00964732002466917,
0.014101351611316204,
-0.004031267948448658,
-0.028701702132821083,
0.012659797444939613,
-0.02031112089753151,
0.016993699595332146,
0.0036431571934372187,
-0.016134312376379967,
0.011403058655560017,
0.01780688390135765,
0.006237491499632597,
-0.023489931598305702,
0.0687510222196579,
-0.03173265978693962,
0.0020214093383401632,
0.0036962912417948246,
-0.0032712179236114025,
-0.030383514240384102,
0.05847533047199249,
-0.048236601054668427,
-0.008866478689014912,
-0.028553850948810577,
0.029866034165024757,
-0.0009904905455186963,
-0.04808875173330307,
-0.03674113750457764,
-0.010830133222043514,
0.03709228336811066,
-0.10312652587890625,
-0.006685666739940643,
0.054150667041540146,
-0.039143726229667664,
0.02058834210038185,
0.02361930161714554,
0.04930852726101875,
0.005294937174767256,
0.007711387705057859,
0.0278145931661129,
0.035521358251571655,
0.02718622237443924,
-0.04457727447152138,
0.05847533047199249,
-0.07710463553667068,
0.00889420136809349,
0.040770094841718674,
0.006699528079479933,
0.01147698424756527,
-0.033876508474349976,
-0.038848020136356354,
0.005687668453902006,
0.02687203884124756,
0.020052380859851837,
0.0031372273806482553,
-0.06346531957387924,
-0.0035553702618926764,
0.014526424929499626,
0.08176196366548538,
-0.0342831015586853,
-0.0016044214135035872,
-0.0329524390399456,
0.00012951457756571472,
0.08227944374084473,
-0.013223482295870781,
0.034246139228343964,
-0.07776997238397598,
0.039143726229667664,
0.025393521413207054,
-0.006801175884902477,
0.0656091719865799,
-0.07078398019075394,
0.015875570476055145,
-0.038848020136356354,
-0.0037563559599220753,
-0.046610232442617416,
-0.05067615583539009,
-0.03282306715846062,
-0.015931015834212303,
0.020736195147037506,
-0.023674745112657547,
-0.09913453459739685,
-0.00860773865133524,
0.006768833380192518,
-0.034597285091876984,
-0.03578009828925133,
-0.016910532489418983,
0.014988461509346962,
0.04587097465991974,
-0.01684584841132164,
0.07440634816884995,
-0.009129839949309826,
0.0025342698208987713,
0.0015501321759074926,
0.06889887154102325,
-0.08612358570098877,
0.008917302824556828,
-0.0032665973994880915,
-0.06198680400848389,
0.0010840529575943947,
-0.032545845955610275,
-0.014489461667835712,
0.024820595979690552,
-0.017289401963353157,
0.005927927326411009,
-0.08686284720897675,
0.008076396770775318,
-0.023360561579465866,
0.04642542079091072,
-0.019775157794356346,
0.014507943764328957,
0.0483105294406414,
0.018287401646375656,
0.0012602043570950627,
-0.02032960206270218,
-0.04590793699026108,
0.06357621401548386,
-0.008723247796297073,
0.015718478709459305,
-0.005983371753245592,
-0.014683517627418041,
0.02618822455406189,
-0.023434486240148544,
-0.03605732321739197,
0.008903441950678825,
0.021327601745724678,
-0.013546907342970371,
0.07436937838792801,
-0.0418420173227787,
0.024044375866651535,
0.002504237461835146,
0.04805178567767143,
-0.02620670571923256,
0.008302794769406319,
-0.012853853404521942,
-0.018536901101469994,
0.008977367542684078,
-0.004777456633746624,
0.013029427267611027,
-0.024062857031822205,
0.0669398382306099,
0.005516714882105589,
-0.04967815428972244,
0.007489610463380814,
0.04550134763121605,
-0.008829516358673573,
0.012927778996527195,
-0.015210239216685295,
0.061025768518447876,
0.017086107283830643,
0.049234598875045776,
-0.00891268253326416,
0.0041906703263521194,
-0.006389963440597057,
0.02160482294857502,
0.014166036620736122,
-0.003296629758551717,
-0.03077162615954876,
0.021383045241236687,
0.04590793699026108,
-0.040770094841718674,
-0.010478985495865345,
0.02908981218934059,
-0.02456185594201088,
-0.01837056875228882,
0.021031897515058517,
0.04616667702794075,
-0.05980599299073219,
-0.0024441727437078953,
0.016836607828736305,
0.016106588765978813,
-0.011541669256985188,
-0.029681218788027763,
-0.04712771624326706,
0.016661033034324646,
-0.04576008766889572,
0.03213925287127495,
0.04749734327197075,
-0.05847533047199249,
-0.05537044256925583,
0.019775157794356346,
-0.041102759540081024,
-0.006667185574769974,
0.011985224671661854,
-0.028054852038621902,
-0.01819499395787716,
0.038848020136356354,
0.07547827064990997,
0.051193635910749435,
0.007697526831179857,
0.04513171687722206,
-0.04346838593482971,
0.03444943577051163,
0.0333775095641613,
0.10209156572818756,
-0.025042373687028885,
0.027223186567425728,
0.011513947509229183,
0.013029427267611027,
0.054852962493896484,
-0.04343142360448837,
0.044392459094524384,
-0.015311886556446552,
-0.014933017082512379,
-0.004026647191494703,
0.017270920798182487,
-0.005345761310309172,
0.0005518447724170983,
-0.03210229054093361,
0.0582905150949955,
0.03932854160666466,
-0.010423542000353336,
0.02779611013829708,
0.012502705678343773,
0.013112593442201614,
0.01623595878481865,
-0.005900205112993717,
0.04616667702794075,
-0.003906517755240202,
0.04520564153790474,
0.02389652281999588,
-0.0229170061647892,
0.04428156837821007,
-0.050195638090372086,
0.020865565165877342,
0.07226249575614929,
0.05233948677778244,
0.026428483426570892,
-0.08486685156822205,
0.01663331128656864,
0.012382576242089272,
-0.03145543858408928,
0.03175114095211029,
0.07266908884048462,
0.016605589538812637,
0.010229486040771008,
-0.002555061364546418,
-0.058734070509672165,
0.01929464004933834,
-0.0027329453732818365,
0.0268165934830904,
0.008880339562892914,
0.00718928687274456,
0.003987374249845743
] |
725,552 | syne_tune.tuner | _handle_failure | null | def _handle_failure(self, done_trials_statuses: Dict[int, Tuple[Trial, str]]):
logger.error(f"Stopped as {self.max_failures} failures were reached")
for trial_id, (_, status) in done_trials_statuses.items():
if status == Status.failed:
logger.error(f"showing log of first failure")
stdout = "".join(self.trial_backend.stdout(trial_id))
stderr = "".join(self.trial_backend.stderr(trial_id))
logger.error(stdout)
logger.error(stderr)
raise ValueError(f"Trial - {trial_id} failed")
| (self, done_trials_statuses: Dict[int, Tuple[syne_tune.backend.trial_status.Trial, str]]) | [
-0.030177580192685127,
0.0372263602912426,
-0.055105291306972504,
0.0670735314488411,
-0.029461689293384552,
-0.049708571285009384,
-0.01672249101102352,
0.049855418503284454,
0.003737779799848795,
0.04805651307106018,
0.00393510889261961,
0.07995957881212234,
0.018833454698324203,
-0.03550087660551071,
0.010921934619545937,
0.01784222014248371,
0.020008251070976257,
0.043687738478183746,
0.03884170576930046,
0.0023358254693448544,
-0.013831390999257565,
0.06868887692689896,
-0.024101682007312775,
0.03463813662528992,
-0.03821759298443794,
-0.013868103735148907,
0.015143859200179577,
-0.03946581482887268,
0.005910694133490324,
-0.008140971884131432,
-0.007975765503942966,
-0.02749757654964924,
-0.0160983819514513,
0.04089759662747383,
0.011848922818899155,
-0.002650175243616104,
-0.030416211113333702,
0.03500526025891304,
0.023037021979689598,
0.03807074576616287,
-0.00812261551618576,
0.0034830875229090452,
-0.018383726477622986,
-0.018851809203624725,
-0.010077550075948238,
0.021072909235954285,
-0.03390388935804367,
0.023807981982827187,
-0.030452923849225044,
-0.018659070134162903,
-0.05785872042179108,
0.003629937069490552,
0.029461689293384552,
0.012748375535011292,
0.07371847331523895,
0.05077322944998741,
-0.02083427831530571,
-0.031095391139388084,
0.004185211844742298,
-0.09075301885604858,
-0.05965762585401535,
-0.015061256475746632,
-0.0020937533117830753,
0.02527647837996483,
0.0518011748790741,
-0.011087140068411827,
0.016171805560588837,
-0.005148912314325571,
0.0031847995705902576,
0.059106942266225815,
0.013308240100741386,
0.012197690084576607,
-0.05110364034771919,
-0.033500052988529205,
0.008177683688700199,
-0.007420490961521864,
-0.012473032809793949,
0.01795235648751259,
0.023752912878990173,
0.00993987824767828,
0.018392905592918396,
0.001182827167212963,
-0.002654764335602522,
0.025863876566290855,
0.008255697786808014,
-0.013464267365634441,
0.003450964344665408,
-0.06028173863887787,
-0.04688171669840813,
0.004065896850079298,
-0.02705702744424343,
-0.0391354039311409,
0.003317881841212511,
-0.04680829122662544,
-0.03704279661178589,
0.031242240220308304,
-0.041778694838285446,
-0.014730844646692276,
-0.05246200039982796,
-0.05360008403658867,
0.032563887536525726,
-0.03957595303654671,
0.06982696056365967,
0.013932350091636181,
0.020265236496925354,
-0.044642262160778046,
-0.0337570384144783,
-0.027809632942080498,
-0.021091265603899956,
0.036363616585731506,
-0.0246890801936388,
-0.025827163830399513,
-0.015410023741424084,
-0.009067959152162075,
-0.019806332886219025,
-0.03774033114314079,
0.03612498939037323,
0.0008713455172255635,
-0.09324946254491806,
-0.006438434589654207,
0.057197898626327515,
-0.039832938462495804,
-0.011096318252384663,
0.0138405691832304,
-0.05437104403972626,
0.009994947351515293,
-0.00907713733613491,
0.028709085658192635,
0.015125502832233906,
0.016795916482806206,
-0.039539240300655365,
0.015575230121612549,
-0.012390430085361004,
0.0019790269434452057,
0.01954934559762478,
0.010637413710355759,
-0.019696194678544998,
0.054811593145132065,
0.03388553112745285,
-0.05103021487593651,
0.004800144582986832,
-0.019310714676976204,
-0.016906052827835083,
-0.025258122012019157,
0.04188883304595947,
0.06971681863069534,
-0.00882473960518837,
0.008131793700158596,
0.03153593838214874,
-0.01799824647605419,
-0.002838326385244727,
-0.04423842579126358,
-0.03129730746150017,
0.04790966212749481,
-0.04108116030693054,
0.008407136425375938,
-0.022504692897200584,
0.038254305720329285,
0.01672249101102352,
-0.0028842168394476175,
0.016153449192643166,
-0.08509930968284607,
0.020467154681682587,
-0.0006327150040306151,
0.030948542058467865,
0.04563349485397339,
-0.043651025742292404,
0.07555408775806427,
-0.001327382167801261,
0.009673713706433773,
0.038731567561626434,
0.07687573879957199,
0.02782798931002617,
0.011867278255522251,
-0.0670735314488411,
-0.037630196660757065,
0.016786739230155945,
-0.012087552808225155,
0.032563887536525726,
-0.0029759977478533983,
-0.030306074768304825,
0.03840115666389465,
-0.046514593064785004,
0.0410444475710392,
0.039245542138814926,
0.029975663870573044,
-0.01989811286330223,
0.016924409195780754,
-0.02129318378865719,
-0.016327833756804466,
0.002615757519379258,
0.014859338290989399,
0.007025832775980234,
0.004031478893011808,
0.010866866447031498,
0.043651025742292404,
0.029223058372735977,
-0.01795235648751259,
0.061823658645153046,
-0.05907022953033447,
-0.015244818292558193,
0.025533463805913925,
-0.019035372883081436,
-0.006782613229006529,
-0.003542745253071189,
0.03472991660237312,
-0.02336743287742138,
-0.004717541392892599,
-0.04427513852715492,
0.008576931431889534,
-0.013253170996904373,
0.013097143732011318,
-0.05044281855225563,
0.057491596788167953,
0.02990223839879036,
-0.04067732393741608,
0.05569268763065338,
-0.003037950024008751,
0.020081674680113792,
0.005304939579218626,
-0.021697020158171654,
-0.08230917155742645,
0.043834589421749115,
-0.013152211904525757,
0.021513458341360092,
0.0553622767329216,
0.05092008039355278,
-0.0015992833068594337,
-0.01704372465610504,
0.07397545874118805,
-0.039832938462495804,
0.009297411888837814,
0.006621996406465769,
0.02224770560860634,
-0.029039496555924416,
0.033500052988529205,
-0.028195112943649292,
-0.07819738239049911,
0.04108116030693054,
0.03500526025891304,
-0.04133814573287964,
-0.040016502141952515,
-0.023587707430124283,
-0.006543982774019241,
0.03691430389881134,
-0.016309477388858795,
-0.015327421016991138,
0.024725791066884995,
-0.019934825599193573,
0.014519748277962208,
0.04820336401462555,
0.07724285870790482,
-0.009949056431651115,
-0.06589873135089874,
0.007218572776764631,
-0.06758750230073929,
-0.022082500159740448,
-0.06362256407737732,
0.07015737146139145,
-0.06186037138104439,
0.07614149153232574,
0.019035372883081436,
-0.04644116759300232,
0.0448625348508358,
-0.05804228037595749,
-0.026175931096076965,
0.04166855663061142,
-0.014042487367987633,
0.09148726612329483,
0.05103021487593651,
0.06424667686223984,
0.032398682087659836,
-0.03243539109826088,
-0.016786739230155945,
-0.04332061484456062,
0.09846261888742447,
0.020412085577845573,
-0.008737548254430294,
0.005750077310949564,
0.006401722319424152,
0.043540891259908676,
0.014336186461150646,
-0.018998660147190094,
-0.013712076470255852,
0.05903351679444313,
0.02419346198439598,
0.03678581118583679,
-0.06406310945749283,
0.005185624584555626,
-0.0018321775132790208,
0.01736495830118656,
-0.02039373107254505,
0.055729400366544724,
-0.027240591123700142,
-0.007906930521130562,
-0.058335982263088226,
-0.015878107398748398,
-0.052278436720371246,
-0.01956770196557045,
0.013106321915984154,
-0.03467484936118126,
-0.013097143732011318,
0.07415901869535446,
-0.026010725647211075,
-0.05492172762751579,
-0.04280664026737213,
0.013418377377092838,
-0.032839227467775345,
0.044165000319480896,
-0.05264556035399437,
0.03753841295838356,
0.000982629950158298,
-0.02054058015346527,
0.001144967507570982,
0.04086088389158249,
0.02624935656785965,
0.007498504593968391,
-0.02307373471558094,
-0.05047953128814697,
0.06534804403781891,
-0.009710426442325115,
0.015391667373478413,
0.014547282829880714,
-0.02164195105433464,
0.05125049129128456,
-0.03584964573383331,
0.00819145143032074,
-0.011913169175386429,
-0.028892647475004196,
0.0016968005802482367,
-0.029314840212464333,
-0.061309684067964554,
0.01049056462943554,
0.017539342865347862,
0.05837269499897957,
-0.004722130484879017,
-0.013188924640417099,
0.003602402750402689,
0.06487078219652176,
-0.0013709781924262643,
-0.053857069462537766,
-0.058335982263088226,
0.005502268671989441,
0.0034440807066857815,
0.04710198938846588,
0.03384881839156151,
-0.027258945629000664,
0.013143033720552921,
0.0238630510866642,
-0.000393797701690346,
-0.02419346198439598,
0.012225224636495113,
-0.07210312783718109,
0.0426965057849884,
-0.03153593838214874,
0.01049056462943554,
-0.006016242317855358,
-0.044935960322618484,
0.016153449192643166,
0.009090904146432877,
-0.06608229130506516,
0.023110447451472282,
-0.03814416751265526,
0.06387954950332642,
-0.0073011755011975765,
0.004104903433471918,
-0.001144967507570982,
-0.07915190607309341,
0.026451274752616882,
0.008375013247132301,
0.01667660102248192,
0.03832773119211197,
0.032215118408203125,
0.024064969271421432,
-0.0029232236556708813,
0.021678663790225983,
0.035078685730695724,
-0.010775085538625717,
-0.01256481371819973,
0.024064969271421432,
-0.00564452912658453,
-0.018888521939516068,
-0.009857275523245335,
-0.00017768221732694656,
-0.02066907286643982,
-0.03632690757513046,
-0.033628545701503754,
-0.03770361840724945,
-0.03880499303340912,
0.022210992872714996,
0.05760173499584198,
-0.028819222003221512,
0.04089759662747383,
0.00414161616936326,
0.04082417115569115,
-0.0012470738729462028,
-0.06725709140300751,
-0.001014753244817257,
0.02068742923438549,
0.003120552748441696,
-0.06589873135089874,
0.012454676441848278,
-0.043063629418611526,
0.03770361840724945,
0.029351552948355675,
0.00945343915373087,
-0.0027947304770350456,
0.023275652900338173,
-0.01730988919734955,
0.008200629614293575,
-0.005534392315894365,
0.04838692396879196,
0.02595565654337406,
-0.051470763981342316,
-0.05238857492804527,
0.04276993125677109,
-0.09001877158880234,
0.029333196580410004,
0.00803083460777998,
0.027919769287109375,
-0.0009178096661344171,
0.009090904146432877,
0.09369000792503357,
-0.0291129220277071,
-0.013234814628958702,
-0.018677426502108574,
-0.023440858349204063,
0.012748375535011292,
0.027552645653486252,
-0.04688171669840813,
-0.00993987824767828,
0.021072909235954285,
-0.023183871060609818,
-0.04728555306792259,
0.022633185610175133,
0.02988388203084469,
-0.07775682955980301,
0.022963596507906914,
0.029461689293384552,
0.007259874138981104,
0.013904816471040249,
0.01954934559762478,
-0.02336743287742138,
0.039355676621198654,
0.062300920486450195,
-0.0009338713134638965,
0.02988388203084469,
-0.06064886227250099,
0.0012585464864969254,
0.061493247747421265,
-0.09905001521110535,
-0.02255976013839245,
-0.024248531088232994,
-0.02255976013839245,
0.04262308031320572,
0.037630196660757065,
-0.027626071125268936,
0.0021935650147497654,
0.0160983819514513,
0.02305537834763527,
0.034583065658807755,
0.010472208261489868,
-0.039686087518930435,
-0.0007686655735597014,
-0.020246880128979683,
-0.05980447679758072,
0.05965762585401535,
-0.004327472299337387,
0.026359492912888527,
0.02384469471871853,
0.04012663662433624,
0.004219629801809788,
0.06127297133207321,
0.0016096086474135518,
-0.005763844586908817,
-0.010784263722598553,
0.04640445485711098,
-0.03869485482573509,
0.028911003842949867,
0.02546004019677639,
0.05517871677875519,
0.018659070134162903,
0.030416211113333702,
-0.0276811383664608,
-0.01009590644389391,
-0.018548933789134026,
-0.01876920647919178,
0.00286586070433259,
0.053526658564805984,
0.04688171669840813,
-0.012950293719768524,
-0.10653934627771378,
-0.0022864933125674725,
0.04699185490608215,
-0.036510467529296875,
-0.05745488405227661,
0.022798391059041023,
0.019347427412867546,
0.02054058015346527,
-0.02512962743639946,
0.07162586599588394,
-0.05609652400016785,
-0.008884397335350513,
-0.042219243943691254,
0.024101682007312775,
-0.022945242002606392,
0.04688171669840813,
0.01534577738493681,
-0.051948025822639465,
-0.0346197783946991,
0.029718676581978798,
0.016125915572047234,
0.009563576430082321,
-0.07125873863697052,
-0.03480334207415581,
-0.04926802217960358,
0.0001338711444986984,
-0.05103021487593651,
0.048129938542842865,
0.0801798477768898,
-0.027901412919163704,
0.0030838404782116413,
-0.018677426502108574,
0.06208064407110214,
-0.03261895477771759,
-0.020301949232816696,
0.008654944598674774,
0.04761596396565437,
-0.03726307302713394,
0.04108116030693054,
-0.05407734587788582,
0.01971455104649067,
0.06226420775055885,
-0.04372445121407509,
-0.002675415016710758,
-0.00826946459710598,
-0.04401814937591553,
-0.0675140768289566,
-0.010811797343194485,
-0.020742498338222504,
0.002897983882576227,
-0.056243374943733215,
-0.012408786453306675,
-0.06960668414831161,
-0.04053047299385071,
-0.012280292809009552,
-0.049047745764255524,
0.0049240486696362495,
-0.0006401722203008831,
0.04020006209611893,
0.0563168004155159,
0.020724141970276833,
0.03994307667016983,
-0.0048185004852712154,
-0.07001052051782608,
0.01940249651670456,
-0.004515623673796654,
0.054628029465675354,
0.05499515309929848,
0.007264463230967522,
0.04372445121407509,
-0.013620295561850071,
0.03832773119211197,
-0.014730844646692276,
-0.005057130940258503,
-0.038437869399785995,
0.008475972339510918,
-0.004965350031852722,
-0.03663896024227142,
0.028819222003221512,
-0.053232960402965546,
-0.003827266162261367,
-0.09758152067661285,
-0.05411405488848686,
-0.03228854387998581,
-0.02782798931002617,
-0.0038387388922274113,
-0.010472208261489868,
-0.003343121614307165,
0.04357760027050972,
-0.014125090092420578,
0.01784222014248371,
0.007053367327898741,
-0.03417923301458359,
0.016355367377400398,
0.016630711033940315,
-0.024248531088232994,
-0.049561720341444016,
0.0014478446682915092,
0.05679406225681305,
-0.00636042095720768,
0.04790966212749481,
-0.059731051325798035,
-0.04442198574542999,
0.018200164660811424,
0.08135464787483215,
0.02861730381846428,
-0.007411312777549028,
-0.03529895842075348,
0.060061462223529816,
0.00030861349659971893,
0.02801155112683773,
0.016153449192643166,
-0.027258945629000664,
0.0518011748790741,
-0.04673486575484276,
0.02579045109450817,
0.0006740164826624095,
-0.053343094885349274,
0.019677838310599327,
-0.01033453643321991,
-0.00004044098750455305,
0.08928452432155609,
0.017383314669132233,
-0.005396720487624407,
-0.012482210993766785,
0.01764947921037674,
0.023606063798069954,
0.008453026413917542,
0.039392389357089996,
0.02068742923438549,
0.0029140457045286894,
-0.021733732894062996,
0.023495927453041077,
0.009976590983569622,
-0.0031136691104620695,
0.031444158405065536,
-0.00684686005115509,
-0.039392389357089996,
-0.01940249651670456,
-0.04706528037786484,
0.04276993125677109,
0.006502681411802769,
-0.029167991131544113,
-0.03228854387998581,
0.0059336391277611256,
0.04614746943116188,
-0.031132103875279427,
0.035868000239133835,
-0.04328390210866928,
-0.025515107437968254,
-0.0035312725231051445,
-0.01176632009446621,
-0.004992884583771229,
0.040016502141952515,
-0.000055785618314985186,
-0.05760173499584198,
0.012069196440279484,
0.015235640108585358,
0.022853460162878036,
-0.00037372062797658145,
0.02815840020775795,
-0.06028173863887787,
-0.011353305540978909,
-0.03678581118583679,
0.021091265603899956,
0.0219540074467659,
0.03416087478399277,
0.02751593291759491,
0.06696338951587677,
-0.011793853715062141,
-0.03649211302399635,
0.01225275918841362,
-0.0048185004852712154,
-0.002092605922371149,
0.02657976746559143,
0.019806332886219025,
-0.012665772810578346,
0.02226606197655201,
-0.0627414658665657,
0.015859751030802727,
-0.04754253849387169,
0.05360008403658867,
0.028525523841381073,
-0.026175931096076965,
0.060061462223529816,
0.005286583676934242,
0.02940662018954754,
-0.02035701833665371,
-0.039208829402923584,
-0.01733742468059063,
0.03975951299071312,
-0.05297597125172615,
-0.024432092905044556,
0.03964937478303909,
0.061346396803855896,
-0.00891652051359415,
0.015235640108585358,
-0.01669495739042759,
0.004265520256012678,
-0.06314530223608017,
-0.02564360201358795,
-0.03083840385079384,
0.04313705489039421,
-0.09677384793758392,
-0.016171805560588837,
-0.0007571929600089788,
-0.02942497655749321,
0.003930519800633192,
-0.010224399156868458,
-0.025019491091370583,
-0.04482582211494446,
-0.01719975285232067,
0.037464991211891174,
0.030783334746956825,
-0.03559265658259392,
0.0025216820649802685,
-0.019218934699892998,
0.024303600192070007,
-0.060245025902986526,
0.008306177332997322,
-0.007893162779510021,
0.006608229596167803,
0.02371620200574398,
-0.09038589149713516,
-0.046514593064785004,
0.0419989675283432,
-0.04926802217960358,
0.03759348392486572,
-0.03179292753338814,
-0.019457563757896423,
-0.004983706399798393,
0.010830153711140156,
0.022523049265146255,
-0.03344498202204704,
-0.010389605537056923,
-0.022321131080389023,
-0.024762503802776337,
0.08172176778316498,
0.0012964061461389065,
-0.017080437391996384,
-0.02927812747657299,
-0.08260286599397659,
0.027001960203051567,
-0.055435702204704285,
-0.0014960296684876084,
0.015153037384152412,
0.028580592945218086,
0.01543755829334259,
0.04053047299385071,
0.004442198667675257,
-0.015639476478099823,
0.044458698481321335,
-0.032380323857069016,
-0.06061214953660965,
0.04776281490921974,
0.0015488037606701255,
0.031058678403496742,
-0.03518882021307945,
-0.04640445485711098,
0.06090584769845009,
-0.0243403110653162,
-0.028121687471866608,
0.02927812747657299,
0.040346913039684296,
0.014528926461935043,
0.058152418583631516,
-0.03928225114941597,
-0.026836754754185677,
0.0013870397815480828,
0.03243539109826088,
-0.0009120733593590558,
-0.007296586874872446,
0.02355099469423294,
0.05062637850642204,
0.06105269864201546,
-0.03023264929652214,
0.04243951663374901
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.