Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions TrainBkg/CreateInference.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using namespace TMVA::Experimental;

void CreateInference(){
string modelname = "model/TrainBkgDiag.h5";
string infername = "model/TrainBkgDiag.hxx";

std::cout << "Attempting to parse: " << modelname << std::endl;

// In 6.30, we use the PyKeras sub-namespace directly
auto model = SOFIE::PyKeras::Parse(modelname);

// Generating inference code
model.Generate();

std::cout << "Saving file " << infername << std::endl;
model.OutputGenerated(infername);
}
2 changes: 2 additions & 0 deletions TrainBkg/KKTrainBkgFiles.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/TrainBkg/RootFiles/nts.owner.BD.version.sequence.root
/TrainBkg/RootFiles/nts.owner.BD.pbar.sequence.root
1,484 changes: 1,484 additions & 0 deletions TrainBkg/TrainBkgDiag.ipynb

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions TrainBkg/model/TrainBkgDiag.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
tensor_dense3bias0 1
-1.96825349
tensor_dense2bias0 16
1.81444991 -2.43205142 2.93159699 0.400496036 3.55280352 -2.55380392 1.2771194 1.94875526 2.83959794 -0.0223902371 0.8193627 3.58963847 -0.112936802 -0.0161391366 -0.295811236 4.15845823
tensor_dense1bias0 16
5.37122297 -0.725740433 -0.427898288 -6.14881706 -0.178254247 3.84829736 3.28701782 -4.3743062 0.356970549 -0.185411453 -0.385833383 -0.185350507 0.552149355 -4.13211536 -2.76091433 4.5546937
tensor_dense1kernel0 256
0.0151994331 -0.559730947 -0.902227998 0.239607617 0.113310613 -0.0040753684 -0.661186993 0.131104559 -0.128956035 -0.371055394 -0.377484471 -0.00181585911 -0.56802839 0.377833754 0.235789776 -0.154223531 0.246131212 0.387398213 0.171434492 -0.0814669728 0.282898575 0.299317509 0.00104033947 0.154930264 0.106793612 -0.407717884 0.0844173133 -0.209771186 0.413009793 -0.271367252 0.336103529 0.218085676 -0.167278603 0.210219994 0.0277943891 -0.122301936 -0.370809138 -1.05023742 -0.49164483 -0.211183473 -0.368622482 -0.11574053 -0.400881737 -0.157905802 -0.164439291 -0.143450379 -2.23387647 -0.173186496 -0.117711432 -0.404797852 -0.322535098 0.221683264 0.0485998355 0.0514241159 -0.35666126 -0.102045693 -0.328774124 -0.289175838 -0.337484032 -0.00748520344 -0.0640463158 0.394681424 0.055783622 0.202232063 -0.158077314 -1.42023087 -0.101996981 -0.150481135 -0.234765768 -0.0802826062 -0.294870377 0.184184626 0.0793941766 -0.0632362664 -0.485748112 -0.163729221 0.0715391487 0.0200015567 0.0814818665 0.0256430507 0.0038584529 0.195346862 0.196428344 -0.374293715 -0.348317116 -0.27264598 0.26817733 -0.146935269 -0.408100754 0.284201652 0.110725731 -0.188632995 0.13912186 -0.0813704655 -0.0865850598 0.336041033 0.358495057 -0.176090628 0.0209799707 0.258624375 0.401499718 0.268885642 -0.391147822 -0.349308521 -0.354997098 -0.0556010306 -0.326197207 -0.12658377 0.220354602 0.345855504 0.00633487012 -0.167775989 -0.0368395112 0.040515285 0.0574143194 0.0459896848 -0.122791588 -1.56322336 0.274933338 -0.14658685 -0.697551668 0.0314206518 0.012672985 -0.036488086 -0.00493445154 -0.309809387 0.0282775387 -0.100089423 0.0171369817 -0.737181723 -0.261027247 0.00847681612 -0.544209301 0.132406741 0.0330541953 -0.0862057507 -0.884025931 -0.446310371 -0.125864878 -0.201159939 0.211101457 0.0876285434 0.133656204 0.122085594 0.0254377294 -0.298435003 -0.418414682 0.0781589001 -0.0194527153 0.173261344 -0.20615384 0.183271855 -0.365756094 -0.201818302 -0.398668051 -0.0263647251 0.598242342 -0.0504656658 0.0805128738 0.27773577 -0.107827216 -0.314933002 -0.169593006 -0.128862739 0.109568447 0.160409659 0.0271734595 -0.164506376 -0.248002276 0.105660528 0.128128618 0.420508295 0.292676777 0.387458891 0.00177744031 0.423367947 -0.0817975104 0.0931796134 -0.33946079 0.10898447 -0.561482131 -0.250662178 0.692951262 0.0664248094 0.270903289 -0.307679653 -0.0176539905 -0.018188199 0.087554507 -0.0743870437 -0.429351419 0.195680156 0.271385849 -0.261098564 -0.119853079 -0.16435194 -0.0600992218 0.143457204 0.259915501 0.159216166 -0.137077942 0.07332775 0.306963712 -0.0314518698 0.0311599616 0.156009927 -0.421285659 0.122595519 0.0429571308 -0.647938788 -0.148699686 0.00219781348 -0.611231863 0.225229666 0.124085076 0.252743125 0.12267644 -0.102126062 -0.317296445 -0.109172866 -0.154027581 -0.241009757 -0.243154168 -0.274306118 0.352005333 0.0492113233 -0.1846973 -0.214453712 -0.248520866 0.228581697 0.319411874 0.067783542 0.00379144028 0.242783397 -0.350348681 0.175443605 -0.108651377 0.363339394 0.401327372 -0.119681329 -0.151205242 -0.0957518518 -0.0294597745 0.0105435252 -0.281461298 0.0416213274 0.363249034 -0.208442509 -0.168095648 -0.00408512354 -0.0225839019 0.0663609505 0.0181961656 0.376667827 -0.124703467 0.375448376
tensor_densebias0 16
-8.20883369 0 -0.0204744488 -0.0558916256 -3.37021828 -0.0769029707 -0.0673587471 3.18622589 1.35664129 -6.91007328 0 2.18412638 -0.0212656818 -2.00032425 -0.0597755425 0
tensor_dense3kernel0 16
0.840395331 0.55547905 -0.42122972 0.239075184 -0.455593556 0.483111233 0.112563826 0.216411114 -0.137490451 0.00439425418 -0.825030684 -0.561267018 -0.0472239368 -0.778770208 -0.0634069592 1.6127305
tensor_dense2kernel0 256
0.721922874 0.313979179 0.486713499 0.363075405 0.299933523 -0.461742133 -0.500439823 -0.732593596 0.364008546 -0.74836117 0.805593371 0.0492408685 -0.507366896 -0.282340139 -0.204208687 0.281491101 0.19052282 -0.208950981 0.49232617 0.153240159 -0.0989828631 -0.178796247 -0.0171661414 -0.565656304 -0.284137756 0.0867341608 -0.190257713 0.428598046 0.00506892614 -0.0434137546 -0.466787666 0.201322138 -0.395407975 0.230853558 0.0533354394 -0.360134721 -0.0375892855 -0.316637486 0.0324834771 0.507576466 -0.338083893 0.0901579708 0.170780554 -0.311412781 -0.255897194 -0.288026273 -0.52832514 -0.764252961 -0.163561076 0.527250588 -0.0257069133 -0.440602541 -0.101967908 0.793161333 -1.13820577 0.166451395 -0.189878985 -0.162465438 -0.473664522 0.299535513 -0.204938427 -1.54731083 -0.105317876 -0.295778036 -0.415055394 0.30790776 0.66856277 0.791338503 0.214703143 0.178853273 0.208204284 0.0490156226 -0.239751399 0.410173893 0.868932724 0.0892255306 -0.0523313433 0.20869264 0.286978841 -0.948317051 0.386802673 0.155149356 -2.5432682 -3.01225567 -1.34075999 -0.235642359 0.669074476 0.0923283994 -0.752711117 0.0466861762 -1.34574807 -3.79655576 0.294409633 0.0762320757 -0.119818717 0.09983024 -0.649070501 0.133589521 0.163616151 -0.0919478089 -0.914779365 -0.312404186 0.645495832 0.604173601 0.0562080741 -0.0575164445 -0.50598073 -0.169528797 -0.39762181 0.462017477 -0.010139158 -0.00767322537 -0.390011728 -0.704382241 -0.133734778 0.0194980223 -0.123317666 0.336533815 0.0366089568 0.0845273137 -0.121102139 -0.0967235714 -1.21531391 -0.454380691 -0.0321100727 -0.967044115 -0.0842495412 -0.127226695 0.371003181 -0.382814378 -1.3607223 -0.84427768 -0.0196426976 0.253576159 0.132835776 -0.0272028279 0.573270321 -0.731032073 -1.06966639 -0.426857144 0.334566444 -0.602975667 -0.222694352 -0.0285837818 -0.0574405827 0.116257496 0.389273912 -0.382042378 0.728868127 -0.160183087 -0.47505334 -0.345047414 0.125934944 0.463254303 0.0229522102 0.442475617 -0.0232883226 0.00360025815 -0.431586057 -0.494644552 0.203783467 0.14170292 0.144500121 0.159614772 -0.110676482 0.125142187 -0.451372862 -0.181350365 0.261528343 -0.160370693 0.426852643 0.321592063 -0.248323455 0.0456809103 0.00558496965 0.260216624 -0.407946736 0.151767075 0.133613706 0.0825098306 0.412901372 0.127189025 0.1653997 0.0100775706 0.319970131 0.00872283988 0.0298637003 -0.0231483318 -0.244450197 -0.20001097 0.341956884 -0.0575703979 -0.421066046 -0.0749354884 0.100581363 0.341819018 -0.232927829 -0.337581486 -0.579369605 0.0288225319 -0.30309388 -0.285728335 -0.450434178 -0.426482886 0.1115954 -1.73347938 -0.234253645 0.044851467 -0.267025411 -1.78389263 -0.266282856 0.402034283 0.072806038 -0.0217206813 -0.482096016 -0.565065324 0.218249068 -0.383761197 -1.26122475 -1.49262929 -0.484524846 -0.97238636 -0.114315957 -0.0506812744 -0.235502243 0.164450392 0.0232807659 -0.242847472 -0.165894777 0.108287714 0.110485941 -0.982693315 0.0339857303 -0.515599549 -0.0329903178 0.0544714928 -0.433743477 -1.01729691 -0.10311538 -0.210394725 -0.0790625438 0.184273288 -0.0128326053 0.535682976 0.0174460765 0.24734138 0.26360932 0.462990671 -0.0936573446 -0.0391456261 0.29846409 0.462254345 -0.141640246 0.543951631 -0.707391918 0.0370970368
tensor_densekernel0 128
0.124605723 -0.272176027 -0.383912683 -0.0493397489 -0.0150224548 -0.135312662 -0.404249609 0.166087627 -0.0426664688 0.0285350345 -0.0846010447 0.0423698947 -0.395707786 0.0622826852 -0.346556187 -0.210098386 0.112589076 -0.280231237 0.535327137 -0.0613143221 0.188191608 0.0154601857 0.0372289419 -0.637577057 -0.114309363 0.0225985218 -0.0424835682 -0.0336718 -0.479676753 0.258869827 -0.0472621806 -0.325410724 -6.37785482 -0.0866527557 0.219122127 0.118748508 0.522052467 0.0327157564 -0.32113716 -5.61345863 6.35103893 6.38462305 0.171573043 8.39260674 -0.672375441 8.20938015 0.314235657 -0.198039412 -1.31050241 -0.0795766115 0.445620537 -0.544486225 -0.743881822 -0.236851856 -0.24517785 -0.925560594 -0.700701773 0.309314579 -0.0296000242 3.19003749 -0.621578217 -0.184953183 -0.0169388577 0.196539044 0.0310530905 -0.00871610641 -0.737494767 -0.196681306 0.0958322808 0.0289968532 -0.196958482 0.0701459795 -0.0757764727 -0.802472532 -0.0675243139 -0.539389193 0.178022429 -0.559709311 0.176521689 -0.484115601 -0.657947302 -0.324678659 1.35378444 0.144852519 0.761297822 0.126961127 -0.0837774053 0.460731596 0.36368984 0.919221818 0.370157361 -1.01624084 0.542819023 -2.1053102 -0.344718903 -0.173633814 -6.0880003 -0.324965477 -1.75330377 -0.199719369 -5.15357351 0.0554588437 0.418092877 -0.330969393 5.50049973 0.0909663811 -0.255887985 19.5407925 -0.188445255 7.39218283 -0.408957958 0.315758109 0.154790103 0.228476405 -2.10731626 0.233771518 -3.76407409 0.0572671741 -0.513613403 -0.147251412 -0.335549593 -0.928369522 -0.326810479 0.284668386 0.302921176 1.25659668 -0.143617854 -0.372923136
Binary file added TrainBkg/model/TrainBkgDiag.h5
Binary file not shown.
Loading