diff --git a/src/correctionlib/schemav2.py b/src/correctionlib/schemav2.py index 8dc3b89..09bbfcc 100644 --- a/src/correctionlib/schemav2.py +++ b/src/correctionlib/schemav2.py @@ -319,7 +319,7 @@ def validate_content(cls, content: list[CategoryItem]) -> list[CategoryItem]: def walk_content(content: Content, func: Callable[[Content], None]) -> None: """Visit all content nodes in a tree, applying func to each node.""" func(content) - if isinstance(content, (float, Formula, FormulaRef, HashPRNG)): + if isinstance(content, (float, Formula, FormulaRef, HashPRNG, LWTNN)): pass elif isinstance(content, (Binning, MultiBinning)): for bin in content.content: @@ -354,6 +354,12 @@ def _validate_input(allowed_names: set[str], node: Content) -> None: if inp not in allowed_names: msg = f"{nodename} input {inp!r} not found in Correction inputs {allowed_names}" raise ValueError(msg) + elif isinstance(node, LWTNN): + for inp in node.opaque.get("inputs", []): + name = inp.get("name") + if name not in allowed_names: + msg = f"{nodename} input {name!r} not found in Correction inputs {allowed_names}" + raise ValueError(msg) # FormulaRef has no direct input names diff --git a/src/lwtnn_demo.cc b/src/lwtnn_demo.cc index da0bd9c..595c92d 100644 --- a/src/lwtnn_demo.cc +++ b/src/lwtnn_demo.cc @@ -4,33 +4,25 @@ #include "correction.h" -static constexpr double PT_EPS = 1e-4; -static constexpr double ISO_EPS = 1e-6; - -static double safe_log10(double x, double eps) { - return std::log10(std::max(x, eps)); -} - -int main(int argc, char** argv) { - if (argc != 2) { +int main(int argc, char **argv) +{ + if (argc != 2) + { std::cerr << "Usage: " << argv[0] << " lwtnn_correction.json\n"; return 1; } const std::string json_path = argv[1]; auto correction_set = correction::CorrectionSet::from_file(json_path); - auto correction = correction_set->at("electron_sf"); + auto correction = correction_set->at("electron_fastsim_sf"); // Mock "GEN-matched" electron values (replace with real NanoAOD lookup later) - const double gen_pt = 15.0; + const double gen_pt = 15.0; const double gen_eta = 0.4; const double gen_phi = 2.1; const double gen_iso = 1e-3; - const double pt_log10 = safe_log10(gen_pt, PT_EPS); - const double iso_log10 = safe_log10(gen_iso, ISO_EPS); - - double sf = correction->evaluate({pt_log10, gen_eta, gen_phi, iso_log10}); + double sf = correction->evaluate({gen_pt, gen_eta, gen_phi, gen_iso}); std::cout << std::setprecision(17); std::cout << "sf_fullOverFast " << sf << "\n"; diff --git a/tests/data/lwtnn_example.json b/tests/data/lwtnn_example.json index 02058ab..064c473 100644 --- a/tests/data/lwtnn_example.json +++ b/tests/data/lwtnn_example.json @@ -3,20 +3,28 @@ "description": "Example LWTNN correction set", "corrections": [ { - "name": "electron_sf", + "name": "electron_fastsim_sf", "version": 1, - "description": "Example LWTNN electron scale factor", + "description": "FastSim-to-FullSim object scale factor evaluator for reco Electrons. Inputs are generator-level pt, eta, phi, and isolation for the matched generator particle. For reco electron index my_index in NanoAOD, Electron_genPartIdx[my_index] points to the matched GenPart for pt/eta/phi. The evaluator applies log10(max(pt, 1e-4)) and log10(max(iso, 1e-6)) internally; eta and phi are unchanged.", "inputs": [ { - "name": "pt_log10", - "description": "log10 of the transverse momentum", + "name": "pt", + "description": "Matched gen pt, e.g. GenPart_pt[Electron_genPartIdx[my_index]]", "type": "real" }, - { "name": "eta", "description": "pseudorapidity", "type": "real" }, - { "name": "phi", "description": "azimuthal angle", "type": "real" }, { - "name": "iso_log10", - "description": "log10 of the isolation variable", + "name": "eta", + "description": "Matched gen eta, e.g. GenPart_eta[Electron_genPartIdx[my_index]]", + "type": "real" + }, + { + "name": "phi", + "description": "Matched gen phi, e.g. GenPart_phi[Electron_genPartIdx[my_index]]", + "type": "real" + }, + { + "name": "iso", + "description": "Matched-particle generator isolation, computed for the GenPart referenced by Electron_genPartIdx[my_index] using the same definition as training", "type": "real" } ], @@ -26,573 +34,754 @@ "type": "real" }, "data": { - "nodetype": "lwtnn", - "opaque": { - "inputs": [ - { - "name": "pt_log10", - "offset": 0.0, - "scale": 1.0 - }, - { - "name": "eta", - "offset": 0.0, - "scale": 1.0 - }, - { - "name": "phi", - "offset": 0.0, - "scale": 1.0 - }, - { - "name": "iso_log10", - "offset": 0.0, - "scale": 1.0 - } - ], - "layers": [ - { - "architecture": "dense", - "weights": [ - 0.006893527694046497, 1.5309340953826904, - 0.00044074893230572343, -0.006202847231179476, - -0.4054281413555145, 0.0174763984978199, -0.008454857394099236, - 0.932365357875824, -0.01895803213119507, -0.7399587035179138, - 0.005777355749160051, 0.004707016982138157, 0.6289244890213013, - -0.219432070851326, -0.00971671100705862, -0.28209999203681946, - -0.7758036255836487, 0.2807948887348175, 0.019406212493777275, - -0.021198511123657227, -0.3676674962043762, 0.09930595755577087, - -0.006912252400070429, 0.09830901771783829, -0.6070111393928528, - 0.03677142783999443, -0.02272498607635498, -0.5097360014915466, - 0.007783456239849329, 0.37130841612815857, -0.08552810549736023, - 0.009980225004255772, -0.39490649104118347, 0.1112409308552742, - -0.00609666109085083, -0.5664013028144836, 0.061757542192935944, - -0.030323980376124382, 0.008441140875220299, 0.7630524635314941, - -0.3701220750808716, -0.601392388343811, 0.02177758514881134, - -0.43261322379112244, 0.18475772440433502, 0.031689029186964035, - 0.0070838662795722485, 0.9022100567817688, -0.10596203804016113, - -0.13744892179965973, 0.18349255621433258, - -0.012857897207140923, -0.025047199800610542, - 0.37992972135543823, 0.016081901267170906, 0.23080137372016907, - -0.22020244598388672, -0.009097081609070301, - -0.00055666733533144, -0.20840449631214142, - 0.009610983543097973, -1.2800675630569458, - 0.0009051295346580446, -0.00275616068392992, - -0.48211777210235596, -0.9626645445823669, -0.01887967623770237, - 0.007786223664879799, -0.010956630110740662, 0.5244340896606445, - 0.013990930281579494, 0.19061031937599182, 0.13784795999526978, - 0.026634162291884422, -0.03312002122402191, 0.8183763027191162, - -0.7462964653968811, 0.8823383450508118, -0.008322279900312424, - -0.26779961585998535, 0.01722090132534504, 1.2597577571868896, - 0.0010922690853476524, -0.00105130928568542, - 0.018594492226839066, -0.6285383701324463, 0.011168979108333588, - -0.06550263613462448, -1.9613865613937378, - 0.0029739500023424625, 0.0011240122839808464, - -0.002934274496510625, 0.298112690448761, 0.03089984878897667, - -0.005143146961927414, 1.0947699546813965, 0.1403922438621521, - -0.5713180303573608, 0.0028610823210328817, 0.2005164921283722, - -1.1101869344711304, -0.005247214343398809, - -0.010928093455731869, 0.6565612554550171, 0.17881888151168823, - -0.5576494932174683, -0.007343426812440157, 0.04075205698609352, - -1.2636173963546753, -0.00928265880793333, - -0.0025015994906425476, -0.5234140157699585, - -0.2816990613937378, -0.003803884144872427, - 0.005654997657984495, -0.731830358505249, -0.406332790851593, - -0.19424188137054443, 0.005725920666009188, 0.02132379077374935, - -0.13187605142593384, -0.01914351060986519, 0.01321675069630146, - 0.9120074510574341, 0.3751536011695862, 0.13684141635894775, - -0.01569141447544098, -0.4717029333114624 - ], - "bias": [ - -2.3142430782318115, 0.5982401967048645, -1.752508521080017, - -0.6031656861305237, 0.5920774340629578, 0.7981600761413574, - 1.1835815906524658, 0.11434615403413773, 0.15162895619869232, - 0.4741392731666565, -0.5424443483352661, 0.1566907912492752, - 0.10393576323986053, 0.7037381529808044, 0.5900862216949463, - -1.8667718172073364, -1.0625370740890503, 0.45031270384788513, - 0.4066276550292969, -1.1430484056472778, -1.8525967597961426, - 0.020832369104027748, 1.415531039237976, -0.7532469034194946, - 0.4244202673435211, -0.4501347541809082, 0.7349140048027039, - 1.0887764692306519, 0.8516994118690491, 0.922198474407196, - -0.7089735269546509, -0.7250569462776184 - ], - "activation": "rectified" - }, - { - "architecture": "dense", - "weights": [ - -0.19158810377120972, -0.049117378890514374, - 0.0026344729121774435, -0.08038761466741562, - 0.017685923725366592, 0.09392877668142319, - -0.021246058866381645, -0.09438448399305344, - -0.1859864741563797, -0.10479255020618439, 0.030657999217510223, - -0.16462251543998718, -0.2034940868616104, - -0.030100924894213676, -0.026811862364411354, - -0.15944312512874603, 0.01773194596171379, 0.03642793744802475, - -0.1580478698015213, -0.05043083429336548, 0.0791848674416542, - 0.13373519480228424, -0.14870600402355194, -0.09501050412654877, - -0.12334828823804855, -0.11389878392219543, - -0.13992363214492798, 0.10584364831447601, -0.04649824649095535, - -0.1625637263059616, -0.14422017335891724, -0.17463821172714233, - -0.21634873747825623, -0.018958693370223045, - -0.09547393769025803, 0.052233487367630005, 0.09403683245182037, - 0.05862567201256752, 0.12675079703330994, -0.12939918041229248, - -0.2218601554632187, -0.0839635506272316, -0.19394464790821075, - -0.10298758745193481, -0.016240598633885384, - -0.18603503704071045, -0.12248752266168594, - -0.16991384327411652, 0.018382731825113297, - -0.003069041296839714, -0.26375049352645874, - -0.16641917824745178, -0.04562545195221901, - -0.10452371090650558, -0.09486787021160126, -0.213840514421463, - -0.07605844736099243, -0.12304848432540894, 0.07360747456550598, - -0.13888417184352875, -0.10991852730512619, -0.1344197392463684, - 0.0293494313955307, 0.07772884517908096, -0.755312979221344, - 0.08414486795663834, 2.759875774383545, -0.6480905413627625, - -0.07163220643997192, 0.38950246572494507, -0.3898627758026123, - 0.1727004200220108, 0.7849390506744385, 0.1188957542181015, - 0.17636632919311523, -0.04021439701318741, 0.3972094655036926, - 0.27930471301078796, -0.00025683094281703234, - -0.03611333295702934, 0.1805701106786728, 0.31462109088897705, - -0.024059385061264038, -0.5883875489234924, - -0.25818973779678345, -0.32242724299430847, 1.7294244766235352, - -0.8726301789283752, 0.2893418073654175, -1.4676034450531006, - 0.17852795124053955, 0.8399724960327148, -0.6743468642234802, - 0.17218901216983795, -0.24870523810386658, - 0.0012169083347544074, -0.0376477874815464, 1.2242838144302368, - -0.34772664308547974, -0.5473270416259766, 0.125804603099823, - 0.42907994985580444, 0.2942045032978058, 0.18928445875644684, - 0.07643240690231323, -0.33930832147598267, -0.6812894344329834, - -0.37149298191070557, 0.4685109853744507, 0.11473600566387177, - -0.04660443961620331, -1.928676962852478, -1.0131226778030396, - -0.008550891652703285, -0.11107221245765686, 0.3550297021865845, - -0.5442466139793396, 0.028643954545259476, -2.4676005840301514, - -2.3100526332855225, -0.28920474648475647, -0.07576188445091248, - -0.22442203760147095, -0.07389847189188004, - -0.06414598226547241, 0.32306164503097534, -3.1618471145629883, - -0.29785677790641785, 0.6223354339599609, 0.13495883345603943, - -6.937809944152832, 0.13976991176605225, -0.05341233313083649, - -0.015066797845065594, -0.44798463582992554, 0.3821457028388977, - 0.3705315887928009, 0.160452738404274, -5.548559188842773, - -0.09230570495128632, 0.3268817663192749, 0.16386394202709198, - 0.15002749860286713, 0.6304522752761841, -1.004787802696228, - 0.24985088407993317, -0.0157381072640419, 1.7905160188674927, - 0.4541434645652771, -0.8806862235069275, 0.47163650393486023, - 0.09267967939376831, 0.30584701895713806, -0.2741621434688568, - 0.2820533215999603, -0.2771809697151184, -0.5235265493392944, - -0.01914527453482151, 0.49040487408638, -0.0779503658413887, - -0.2078479677438736, 0.07233394682407379, -0.02854095958173275, - 0.06910111755132675, 0.004815822001546621, 0.07212784886360168, - -0.21712540090084076, 0.04113807901740074, - -0.005381830967962742, 0.06519502401351929, 0.11708001792430878, - 0.11291845887899399, 0.0386493057012558, 0.11042646318674088, - -0.01605895720422268, 0.07799547910690308, - -0.008180765435099602, -0.20710766315460205, - -0.08565549552440643, -0.1235213503241539, - -0.0024092679377645254, -0.09950347989797592, - -0.16351330280303955, -0.15742120146751404, - -0.14318154752254486, 0.09915601462125778, -0.06693459302186966, - 0.052471064031124115, -0.11367131024599075, - -0.01045003067702055, -0.2029097080230713, - -0.027960021048784256, -1.069037675857544, 0.11639203876256943, - 4.000609397888184, 0.1436372548341751, 1.2556101083755493, - 0.5063534379005432, -0.5660585165023804, 0.25677016377449036, - 0.5417183041572571, -0.06360244750976562, 0.5746907591819763, - 0.1541120857000351, -0.09603653848171234, 0.4204515814781189, - 0.10606832057237625, 0.5572296380996704, -0.5834670662879944, - 0.42050063610076904, -0.08270087093114853, 0.7085171937942505, - -0.652384340763092, 0.308522492647171, -0.14795954525470734, - -0.19902491569519043, 0.14066798985004425, 0.3296512961387634, - 0.2380322366952896, 0.8278701901435852, -0.5038145780563354, - -0.9119967818260193, 0.5107406973838806, -0.5018860697746277, - 0.9395125508308411, -0.23143678903579712, 4.372790813446045, - -0.15400651097297668, -0.1930069625377655, 0.5358768701553345, - -5.988631248474121, 0.07428628951311111, 0.5498866438865662, - 0.3123920261859894, -0.15786144137382507, 0.17885714769363403, - 0.10393229871988297, 0.42205318808555603, -2.461184501647949, - -0.2942829430103302, 1.0899826288223267, 0.08587702363729477, - 0.2962878942489624, -2.6032283306121826, -0.16670379042625427, - -0.49956047534942627, -0.6102408766746521, -0.4434673488140106, - 0.2204144150018692, -0.016362251713871956, 0.4052219092845917, - -3.302652597427368, -3.3581314086914062, -0.079740971326828, - -0.1924332231283188, -2.4736886024475098, 0.02611519768834114, - -0.07782813161611557, 0.1010042354464531, 0.03459981456398964, - -0.159005269408226, -0.08670638501644135, -0.1804252564907074, - 0.02969195879995823, -0.1985267549753189, -0.10029825568199158, - -0.12114016711711884, -0.013906458392739296, - -0.14269345998764038, 0.05377713218331337, -0.04129580408334732, - 0.009436391294002533, 0.07539660483598709, -0.09207966178655624, - -0.025246664881706238, -0.10995281487703323, - 0.04161195829510689, -0.12865552306175232, 0.09656495600938797, - -0.1058773547410965, -0.10298164188861847, -0.1840314269065857, - 0.003983833361417055, -0.13875281810760498, - 0.018567556515336037, 0.0171368345618248, -0.03530997410416603, - -0.18027852475643158, 0.070076122879982, -2.0976905822753906, - -0.5173033475875854, -0.08437376469373703, - -0.013862943276762962, -0.1127428412437439, - -0.09238681197166443, 0.005424513015896082, 0.4978780448436737, - 0.6328356862068176, 0.24734224379062653, 0.7174254655838013, - -0.13245609402656555, -0.10420192033052444, - -0.40949252247810364, 0.15282590687274933, -0.41522717475891113, - -0.05837782099843025, 0.6760873198509216, -0.24722619354724884, - 0.03192141652107239, -0.15888859331607819, -0.5004457235336304, - 1.9148709774017334, 0.2253883332014084, -0.7238503098487854, - -0.15135473012924194, -0.00394346471875906, 0.19951669871807098, - 0.074775829911232, -0.8125276565551758, 0.02219468168914318, - -0.010551211424171925, -0.11822208762168884, - 0.024459663778543472, -0.1097710132598877, -0.04884125664830208, - 0.08230943232774734, 0.086247019469738, -0.1864873468875885, - -0.13601070642471313, -0.11672403663396835, - -0.08130001276731491, 0.07469600439071655, 0.03344026207923889, - -0.05627760291099548, -0.1520671397447586, 0.10337625443935394, - -0.10520803183317184, -0.12518703937530518, 0.0346827395260334, - 0.060975074768066406, 0.02073805220425129, -0.16339896619319916, - -0.10490152984857559, -0.10481798648834229, 0.07336905598640442, - 0.04175768420100212, 0.015169809572398663, -0.06503794342279434, - 0.025709155946969986, -0.031199701130390167, - -0.1156841441988945, -0.09783396869897842, -0.18926090002059937, - -0.04071010649204254, 1.9272607564926147, 0.26415419578552246, - 0.46129679679870605, 0.9789919257164001, -0.8306872248649597, - 0.16084124147891998, -1.3638505935668945, -0.4499017000198364, - 0.9800617098808289, -0.44583263993263245, -0.04845794662833214, - 0.28033435344696045, -0.21028974652290344, -0.1841699182987213, - -1.8064100742340088, 0.6434047222137451, -0.24300363659858704, - -0.9732652902603149, -1.5578088760375977, 0.14269837737083435, - -2.7788944244384766, -3.3743677139282227, 0.37324461340904236, - -0.16233420372009277, 0.3010863959789276, -0.6612454652786255, - -0.8064960241317749, -0.6759456396102905, -0.03843281418085098, - 0.1569042205810547, 0.6632195711135864, -0.14122514426708221, - -3.855584144592285, 0.15446163713932037, -0.03005521185696125, - -0.3067580759525299, -0.842705488204956, -0.035252608358860016, - 0.5247966647148132, 0.2367175817489624, -0.08510023355484009, - 0.17861561477184296, -0.25184959173202515, 0.0965653657913208, - -0.08937724679708481, 1.9056403636932373, -2.3008270263671875, - 0.3549090027809143, 0.2718494236469269, 1.666779637336731, - -0.09318088740110397, -0.3722116947174072, -1.1715167760849, - -0.14736419916152954, 0.13240857422351837, 0.5600976943969727, - 0.3596975803375244, 0.6911612749099731, -1.0515810251235962, - -0.09727206081151962, 0.16352637112140656, 0.18980573117733002, - -1.7297894954681396, -0.1362638622522354, 3.5150489807128906, - -0.6520771384239197, 0.4131963849067688, 0.36789971590042114, - 0.07447268813848495, 0.5142823457717896, 0.38126254081726074, - -0.019227195531129837, 0.07440080493688583, 0.17667941749095917, - 0.185001939535141, 0.3077048361301422, -0.017900357022881508, - -1.7875550985336304, 0.6732338070869446, 0.42672666907310486, - 0.2098354995250702, 0.4403609037399292, -0.4123261570930481, - -0.0980180874466896, -0.9118981957435608, -0.18768124282360077, - 0.48000895977020264, 0.4486945569515228, 0.19957789778709412, - 0.6278653740882874, -0.2952209413051605, 0.4947971701622009, - 0.32572460174560547, -0.22122231125831604, -11.278704643249512, - 0.3445194959640503, -0.37737953662872314, 0.10638616979122162, - -0.3396570384502411, 0.15410737693309784, 0.1987946629524231, - 0.12437278032302856, -0.44598880410194397, -0.0388077087700367, - -0.3630736172199249, -0.18972310423851013, 0.07493363320827484, - 0.04452313110232353, 0.0020217010751366615, -14.02159309387207, - -2.745743751525879, -0.016355618834495544, -0.36632320284843445, - 0.023957686498761177, -11.727355003356934, -0.14267775416374207, - -4.2473907470703125, 0.10886988788843155, -0.28549930453300476, - 1.1149095296859741, 0.4156494736671448, 0.045775994658470154, - 0.1958552598953247, 0.03157339617609978, 0.36313626170158386, - 0.1931673288345337, -0.0724307969212532, -0.055212195962667465, - 0.13742616772651672, -0.0918302908539772, -0.13259188830852509, - 0.058631058782339096, -0.02020438201725483, - -0.12994682788848877, -0.15869702398777008, 0.10640071332454681, - 0.033795665949583054, 0.1240735575556755, -0.1404912918806076, - 0.13299569487571716, -0.03533482179045677, - -0.030156543478369713, 0.042947445064783096, - -0.1231878325343132, -0.06805994361639023, -0.05970698595046997, - 0.08562111109495163, -0.15307585895061493, 0.012903004884719849, - -0.16507749259471893, -0.08499385416507721, - -0.08763893693685532, -0.10235171765089035, - -0.08502635359764099, 0.04573478922247887, -0.13519294559955597, - -0.0801093652844429, -0.11591231822967529, 1.0017166137695312, - -0.05861445888876915, 0.7378119230270386, -0.10010746121406555, - 0.6792798638343811, 0.25259605050086975, -0.5809231400489807, - 0.15971510112285614, -0.012810691259801388, - -0.07925404608249664, 0.6976831555366516, 0.13915510475635529, - -0.1866934448480606, 0.05906258523464203, -0.10259958356618881, - 1.5505696535110474, 0.2870946526527405, 0.055501777678728104, - 0.1032523661851883, 0.8394407033920288, 0.4415999948978424, - 0.021652523428201675, -0.1553538292646408, -0.277306467294693, - 0.25744661688804626, 0.04029489681124687, 0.16475345194339752, - 1.3721061944961548, -0.6801221966743469, 0.20825764536857605, - 0.4461148679256439, -0.10248338431119919, 0.61479252576828, - -0.6098062992095947, -1.6782726049423218, -0.18955275416374207, - -0.05206965282559395, -0.018205424770712852, - 0.20045353472232819, 0.3450409770011902, -0.2785871922969818, - -0.2616402506828308, 0.4031884968280792, -0.36709365248680115, - 0.06592508405447006, 0.08040057122707367, 0.03611189126968384, - 1.4392168521881104, -0.580714225769043, 0.5307577252388, - -0.03694494813680649, 0.2735496461391449, 0.07919996231794357, - 0.03882386162877083, -5.8993611335754395, 0.9371585249900818, - -0.0026738024316728115, -0.17357902228832245, - 0.09098541736602783, -0.3108547627925873, 0.17125029861927032, - -0.07526806741952896, -1.6711479425430298, -0.2060796469449997, - 0.15130677819252014, -0.37240728735923767, -3.2351155281066895, - 0.03911633789539337, 0.2935929596424103, -0.20836074650287628, - 0.36770927906036377, 0.2209177166223526, -0.30064958333969116, - -0.15711422264575958, 0.12377167493104935, -0.19690129160881042, - 0.2709997594356537, 0.0026153745129704475, 0.0682867169380188, - 0.6904958486557007, -1.4562098979949951, 0.12538230419158936, - -0.13660427927970886, 0.10969894379377365, -0.7163037657737732, - 0.014394792728126049, -7.267405033111572, 0.6487033367156982, - 0.2061837613582611, 0.9293339848518372, 0.32569968700408936, - -0.010958507657051086, 0.3712329566478729, 0.3093864321708679, - 0.13871857523918152, -0.3551045060157776, -15.520761489868164, - 0.49145957827568054, 3.371994972229004, 0.6210057735443115, - -0.43803131580352783, 0.044192783534526825, 0.21949903666973114, - 0.3200145959854126, -0.48128363490104675, 0.050354816019535065, - -0.4972311854362488, -0.379086971282959, 0.12414619326591492, - 0.17764697968959808, 0.03396553918719292, -0.15118515491485596, - 0.1645221710205078, -0.1332382708787918, -0.4488259255886078, - -0.3331117630004883, 1.7658368349075317, -0.0010369765805080533, - 0.3444961607456207, -1.1223810911178589, -0.23816129565238953, - 1.1683311462402344, 0.29393669962882996, -0.02266445755958557, - 0.2112579047679901, -0.5305609703063965, -2.364502191543579, - 0.2269216626882553, 0.7512349486351013, -0.04584190994501114, - -4.527970314025879, -0.1790483295917511, 0.19814491271972656, - 0.18455883860588074, 0.26773399114608765, 0.027964500710368156, - -0.16104817390441895, -0.009666042402386665, - -0.10097265243530273, 0.006559378933161497, - 0.009389282204210758, -0.2995787560939789, - -0.021005934104323387, 0.8438444137573242, -1.138633370399475, - 0.09240402281284332, -0.09538412094116211, -0.11731336265802383, - -0.043326929211616516, 0.25497305393218994, -3.2033255100250244, - 0.7916578650474548, 0.4590299725532532, 0.19176235795021057, - -0.03284567594528198, -0.5920310020446777, 0.36928653717041016, - 0.13684825599193573, -0.005517797078937292, - -0.12708154320716858, -0.15634748339653015, - -0.15368019044399261, 0.12591847777366638, -0.12722435593605042, - -0.044618505984544754, 0.15371161699295044, 0.06786228716373444, - -0.17913644015789032, 0.04195884242653847, -0.07776098698377609, - -0.11180433630943298, -0.1267387568950653, 0.0255474541336298, - 0.04756709933280945, -0.16673646867275238, 0.10495929419994354, - 0.004703177139163017, -0.14809511601924896, -0.1593073010444641, - 0.16010402143001556, -0.009996832348406315, - 0.011894064955413342, -0.008744126185774803, - -0.08859619498252869, -0.15762698650360107, - -0.14995354413986206, 0.08045574277639389, -0.05338895320892334, - -0.019883563742041588, -0.09289161115884781, - 0.17405451834201813, -0.1237662211060524, -0.04913022741675377, - -0.11470026522874832, -0.12474048882722855, - -0.13048788905143738, -0.10590537637472153, - -0.007786289788782597, -0.12592947483062744, - -0.05294644087553024, 0.047640763223171234, - -0.14373739063739777, -0.06111827865242958, 0.09254366159439087, - -0.1541350930929184, -0.18577799201011658, -0.19797101616859436, - -0.11882605403661728, 0.05518641695380211, - -0.0021689748391509056, 5.330407657311298e-5, - 0.13176561892032623, 0.024409765377640724, -0.12109208106994629, - -0.07842064648866653, 0.082120880484581, -0.03261439502239227, - -0.15577569603919983, 0.08517289906740189, -0.01843501441180706, - 0.06495315581560135, -0.1281348168849945, -0.21322929859161377, - 0.11746423691511154, 0.4270758032798767, 0.06151202693581581, - -4.671034812927246, 0.5209795832633972, -0.3394535481929779, - -0.5262666940689087, 0.21284924447536469, 0.18647538125514984, - -0.6151204705238342, -1.7490402460098267, -0.14494946599006653, - -3.043116807937622, 0.16326077282428741, -0.41481003165245056, - 0.30589181184768677, 0.7112892270088196, -0.8095971345901489, - 0.30977925658226013, -1.778688669204712, -0.06475158780813217, - -0.32577693462371826, -0.1424584835767746, -3.727112293243408, - -0.176460862159729, -0.2712348401546478, -0.3232307732105255, - 0.3996030390262604, -0.04728015512228012, 0.03292616456747055, - -1.1324923038482666, -0.14060255885124207, 0.05482855066657066, - -0.6620354652404785, 0.39139774441719055, 0.2877409756183624, - 0.2324414849281311, -0.5119981169700623, 0.1476469784975052, - 0.4618575870990753, -0.4076550602912903, -0.8748941421508789, - 0.16134633123874664, -0.3704409897327423, 0.12301566451787949, - 0.028856921941041946, -0.35235607624053955, - -0.04540596157312393, -0.06117622181773186, 0.7127377986907959, - -0.22453439235687256, -0.14266933500766754, -0.5870071649551392, - 1.2847261428833008, -0.27495843172073364, -0.6290005445480347, - 0.3933454155921936, -0.6049553751945496, -1.760625958442688, - 0.36077114939689636, -0.08215886354446411, 0.06186072528362274, - -0.09010546654462814, -0.6866622567176819, 0.3799252510070801, - -0.013905107043683529, -0.18373499810695648, - 0.15306204557418823, 0.08784554898738861, 0.0002187796198995784, - -0.1957031935453415, 0.11016105860471725, 0.09257059544324875, - -0.21295052766799927, -0.16611044108867645, - -0.08128463476896286, 0.018160076811909676, 0.02161664329469204, - -0.035865407437086105, 0.08923221379518509, - -0.11638052016496658, -0.20159655809402466, - -0.19780588150024414, -0.19615629315376282, 0.09503459185361862, - -0.05042080208659172, 0.00012962687469553202, - 0.05165207386016846, 0.11017194390296936, -0.046541426330804825, - -0.1561400592327118, -0.06940644979476929, 0.054028578102588654, - -0.15113045275211334, -0.16205479204654694, 0.05111466348171234, - -0.20187540352344513, -2.722553253173828, -0.14626282453536987, - -3.4078001976013184, 0.10542076081037521, 0.658363401889801, - 0.5470684766769409, -1.3261510133743286, 0.341508150100708, - 2.7586302757263184, 0.11041350662708282, -0.042591292411088943, - 0.016187889501452446, -0.42122864723205566, 0.3618226647377014, - -0.5483890771865845, 0.5435105562210083, -1.4844512939453125, - 0.02122664265334606, 0.04096769168972969, 1.0290096998214722, - -1.6328989267349243, 0.0589834563434124, 0.0734155997633934, - -0.23866526782512665, 0.14485706388950348, -1.2559099197387695, - 0.17882920801639557, 0.9770974516868591, -1.5068058967590332, - 0.1673499345779419, -0.15652990341186523, -0.4034740626811981, - 1.4181735515594482, -0.016305366531014442, -3.7494122982025146, - -0.06412196904420853, -0.8968724608421326, -0.14916418492794037, - -1.4028043746948242, -0.19091367721557617, 0.9445805549621582, - 0.06422074139118195, 0.5777143836021423, 0.15088988840579987, - -0.29426535964012146, -0.037579070776700974, - 0.18191397190093994, 0.7349851727485657, -1.1256613731384277, - -0.08047827333211899, 0.08188031613826752, 2.4770021438598633, - -0.16839787364006042, -0.19340889155864716, 0.48542964458465576, - 0.0036856448277831078, 0.09830541908740997, - -0.13887429237365723, 0.16277769207954407, -0.3931504487991333, - -1.0407180786132812, -0.08897759020328522, - -0.029317190870642662, 0.8937681317329407, -0.1108197420835495, - 0.038684941828250885, -0.14078634977340698, - -0.10731770843267441, 0.14726968109607697, -0.1677573174238205, - -0.038727302104234695, -0.10732945799827576, - 0.015795733779668808, -0.003815912874415517, - -0.12737976014614105, -0.05425189808011055, 0.05683492124080658, - -0.1473231464624405, -0.01588009111583233, 0.005110723432153463, - 0.038919080048799515, -0.16751393675804138, - -0.20763424038887024, -0.16146032512187958, - -0.05862388014793396, -0.010552375577390194, - -0.17347390949726105, -0.18529607355594635, -0.1582537591457367, - 0.10609742999076843, -0.12440482527017593, -0.1410260945558548, - -0.10540107637643814, -0.18773508071899414, 0.08816491812467575, - -0.13674098253250122, 0.38374054431915283, 0.3745715618133545, - 5.322629451751709, -0.6156341433525085, -0.2871784269809723, - 0.1887938380241394, 0.23067431151866913, 0.39740481972694397, - 0.22375857830047607, 0.16272230446338654, 0.13238658010959625, - 0.01607990823686123, 0.43988195061683655, 0.06817831099033356, - -0.4182010889053345, -3.3934450149536133, 1.0021332502365112, - -0.37720218300819397, 0.10790140926837921, -0.4468129277229309, - -0.4109143018722534, -0.8398451805114746, 2.788682699203491, - -0.4198559820652008, -0.3244600296020508, -0.3861781358718872, - -0.1240384429693222, 0.7457262873649597, -0.3614003360271454, - 0.34881791472435, -0.2564114034175873, -0.12865029275417328, - -0.48891258239746094, 0.24460919201374054, 0.8439534306526184, - 0.25207868218421936, -0.48999398946762085, 0.40567806363105774, - 0.1752336174249649, -0.1499563604593277, -0.33531060814857483, - -0.1160784661769867, -0.025473572313785553, 0.0165871474891901, - 0.13210710883140564, -0.06765373796224594, 0.027358729392290115, - -6.483150482177734, 1.245735764503479, -0.05892590433359146, - 0.06309513747692108, 0.7287212014198303, 0.43124890327453613, - 0.2540401816368103, 0.8728737831115723, 0.013883388601243496, - 0.024717574939131737, -0.6423548460006714, 0.2097240686416626, - 0.035079475492239, 0.0497359037399292, 0.46483632922172546, - 0.14152543246746063, 0.022612236440181732, 0.06589975208044052, - -0.10854750126600266, -0.1945549100637436, -0.05902259796857834, - 0.10024058073759079, -0.1420356035232544, 0.027356840670108795, - 0.03650302439928055, 0.03574662655591965, -0.11250341683626175, - 0.08875325322151184, 0.04906837269663811, 0.09829644113779068, - -0.2074110507965088, -0.08566439151763916, -0.17675043642520905, - -0.15653172135353088, 0.01507649291306734, 0.026203861460089684, - -0.10110364854335785, 0.04752897471189499, - -0.033744122833013535, -0.1656046062707901, 0.07845579087734222, - 0.09467580914497375, -0.09781568497419357, -0.07664424180984497, - 0.09057099372148514, -0.07328160852193832, 0.014082859270274639, - 0.13538077473640442, -0.10819698870182037 - ], - "bias": [ - 0.05308184772729874, -0.18799719214439392, 0.6211435794830322, - 0.4300546646118164, 0.21085000038146973, -0.22393108904361725, - 0.15656034648418427, 0.5918358564376831, -0.16769130527973175, - -0.8693434596061707, -0.04198959842324257, 0.013540221378207207, - 0.22185923159122467, 0.319132536649704, 0.06806454807519913, - -0.15047983825206757, 0.1982794851064682, 0.16467511653900146, - 0.2227206826210022, 0.46464449167251587, 0.1637532263994217, - -0.011532608419656754, -0.12341185659170151, 0.5961652994155884, - 0.24623021483421326, -0.16075481474399567, 0.42222821712493896, - -0.13477376103401184, 0.09533438831567764, -0.4845700263977051, - 0.18372046947479248, -0.1068587452173233 - ], - "activation": "rectified" - }, - { - "architecture": "dense", - "weights": [ - -0.1631237268447876, 0.01831587217748165, -0.8230376839637756, - 0.7251632213592529, -0.5098063945770264, -0.051350463181734085, - -0.5614793300628662, 0.9967613220214844, 0.03646836057305336, - 1.1175129413604736, -0.017164969816803932, 0.6973041892051697, - -0.5633240342140198, -0.7800509333610535, 1.9539103507995605, - 0.13947488367557526, -0.656608521938324, 0.47070109844207764, - 0.5311211943626404, -0.8419615626335144, 0.18360492587089539, - 0.05298464745283127, -0.09707274287939072, 0.8908255100250244, - -0.010353246703743935, -0.00996472593396902, - 0.22364620864391327, -1.0278372764587402, -0.03190853074193001, - 1.3553715944290161, -0.7160220742225647, -0.09680301696062088, - -0.05719645693898201, -0.00734875351190567, -0.5723360180854797, - 0.12520571053028107, -0.07958902418613434, 0.09232602268457413, - 0.05412406474351883, -1.1112309694290161, 0.12895864248275757, - 0.7087599039077759, 0.021137729287147522, - -0.0072311353869736195, 0.0021651287097483873, - 0.03366118296980858, 0.10073240846395493, 0.06445857882499695, - -0.0632288008928299, 0.09498512744903564, -0.005504023749381304, - -0.12456085532903671, 0.35018718242645264, 0.03541475906968117, - -0.1607871949672699, -0.04608681797981262, -0.10134100168943405, - 0.11721739917993546, -0.7634374499320984, -0.8004344701766968, - -0.1846793293952942, -0.6299132108688354, -0.23529522120952606, - 0.14448440074920654, -0.0856030210852623, -0.1275743842124939, - -0.5453802943229675, -0.11252389848232269, -0.1060822606086731, - -0.14310014247894287, 0.08113788813352585, -0.548088788986206, - -0.014252797700464725, 0.0916050374507904, 0.008503278717398643, - 0.8915607333183289, -0.5335096120834351, 0.026154465973377228, - 0.4641423225402832, 0.07860470563173294, 0.012807714752852917, - 0.044445060193538666, -0.004535490646958351, - -0.05380504950881004, 0.2566031813621521, 0.09726828336715698, - 0.0901237428188324, -0.20555417239665985, -0.9174219369888306, - 0.010427934117615223, -0.5486174821853638, 0.33950451016426086, - 0.12821875512599945, -0.36390960216522217, -0.17116165161132812, - -0.15839165449142456, -0.07545693963766098, - -0.015058801509439945, 0.6610194444656372, -0.6293436288833618, - 0.41219276189804077, -0.09203768521547318, 0.11728902161121368, - -0.2631285488605499, 0.0054953452199697495, -1.2216123342514038, - -0.07179021090269089, -1.3492001295089722, 0.6282245516777039, - 0.3071160912513733, -3.1601972579956055, 0.10227535665035248, - 0.5702449083328247, -0.43977755308151245, -0.589710533618927, - 1.6917744874954224, -0.4112345278263092, -0.11703965812921524, - -0.09414380043745041, -0.8618249297142029, 0.46527472138404846, - 0.040970683097839355, 0.4191632568836212, 1.2745546102523804, - -0.12123681604862213, -0.4801461100578308, 0.8127070069313049, - -0.04881255701184273 + "nodetype": "transform", + "input": "pt", + "rule": { + "nodetype": "formula", + "expression": "log10(max(x, 1e-4))", + "parser": "TFormula", + "variables": ["pt"] + }, + "content": { + "nodetype": "transform", + "input": "iso", + "rule": { + "nodetype": "formula", + "expression": "log10(max(x, 1e-6))", + "parser": "TFormula", + "variables": ["iso"] + }, + "content": { + "nodetype": "lwtnn", + "opaque": { + "inputs": [ + { + "name": "pt", + "offset": 0.0, + "scale": 1.0 + }, + { + "name": "eta", + "offset": 0.0, + "scale": 1.0 + }, + { + "name": "phi", + "offset": 0.0, + "scale": 1.0 + }, + { + "name": "iso", + "offset": 0.0, + "scale": 1.0 + } ], - "bias": [ - 0.42200931906700134, -0.2032674103975296, -0.6124377846717834, - 0.07731001824140549 + "layers": [ + { + "architecture": "dense", + "weights": [ + 0.006893527694046497, 1.5309340953826904, + 0.00044074893230572343, -0.006202847231179476, + -0.4054281413555145, 0.0174763984978199, + -0.008454857394099236, 0.932365357875824, + -0.01895803213119507, -0.7399587035179138, + 0.005777355749160051, 0.004707016982138157, + 0.6289244890213013, -0.219432070851326, + -0.00971671100705862, -0.28209999203681946, + -0.7758036255836487, 0.2807948887348175, + 0.019406212493777275, -0.021198511123657227, + -0.3676674962043762, 0.09930595755577087, + -0.006912252400070429, 0.09830901771783829, + -0.6070111393928528, 0.03677142783999443, + -0.02272498607635498, -0.5097360014915466, + 0.007783456239849329, 0.37130841612815857, + -0.08552810549736023, 0.009980225004255772, + -0.39490649104118347, 0.1112409308552742, + -0.00609666109085083, -0.5664013028144836, + 0.061757542192935944, -0.030323980376124382, + 0.008441140875220299, 0.7630524635314941, + -0.3701220750808716, -0.601392388343811, + 0.02177758514881134, -0.43261322379112244, + 0.18475772440433502, 0.031689029186964035, + 0.0070838662795722485, 0.9022100567817688, + -0.10596203804016113, -0.13744892179965973, + 0.18349255621433258, -0.012857897207140923, + -0.025047199800610542, 0.37992972135543823, + 0.016081901267170906, 0.23080137372016907, + -0.22020244598388672, -0.009097081609070301, + -0.00055666733533144, -0.20840449631214142, + 0.009610983543097973, -1.2800675630569458, + 0.0009051295346580446, -0.00275616068392992, + -0.48211777210235596, -0.9626645445823669, + -0.01887967623770237, 0.007786223664879799, + -0.010956630110740662, 0.5244340896606445, + 0.013990930281579494, 0.19061031937599182, + 0.13784795999526978, 0.026634162291884422, + -0.03312002122402191, 0.8183763027191162, + -0.7462964653968811, 0.8823383450508118, + -0.008322279900312424, -0.26779961585998535, + 0.01722090132534504, 1.2597577571868896, + 0.0010922690853476524, -0.00105130928568542, + 0.018594492226839066, -0.6285383701324463, + 0.011168979108333588, -0.06550263613462448, + -1.9613865613937378, 0.0029739500023424625, + 0.0011240122839808464, -0.002934274496510625, + 0.298112690448761, 0.03089984878897667, + -0.005143146961927414, 1.0947699546813965, + 0.1403922438621521, -0.5713180303573608, + 0.0028610823210328817, 0.2005164921283722, + -1.1101869344711304, -0.005247214343398809, + -0.010928093455731869, 0.6565612554550171, + 0.17881888151168823, -0.5576494932174683, + -0.007343426812440157, 0.04075205698609352, + -1.2636173963546753, -0.00928265880793333, + -0.0025015994906425476, -0.5234140157699585, + -0.2816990613937378, -0.003803884144872427, + 0.005654997657984495, -0.731830358505249, + -0.406332790851593, -0.19424188137054443, + 0.005725920666009188, 0.02132379077374935, + -0.13187605142593384, -0.01914351060986519, + 0.01321675069630146, 0.9120074510574341, 0.3751536011695862, + 0.13684141635894775, -0.01569141447544098, + -0.4717029333114624 + ], + "bias": [ + -2.3142430782318115, 0.5982401967048645, -1.752508521080017, + -0.6031656861305237, 0.5920774340629578, 0.7981600761413574, + 1.1835815906524658, 0.11434615403413773, + 0.15162895619869232, 0.4741392731666565, + -0.5424443483352661, 0.1566907912492752, + 0.10393576323986053, 0.7037381529808044, 0.5900862216949463, + -1.8667718172073364, -1.0625370740890503, + 0.45031270384788513, 0.4066276550292969, + -1.1430484056472778, -1.8525967597961426, + 0.020832369104027748, 1.415531039237976, + -0.7532469034194946, 0.4244202673435211, + -0.4501347541809082, 0.7349140048027039, 1.0887764692306519, + 0.8516994118690491, 0.922198474407196, -0.7089735269546509, + -0.7250569462776184 + ], + "activation": "rectified" + }, + { + "architecture": "dense", + "weights": [ + -0.19158810377120972, -0.049117378890514374, + 0.0026344729121774435, -0.08038761466741562, + 0.017685923725366592, 0.09392877668142319, + -0.021246058866381645, -0.09438448399305344, + -0.1859864741563797, -0.10479255020618439, + 0.030657999217510223, -0.16462251543998718, + -0.2034940868616104, -0.030100924894213676, + -0.026811862364411354, -0.15944312512874603, + 0.01773194596171379, 0.03642793744802475, + -0.1580478698015213, -0.05043083429336548, + 0.0791848674416542, 0.13373519480228424, + -0.14870600402355194, -0.09501050412654877, + -0.12334828823804855, -0.11389878392219543, + -0.13992363214492798, 0.10584364831447601, + -0.04649824649095535, -0.1625637263059616, + -0.14422017335891724, -0.17463821172714233, + -0.21634873747825623, -0.018958693370223045, + -0.09547393769025803, 0.052233487367630005, + 0.09403683245182037, 0.05862567201256752, + 0.12675079703330994, -0.12939918041229248, + -0.2218601554632187, -0.0839635506272316, + -0.19394464790821075, -0.10298758745193481, + -0.016240598633885384, -0.18603503704071045, + -0.12248752266168594, -0.16991384327411652, + 0.018382731825113297, -0.003069041296839714, + -0.26375049352645874, -0.16641917824745178, + -0.04562545195221901, -0.10452371090650558, + -0.09486787021160126, -0.213840514421463, + -0.07605844736099243, -0.12304848432540894, + 0.07360747456550598, -0.13888417184352875, + -0.10991852730512619, -0.1344197392463684, + 0.0293494313955307, 0.07772884517908096, -0.755312979221344, + 0.08414486795663834, 2.759875774383545, -0.6480905413627625, + -0.07163220643997192, 0.38950246572494507, + -0.3898627758026123, 0.1727004200220108, 0.7849390506744385, + 0.1188957542181015, 0.17636632919311523, + -0.04021439701318741, 0.3972094655036926, + 0.27930471301078796, -0.00025683094281703234, + -0.03611333295702934, 0.1805701106786728, + 0.31462109088897705, -0.024059385061264038, + -0.5883875489234924, -0.25818973779678345, + -0.32242724299430847, 1.7294244766235352, + -0.8726301789283752, 0.2893418073654175, + -1.4676034450531006, 0.17852795124053955, + 0.8399724960327148, -0.6743468642234802, + 0.17218901216983795, -0.24870523810386658, + 0.0012169083347544074, -0.0376477874815464, + 1.2242838144302368, -0.34772664308547974, + -0.5473270416259766, 0.125804603099823, 0.42907994985580444, + 0.2942045032978058, 0.18928445875644684, + 0.07643240690231323, -0.33930832147598267, + -0.6812894344329834, -0.37149298191070557, + 0.4685109853744507, 0.11473600566387177, + -0.04660443961620331, -1.928676962852478, + -1.0131226778030396, -0.008550891652703285, + -0.11107221245765686, 0.3550297021865845, + -0.5442466139793396, 0.028643954545259476, + -2.4676005840301514, -2.3100526332855225, + -0.28920474648475647, -0.07576188445091248, + -0.22442203760147095, -0.07389847189188004, + -0.06414598226547241, 0.32306164503097534, + -3.1618471145629883, -0.29785677790641785, + 0.6223354339599609, 0.13495883345603943, -6.937809944152832, + 0.13976991176605225, -0.05341233313083649, + -0.015066797845065594, -0.44798463582992554, + 0.3821457028388977, 0.3705315887928009, 0.160452738404274, + -5.548559188842773, -0.09230570495128632, + 0.3268817663192749, 0.16386394202709198, + 0.15002749860286713, 0.6304522752761841, -1.004787802696228, + 0.24985088407993317, -0.0157381072640419, + 1.7905160188674927, 0.4541434645652771, -0.8806862235069275, + 0.47163650393486023, 0.09267967939376831, + 0.30584701895713806, -0.2741621434688568, + 0.2820533215999603, -0.2771809697151184, + -0.5235265493392944, -0.01914527453482151, 0.49040487408638, + -0.0779503658413887, -0.2078479677438736, + 0.07233394682407379, -0.02854095958173275, + 0.06910111755132675, 0.004815822001546621, + 0.07212784886360168, -0.21712540090084076, + 0.04113807901740074, -0.005381830967962742, + 0.06519502401351929, 0.11708001792430878, + 0.11291845887899399, 0.0386493057012558, + 0.11042646318674088, -0.01605895720422268, + 0.07799547910690308, -0.008180765435099602, + -0.20710766315460205, -0.08565549552440643, + -0.1235213503241539, -0.0024092679377645254, + -0.09950347989797592, -0.16351330280303955, + -0.15742120146751404, -0.14318154752254486, + 0.09915601462125778, -0.06693459302186966, + 0.052471064031124115, -0.11367131024599075, + -0.01045003067702055, -0.2029097080230713, + -0.027960021048784256, -1.069037675857544, + 0.11639203876256943, 4.000609397888184, 0.1436372548341751, + 1.2556101083755493, 0.5063534379005432, -0.5660585165023804, + 0.25677016377449036, 0.5417183041572571, + -0.06360244750976562, 0.5746907591819763, + 0.1541120857000351, -0.09603653848171234, + 0.4204515814781189, 0.10606832057237625, 0.5572296380996704, + -0.5834670662879944, 0.42050063610076904, + -0.08270087093114853, 0.7085171937942505, + -0.652384340763092, 0.308522492647171, -0.14795954525470734, + -0.19902491569519043, 0.14066798985004425, + 0.3296512961387634, 0.2380322366952896, 0.8278701901435852, + -0.5038145780563354, -0.9119967818260193, + 0.5107406973838806, -0.5018860697746277, 0.9395125508308411, + -0.23143678903579712, 4.372790813446045, + -0.15400651097297668, -0.1930069625377655, + 0.5358768701553345, -5.988631248474121, 0.07428628951311111, + 0.5498866438865662, 0.3123920261859894, + -0.15786144137382507, 0.17885714769363403, + 0.10393229871988297, 0.42205318808555603, + -2.461184501647949, -0.2942829430103302, 1.0899826288223267, + 0.08587702363729477, 0.2962878942489624, + -2.6032283306121826, -0.16670379042625427, + -0.49956047534942627, -0.6102408766746521, + -0.4434673488140106, 0.2204144150018692, + -0.016362251713871956, 0.4052219092845917, + -3.302652597427368, -3.3581314086914062, -0.079740971326828, + -0.1924332231283188, -2.4736886024475098, + 0.02611519768834114, -0.07782813161611557, + 0.1010042354464531, 0.03459981456398964, -0.159005269408226, + -0.08670638501644135, -0.1804252564907074, + 0.02969195879995823, -0.1985267549753189, + -0.10029825568199158, -0.12114016711711884, + -0.013906458392739296, -0.14269345998764038, + 0.05377713218331337, -0.04129580408334732, + 0.009436391294002533, 0.07539660483598709, + -0.09207966178655624, -0.025246664881706238, + -0.10995281487703323, 0.04161195829510689, + -0.12865552306175232, 0.09656495600938797, + -0.1058773547410965, -0.10298164188861847, + -0.1840314269065857, 0.003983833361417055, + -0.13875281810760498, 0.018567556515336037, + 0.0171368345618248, -0.03530997410416603, + -0.18027852475643158, 0.070076122879982, + -2.0976905822753906, -0.5173033475875854, + -0.08437376469373703, -0.013862943276762962, + -0.1127428412437439, -0.09238681197166443, + 0.005424513015896082, 0.4978780448436737, + 0.6328356862068176, 0.24734224379062653, 0.7174254655838013, + -0.13245609402656555, -0.10420192033052444, + -0.40949252247810364, 0.15282590687274933, + -0.41522717475891113, -0.05837782099843025, + 0.6760873198509216, -0.24722619354724884, + 0.03192141652107239, -0.15888859331607819, + -0.5004457235336304, 1.9148709774017334, 0.2253883332014084, + -0.7238503098487854, -0.15135473012924194, + -0.00394346471875906, 0.19951669871807098, + 0.074775829911232, -0.8125276565551758, 0.02219468168914318, + -0.010551211424171925, -0.11822208762168884, + 0.024459663778543472, -0.1097710132598877, + -0.04884125664830208, 0.08230943232774734, + 0.086247019469738, -0.1864873468875885, + -0.13601070642471313, -0.11672403663396835, + -0.08130001276731491, 0.07469600439071655, + 0.03344026207923889, -0.05627760291099548, + -0.1520671397447586, 0.10337625443935394, + -0.10520803183317184, -0.12518703937530518, + 0.0346827395260334, 0.060975074768066406, + 0.02073805220425129, -0.16339896619319916, + -0.10490152984857559, -0.10481798648834229, + 0.07336905598640442, 0.04175768420100212, + 0.015169809572398663, -0.06503794342279434, + 0.025709155946969986, -0.031199701130390167, + -0.1156841441988945, -0.09783396869897842, + -0.18926090002059937, -0.04071010649204254, + 1.9272607564926147, 0.26415419578552246, + 0.46129679679870605, 0.9789919257164001, + -0.8306872248649597, 0.16084124147891998, + -1.3638505935668945, -0.4499017000198364, + 0.9800617098808289, -0.44583263993263245, + -0.04845794662833214, 0.28033435344696045, + -0.21028974652290344, -0.1841699182987213, + -1.8064100742340088, 0.6434047222137451, + -0.24300363659858704, -0.9732652902603149, + -1.5578088760375977, 0.14269837737083435, + -2.7788944244384766, -3.3743677139282227, + 0.37324461340904236, -0.16233420372009277, + 0.3010863959789276, -0.6612454652786255, + -0.8064960241317749, -0.6759456396102905, + -0.03843281418085098, 0.1569042205810547, + 0.6632195711135864, -0.14122514426708221, + -3.855584144592285, 0.15446163713932037, + -0.03005521185696125, -0.3067580759525299, + -0.842705488204956, -0.035252608358860016, + 0.5247966647148132, 0.2367175817489624, + -0.08510023355484009, 0.17861561477184296, + -0.25184959173202515, 0.0965653657913208, + -0.08937724679708481, 1.9056403636932373, + -2.3008270263671875, 0.3549090027809143, 0.2718494236469269, + 1.666779637336731, -0.09318088740110397, + -0.3722116947174072, -1.1715167760849, -0.14736419916152954, + 0.13240857422351837, 0.5600976943969727, 0.3596975803375244, + 0.6911612749099731, -1.0515810251235962, + -0.09727206081151962, 0.16352637112140656, + 0.18980573117733002, -1.7297894954681396, + -0.1362638622522354, 3.5150489807128906, + -0.6520771384239197, 0.4131963849067688, + 0.36789971590042114, 0.07447268813848495, + 0.5142823457717896, 0.38126254081726074, + -0.019227195531129837, 0.07440080493688583, + 0.17667941749095917, 0.185001939535141, 0.3077048361301422, + -0.017900357022881508, -1.7875550985336304, + 0.6732338070869446, 0.42672666907310486, 0.2098354995250702, + 0.4403609037399292, -0.4123261570930481, + -0.0980180874466896, -0.9118981957435608, + -0.18768124282360077, 0.48000895977020264, + 0.4486945569515228, 0.19957789778709412, 0.6278653740882874, + -0.2952209413051605, 0.4947971701622009, + 0.32572460174560547, -0.22122231125831604, + -11.278704643249512, 0.3445194959640503, + -0.37737953662872314, 0.10638616979122162, + -0.3396570384502411, 0.15410737693309784, + 0.1987946629524231, 0.12437278032302856, + -0.44598880410194397, -0.0388077087700367, + -0.3630736172199249, -0.18972310423851013, + 0.07493363320827484, 0.04452313110232353, + 0.0020217010751366615, -14.02159309387207, + -2.745743751525879, -0.016355618834495544, + -0.36632320284843445, 0.023957686498761177, + -11.727355003356934, -0.14267775416374207, + -4.2473907470703125, 0.10886988788843155, + -0.28549930453300476, 1.1149095296859741, + 0.4156494736671448, 0.045775994658470154, + 0.1958552598953247, 0.03157339617609978, + 0.36313626170158386, 0.1931673288345337, + -0.0724307969212532, -0.055212195962667465, + 0.13742616772651672, -0.0918302908539772, + -0.13259188830852509, 0.058631058782339096, + -0.02020438201725483, -0.12994682788848877, + -0.15869702398777008, 0.10640071332454681, + 0.033795665949583054, 0.1240735575556755, + -0.1404912918806076, 0.13299569487571716, + -0.03533482179045677, -0.030156543478369713, + 0.042947445064783096, -0.1231878325343132, + -0.06805994361639023, -0.05970698595046997, + 0.08562111109495163, -0.15307585895061493, + 0.012903004884719849, -0.16507749259471893, + -0.08499385416507721, -0.08763893693685532, + -0.10235171765089035, -0.08502635359764099, + 0.04573478922247887, -0.13519294559955597, + -0.0801093652844429, -0.11591231822967529, + 1.0017166137695312, -0.05861445888876915, + 0.7378119230270386, -0.10010746121406555, + 0.6792798638343811, 0.25259605050086975, + -0.5809231400489807, 0.15971510112285614, + -0.012810691259801388, -0.07925404608249664, + 0.6976831555366516, 0.13915510475635529, + -0.1866934448480606, 0.05906258523464203, + -0.10259958356618881, 1.5505696535110474, + 0.2870946526527405, 0.055501777678728104, + 0.1032523661851883, 0.8394407033920288, 0.4415999948978424, + 0.021652523428201675, -0.1553538292646408, + -0.277306467294693, 0.25744661688804626, + 0.04029489681124687, 0.16475345194339752, + 1.3721061944961548, -0.6801221966743469, + 0.20825764536857605, 0.4461148679256439, + -0.10248338431119919, 0.61479252576828, -0.6098062992095947, + -1.6782726049423218, -0.18955275416374207, + -0.05206965282559395, -0.018205424770712852, + 0.20045353472232819, 0.3450409770011902, + -0.2785871922969818, -0.2616402506828308, + 0.4031884968280792, -0.36709365248680115, + 0.06592508405447006, 0.08040057122707367, + 0.03611189126968384, 1.4392168521881104, -0.580714225769043, + 0.5307577252388, -0.03694494813680649, 0.2735496461391449, + 0.07919996231794357, 0.03882386162877083, + -5.8993611335754395, 0.9371585249900818, + -0.0026738024316728115, -0.17357902228832245, + 0.09098541736602783, -0.3108547627925873, + 0.17125029861927032, -0.07526806741952896, + -1.6711479425430298, -0.2060796469449997, + 0.15130677819252014, -0.37240728735923767, + -3.2351155281066895, 0.03911633789539337, + 0.2935929596424103, -0.20836074650287628, + 0.36770927906036377, 0.2209177166223526, + -0.30064958333969116, -0.15711422264575958, + 0.12377167493104935, -0.19690129160881042, + 0.2709997594356537, 0.0026153745129704475, + 0.0682867169380188, 0.6904958486557007, -1.4562098979949951, + 0.12538230419158936, -0.13660427927970886, + 0.10969894379377365, -0.7163037657737732, + 0.014394792728126049, -7.267405033111572, + 0.6487033367156982, 0.2061837613582611, 0.9293339848518372, + 0.32569968700408936, -0.010958507657051086, + 0.3712329566478729, 0.3093864321708679, 0.13871857523918152, + -0.3551045060157776, -15.520761489868164, + 0.49145957827568054, 3.371994972229004, 0.6210057735443115, + -0.43803131580352783, 0.044192783534526825, + 0.21949903666973114, 0.3200145959854126, + -0.48128363490104675, 0.050354816019535065, + -0.4972311854362488, -0.379086971282959, + 0.12414619326591492, 0.17764697968959808, + 0.03396553918719292, -0.15118515491485596, + 0.1645221710205078, -0.1332382708787918, + -0.4488259255886078, -0.3331117630004883, + 1.7658368349075317, -0.0010369765805080533, + 0.3444961607456207, -1.1223810911178589, + -0.23816129565238953, 1.1683311462402344, + 0.29393669962882996, -0.02266445755958557, + 0.2112579047679901, -0.5305609703063965, -2.364502191543579, + 0.2269216626882553, 0.7512349486351013, + -0.04584190994501114, -4.527970314025879, + -0.1790483295917511, 0.19814491271972656, + 0.18455883860588074, 0.26773399114608765, + 0.027964500710368156, -0.16104817390441895, + -0.009666042402386665, -0.10097265243530273, + 0.006559378933161497, 0.009389282204210758, + -0.2995787560939789, -0.021005934104323387, + 0.8438444137573242, -1.138633370399475, 0.09240402281284332, + -0.09538412094116211, -0.11731336265802383, + -0.043326929211616516, 0.25497305393218994, + -3.2033255100250244, 0.7916578650474548, 0.4590299725532532, + 0.19176235795021057, -0.03284567594528198, + -0.5920310020446777, 0.36928653717041016, + 0.13684825599193573, -0.005517797078937292, + -0.12708154320716858, -0.15634748339653015, + -0.15368019044399261, 0.12591847777366638, + -0.12722435593605042, -0.044618505984544754, + 0.15371161699295044, 0.06786228716373444, + -0.17913644015789032, 0.04195884242653847, + -0.07776098698377609, -0.11180433630943298, + -0.1267387568950653, 0.0255474541336298, + 0.04756709933280945, -0.16673646867275238, + 0.10495929419994354, 0.004703177139163017, + -0.14809511601924896, -0.1593073010444641, + 0.16010402143001556, -0.009996832348406315, + 0.011894064955413342, -0.008744126185774803, + -0.08859619498252869, -0.15762698650360107, + -0.14995354413986206, 0.08045574277639389, + -0.05338895320892334, -0.019883563742041588, + -0.09289161115884781, 0.17405451834201813, + -0.1237662211060524, -0.04913022741675377, + -0.11470026522874832, -0.12474048882722855, + -0.13048788905143738, -0.10590537637472153, + -0.007786289788782597, -0.12592947483062744, + -0.05294644087553024, 0.047640763223171234, + -0.14373739063739777, -0.06111827865242958, + 0.09254366159439087, -0.1541350930929184, + -0.18577799201011658, -0.19797101616859436, + -0.11882605403661728, 0.05518641695380211, + -0.0021689748391509056, 5.330407657311298e-5, + 0.13176561892032623, 0.024409765377640724, + -0.12109208106994629, -0.07842064648866653, + 0.082120880484581, -0.03261439502239227, + -0.15577569603919983, 0.08517289906740189, + -0.01843501441180706, 0.06495315581560135, + -0.1281348168849945, -0.21322929859161377, + 0.11746423691511154, 0.4270758032798767, + 0.06151202693581581, -4.671034812927246, 0.5209795832633972, + -0.3394535481929779, -0.5262666940689087, + 0.21284924447536469, 0.18647538125514984, + -0.6151204705238342, -1.7490402460098267, + -0.14494946599006653, -3.043116807937622, + 0.16326077282428741, -0.41481003165245056, + 0.30589181184768677, 0.7112892270088196, + -0.8095971345901489, 0.30977925658226013, + -1.778688669204712, -0.06475158780813217, + -0.32577693462371826, -0.1424584835767746, + -3.727112293243408, -0.176460862159729, -0.2712348401546478, + -0.3232307732105255, 0.3996030390262604, + -0.04728015512228012, 0.03292616456747055, + -1.1324923038482666, -0.14060255885124207, + 0.05482855066657066, -0.6620354652404785, + 0.39139774441719055, 0.2877409756183624, 0.2324414849281311, + -0.5119981169700623, 0.1476469784975052, 0.4618575870990753, + -0.4076550602912903, -0.8748941421508789, + 0.16134633123874664, -0.3704409897327423, + 0.12301566451787949, 0.028856921941041946, + -0.35235607624053955, -0.04540596157312393, + -0.06117622181773186, 0.7127377986907959, + -0.22453439235687256, -0.14266933500766754, + -0.5870071649551392, 1.2847261428833008, + -0.27495843172073364, -0.6290005445480347, + 0.3933454155921936, -0.6049553751945496, -1.760625958442688, + 0.36077114939689636, -0.08215886354446411, + 0.06186072528362274, -0.09010546654462814, + -0.6866622567176819, 0.3799252510070801, + -0.013905107043683529, -0.18373499810695648, + 0.15306204557418823, 0.08784554898738861, + 0.0002187796198995784, -0.1957031935453415, + 0.11016105860471725, 0.09257059544324875, + -0.21295052766799927, -0.16611044108867645, + -0.08128463476896286, 0.018160076811909676, + 0.02161664329469204, -0.035865407437086105, + 0.08923221379518509, -0.11638052016496658, + -0.20159655809402466, -0.19780588150024414, + -0.19615629315376282, 0.09503459185361862, + -0.05042080208659172, 0.00012962687469553202, + 0.05165207386016846, 0.11017194390296936, + -0.046541426330804825, -0.1561400592327118, + -0.06940644979476929, 0.054028578102588654, + -0.15113045275211334, -0.16205479204654694, + 0.05111466348171234, -0.20187540352344513, + -2.722553253173828, -0.14626282453536987, + -3.4078001976013184, 0.10542076081037521, 0.658363401889801, + 0.5470684766769409, -1.3261510133743286, 0.341508150100708, + 2.7586302757263184, 0.11041350662708282, + -0.042591292411088943, 0.016187889501452446, + -0.42122864723205566, 0.3618226647377014, + -0.5483890771865845, 0.5435105562210083, + -1.4844512939453125, 0.02122664265334606, + 0.04096769168972969, 1.0290096998214722, + -1.6328989267349243, 0.0589834563434124, 0.0734155997633934, + -0.23866526782512665, 0.14485706388950348, + -1.2559099197387695, 0.17882920801639557, + 0.9770974516868591, -1.5068058967590332, 0.1673499345779419, + -0.15652990341186523, -0.4034740626811981, + 1.4181735515594482, -0.016305366531014442, + -3.7494122982025146, -0.06412196904420853, + -0.8968724608421326, -0.14916418492794037, + -1.4028043746948242, -0.19091367721557617, + 0.9445805549621582, 0.06422074139118195, 0.5777143836021423, + 0.15088988840579987, -0.29426535964012146, + -0.037579070776700974, 0.18191397190093994, + 0.7349851727485657, -1.1256613731384277, + -0.08047827333211899, 0.08188031613826752, + 2.4770021438598633, -0.16839787364006042, + -0.19340889155864716, 0.48542964458465576, + 0.0036856448277831078, 0.09830541908740997, + -0.13887429237365723, 0.16277769207954407, + -0.3931504487991333, -1.0407180786132812, + -0.08897759020328522, -0.029317190870642662, + 0.8937681317329407, -0.1108197420835495, + 0.038684941828250885, -0.14078634977340698, + -0.10731770843267441, 0.14726968109607697, + -0.1677573174238205, -0.038727302104234695, + -0.10732945799827576, 0.015795733779668808, + -0.003815912874415517, -0.12737976014614105, + -0.05425189808011055, 0.05683492124080658, + -0.1473231464624405, -0.01588009111583233, + 0.005110723432153463, 0.038919080048799515, + -0.16751393675804138, -0.20763424038887024, + -0.16146032512187958, -0.05862388014793396, + -0.010552375577390194, -0.17347390949726105, + -0.18529607355594635, -0.1582537591457367, + 0.10609742999076843, -0.12440482527017593, + -0.1410260945558548, -0.10540107637643814, + -0.18773508071899414, 0.08816491812467575, + -0.13674098253250122, 0.38374054431915283, + 0.3745715618133545, 5.322629451751709, -0.6156341433525085, + -0.2871784269809723, 0.1887938380241394, + 0.23067431151866913, 0.39740481972694397, + 0.22375857830047607, 0.16272230446338654, + 0.13238658010959625, 0.01607990823686123, + 0.43988195061683655, 0.06817831099033356, + -0.4182010889053345, -3.3934450149536133, + 1.0021332502365112, -0.37720218300819397, + 0.10790140926837921, -0.4468129277229309, + -0.4109143018722534, -0.8398451805114746, 2.788682699203491, + -0.4198559820652008, -0.3244600296020508, + -0.3861781358718872, -0.1240384429693222, + 0.7457262873649597, -0.3614003360271454, 0.34881791472435, + -0.2564114034175873, -0.12865029275417328, + -0.48891258239746094, 0.24460919201374054, + 0.8439534306526184, 0.25207868218421936, + -0.48999398946762085, 0.40567806363105774, + 0.1752336174249649, -0.1499563604593277, + -0.33531060814857483, -0.1160784661769867, + -0.025473572313785553, 0.0165871474891901, + 0.13210710883140564, -0.06765373796224594, + 0.027358729392290115, -6.483150482177734, 1.245735764503479, + -0.05892590433359146, 0.06309513747692108, + 0.7287212014198303, 0.43124890327453613, 0.2540401816368103, + 0.8728737831115723, 0.013883388601243496, + 0.024717574939131737, -0.6423548460006714, + 0.2097240686416626, 0.035079475492239, 0.0497359037399292, + 0.46483632922172546, 0.14152543246746063, + 0.022612236440181732, 0.06589975208044052, + -0.10854750126600266, -0.1945549100637436, + -0.05902259796857834, 0.10024058073759079, + -0.1420356035232544, 0.027356840670108795, + 0.03650302439928055, 0.03574662655591965, + -0.11250341683626175, 0.08875325322151184, + 0.04906837269663811, 0.09829644113779068, + -0.2074110507965088, -0.08566439151763916, + -0.17675043642520905, -0.15653172135353088, + 0.01507649291306734, 0.026203861460089684, + -0.10110364854335785, 0.04752897471189499, + -0.033744122833013535, -0.1656046062707901, + 0.07845579087734222, 0.09467580914497375, + -0.09781568497419357, -0.07664424180984497, + 0.09057099372148514, -0.07328160852193832, + 0.014082859270274639, 0.13538077473640442, + -0.10819698870182037 + ], + "bias": [ + 0.05308184772729874, -0.18799719214439392, + 0.6211435794830322, 0.4300546646118164, 0.21085000038146973, + -0.22393108904361725, 0.15656034648418427, + 0.5918358564376831, -0.16769130527973175, + -0.8693434596061707, -0.04198959842324257, + 0.013540221378207207, 0.22185923159122467, + 0.319132536649704, 0.06806454807519913, + -0.15047983825206757, 0.1982794851064682, + 0.16467511653900146, 0.2227206826210022, + 0.46464449167251587, 0.1637532263994217, + -0.011532608419656754, -0.12341185659170151, + 0.5961652994155884, 0.24623021483421326, + -0.16075481474399567, 0.42222821712493896, + -0.13477376103401184, 0.09533438831567764, + -0.4845700263977051, 0.18372046947479248, + -0.1068587452173233 + ], + "activation": "rectified" + }, + { + "architecture": "dense", + "weights": [ + -0.1631237268447876, 0.01831587217748165, + -0.8230376839637756, 0.7251632213592529, + -0.5098063945770264, -0.051350463181734085, + -0.5614793300628662, 0.9967613220214844, + 0.03646836057305336, 1.1175129413604736, + -0.017164969816803932, 0.6973041892051697, + -0.5633240342140198, -0.7800509333610535, + 1.9539103507995605, 0.13947488367557526, -0.656608521938324, + 0.47070109844207764, 0.5311211943626404, + -0.8419615626335144, 0.18360492587089539, + 0.05298464745283127, -0.09707274287939072, + 0.8908255100250244, -0.010353246703743935, + -0.00996472593396902, 0.22364620864391327, + -1.0278372764587402, -0.03190853074193001, + 1.3553715944290161, -0.7160220742225647, + -0.09680301696062088, -0.05719645693898201, + -0.00734875351190567, -0.5723360180854797, + 0.12520571053028107, -0.07958902418613434, + 0.09232602268457413, 0.05412406474351883, + -1.1112309694290161, 0.12895864248275757, + 0.7087599039077759, 0.021137729287147522, + -0.0072311353869736195, 0.0021651287097483873, + 0.03366118296980858, 0.10073240846395493, + 0.06445857882499695, -0.0632288008928299, + 0.09498512744903564, -0.005504023749381304, + -0.12456085532903671, 0.35018718242645264, + 0.03541475906968117, -0.1607871949672699, + -0.04608681797981262, -0.10134100168943405, + 0.11721739917993546, -0.7634374499320984, + -0.8004344701766968, -0.1846793293952942, + -0.6299132108688354, -0.23529522120952606, + 0.14448440074920654, -0.0856030210852623, + -0.1275743842124939, -0.5453802943229675, + -0.11252389848232269, -0.1060822606086731, + -0.14310014247894287, 0.08113788813352585, + -0.548088788986206, -0.014252797700464725, + 0.0916050374507904, 0.008503278717398643, + 0.8915607333183289, -0.5335096120834351, + 0.026154465973377228, 0.4641423225402832, + 0.07860470563173294, 0.012807714752852917, + 0.044445060193538666, -0.004535490646958351, + -0.05380504950881004, 0.2566031813621521, + 0.09726828336715698, 0.0901237428188324, + -0.20555417239665985, -0.9174219369888306, + 0.010427934117615223, -0.5486174821853638, + 0.33950451016426086, 0.12821875512599945, + -0.36390960216522217, -0.17116165161132812, + -0.15839165449142456, -0.07545693963766098, + -0.015058801509439945, 0.6610194444656372, + -0.6293436288833618, 0.41219276189804077, + -0.09203768521547318, 0.11728902161121368, + -0.2631285488605499, 0.0054953452199697495, + -1.2216123342514038, -0.07179021090269089, + -1.3492001295089722, 0.6282245516777039, 0.3071160912513733, + -3.1601972579956055, 0.10227535665035248, + 0.5702449083328247, -0.43977755308151245, + -0.589710533618927, 1.6917744874954224, -0.4112345278263092, + -0.11703965812921524, -0.09414380043745041, + -0.8618249297142029, 0.46527472138404846, + 0.040970683097839355, 0.4191632568836212, + 1.2745546102523804, -0.12123681604862213, + -0.4801461100578308, 0.8127070069313049, + -0.04881255701184273 + ], + "bias": [ + 0.42200931906700134, -0.2032674103975296, + -0.6124377846717834, 0.07731001824140549 + ], + "activation": "softmax" + } ], - "activation": "softmax" - } - ], - "outputs": ["p11", "p10", "p01", "p00"], - "miscellaneous": { - "source_pt": "/data/dust/user/beinsam/FastSim/ScaleFactors/CMSSW_15_0_16/src/models/eff_classifier_pMSSM_334_105076_GenElectron.pt", - "process": "pMSSM_334_105076", - "tree": "GenElectron", - "architecture": "EffClassifier(4->hidden->hidden->4) + ReLU + softmax", - "preprocessing": { - "pt_log10": { - "expr": "log10(max(gen_pt, PT_EPS))", - "PT_EPS": 0.0001 - }, - "iso_log10": { - "expr": "log10(max(gen_iso, ISO_EPS))", - "ISO_EPS": 1e-6 + "outputs": ["p11", "p10", "p01", "p00"], + "miscellaneous": { + "source_pt": "/data/dust/user/beinsam/FastSim/ScaleFactors/CMSSW_15_0_16/src/models/eff_classifier_pMSSM_334_105076_GenElectron.pt", + "process": "pMSSM_334_105076", + "tree": "GenElectron", + "architecture": "EffClassifier(4->hidden->hidden->4) + ReLU + softmax", + "preprocessing": { + "pt_log10": { + "expr": "log10(max(gen_pt, PT_EPS))", + "PT_EPS": 0.0001 + }, + "iso_log10": { + "expr": "log10(max(gen_iso, ISO_EPS))", + "ISO_EPS": 1e-6 + } + }, + "prob_meaning": { + "p11": "fast=1 full=1", + "p10": "fast=1 full=0", + "p01": "fast=0 full=1", + "p00": "fast=0 full=0" + }, + "derived": { + "eff_fast": "p11+p10", + "eff_full": "p11+p01", + "sf": "eff_full/eff_fast (0 if eff_fast==0)" + } } }, - "prob_meaning": { - "p11": "fast=1 full=1", - "p10": "fast=1 full=0", - "p01": "fast=0 full=1", - "p00": "fast=0 full=0" - }, - "derived": { - "eff_fast": "p11+p10", - "eff_full": "p11+p01", - "sf": "eff_full/eff_fast (0 if eff_fast==0)" + "finalizer": { + "nodetype": "formula", + "expression": "(x[2]+x[3] > 0) * (x[1]+x[3]) / max(x[2]+x[3], 1e-10)", + "parser": "TFormula", + "variables": ["p00", "p01", "p10", "p11"] } } - }, - "finalizer": { - "nodetype": "formula", - "expression": "(x[2]+x[3] > 0) * (x[1]+x[3]) / max(x[2]+x[3], 1e-10)", - "parser": "TFormula", - "variables": ["p00", "p01", "p10", "p11"] } } } diff --git a/tests/test_lwtnn.py b/tests/test_lwtnn.py index 0ea819f..4dc3d00 100644 --- a/tests/test_lwtnn.py +++ b/tests/test_lwtnn.py @@ -1,23 +1,22 @@ -import math from pathlib import Path from correctionlib.highlevel import CorrectionSet -EXAMPLE = Path(__file__).parent / "data" / "lwtnn_example.json" +LWTNN_TEST_FIXTURE = Path(__file__).parent / "data" / "lwtnn_example.json" def test_lwtnn_example(): - cset = CorrectionSet.from_file(str(EXAMPLE)) - corr = cset["electron_sf"] + cset = CorrectionSet.from_file(str(LWTNN_TEST_FIXTURE)) + corr = cset["electron_fastsim_sf"] gen_pt = 15.0 gen_eta = 0.4 gen_phi = 2.1 gen_iso = 1e-3 sf = corr.evaluate( - math.log10(max(gen_pt, 1e-4)), + gen_pt, gen_eta, gen_phi, - math.log10(max(gen_iso, 1e-6)), + gen_iso, ) assert sf == 0.95186825355646787